File: rules

package info (click to toggle)
ngircd 27-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,792 kB
  • sloc: ansic: 19,545; sh: 5,566; perl: 699; makefile: 463; xml: 129
file content (41 lines) | stat: -rwxr-xr-x 1,291 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/make -f

export CFLAGS := $(shell dpkg-buildflags --get CFLAGS)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export CFLAGS += -DBIRTHDATE=$(SOURCE_DATE_EPOCH)

%:
	dh $@

# disable dh_autoreconf since upstream's configure.ac uses the
# de-ANSI-fication which was removed in autoconf a while ago.
# See also https://github.com/ngircd/ngircd/issues/261
override_dh_autoreconf:

override_dh_auto_configure:
	dh_auto_configure -- \
	    --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
	    --prefix=/usr \
	    --mandir=\$${prefix}/share/man \
	    --infodir=\$${prefix}/share/info \
	    --sysconfdir=/etc/ngircd \
	    --with-gnutls \
	    --with-ident \
	    --with-pam \
	    --enable-ipv6

override_dh_auto_install:
	dh_auto_install
	# install config and sample motd file
	install -m 640 -D $(CURDIR)/debian/ngircd.conf \
	    $(CURDIR)/debian/ngircd/etc/ngircd/ngircd.conf
	install -m 640 -D $(CURDIR)/debian/ngircd.motd \
	    $(CURDIR)/debian/ngircd/etc/ngircd/ngircd.motd
	# make lintian happy
	rm $(CURDIR)/debian/ngircd/usr/share/doc/ngircd/COPYING
	mv $(CURDIR)/debian/ngircd/usr/share/doc/ngircd/ChangeLog \
	    $(CURDIR)/debian/ngircd/usr/share/doc/ngircd/changelog

# Commands.txt is read by the daemon
override_dh_compress:
	dh_compress -XCommands.txt