summaryrefslogtreecommitdiff
path: root/recipes/conntrack-tools/conntrack-tools_0.9.14.bb
blob: d5f1e4a2bf1f840f01b2cd96b8d3c0fde4a1a660 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
DESCRIPTION = "Connection tracking userspace tools for Linux"
LICENSE = "GPL"
DEPENDS = "libnfnetlink libnetfilter-conntrack"

PR = "r1"

SRC_URI = " \
	http://www.netfilter.org/projects/conntrack-tools/files/conntrack-tools-${PV}.tar.bz2;name=tar \
	file://conntrack-failover \
	file://init \
	"
SRC_URI[tar.md5sum] = "7e9344fe85bb68bcf65c35034add6655"
SRC_URI[tar.sha256sum] = "2e36744da83eb2e6e54a5769aa1abf044d53089470d646898222936e7e8da6ac"

inherit autotools
inherit update-rc.d

INITSCRIPT_NAME = "conntrackd"

do_install_append() {
	install -d ${D}/${sysconfdir}/conntrackd
	install -d ${D}/${sysconfdir}/init.d
	install -m 0644 doc/sync/ftfw/conntrackd.conf ${D}/${sysconfdir}/conntrackd/conntrackd.conf.sample
	install -m 0755 ${WORKDIR}/conntrack-failover ${D}/${sysconfdir}/init.d/conntrack-failover
	install -m 0755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/conntrackd
}