Code sync
[external/avahi.git] / debian / rules
1 #!/usr/bin/make -f
2
3 export DH_VERBOSE=1
4
5 %:
6         dh $@
7
8 DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
9
10 ifneq (linux,$(DEB_HOST_ARCH_OS))
11         CONFFLAGS += --disable-autoipd
12 endif
13
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
17
18 override_dh_auto_configure:
19         dh_auto_configure -- $(CONFFLAGS) \
20                 --disable-compat-libdns_sd \
21                 --disable-mono \
22                 --disable-monodoc \
23                 --disable-qt3 \
24                 --disable-qt4 \
25                 --disable-gtk \
26                 --disable-gtk3\
27                 --disable-python \
28                 --disable-pygtk \
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\
36                 --disable-glib \
37                 --disable-gobject \
38                 --disable-gdbm \
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
44
45 override_dh_auto_build:
46         dh_auto_build
47         # create an up to date PO template
48         cd po; intltool-update -p --verbose
49
50 override_dh_auto_clean:
51         dh_auto_clean
52         rm -f po/*.pot
53
54 override_dh_auto_install:
55         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
63 #endif
64
65 # List any files which are not installed
66 override_dh_install:
67         dh_install --list-missing
68
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 .
72
73 override_dh_installdocs:
74         dh_installdocs --all docs/NEWS docs/README
75
76 override_dh_strip:
77         dh_strip --dbg-package=avahi-daemon-dbg
78