chiark / gitweb /
12de3ab1b1ef5ce87140efc6232c01c226325890
[tripe] / debian / rules
1 #! /usr/bin/make -f
2
3 CDBS = /usr/share/cdbs/1
4
5 include $(CDBS)/rules/debhelper.mk
6 include $(CDBS)/class/autotools.mk
7
8 ###--------------------------------------------------------------------------
9 ### General settings.
10
11 DEB_BUILDDIR = $(CURDIR)/build
12 DEB_MAKE_CHECK_TARGET = check
13
14 ###--------------------------------------------------------------------------
15 ### Correct configuration.
16
17 ## This will need changing on other kernels.
18 default_tunnel = linux
19
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.log" \
26         --with-pidfile="/var/run/tripectl.pid" \
27         --with-initconfig="/etc/default/tripe" \
28         --with-wireshark
29
30 ###--------------------------------------------------------------------------
31 ### Python.
32
33 binary-install/python-tripe::
34         dh_pycentral -ppython-tripe
35
36 ###--------------------------------------------------------------------------
37 ### Install the startup scripts.
38
39 install/tripe::
40         cp $(DEB_BUILDDIR)/init/tripe-init debian/tripe.init
41         cp $(DEB_SRCDIR)/init/tripe.conf debian/tripe.default
42
43 cleanbuilddir::
44         rm -f debian/tripe.init debian/tripe.default
45
46 ###--------------------------------------------------------------------------
47 ### Wireshark plugin.
48
49 ## Grab the version we built against, so we can put it in the dependencies.
50 install/tripe-wireshark::
51         dpkg --status wireshark | \
52                 sed -n 's/^Version: */tripe:Wireshark-Version=/p' \
53                 >> debian/tripe-wireshark.substvars
54
55 ## Don't track dependencies for the plugin.  We have it covered already.
56 DEB_DH_SHLIBDEPS_ARGS_tripe-wireshark += -Xwireshark/plugins
57
58 ###----- That's all, folks --------------------------------------------------