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_BUILD_TARGET
= all html pdf
13 DEB_MAKE_INSTALL_TARGET
= \
14 install install-html install-pdf \
15 DESTDIR
=$(CURDIR
)/debian
/tmp
/
16 DEB_MAKE_CHECK_TARGET
= check
18 ###--------------------------------------------------------------------------
19 ### Correct configuration.
21 ## This will need changing on other kernels.
22 default_tunnel
= linux
24 ## Configuration arguments.
25 DEB_CONFIGURE_EXTRA_FLAGS
= \
26 --with-tunnel
="$(default_tunnel) slip" \
27 --with-configdir
="/etc/tripe" \
28 --with-socketdir
="/var/run" \
29 --with-logfile
="/var/log/tripe/tripe.log" \
30 --with-pidfile
="/var/run/tripectl.pid" \
31 --with-initconfig
="/etc/default/tripe" \
32 --with-wireshark
="/usr/lib/wireshark/libwireshark0/plugins"
34 ###--------------------------------------------------------------------------
37 binary-install
/python-tripe
::
38 dh_pycentral
-ppython-tripe
40 ###--------------------------------------------------------------------------
41 ### Install the startup scripts.
44 cp
$(DEB_BUILDDIR
)/init
/tripe-init debian
/tripe.init
45 sed
's/^#\(user\|group\)/\1/' \
46 $(DEB_SRCDIR
)/init
/tripe.conf
>debian
/tripe.default
49 rm -f debian
/tripe.init debian
/tripe.default
51 ###--------------------------------------------------------------------------
52 ### Install configuration files.
54 install/tripe-peer-services
::
55 install -m644
$(DEB_SRCDIR
)/peerdb
/peers.in \
56 debian
/tripe-peer-services
/etc
/tripe
/peers.d
/10base
58 ###--------------------------------------------------------------------------
61 ## Grab the version we built against, so we can put it in the dependencies.
62 install/tripe-wireshark
::
63 dpkg
--status wireshark | \
64 sed
-n
's/^Version: */tripe:Wireshark-Version=/p' \
65 >> debian
/tripe-wireshark.substvars
67 ## Don't track dependencies for the plugin. We have it covered already.
68 DEB_DH_SHLIBDEPS_ARGS_tripe-wireshark
+= -Xwireshark
/plugins
70 ###----- That's all, folks --------------------------------------------------