| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export CFLAGS := $(shell dpkg-buildflags --get CFLAGS) |
| 4 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 5 |
export CFLAGS += -DBIRTHDATE=$(SOURCE_DATE_EPOCH) |
| 6 |
|
| 7 |
%: |
| 8 |
dh $@ |
| 9 |
|
| 10 |
# disable dh_autoreconf since upstream's configure.ac uses the |
| 11 |
# de-ANSI-fication which was removed in autoconf a while ago. |
| 12 |
# See also https://github.com/ngircd/ngircd/issues/261 |
| 13 |
override_dh_autoreconf: |
| 14 |
|
| 15 |
override_dh_auto_configure: |
| 16 |
dh_auto_configure -- \ |
| 17 |
--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \ |
| 18 |
--prefix=/usr \ |
| 19 |
--mandir=\$${prefix}/share/man \ |
| 20 |
--infodir=\$${prefix}/share/info \ |
| 21 |
--sysconfdir=/etc/ngircd \ |
| 22 |
--with-gnutls \ |
| 23 |
--with-ident \ |
| 24 |
--with-pam \ |
| 25 |
--enable-ipv6 |
| 26 |
|
| 27 |
override_dh_auto_install: |
| 28 |
dh_auto_install |
| 29 |
# install config and sample motd file |
| 30 |
install -m 640 -D $(CURDIR)/debian/ngircd.conf \ |
| 31 |
$(CURDIR)/debian/ngircd/etc/ngircd/ngircd.conf |
| 32 |
install -m 640 -D $(CURDIR)/debian/ngircd.motd \ |
| 33 |
$(CURDIR)/debian/ngircd/etc/ngircd/ngircd.motd |
| 34 |
# make lintian happy |
| 35 |
rm $(CURDIR)/debian/ngircd/usr/share/doc/ngircd/COPYING |
| 36 |
mv $(CURDIR)/debian/ngircd/usr/share/doc/ngircd/ChangeLog \ |
| 37 |
$(CURDIR)/debian/ngircd/usr/share/doc/ngircd/changelog |
| 38 |
|
| 39 |
# Commands.txt is read by the daemon |
| 40 |
override_dh_compress: |
| 41 |
dh_compress -XCommands.txt |