tripe-keys.conf.5: Description of sig-url shouldn't be circular!
[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
ef4a1ab7 12
6b6ad670
MW
13###--------------------------------------------------------------------------
14### Correct configuration.
ef4a1ab7 15
6b6ad670
MW
16## This will need changing on other kernels.
17default_tunnel = linux
18
19## Configuration arguments.
20DEB_CONFIGURE_EXTRA_FLAGS = \
21 --with-tunnel="$(default_tunnel) slip" \
22 --with-configdir="/etc/tripe" \
23 --with-socketdir="/var/run" \
24 --with-logfile="/var/log/tripe.log" \
25 --with-pidfile="/var/run/tripectl.pid" \
26 --with-initconfig="/etc/default/tripe" \
27 --with-wireshark
28
29###--------------------------------------------------------------------------
30### Install the startup scripts.
31
32install/tripe::
33 cp $(DEB_BUILDDIR)/init/tripe-init debian/tripe.init
34 cp $(DEB_SRCDIR)/init/tripe.conf debian/tripe.default
35
36cleanbuilddir::
37 rm -f debian/tripe.init debian/tripe.default
38
39###--------------------------------------------------------------------------
40### Wireshark plugin.
41
42## Grab the version we built against, so we can put it in the dependencies.
43install/tripe-wireshark::
28461f0e
MW
44 dpkg --status wireshark | \
45 sed -n 's/^Version: */tripe:Wireshark-Version=/p' \
46 >> debian/tripe-wireshark.substvars
ef4a1ab7 47
6b6ad670
MW
48## Don't track dependencies for the plugin. We have it covered already.
49DEB_DH_SHLIBDEPS_ARGS_tripe-wireshark += -Xwireshark/plugins
ef4a1ab7 50
6b6ad670 51###----- That's all, folks --------------------------------------------------