#!/usr/bin/make -f include /usr/share/dpkg/architecture.mk with_helpers := autoreconf python2 ifeq (linux,$(DEB_HOST_ARCH_OS)) with_helpers += systemd else CONFFLAGS += --disable-autoipd endif %: dh $@ $(with_helpers:%=--with %) # 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 override_dh_auto_configure: dh_auto_configure -- $(CONFFLAGS) \ --enable-compat-libdns_sd \ --disable-mono \ --disable-monodoc \ --disable-qt3 \ --enable-gtk3 \ --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 ifneq (illumos,$(DEB_HOST_ARCH_OS)) 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 endif 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 ifneq (illumos,$(DEB_HOST_ARCH_OS)) sed -i /^rlimit-nproc/d debian/avahi-daemon/etc/avahi/avahi-daemon.conf endif override_dh_installinit: dh_installinit -pavahi-daemon -- start 14 2 3 4 5 . stop 86 0 1 6 . dh_installinit -pavahi-dnsconfd -- start 16 2 3 4 5 . stop 84 0 1 6 . override_dh_installdocs: dh_installdocs --all docs/NEWS docs/README override_dh_strip: dh_strip --dbg-package=avahi-dbg override_dh_autoreconf: dh_autoreconf --as-needed