3 DH_OPTIONS = --parallel -Bdebian/build
5 ###--------------------------------------------------------------------------
8 OVERRIDES += auto_configure
9 dh_auto_configure_OPTS = --
11 ## Various files and directories.
12 dh_auto_configure_OPTS += --libdir="\$${prefix}/lib"
13 dh_auto_configure_OPTS += --libexecdir="\$${libdir}/tripe"
14 dh_auto_configure_OPTS += --with-configdir="/etc/tripe"
15 dh_auto_configure_OPTS += --with-socketdir="/var/run"
16 dh_auto_configure_OPTS += --with-logfile="/var/log/tripe/tripe.log"
17 dh_auto_configure_OPTS += --with-pidfile="/var/run/tripectl.pid"
19 ## The default tunnel. If we try to port this to other kernels, we'll need
20 ## something more complicated here.
21 dh_auto_configure_OPTS += --with-tunnel="linux slip"
23 ###--------------------------------------------------------------------------
24 ### The wireshark plugin.
26 OVERRIDES += gencontrol
28 dpkg --status wireshark-common | \
29 sed -n 's/^Version: */tripe:Wireshark-Version=/p' \
30 >> debian/tripe-wireshark.substvars
32 ###--------------------------------------------------------------------------
33 ### The startup script and related machinery.
35 dh_auto_configure_OPTS += --with-initconfig="/etc/default/tripe"
37 OVERRIDES += installinit
39 cp debian/build/init/tripe-init debian/tripe.init
40 sed 's/^#\(user\|group\)/\1/' \
41 init/tripe.conf >debian/tripe.default
45 rm -f debian/tripe.init debian/tripe.default
47 ###--------------------------------------------------------------------------
51 DH_OPTIONS += --with=python2
53 dh_python2_OPTS += -ppython-tripe
58 mkdir -p debian/tripe-peer-services/etc/tripe/peers.d
59 install -m644 peerdb/peers.in \
60 debian/tripe-peer-services/etc/tripe/peers.d/10base
62 ###--------------------------------------------------------------------------
63 ### Some machinery for overriding Debhelper in a structured way.
65 %:; dh $@ $(DH_OPTIONS)
67 $(foreach o, $(sort $(OVERRIDES)), dh-$o-hook)::; @:
68 $(foreach o, $(sort $(OVERRIDES)), override_dh_$o): override_dh_%: dh-%-hook
69 dh_$* $(addprefix -O, $(DH_OPTIONS)) $(dh_$*_OPTS)
71 ###----- That's all, folks --------------------------------------------------