rules 960 B

123456789101112131415161718192021222324252627282930
  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. --enable-ipv6
  12. override_dh_auto_install:
  13. dh_auto_install
  14. # install config and sample motd file
  15. install -m 640 -D $(CURDIR)/debian/ngircd.conf \
  16. $(CURDIR)/debian/ngircd/etc/ngircd/ngircd.conf
  17. install -m 640 -D $(CURDIR)/debian/ngircd.motd \
  18. $(CURDIR)/debian/ngircd/etc/ngircd/ngircd.motd
  19. install -m 755 -D $(CURDIR)/debian/ngircd-conf-convert \
  20. $(CURDIR)/debian/ngircd/usr/share/ngircd/ngircd-conf-convert
  21. # make lintian happy
  22. rm $(CURDIR)/debian/ngircd/usr/share/doc/ngircd/COPYING
  23. mv $(CURDIR)/debian/ngircd/usr/share/doc/ngircd/ChangeLog \
  24. $(CURDIR)/debian/ngircd/usr/share/doc/ngircd/changelog
  25. %:
  26. dh $@