File: rules

package info (click to toggle)
avahi 0.6.32-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 8,888 kB
  • sloc: ansic: 39,999; sh: 6,219; xml: 4,433; cs: 2,185; makefile: 1,705; python: 310; cpp: 222
file content (72 lines) | stat: -rwxr-xr-x 1,894 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/usr/bin/make -f

%:
	dh $@ --with autotools-dev,python2,systemd,autoreconf

DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)

ifneq (linux,$(DEB_HOST_ARCH_OS))
CONFFLAGS += \
	--disable-autoipd
endif

# Ensure at build time that the library has no dependencies on undefined
# symbols, and speed up loading.
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs -Wl,-O1 -Wl,--as-needed

ifneq ($(filter stage1,$(DEB_BUILD_PROFILES)),)
CONFFLAGS += \
	--disable-qt4 \
	--disable-gtk3 \
	--disable-gtk \
	--disable-pygtk \
	--disable-python-dbus
else
CONFFLAGS += \
	--enable-gtk3
endif

override_dh_auto_configure:
	dh_auto_configure -- $(CONFFLAGS) \
		--enable-compat-libdns_sd \
		--disable-mono \
		--disable-monodoc \
		--disable-qt3 \
		--with-systemdsystemunitdir=/lib/systemd/system

override_dh_auto_build:
	dh_auto_build
	# create an up to date PO template
	cd po; intltool-update -p --verbose

override_dh_auto_clean:
	dh_auto_clean
	rm -f po/*.pot

override_dh_auto_install:
	dh_auto_install
	install -D -o root -g root -m 755 debian/avahi-daemon.resolvconf \
		debian/avahi-daemon/etc/resolvconf/update-libc.d/avahi-daemon
	install -D -o root -g root -m 755 debian/avahi-daemon-check-dns.sh \
		debian/avahi-daemon/usr/lib/avahi/avahi-daemon-check-dns.sh
ifeq (linux,$(DEB_HOST_ARCH_OS))
	mv debian/tmp/etc/dhcp/dhclient-exit-hooks.d/avahi-autoipd \
		debian/tmp/etc/dhcp/dhclient-exit-hooks.d/zzz_avahi-autoipd
endif

# List any files which are not installed
override_dh_install:
	dh_install --list-missing

override_dh_installinit:
	dh_installinit -pavahi-daemon --restart-after-upgrade
	dh_installinit -pavahi-dnsconfd --restart-after-upgrade

override_dh_installdocs:
	dh_installdocs --all docs/NEWS docs/README

override_dh_strip:
	dh_strip --dbgsym-migration='avahi-dbg (<< 0.6.32-1~)'

override_dh_autoreconf:
	NOCONFIGURE=1 dh_autoreconf --as-needed ./autogen.sh