rules 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #!/usr/bin/make -f
  2. export DEB_BUILD_HARDENING=1
  3. override_dh_auto_configure:
  4. dh_auto_configure -- \
  5. --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
  6. --prefix=/usr \
  7. --mandir=\$${prefix}/share/man \
  8. --infodir=\$${prefix}/share/info \
  9. --sysconfdir=/etc/ngircd \
  10. --with-gnutls \
  11. --with-ident \
  12. --with-pam \
  13. --enable-ipv6
  14. override_dh_auto_install:
  15. dh_auto_install
  16. # install config and sample motd file
  17. install -m 640 -D $(CURDIR)/debian/ngircd.conf \
  18. $(CURDIR)/debian/ngircd/etc/ngircd/ngircd.conf
  19. install -m 640 -D $(CURDIR)/debian/ngircd.motd \
  20. $(CURDIR)/debian/ngircd/etc/ngircd/ngircd.motd
  21. install -m 640 -D $(CURDIR)/contrib/ngircd.service \
  22. $(CURDIR)/debian/ngircd/lib/systemd/system/ngircd.service
  23. # make lintian happy
  24. rm $(CURDIR)/debian/ngircd/usr/share/doc/ngircd/COPYING
  25. mv $(CURDIR)/debian/ngircd/usr/share/doc/ngircd/ChangeLog \
  26. $(CURDIR)/debian/ngircd/usr/share/doc/ngircd/changelog
  27. override_dh_compress:
  28. dh_compress -XCommands.txt
  29. %:
  30. dh $@