diff options
author | Christian Pointner <equinox@spreadspace.org> | 2017-08-13 16:15:18 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2017-08-13 16:15:18 +0200 |
commit | 6ee370ee359940f86e17a91934dbe0280114eca7 (patch) | |
tree | 63051938ff551965582b932e2da0f07026b0fb7f /debian/rules | |
parent | upgraded to 0.1.3 (diff) |
new v0.1 based package
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/debian/rules b/debian/rules index 9ab11b4..939a182 100755 --- a/debian/rules +++ b/debian/rules @@ -1,20 +1,11 @@ #!/usr/bin/make -f -%: - dh $@ --with=systemd - -override_dh_clean: - dh_clean - rm -f vanity -override_dh_auto_configure: +export DH_OPTIONS +export DH_GOPKG := github.com/xiam/vanity -override_dh_auto_build: - go build -o vanity - -override_dh_auto_install: - install -d $$(pwd)/debian/tmp/usr/bin/ - install -m 755 $$(pwd)/vanity $$(pwd)/debian/tmp/usr/bin/vanity - install -d $$(pwd)/debian/tmp/etc/ - install -m 644 $$(pwd)/debian/vanity.conf $$(pwd)/debian/tmp/etc/ +%: + dh $@ --buildsystem=golang --with=golang override_dh_installinit: + install -d $$(pwd)/debian/vanity/lib/systemd/system/ + install -m 644 $$(pwd)/debian/vanity@.service $$(pwd)/debian/vanity/lib/systemd/system/ |