Browse Source

debian/rules: package systemd files

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Toni Uhlig 4 years ago
parent
commit
96bae72483
1 changed files with 6 additions and 1 deletions
  1. 6 1
      debian/rules

+ 6 - 1
debian/rules

@@ -8,4 +8,9 @@ LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
 	dh $@ --with autoreconf
 
 override_dh_auto_build:
-	dh_auto_build -- CFLAGS="-Wall $(CFLAGS)" LDFLAGS="$(LDFLAGS)" CPPFLAGS="$(CPPFLAGS)"
+	dh_auto_build -- CFLAGS="-Wall -Werror $(CFLAGS)" LDFLAGS="$(LDFLAGS)" CPPFLAGS="$(CPPFLAGS)"
+
+override_dh_auto_install:
+	dh_auto_install
+	install -D -m644 contrib/ptunnel-ng.conf debian/ptunnel-ng/etc/conf.d/ptunnel-ng
+	install -D -m644 contrib/ptunnel-ng.service debian/ptunnel-ng/etc/systemd/system/ptunnel-ng.service