Documentation restructuring: provide a useful overview.
[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
2c1261e5
MW
12DEB_MAKE_BUILD_TARGET = all html pdf
13DEB_MAKE_INSTALL_TARGET = \
14 install install-html install-pdf \
15 DESTDIR=$(CURDIR)/debian/tmp/
1c5f4539 16DEB_MAKE_CHECK_TARGET = check
ef4a1ab7 17
6b6ad670
MW
18###--------------------------------------------------------------------------
19### Correct configuration.
ef4a1ab7 20
6b6ad670
MW
21## This will need changing on other kernels.
22default_tunnel = linux
23
24## Configuration arguments.
25DEB_CONFIGURE_EXTRA_FLAGS = \
26 --with-tunnel="$(default_tunnel) slip" \
27 --with-configdir="/etc/tripe" \
28 --with-socketdir="/var/run" \
1a372224 29 --with-logfile="/var/log/tripe/tripe.log" \
6b6ad670
MW
30 --with-pidfile="/var/run/tripectl.pid" \
31 --with-initconfig="/etc/default/tripe" \
1a372224 32 --with-wireshark="/usr/lib/wireshark/libwireshark0/plugins"
6b6ad670
MW
33
34###--------------------------------------------------------------------------
2fa80010
MW
35### Python.
36
37binary-install/python-tripe::
38 dh_pycentral -ppython-tripe
39
40###--------------------------------------------------------------------------
6b6ad670
MW
41### Install the startup scripts.
42
43install/tripe::
44 cp $(DEB_BUILDDIR)/init/tripe-init debian/tripe.init
a5c4dd60
MW
45 sed 's/^#\(user\|group\)/\1/' \
46 $(DEB_SRCDIR)/init/tripe.conf >debian/tripe.default
6b6ad670
MW
47
48cleanbuilddir::
49 rm -f debian/tripe.init debian/tripe.default
50
51###--------------------------------------------------------------------------
a62f8e8a
MW
52### Install configuration files.
53
54install/tripe-peer-services::
55 install -m644 $(DEB_SRCDIR)/peerdb/peers.in \
56 debian/tripe-peer-services/etc/tripe/peers.d/10base
57
58###--------------------------------------------------------------------------
6b6ad670
MW
59### Wireshark plugin.
60
61## Grab the version we built against, so we can put it in the dependencies.
62install/tripe-wireshark::
28461f0e
MW
63 dpkg --status wireshark | \
64 sed -n 's/^Version: */tripe:Wireshark-Version=/p' \
65 >> debian/tripe-wireshark.substvars
ef4a1ab7 66
6b6ad670
MW
67## Don't track dependencies for the plugin. We have it covered already.
68DEB_DH_SHLIBDEPS_ARGS_tripe-wireshark += -Xwireshark/plugins
ef4a1ab7 69
6b6ad670 70###----- That's all, folks --------------------------------------------------