summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Popov <pinkbyte@gentoo.org>2012-10-14 11:26:44 +0000
committerSergey Popov <pinkbyte@gentoo.org>2012-10-14 11:26:44 +0000
commit4633a4759f1e6a9903666bec94c3021314b24e91 (patch)
treef0b6ebecdec000226d4467ff1249c77eee78627a /net-firewall
parentVersion bump (diff)
downloadhistorical-4633a4759f1e6a9903666bec94c3021314b24e91.tar.gz
historical-4633a4759f1e6a9903666bec94c3021314b24e91.tar.bz2
historical-4633a4759f1e6a9903666bec94c3021314b24e91.zip
Initial commit wrt bug #283578
Package-Manager: portage-2.2.0_alpha134/cvs/Linux x86_64
Diffstat (limited to 'net-firewall')
-rw-r--r--net-firewall/ipt_netflow/ChangeLog10
-rw-r--r--net-firewall/ipt_netflow/Manifest4
-rw-r--r--net-firewall/ipt_netflow/ipt_netflow-1.8.ebuild56
-rw-r--r--net-firewall/ipt_netflow/metadata.xml9
4 files changed, 79 insertions, 0 deletions
diff --git a/net-firewall/ipt_netflow/ChangeLog b/net-firewall/ipt_netflow/ChangeLog
new file mode 100644
index 000000000000..a71e4b54a97d
--- /dev/null
+++ b/net-firewall/ipt_netflow/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for net-firewall/ipt_netflow
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/ipt_netflow/ChangeLog,v 1.1 2012/10/14 11:26:44 pinkbyte Exp $
+
+*ipt_netflow-1.8 (14 Oct 2012)
+
+ 14 Oct 2012; Sergey Popov <pinkbyte@gentoo.org> +ipt_netflow-1.8.ebuild,
+ +metadata.xml:
+ Initial commit wrt bug #283578
+
diff --git a/net-firewall/ipt_netflow/Manifest b/net-firewall/ipt_netflow/Manifest
new file mode 100644
index 000000000000..833bc8fc8b57
--- /dev/null
+++ b/net-firewall/ipt_netflow/Manifest
@@ -0,0 +1,4 @@
+DIST ipt_netflow-1.8.tgz 20921 SHA256 e705646698c1b0275eea0f34038fa7e00bf660d2bc591d3ac04afa0fe3f1ddd0 SHA512 2b0195bd56ecd04c52a11e3347b5e4fb09dc784a3394fee3e0a7e5749e39f4b6af48cd6748dd96ce33d13dd13ae05d096f2a9e0bade33d57a028d568d5b7da20 WHIRLPOOL cfd16cc4be9cab5157b2784c20f6792fd1208c0f5d58dcd8f8a3ee3870d12afe317897c7bf2b265c459ba3f0567cf331a2056ef0e95f6f2f28092318167ad5c4
+EBUILD ipt_netflow-1.8.ebuild 1556 SHA256 361029c134aa68b4d535b56f7d7facd0ee882ca8aedc6a9593e1c54dde1938d3 SHA512 d06576e17b629170469e8d199034095fa7800466c853b9a80f39c54eec1fc379007aec224a76cc7f05697259c70cba09018fca5e37efa99212b25d7be0fb6c48 WHIRLPOOL 13ac027e8615ecf2365edfeaf8fc1ddb4c1cb39109fc9ec841a131270d4c9c83213acf98a7d703862f7644a7f6c5070b36a86d0ccd21d287d53774436b79d64b
+MISC ChangeLog 381 SHA256 c60cfe2ca8ea6478127dddd9a3f5f871d0cae2dc03524c2e133d529ba19f0863 SHA512 9bdef4631a074624c92b3735232187ded80ba988ac47b8780b1e76bc64e1ac6abf118339d26bf9ad82d10f01225f3fb849e8efb73727c880aabc8ccf03385c23 WHIRLPOOL dd80e0a432ef961d3aa096419f94dbc452bb13c1a1476eb39c60db399f1c4b8f394d99c1c185d6647eb15a3692893107ff03b45ac1c1cea540508ffa100f0dab
+MISC metadata.xml 254 SHA256 e52c9cf66790c5d0546903589295bdbd82d8987534c9916670dedbed6b8874b1 SHA512 c83f5af17d5c3f334bae635762f6b62ef5d98c52705b67a8036b60edbdeb7d48f18e8b6b50895c421023023c95423dcfec3fcc5c6c363480ee596729b6be8021 WHIRLPOOL a95c23a3ef77afbadc01d64ac0e1e2c876a322f10454ea64e2ca729c9512fe6eb903e08c99e2a238cc5e4d63f12222c325428928908db78b4ed26dffd1712d65
diff --git a/net-firewall/ipt_netflow/ipt_netflow-1.8.ebuild b/net-firewall/ipt_netflow/ipt_netflow-1.8.ebuild
new file mode 100644
index 000000000000..2b796142592a
--- /dev/null
+++ b/net-firewall/ipt_netflow/ipt_netflow-1.8.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/ipt_netflow/ipt_netflow-1.8.ebuild,v 1.1 2012/10/14 11:26:44 pinkbyte Exp $
+
+EAPI="4"
+
+inherit linux-info linux-mod multilib toolchain-funcs
+
+MY_PN="ipt-netflow"
+
+DESCRIPTION="Netflow iptables module"
+HOMEPAGE="http://sourceforge.net/projects/ipt-netflow"
+SRC_URI="mirror://sourceforge/${MY_PN}/${P}.tgz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+RDEPEND="net-firewall/iptables"
+DEPEND="${RDEPEND}
+ virtual/linux-sources
+ virtual/pkgconfig"
+
+BUILD_TARGETS="all"
+CONFIG_CHECK="IP_NF_IPTABLES"
+MODULE_NAMES="ipt_NETFLOW(ipt_netflow:${S})"
+
+IPT_LIB=/usr/$(get_libdir)/xtables
+
+src_prepare() {
+ sed -i -e 's:-I$(KDIR)/include::' \
+ -e 's:gcc -O2:$(CC) $(CFLAGS) $(LDFLAGS):' \
+ -e 's:gcc:$(CC) $(CFLAGS) $(LDFLAGS):' Makefile.in || die 'sed on Makefile.in failed'
+ sed -i -e '/IPT_NETFLOW_VERSION/s/1.7.2/1.8/' ipt_NETFLOW.c || die 'sed on ipt_NETFLOW.c failed'
+}
+
+src_configure() {
+ local IPT_VERSION="$($(tc-getPKG_CONFIG) --modversion xtables)"
+ # econf can not be used, cause configure script fails when see unknown parameter
+ ./configure --kver="${KV_FULL}" --kdir="${KV_DIR}" \
+ --ipt-ver="${IPT_VERSION}" --ipt-lib="${IPT_LIB}" || die 'configure failed'
+}
+
+src_compile() {
+ local ARCH=$(tc-arch-kernel)
+ emake CC="$(tc-getCC)" all
+}
+
+src_install() {
+ linux-mod_src_install
+ exeinto "${IPT_LIB}"
+ doexe libipt_NETFLOW.so
+ insinto /usr/include
+ doins ipt_NETFLOW.h
+ dodoc README*
+}
diff --git a/net-firewall/ipt_netflow/metadata.xml b/net-firewall/ipt_netflow/metadata.xml
new file mode 100644
index 000000000000..7b47a3a9c4a9
--- /dev/null
+++ b/net-firewall/ipt_netflow/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>netmon</herd>
+ <maintainer>
+ <email>pinkbyte@gentoo.org</email>
+ <name>Sergey Popov</name>
+ </maintainer>
+</pkgmetadata>