chiark / gitweb /
py: New Python module for writing services and suchlike
[tripe] / debian / rules
CommitLineData
ef4a1ab7 1#! /usr/bin/make -f
2
6b6ad670 3CDBS = /usr/share/cdbs/1
ef4a1ab7 4
6b6ad670
MW
5include $(CDBS)/rules/debhelper.mk
6include $(CDBS)/class/autotools.mk
ef4a1ab7 7
6b6ad670
MW
8###--------------------------------------------------------------------------
9### General settings.
ef4a1ab7 10
6b6ad670 11DEB_BUILDDIR = $(CURDIR)/build
1c5f4539 12DEB_MAKE_CHECK_TARGET = check
ef4a1ab7 13
6b6ad670
MW
14###--------------------------------------------------------------------------
15### Correct configuration.
ef4a1ab7 16
6b6ad670
MW
17## This will need changing on other kernels.
18default_tunnel = linux
19
20## Configuration arguments.
21DEB_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###--------------------------------------------------------------------------
2fa80010
MW
31### Python.
32
33binary-install/python-tripe::
34 dh_pycentral -ppython-tripe
35
36###--------------------------------------------------------------------------
6b6ad670
MW
37### Install the startup scripts.
38
39install/tripe::
40 cp $(DEB_BUILDDIR)/init/tripe-init debian/tripe.init
41 cp $(DEB_SRCDIR)/init/tripe.conf debian/tripe.default
42
43cleanbuilddir::
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.
50install/tripe-wireshark::
28461f0e
MW
51 dpkg --status wireshark | \
52 sed -n 's/^Version: */tripe:Wireshark-Version=/p' \
53 >> debian/tripe-wireshark.substvars
ef4a1ab7 54
6b6ad670
MW
55## Don't track dependencies for the plugin. We have it covered already.
56DEB_DH_SHLIBDEPS_ARGS_tripe-wireshark += -Xwireshark/plugins
ef4a1ab7 57
6b6ad670 58###----- That's all, folks --------------------------------------------------