diff options
author | Cédric Krier <cedk@gentoo.org> | 2007-07-29 15:31:20 +0000 |
---|---|---|
committer | Cédric Krier <cedk@gentoo.org> | 2007-07-29 15:31:20 +0000 |
commit | d63d4be4249b7686bd168a4f9e6c004914608f35 (patch) | |
tree | ee3e24172d1e47dae01709075658b5031e332f70 /net-firewall | |
parent | Moving net-www/mod_transform to www-apache/mod_transform (#81244). (diff) | |
download | historical-d63d4be4249b7686bd168a4f9e6c004914608f35.tar.gz historical-d63d4be4249b7686bd168a4f9e6c004914608f35.tar.bz2 historical-d63d4be4249b7686bd168a4f9e6c004914608f35.zip |
New ebuild
Package-Manager: portage-2.1.2.9
Diffstat (limited to 'net-firewall')
-rw-r--r-- | net-firewall/conntrack-tools/ChangeLog | 10 | ||||
-rw-r--r-- | net-firewall/conntrack-tools/Manifest | 24 | ||||
-rw-r--r-- | net-firewall/conntrack-tools/conntrack-tools-0.9.5.ebuild | 50 | ||||
-rw-r--r-- | net-firewall/conntrack-tools/files/conntrackd.confd | 2 | ||||
-rw-r--r-- | net-firewall/conntrack-tools/files/conntrackd.initd | 30 | ||||
-rw-r--r-- | net-firewall/conntrack-tools/files/digest-conntrack-tools-0.9.5 | 3 | ||||
-rw-r--r-- | net-firewall/conntrack-tools/metadata.xml | 15 |
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..39e12fe0a13e --- /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 1285 RMD160 debdd3a0e901f6ee6a27b87932d3ae43a38fa604 SHA1 3ce1b2bdc6033e44c63725f8d79a39ab2050c205 SHA256 002ecf22cd63ec8d564fd0ee0fc8a44761dce9a44c343cda8e998cfa427ff064 +MD5 2dd0b596cfc60bae0244ecf8a5dc1eb8 conntrack-tools-0.9.5.ebuild 1285 +RMD160 debdd3a0e901f6ee6a27b87932d3ae43a38fa604 conntrack-tools-0.9.5.ebuild 1285 +SHA256 002ecf22cd63ec8d564fd0ee0fc8a44761dce9a44c343cda8e998cfa427ff064 conntrack-tools-0.9.5.ebuild 1285 +MISC ChangeLog 464 RMD160 c4a79283d48d8682a2bf67d4a31504b1c3e7137e SHA1 ce9509329c19ffd9bbbc0ace2261abd7ffe43a23 SHA256 104b9ef98b6b50b101530f35deaba2c988002998a259c77b6b0e4f93ec585cfe +MD5 1221361d4740be3aa2552b13cbafdb0d ChangeLog 464 +RMD160 c4a79283d48d8682a2bf67d4a31504b1c3e7137e ChangeLog 464 +SHA256 104b9ef98b6b50b101530f35deaba2c988002998a259c77b6b0e4f93ec585cfe ChangeLog 464 +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> + |