blob: a40eb4fb16748d0e861222c696815e6dfeb88d4d (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-firewall/ipp2p/ipp2p-0.6-r1.ebuild,v 1.2 2004/12/08 00:06:30 eradicator Exp $
IUSE=""
inherit linux-mod eutils
MY_PV=${PV/./}
MY_P="${PN}.${MY_PV}"
S="${WORKDIR}/${PN}"
DESCRIPTION="Netfilter module for dealing with P2P Applications."
HOMEPAGE="http://www.ipp2p.org/index_en.html"
SRC_URI="http://www.ipp2p.org/downloads/${MY_P}.tar.gz"
SLOT="${KV}"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
RDEPEND="virtual/modutils"
DEPEND="${RDEPEND}
>=net-firewall/iptables-1.2.11
virtual/linux-sources"
pkg_setup() {
CONFIG_CHECK="NETFILTER"
NETFILTER_ERROR="Your kernel is not configured to support Netfilter."
MODULE_NAMES="ipt_ipp2p"
linux-mod_pkg_setup
}
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${P}-Makefile.patch
}
src_compile() {
xarch="${ARCH}"
unset ARCH
emake KERNEL_SRC=${KV_DIR} || die "Parallel Make Failed"
ARCH="${xarch}"
}
src_install() {
exeinto /$(get_libdir)/iptables
doexe libipt_ipp2p.so
dodoc README
linux-mod_src_install
}
pkg_postinst() {
linux-mod_pkg_postinst
}
|