summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..b9d51fa
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,20 @@
+#!/usr/bin/make -f
+%:
+ dh $@ --with=systemd
+
+override_dh_auto_configure:
+
+override_dh_auto_build:
+
+override_dh_auto_install:
+ install -d $$(pwd)/debian/tmp/usr/sbin/
+ install -m 755 $$(pwd)/saswall $$(pwd)/debian/tmp/usr/sbin/saswall
+ install -d $$(pwd)/debian/tmp/etc/saswall/
+ install -m 644 $$(pwd)/debian/placeholder $$(pwd)/debian/tmp/etc/saswall/.placeholder
+ install -d $$(pwd)/debian/tmp/etc/init.d/
+ install -m 755 $$(pwd)/initscript $$(pwd)/debian/tmp/etc/init.d/saswall
+ install -d $$(pwd)/debian/tmp/lib/systemd/system
+ install -m 755 $$(pwd)/systemd.service $$(pwd)/debian/tmp/lib/systemd/system/saswall.service
+
+override_dh_installexamples:
+ dh_installexamples $$(pwd)/rules.sh