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 73 74 75 76
|
#!/usr/bin/make -f
export PYTHON=/usr/bin/python3
%:
dh $@
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
include /usr/share/dpkg/default.mk
ifneq (linux,$(DEB_HOST_ARCH_OS))
CONFFLAGS += \
--disable-libsystemd \
--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
ifneq ($(filter pkg.avahi.nogui,$(DEB_BUILD_PROFILES)),)
CONFFLAGS += --disable-gtk3
else
CONFFLAGS += --enable-gtk3
endif
ifneq ($(filter nogir,$(DEB_BUILD_PROFILES)),)
CONFFLAGS += --disable-introspection
else
CONFFLAGS += --enable-introspection
endif
ifneq ($(filter nopython,$(DEB_BUILD_PROFILES)),)
CONFFLAGS += \
--disable-pygobject \
--disable-python-dbus
endif
override_dh_auto_configure:
dh_auto_configure -- $(CONFFLAGS) \
--enable-compat-libdns_sd \
--disable-libevent \
--disable-mono \
--disable-monodoc \
--disable-gtk \
--disable-qt3 \
--disable-qt4 \
--disable-qt5 \
--with-distro=debian \
--with-systemdsystemunitdir=/usr/lib/systemd/system
execute_after_dh_auto_build:
# create an up to date PO template
cd po; intltool-update -p --verbose
execute_after_dh_auto_clean:
rm -f po/*.pot
execute_after_dh_auto_install:
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
execute_before_dh_missing:
find debian/tmp -name '*.la' -print -delete
rm -f debian/tmp/etc/init.d/avahi-daemon
rm -f debian/tmp/etc/init.d/avahi-dnsconfd
rm -f debian/tmp/usr/bin/avahi-discover-standalone
rm -f debian/tmp/usr/share/man/man1/avahi-bookmarks.1
override_dh_installdocs:
dh_installdocs --all docs/NEWS docs/README
override_dh_installchangelogs:
dh_installchangelogs -XChangeLog
|