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
|
#!/usr/bin/make -f
export deb_systemdsystemunitdir = $(shell pkg-config --variable=systemdsystemunitdir systemd | sed s,^/,,)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
%:
dh $@ --builddir build
override_dh_auto_configure:
dh_auto_configure -- \
--runstatedir='/run' \
--enable-debug \
--enable-iwd \
--enable-l2tp \
--enable-openconnect \
--enable-openvpn \
--enable-pie \
--enable-polkit \
--enable-pptp \
--enable-selinux \
--enable-threads \
--enable-test \
--with-openconnect=/usr/sbin/openconnect \
--with-openvpn=/usr/sbin/openvpn \
--with-systemdunitdir=/$(deb_systemdsystemunitdir) \
--with-tmpfilesdir=/usr/lib/tmpfiles.d
override_dh_installinit:
cp -a build/scripts/connman debian/connman.init
dh_installinit --restart-after-upgrade
execute_before_dh_auto_clean:
$(RM) debian/connman.init
$(RM) -r build
override_dh_clean:
dh_clean aclocal.m4 config.h.in configure ltmain.sh
override_dh_ppp:
dh_ppp --breaks
override_dh_python3:
# Upstream claims that these scripts are compatible with python3, see 55965561d3
dh_python3 /usr/share/connman/test/ --shebang=/usr/bin/python3
|