#! /usr/bin/make -f DH_OPTIONS = --parallel -Bdebian/build ###-------------------------------------------------------------------------- ### Configuration. OVERRIDES += auto_configure dh_auto_configure_OPTS = -- ## Various files and directories. dh_auto_configure_OPTS += --libexecdir="\$${libdir}/tripe" dh_auto_configure_OPTS += --with-configdir="/etc/tripe" dh_auto_configure_OPTS += --with-socketdir="/var/run" dh_auto_configure_OPTS += --with-logfile="/var/log/tripe/tripe.log" dh_auto_configure_OPTS += --with-pidfile="/var/run/tripectl.pid" ## The default tunnel. If we try to port this to other kernels, we'll need ## something more complicated here. dh_auto_configure_OPTS += --with-tunnel="linux slip" ###-------------------------------------------------------------------------- ### The wireshark plugin. OVERRIDES += gencontrol dh-gencontrol-hook:: dpkg --status wireshark-common | \ sed -n 's/^Version: */tripe:Wireshark-Version=/p' \ >> debian/tripe-wireshark.substvars OVERRIDES += shlibdeps dh_shlibdeps_OPTS += -Xwireshark/plugins ###-------------------------------------------------------------------------- ### The startup script and related machinery. dh_auto_configure_OPTS += --with-initconfig="/etc/default/tripe" OVERRIDES += installinit dh-installinit-hook:: cp debian/build/init/tripe-init debian/tripe.init sed 's/^#\(user\|group\)/\1/' \ init/tripe.conf >debian/tripe.default OVERRIDES += clean dh-clean-hook:: rm -f debian/tripe.init debian/tripe.default ###-------------------------------------------------------------------------- ### Other things. ## Python stuff. DH_OPTIONS += --with=python-central OVERRIDES += pycentral dh_pycentral_OPTS += -ppython-tripe ## The peer database. OVERRIDES += install dh-install-hook:: mkdir -p debian/tripe-peer-services/etc/tripe/peers.d install -m644 peerdb/peers.in \ debian/tripe-peer-services/etc/tripe/peers.d/10base ###-------------------------------------------------------------------------- ### Some machinery for overriding Debhelper in a structured way. %:; dh $@ $(DH_OPTIONS) $(foreach o, $(sort $(OVERRIDES)), dh-$o-hook)::; @: $(foreach o, $(sort $(OVERRIDES)), override_dh_$o): override_dh_%: dh-%-hook dh_$* $(addprefix -O, $(DH_OPTIONS)) $(dh_$*_OPTS) ###----- That's all, folks --------------------------------------------------