rules 587 B

12345678910111213141516
  1. #!/usr/bin/make -f
  2. export DEB_BUILD_MAINT_OPTIONS = hardening=+all
  3. CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
  4. CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
  5. LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
  6. %:
  7. dh $@ --with autoreconf
  8. override_dh_auto_build:
  9. dh_auto_build -- CFLAGS="-Wall -Werror $(CFLAGS)" LDFLAGS="$(LDFLAGS)" CPPFLAGS="$(CPPFLAGS)"
  10. override_dh_auto_install:
  11. dh_auto_install
  12. install -D -m644 contrib/ptunnel-ng.conf debian/ptunnel-ng/etc/conf.d/ptunnel-ng
  13. install -D -m644 contrib/ptunnel-ng.service debian/ptunnel-ng/etc/systemd/system/ptunnel-ng.service