summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/batteriewarner.service9
-rw-r--r--debian/control2
-rwxr-xr-xdebian/rules2
3 files changed, 11 insertions, 2 deletions
diff --git a/debian/batteriewarner.service b/debian/batteriewarner.service
new file mode 100644
index 0000000..7b6b670
--- /dev/null
+++ b/debian/batteriewarner.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Batteriewarner Daemon
+
+[Service]
+Type=simple
+ExecStart=/usr/sbin/batteriewarner
+
+[Install]
+WantedBy=multi-user.target \ No newline at end of file
diff --git a/debian/control b/debian/control
index 4a3a94f..3715ba7 100644
--- a/debian/control
+++ b/debian/control
@@ -1,6 +1,6 @@
Source: batteriewarner
Maintainer: Yves Fischer <yvesf+debian@xapek.org>
-Build-Depends: debhelper (>= 9), dh-cargo, rustc
+Build-Depends: debhelper (>= 9), dh-cargo, rustc, dh-systemd (>= 1.5)
Package: batteriewarner
Architecture: any
diff --git a/debian/rules b/debian/rules
index 8f6d5dc..56e44e0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,7 @@
#!/usr/bin/make -f
%:
- dh $@
+ dh ${@} --with=systemd
override_dh_auto_clean:
cargo clean