8 DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
10 ifneq (linux,$(DEB_HOST_ARCH_OS))
11 CONFFLAGS += --disable-autoipd
14 # Ensure at build time that the library has no dependencies on undefined
15 # symbols, and speed up loading.
16 export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) -Wl,-z,defs -Wl,-O1
18 override_dh_auto_configure:
19 dh_auto_configure -- $(CONFFLAGS) \
20 --disable-compat-libdns_sd \
29 --disable-python-dbus \
30 --disable-doxygen-doc\
31 --disable-doxygen-dot\
32 --disable-doxygen-xml\
33 --disable-doxygen-html\
34 --disable-doxygen-manpages\
35 --disable-doxygen-xmltoman\
39 --with-avahi-user=app \
40 --with-avahi-group=app \
41 --sysconfdir=/opt/etc \
42 --localstatedir=/opt/var \
43 --with-systemdsystemunitdir=/lib/systemd/system CFLAGS=-UGTK_DISABLE_DEPRECATED
45 override_dh_auto_build:
47 # create an up to date PO template
48 cd po; intltool-update -p --verbose
50 override_dh_auto_clean:
54 override_dh_auto_install:
56 # install -D -o root -g root -m 755 debian/avahi-daemon.resolvconf \
57 debian/avahi-daemon/etc/resolvconf/update-libc.d/avahi-daemon
58 # install -D -o root -g root -m 755 debian/avahi-daemon-check-dns.sh \
59 debian/avahi-daemon/usr/lib/avahi/avahi-daemon-check-dns.sh
60 #ifeq (linux,$(DEB_HOST_ARCH_OS))
61 # mv debian/tmp/etc/dhcp/dhclient-exit-hooks.d/avahi-autoipd \
62 # debian/tmp/etc/dhcp/dhclient-exit-hooks.d/zzz_avahi-autoipd
65 # List any files which are not installed
67 dh_install --list-missing
69 override_dh_installinit:
70 dh_installinit -pavahi-daemon -- start 14 2 3 4 5 . stop 86 0 1 6 .
71 # dh_installinit -pavahi-dnsconfd -- start 16 2 3 4 5 . stop 84 0 1 6 .
73 override_dh_installdocs:
74 dh_installdocs --all docs/NEWS docs/README
77 dh_strip --dbg-package=avahi-daemon-dbg