move ipt_netflow to net-firewall category
This commit is contained in:
2
net-firewall/ipt_netflow/Manifest
Normal file
2
net-firewall/ipt_netflow/Manifest
Normal file
@ -0,0 +1,2 @@
|
||||
DIST ipt_netflow-1.7.1.tgz 21263 SHA256 d208dec7401404c21950c3d5db286649e17fbf7414d720d9dab7d9a6a88aba4a SHA512 031574a7bc3b36885e255c5d2c585cecff2de3921ae04a42a6ba219dfb873246c04c26f0ef41e629dc69825546c7058cf6786d216ec5cdd86d97817817017b7d WHIRLPOOL 3b39897dc407999918ddbbaa3fa34c5581e704f8458962c9c5fb01d799add02bc36719f11d7942d9f4237b4d5e025fc9eb4d89a07193bd1fa4c0cab3015a45b4
|
||||
EBUILD ipt_netflow-1.7.1.ebuild 1328 SHA256 212741a7c1155ff0a44410aa18f1e0af82ed80db5cadf82ee44a6074e4b9cf06 SHA512 eb12ff8285a32049720024b2b8f43f1e1d8538e6da89c0f806c82c3d05e35d67ea73ea091ebe7efd375e2c721f4a431640d781457922e1bac09adfc43b74a426 WHIRLPOOL 6df3b36c6284e4931d19b75f2afa356dc177f977fc157d192f1c149383e487ebffb8248d249c877b039e1ff39485900634fd9013f5545d82194c05fa5f10227f
|
54
net-firewall/ipt_netflow/ipt_netflow-1.7.1.ebuild
Normal file
54
net-firewall/ipt_netflow/ipt_netflow-1.7.1.ebuild
Normal file
@ -0,0 +1,54 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI="2"
|
||||
|
||||
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 ~ppc ~ia64"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="net-firewall/iptables"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/linux-sources"
|
||||
|
||||
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 's:-I$(KDIR)/include::' Makefile.in || die "sed 1 failed"
|
||||
sed -i 's:gcc -O2:$(CC) $(CFLAGS) $(LDFLAGS):' Makefile.in || die "sed 2 failed"
|
||||
sed -i 's:gcc:$(CC) $(CFLAGS) $(LDFLAGS):' Makefile.in || die "sed 3 failed"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
./configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local IPT_VERSION=`pkg-config --modversion xtables`
|
||||
local ARCH=$(tc-arch-kernel)
|
||||
emake CC="$(tc-getCC)" \
|
||||
KDIR="${KV_DIR}" KVERSION="${KV_FULL}" IPTABLES_VERSION="${IPT_VERSION}" \
|
||||
IPTABLES_MODULES="${IPT_LIB}" IPTSRC="" all || die "emake failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
linux-mod_src_install
|
||||
exeinto "${IPT_LIB}"
|
||||
doexe libipt_NETFLOW.so
|
||||
insinto /usr/include
|
||||
doins ipt_NETFLOW.h
|
||||
dodoc README
|
||||
}
|
Reference in New Issue
Block a user