summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog6
-rw-r--r--debian/control2
-rw-r--r--debian/kanla.service10
-rwxr-xr-xdebian/rules2
4 files changed, 18 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog
index 1ab8e22..db3b140 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+kanla (1.3-2) unstable; urgency=low
+
+ * Ship a systemd service file using dh-systemd
+
+ -- Michael Stapelberg <stapelberg@debian.org> Sun, 16 Jun 2013 23:56:43 +0200
+
kanla (1.3-1) unstable; urgency=low
* New upstream release. (Closes: #706463)
diff --git a/debian/control b/debian/control
index f02b1e2..30d7378 100644
--- a/debian/control
+++ b/debian/control
@@ -2,7 +2,7 @@ Source: kanla
Section: net
Priority: optional
Maintainer: Michael Stapelberg <stapelberg@debian.org>
-Build-Depends: debhelper (>= 8)
+Build-Depends: debhelper (>= 8), dh-systemd
Build-Depends-Indep: libanyevent-http-perl (>= 1.5),
libanyevent-perl,
libanyevent-xmpp-perl (>= 0.54),
diff --git a/debian/kanla.service b/debian/kanla.service
new file mode 100644
index 0000000..4831eec
--- /dev/null
+++ b/debian/kanla.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=small-scale alerting daemon
+Documentation=man:kanla(1p) http://kanla.zekjur.net/
+
+[Service]
+User=kanla
+ExecStart=/usr/bin/kanla
+
+[Install]
+WantedBy=multi-user.target
diff --git a/debian/rules b/debian/rules
index 91cb7e4..e877eda 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,4 +4,4 @@ override_dh_fixperms:
dh_fixperms -Xetc/kanla/
%:
- dh $@
+ dh $@ --with=systemd