Gentoo Archives: gentoo-commits

From: "Peter Volkov (pva)" <pva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-firewall/ipset: ChangeLog ipset-2.3.0.20070828-r1.ebuild ipset-2.3.0.20070828.ebuild
Date: Wed, 07 Nov 2007 15:26:11
Message-Id: E1Ipmn1-00071H-TH@stork.gentoo.org
1 pva 07/11/07 15:25:59
2
3 Modified: ChangeLog
4 Added: ipset-2.3.0.20070828-r1.ebuild
5 Removed: ipset-2.3.0.20070828.ebuild
6 Log:
7 Cleaned ebuild, courtesy of Donnie Berkholz <dberkholz AT gentoo.org>
8 (Portage version: 2.1.3.18)
9
10 Revision Changes Path
11 1.12 net-firewall/ipset/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/ipset/ChangeLog?rev=1.12&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/ipset/ChangeLog?rev=1.12&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/ipset/ChangeLog?r1=1.11&r2=1.12
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-firewall/ipset/ChangeLog,v
20 retrieving revision 1.11
21 retrieving revision 1.12
22 diff -u -r1.11 -r1.12
23 --- ChangeLog 5 Nov 2007 14:23:31 -0000 1.11
24 +++ ChangeLog 7 Nov 2007 15:25:59 -0000 1.12
25 @@ -1,6 +1,12 @@
26 # ChangeLog for net-firewall/ipset
27 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-firewall/ipset/ChangeLog,v 1.11 2007/11/05 14:23:31 pva Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-firewall/ipset/ChangeLog,v 1.12 2007/11/07 15:25:59 pva Exp $
30 +
31 +*ipset-2.3.0.20070828-r1 (07 Nov 2007)
32 +
33 + 07 Nov 2007; <pva@g.o> -ipset-2.3.0.20070828.ebuild,
34 + +ipset-2.3.0.20070828-r1.ebuild:
35 + Cleaned ebuild, courtesy of Donnie Berkholz <dberkholz AT gentoo.org>
36
37 *ipset-2.3.0.20070828 (05 Nov 2007)
38
39
40
41
42 1.1 net-firewall/ipset/ipset-2.3.0.20070828-r1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/ipset/ipset-2.3.0.20070828-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/ipset/ipset-2.3.0.20070828-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: ipset-2.3.0.20070828-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2007 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-firewall/ipset/ipset-2.3.0.20070828-r1.ebuild,v 1.1 2007/11/07 15:25:59 pva Exp $
52
53 inherit eutils versionator toolchain-funcs
54
55 POM_PV="20071021"
56
57 MY_PV=$(replace_version_separator 3 -)
58 DESCRIPTION="IPset userspace tool for iptables, successor to ippool."
59 HOMEPAGE="http://ipset.netfilter.org/"
60 SRC_URI="http://ipset.netfilter.org/${PN}-${MY_PV}.tar.bz2
61 http://ipset.netfilter.org/patch-o-matic-ng-${POM_PV}.tar.bz2"
62 LICENSE="GPL-2"
63 SLOT="0"
64 KEYWORDS="~x86 ~amd64 ~ppc"
65 IUSE=""
66 RDEPEND=">=net-firewall/iptables-1.3"
67 DEPEND="${RDEPEND}"
68 S=${WORKDIR}/ipset-${MY_PV%-*}
69
70 pkg_setup() {
71 myconf="${myconf} PREFIX="
72 myconf="${myconf} LIBDIR=$(get_libdir)"
73 myconf="${myconf} BINDIR=/sbin"
74 myconf="${myconf} MANDIR=/usr/share/man"
75 myconf="${myconf} INCDIR=/usr/include"
76 myconf="${myconf} KERNEL_DIR=${WORKDIR}/patch-o-matic-ng/patchlets/set/linux-2.6"
77 }
78
79 src_compile() {
80 emake CC="$(tc-getCC)" COPT_FLAGS="${CFLAGS}" ${myconf} || die "failed to build"
81 }
82
83 src_install() {
84 emake DESTDIR="${D}" ${myconf} install || die "failed to package"
85 }
86
87 pkg_postinst() {
88 elog "To use ${PN} you must have the ip_set kernel module compiled!"
89 elog "To patch you kernel run:"
90 elog
91 elog " # emerge --config ipset"
92 elog
93 elog "And follow on-screen instructions"
94 }
95
96 pkg_config() {
97 cd "${ROOT}${PORTAGE_TMPDIR}"
98 [ -d patch-o-matic-ng ] && {
99 einfo "${ROOT}${PORTAGE_TMPDIR}/patch-o-matic-ng directory exist. Cleaning it..." ;
100 rm -rf patch-o-matic-ng;
101 }
102 mkdir patch-o-matic-ng && cd patch-o-matic-ng
103
104 IPTVERINS=`echo $(best_version net-firewall/iptables) | \
105 sed -n 's:^[^/]*/[[:alpha:]]*-\([0-9]\+\([.][0-9]\+\)*[a-z]\?\(_\(pre\|p\|beta\|alpha\|rc\)[0-9]*\)*\)\(-r[0-9]\+\)\?$:\1:p'`
106
107 einfo "Unpacking patch-o-matic-ng-${POM_PV} and iptables-${IPTVERINS} sources"
108 unpack {patch-o-matic-ng-${POM_PV},iptables-${IPTVERINS}}.tar.bz2
109
110 einfo "I'm going to patch sources in ${ROOT}usr/src/linux"
111 cd patch-o-matic-ng
112 KERNEL_DIR="${ROOT}"usr/src/linux IPTABLES_DIR=../iptables-${IPTVERINS} ./runme set
113
114 einfo "Cleaning ${ROOT}${PORTAGE_TMPDIR}/patch-o-matic-ng directory"
115 rm -rf "${ROOT}${PORTAGE_TMPDIR}"/patch-o-matic-ng
116 }
117
118
119
120 --
121 gentoo-commits@g.o mailing list