3 CDBS
= /usr
/share
/cdbs
/1
5 include $(CDBS
)/rules
/debhelper.mk
6 include $(CDBS
)/class
/autotools.mk
8 ###--------------------------------------------------------------------------
11 DEB_BUILDDIR
= $(CURDIR
)/build
12 DEB_MAKE_CHECK_TARGET
= check
14 ###--------------------------------------------------------------------------
15 ### Correct configuration.
17 ## This will need changing on other kernels.
18 default_tunnel
= linux
20 ## Configuration arguments.
21 DEB_CONFIGURE_EXTRA_FLAGS
= \
22 --with-tunnel
="$(default_tunnel) slip" \
23 --with-configdir
="/etc/tripe" \
24 --with-socketdir
="/var/run" \
25 --with-logfile
="/var/log/tripe/tripe.log" \
26 --with-pidfile
="/var/run/tripectl.pid" \
27 --with-initconfig
="/etc/default/tripe" \
28 --with-wireshark
="/usr/lib/wireshark/libwireshark0/plugins"
30 ###--------------------------------------------------------------------------
33 binary-install
/python-tripe
::
34 dh_pycentral
-ppython-tripe
36 ###--------------------------------------------------------------------------
37 ### Install the startup scripts.
40 cp
$(DEB_BUILDDIR
)/init
/tripe-init debian
/tripe.init
41 sed
's/^#\(user\|group\)/\1/' \
42 $(DEB_SRCDIR
)/init
/tripe.conf
>debian
/tripe.default
43 mkdir
-p debian
/tripe
/usr
/share
/doc
/tripe
/examples
44 for i in tripe-ipif ipif-peers tripe-upstart
; do \
45 cp
$(DEB_BUILDDIR
)/contrib
/$$i \
46 debian
/tripe
/usr
/share
/doc
/tripe
/examples
; \
50 rm -f debian
/tripe.init debian
/tripe.default
52 ###--------------------------------------------------------------------------
53 ### Install configuration files.
55 install/tripe-peer-services
::
56 install -m644
$(DEB_SRCDIR
)/peerdb
/peers.in \
57 debian
/tripe-peer-services
/etc
/tripe
/peers.d
/10base
59 ###--------------------------------------------------------------------------
62 ## Grab the version we built against, so we can put it in the dependencies.
63 install/tripe-wireshark
::
64 dpkg
--status wireshark | \
65 sed
-n
's/^Version: */tripe:Wireshark-Version=/p' \
66 >> debian
/tripe-wireshark.substvars
68 ## Don't track dependencies for the plugin. We have it covered already.
69 DEB_DH_SHLIBDEPS_ARGS_tripe-wireshark
+= -Xwireshark
/plugins
71 ###----- That's all, folks --------------------------------------------------