From b7f2855d530561bb9acc42dec26902cf5b6ebba7 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 13 Jan 2016 01:05:30 +0100 Subject: added config file --- debian/changelog | 7 +++++++ debian/control | 2 +- debian/rules | 2 ++ debian/vanity.install | 1 + debian/vanity.service | 3 ++- 5 files changed, 13 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 83ab432..36c08b2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +vanity (0.1.1-4) unstable; urgency=medium + + * depending on golang-go > 1.5 (flags is to old in 1.3) + * added configuration file + + -- Christian Pointner Wed, 13 Jan 2016 01:04:30 +0100 + vanity (0.1.1-3) unstable; urgency=medium * package now actually builds from source diff --git a/debian/control b/debian/control index 378abd0..a7a9ddf 100644 --- a/debian/control +++ b/debian/control @@ -3,7 +3,7 @@ Maintainer: Christian Pointner Section: utils Priority: optional Standards-Version: 3.9.2 -Build-Depends: debhelper (>= 9), dh-systemd, golang-go +Build-Depends: debhelper (>= 9), dh-systemd, golang-go (>=2:1.5) Package: vanity Architecture: any diff --git a/debian/rules b/debian/rules index 914a885..9ab11b4 100755 --- a/debian/rules +++ b/debian/rules @@ -14,5 +14,7 @@ override_dh_auto_build: 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/ override_dh_installinit: diff --git a/debian/vanity.install b/debian/vanity.install index 0a7989b..b90e2b1 100644 --- a/debian/vanity.install +++ b/debian/vanity.install @@ -1 +1,2 @@ usr/bin/vanity +etc/vanity.conf diff --git a/debian/vanity.service b/debian/vanity.service index a22a624..39eb0c9 100644 --- a/debian/vanity.service +++ b/debian/vanity.service @@ -2,7 +2,8 @@ Description=make go packages gettable [Service] -ExecStart=/usr/bin/vanity -addr localhost:9192 -repo-root https://git.helsinki.at -vanity-root https://code.helsinki.at +EnvironmentFile=/etc/vanity.conf +ExecStart=/usr/bin/vanity -addr=${VANITY_ADDR} -vanity-root=${VANITY_ROOT} -repo-root=${VANITY_REPO_ROOT} User=vanity Group=vanity Restart=on-failure -- cgit v1.2.3