summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Krier <cedk@gentoo.org>2007-07-29 15:31:20 +0000
committerCédric Krier <cedk@gentoo.org>2007-07-29 15:31:20 +0000
commit999ce78255ad24154b7fccf061080868590ac717 (patch)
treeda5d0c0fa04c79b91fca961cc8d2e5144da9e950 /net-firewall
parentMoving net-www/mod_transform to www-apache/mod_transform (#81244). (diff)
downloadgentoo-2-999ce78255ad24154b7fccf061080868590ac717.tar.gz
gentoo-2-999ce78255ad24154b7fccf061080868590ac717.tar.bz2
gentoo-2-999ce78255ad24154b7fccf061080868590ac717.zip
New ebuild
(Portage version: 2.1.2.9)
Diffstat (limited to 'net-firewall')
-rw-r--r--net-firewall/conntrack-tools/ChangeLog10
-rw-r--r--net-firewall/conntrack-tools/Manifest24
-rw-r--r--net-firewall/conntrack-tools/conntrack-tools-0.9.5.ebuild50
-rw-r--r--net-firewall/conntrack-tools/files/conntrackd.confd2
-rw-r--r--net-firewall/conntrack-tools/files/conntrackd.initd30
-rw-r--r--net-firewall/conntrack-tools/files/digest-conntrack-tools-0.9.53
-rw-r--r--net-firewall/conntrack-tools/metadata.xml15
7 files changed, 134 insertions, 0 deletions
diff --git a/net-firewall/conntrack-tools/ChangeLog b/net-firewall/conntrack-tools/ChangeLog
new file mode 100644
index 000000000000..8a2916964519
--- /dev/null
+++ b/net-firewall/conntrack-tools/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for net-firewall/conntrack-tools
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/conntrack-tools/ChangeLog,v 1.1 2007/07/29 15:31:20 cedk Exp $
+
+*conntrack-tools-0.9.5 (29 Jul 2007)
+
+ 29 Jul 2007; Cédric Krier <cedk@gentoo.org> +files/conntrackd.confd,
+ +files/conntrackd.initd, +metadata.xml, +conntrack-tools-0.9.5.ebuild:
+ New ebuild, thanks to Olivier Huber, Natanael Copa
+
diff --git a/net-firewall/conntrack-tools/Manifest b/net-firewall/conntrack-tools/Manifest
new file mode 100644
index 000000000000..717812143a38
--- /dev/null
+++ b/net-firewall/conntrack-tools/Manifest
@@ -0,0 +1,24 @@
+AUX conntrackd.confd 52 RMD160 47916dc2eb970b2eec7c5c1bc9d2e733c8308b30 SHA1 2c816f7e8a5eae3dab9a08d97587803206054916 SHA256 81890c5d01142dad0f16ffd3d29019058063d77bb0233a7ed412f84519078421
+MD5 de942862223988cb84e5a7d6617bebc1 files/conntrackd.confd 52
+RMD160 47916dc2eb970b2eec7c5c1bc9d2e733c8308b30 files/conntrackd.confd 52
+SHA256 81890c5d01142dad0f16ffd3d29019058063d77bb0233a7ed412f84519078421 files/conntrackd.confd 52
+AUX conntrackd.initd 728 RMD160 02179d3615234779aa370759926c0d3eb9764a68 SHA1 495d0c1416f015c1caa464e6d9900a271062ee63 SHA256 314a10e560dc7af439df7710668c8a3b13e719c0b7fb8c90c7a5090f1289a415
+MD5 a298cf929f96d237a1cca27de5e84775 files/conntrackd.initd 728
+RMD160 02179d3615234779aa370759926c0d3eb9764a68 files/conntrackd.initd 728
+SHA256 314a10e560dc7af439df7710668c8a3b13e719c0b7fb8c90c7a5090f1289a415 files/conntrackd.initd 728
+DIST conntrack-tools-0.9.5.tar.bz2 342826 RMD160 8bb9c80fcc9dea5d5d6b85310a78595aab81f597 SHA1 c632dd553f34502efa2e55d65a281f63a7160037 SHA256 e0ec7e6ea838e694b7b2fcdf9fa39f7de4404786ea91e76a5a4e5fd4f000a0cd
+EBUILD conntrack-tools-0.9.5.ebuild 1168 RMD160 41a2d88bcb29fbbf4e1ab1942b0c42067b88f535 SHA1 f4da7bddae963e892eeead30d5f38e799e59a0fe SHA256 1ed5f7ff2201acec0df2e9533b816a0eae9040a836860e3f2a098fc96ddb48f9
+MD5 b26fb665d0c2f7ad396c2f578a33e9fa conntrack-tools-0.9.5.ebuild 1168
+RMD160 41a2d88bcb29fbbf4e1ab1942b0c42067b88f535 conntrack-tools-0.9.5.ebuild 1168
+SHA256 1ed5f7ff2201acec0df2e9533b816a0eae9040a836860e3f2a098fc96ddb48f9 conntrack-tools-0.9.5.ebuild 1168
+MISC ChangeLog 366 RMD160 042649b2cac1c0afa97fe99b9fd6ff6c8aa64e4a SHA1 6a7e8938960e5d04b328e32af8cdf8c15da1c55b SHA256 a8b54d23012e133727ae59210432d00ef69ebb46483faf42c9007b6313402c86
+MD5 aa818d73ab7f227dc3732266b5d5e180 ChangeLog 366
+RMD160 042649b2cac1c0afa97fe99b9fd6ff6c8aa64e4a ChangeLog 366
+SHA256 a8b54d23012e133727ae59210432d00ef69ebb46483faf42c9007b6313402c86 ChangeLog 366
+MISC metadata.xml 453 RMD160 c711e2b9c00f47256f72e44eb70a14ee38ebc6a8 SHA1 68cd8e4d747510d6a01865c0fa17d5df604aaf83 SHA256 6a1b60775d924781e96bc2ffd94ffb47c5c041e2b9aba10b1a3e8239cb855f91
+MD5 a76ef6082ad4aa0790438c3fb3182a88 metadata.xml 453
+RMD160 c711e2b9c00f47256f72e44eb70a14ee38ebc6a8 metadata.xml 453
+SHA256 6a1b60775d924781e96bc2ffd94ffb47c5c041e2b9aba10b1a3e8239cb855f91 metadata.xml 453
+MD5 d1ab937af5a33e2cdff7a90de7813354 files/digest-conntrack-tools-0.9.5 268
+RMD160 663f3ea16667761aa124c9eee20441cad755e84c files/digest-conntrack-tools-0.9.5 268
+SHA256 ed67125f07cdb654d4beea003c187a0987671a5a8f7f5c73574c1888e1c8f2fa files/digest-conntrack-tools-0.9.5 268
diff --git a/net-firewall/conntrack-tools/conntrack-tools-0.9.5.ebuild b/net-firewall/conntrack-tools/conntrack-tools-0.9.5.ebuild
new file mode 100644
index 000000000000..eb538edfb196
--- /dev/null
+++ b/net-firewall/conntrack-tools/conntrack-tools-0.9.5.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/conntrack-tools/conntrack-tools-0.9.5.ebuild,v 1.1 2007/07/29 15:31:20 cedk Exp $
+
+inherit linux-info
+
+DESCRIPTION="Connection tracking userspace tools"
+HOMEPAGE="http://people.netfilter.org/pablo/conntrack-tools/"
+SRC_URI="http://www.netfilter.org/projects/conntrack-tools/files/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND=">=net-libs/libnfnetlink-0.0.25
+ >=net-libs/libnetfilter_conntrack-0.0.81
+ !net-firewall/conntrack"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ linux-info_pkg_setup
+
+ if kernel_is lt 2 6 14 ; then
+ die "${PN} requires at least 2.6.14 kernel version"
+ fi
+
+ #netfilter core team has changed some option names with kernel 2.6.20
+ if kernel_is lt 2 6 20 ; then
+ CONFIG_CHECK="IP_NF_CONNTRACK_NETLINK"
+ else
+ CONFIG_CHECK="NF_CT_NETLINK"
+ fi
+
+ check_extra_config
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ newinitd "${FILESDIR}/conntrackd.initd" conntrackd
+ newconfd "${FILESDIR}/conntrackd.confd" conntrackd
+
+ insinto /etc/conntrackd
+ doins examples/stats/conntrackd.conf
+
+ dodoc AUTHORS ChangeLog
+ insinto /usr/share/doc/${PF}
+ doins -r examples
+}
diff --git a/net-firewall/conntrack-tools/files/conntrackd.confd b/net-firewall/conntrack-tools/files/conntrackd.confd
new file mode 100644
index 000000000000..80b6e8d0dd38
--- /dev/null
+++ b/net-firewall/conntrack-tools/files/conntrackd.confd
@@ -0,0 +1,2 @@
+# extra options for conntrackd
+CONNTRACKD_OPTS="-S"
diff --git a/net-firewall/conntrack-tools/files/conntrackd.initd b/net-firewall/conntrack-tools/files/conntrackd.initd
new file mode 100644
index 000000000000..c2d29b99e5b6
--- /dev/null
+++ b/net-firewall/conntrack-tools/files/conntrackd.initd
@@ -0,0 +1,30 @@
+#!/sbin/runscript
+
+DAEMON=/usr/sbin/conntrackd
+LIBERAL_CONNTRACK=/proc/sys/net/ipv4/netfilter/ip_conntrack_tcp_be_liberal
+
+start() {
+ modprobe ip_conntrack &>/dev/null
+
+ # check if ip_conntrack_tcp_be_liberal is set
+ if [ "$(cat $LIBERAL_CONNTRACK)" != "1" ] ; then
+ ewarn "You need to disable TCP window tracking."
+ ewarn "Add the following line to your /etc/sysctl.conf:"
+ ewarn ""
+ ewarn " net.ipv4.netfilter.ip_conntrack_tcp_be_liberal = 1"
+ ewarn ""
+ ewarn "and run: sysctl -p /etc/sysctl.conf"
+ eend 1
+ else
+ ebegin "Starting conntrackd"
+ start-stop-daemon --start --exec $DAEMON -- -d $CONNTRACKD_OPTS
+ eend $?
+ fi
+}
+
+stop() {
+ ebegin "Stopping conntrackd"
+ start-stop-daemon --stop --exec $DAEMON
+ eend $?
+}
+
diff --git a/net-firewall/conntrack-tools/files/digest-conntrack-tools-0.9.5 b/net-firewall/conntrack-tools/files/digest-conntrack-tools-0.9.5
new file mode 100644
index 000000000000..1d9467eab23c
--- /dev/null
+++ b/net-firewall/conntrack-tools/files/digest-conntrack-tools-0.9.5
@@ -0,0 +1,3 @@
+MD5 c639e17ba6cbfce52b288a5105724f2d conntrack-tools-0.9.5.tar.bz2 342826
+RMD160 8bb9c80fcc9dea5d5d6b85310a78595aab81f597 conntrack-tools-0.9.5.tar.bz2 342826
+SHA256 e0ec7e6ea838e694b7b2fcdf9fa39f7de4404786ea91e76a5a4e5fd4f000a0cd conntrack-tools-0.9.5.tar.bz2 342826
diff --git a/net-firewall/conntrack-tools/metadata.xml b/net-firewall/conntrack-tools/metadata.xml
new file mode 100644
index 000000000000..e70c6ec9dab7
--- /dev/null
+++ b/net-firewall/conntrack-tools/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>netmon</herd>
+ <maintainer>
+ <email>cedk@gentoo.org</email>
+ <name>Cédric Krier</name>
+ </maintainer>
+ <longdescription lang="en">
+ A set of tools targeted at system administrators. They are conntrack,
+ the userspace command line interface, and conntrackd, the userspace
+ daemon.
+ </longdescription>
+</pkgmetadata>
+