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.4.9-r1.ebuild ipset-2.3.3a.ebuild ipset-2.3.1.20080612.ebuild ipset-2.3.0.20070828-r2.ebuild ipset-2.4.2.ebuild ipset-2.4.9.ebuild
Date: Tue, 03 Mar 2009 13:15:54
Message-Id: E1LeUTQ-0003NH-T3@stork.gentoo.org
1 pva 09/03/03 13:15:52
2
3 Modified: ChangeLog
4 Added: ipset-2.4.9-r1.ebuild
5 Removed: ipset-2.3.3a.ebuild ipset-2.3.1.20080612.ebuild
6 ipset-2.3.0.20070828-r2.ebuild ipset-2.4.2.ebuild
7 ipset-2.4.9.ebuild
8 Log:
9 Fixed gethostbyname alignment issue on hppa, bug #260481, thank Antixrict for report and work with upstream. Removed old.
10 (Portage version: 2.2_rc23/cvs/Linux i686)
11
12 Revision Changes Path
13 1.24 net-firewall/ipset/ChangeLog
14
15 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/ipset/ChangeLog?rev=1.24&view=markup
16 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/ipset/ChangeLog?rev=1.24&content-type=text/plain
17 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/ipset/ChangeLog?r1=1.23&r2=1.24
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/net-firewall/ipset/ChangeLog,v
22 retrieving revision 1.23
23 retrieving revision 1.24
24 diff -u -r1.23 -r1.24
25 --- ChangeLog 28 Feb 2009 14:07:44 -0000 1.23
26 +++ ChangeLog 3 Mar 2009 13:15:52 -0000 1.24
27 @@ -1,6 +1,16 @@
28 # ChangeLog for net-firewall/ipset
29 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/net-firewall/ipset/ChangeLog,v 1.23 2009/02/28 14:07:44 pva Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/net-firewall/ipset/ChangeLog,v 1.24 2009/03/03 13:15:52 pva Exp $
32 +
33 +*ipset-2.4.9-r1 (03 Mar 2009)
34 +
35 + 03 Mar 2009; Peter Volkov <pva@g.o>
36 + +files/ipset-2.4.9-gethostbyname-align.patch,
37 + -ipset-2.3.0.20070828-r2.ebuild, -ipset-2.3.1.20080612.ebuild,
38 + -ipset-2.3.3a.ebuild, -ipset-2.4.2.ebuild, -ipset-2.4.9.ebuild,
39 + +ipset-2.4.9-r1.ebuild:
40 + Fixed gethostbyname alignment issue on hppa, bug #260481, thank Antixrict
41 + for report and work with upstream. Removed old.
42
43 *ipset-2.4.9 (28 Feb 2009)
44
45
46
47
48 1.1 net-firewall/ipset/ipset-2.4.9-r1.ebuild
49
50 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/ipset/ipset-2.4.9-r1.ebuild?rev=1.1&view=markup
51 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/ipset/ipset-2.4.9-r1.ebuild?rev=1.1&content-type=text/plain
52
53 Index: ipset-2.4.9-r1.ebuild
54 ===================================================================
55 # Copyright 1999-2009 Gentoo Foundation
56 # Distributed under the terms of the GNU General Public License v2
57 # $Header: /var/cvsroot/gentoo-x86/net-firewall/ipset/ipset-2.4.9-r1.ebuild,v 1.1 2009/03/03 13:15:52 pva Exp $
58
59 inherit eutils versionator toolchain-funcs linux-mod linux-info
60
61 DESCRIPTION="IPset tool for iptables, successor to ippool."
62 HOMEPAGE="http://ipset.netfilter.org/"
63 SRC_URI="http://ipset.netfilter.org/${P}.tar.bz2"
64 LICENSE="GPL-2"
65 SLOT="0"
66 KEYWORDS="~amd64 ~ppc ~x86"
67 IUSE=""
68 RDEPEND=">=net-firewall/iptables-1.4.1"
69 DEPEND="${RDEPEND}"
70
71 # configurable from outside
72 [ -z "${IP_NF_SET_MAX}" ] && IP_NF_SET_MAX=256
73 [ -z "${IP_NF_SET_HASHSIZE}" ] && IP_NF_SET_HASHSIZE=1024
74 BUILD_PARAMS="IP_NF_SET_MAX=$IP_NF_SET_MAX IP_NF_SET_HASHSIZE=${IP_NF_SET_HASHSIZE}"
75 # module fun
76 BUILD_TARGETS="all"
77 MODULE_NAMES_ARG="kernel/net/ipv4/netfilter:${S}/kernel"
78 MODULE_NAMES=""
79 for i in ip_set{,_{{ip,port,macip}map,{ip,net,ipport}hash,iptree{,map}}} \
80 ipt_{SET,set}; do
81 MODULE_NAMES="${MODULE_NAMES} ${i}(${MODULE_NAMES_ARG})"
82 done
83 # sanity
84 CONFIG_CHECK="NETFILTER"
85 ERROR_CFG="ipset needs netfilter support in your kernel."
86
87 src_unpack() {
88 unpack ${A}
89 sed -i \
90 -e 's/KERNELDIR/(KERNELDIR)/g' \
91 -e 's/^(\?KERNEL_\?DIR.*/KERNELDIR ?= /' \
92 -e '/^all::/iV ?= 0' \
93 -e '/^all::/iKBUILD_OUTPUT ?=' \
94 -e '/$(MAKE)/{s/$@/ V=$(V) KBUILD_OUTPUT=$(KBUILD_OUTPUT) modules/}' \
95 "${S}"/kernel/Makefile
96
97 cd "${S}"
98 epatch "${FILESDIR}/${PN}-2.4.7-LDFLAGS.patch"
99 epatch "${FILESDIR}/${PN}-2.4.9-gethostbyname-align.patch"
100 }
101
102 pkg_setup() {
103 get_version
104
105 modules=0
106 msg=''
107 if linux_chkconfig_builtin "MODULES" ; then
108 modules=1
109 msg="Modular kernel detected, will build kernel modules"
110 else
111 msg="Nonmodular kernel detected, will not build kernel modules"
112 fi
113 einfo "${msg}"
114
115 [[ $modules -eq 1 ]] && \
116 linux-mod_pkg_setup
117 myconf="${myconf} PREFIX="
118 myconf="${myconf} LIBDIR=/$(get_libdir)"
119 myconf="${myconf} BINDIR=/sbin"
120 myconf="${myconf} MANDIR=/usr/share/man"
121 myconf="${myconf} INCDIR=/usr/include"
122 myconf="${myconf} NO_EXTRA_WARN_FLAGS=yes"
123 export myconf
124 }
125
126 src_compile() {
127 einfo "Building userspace"
128 emake CC="$(tc-getCC)" COPT_FLAGS="${CFLAGS}" ${myconf} binaries || die "failed to build"
129
130 if [[ $modules -eq 1 ]]; then
131 einfo "Building kernel modules"
132 cd "${S}/kernel"
133 export KERNELDIR="${KERNEL_DIR}"
134 linux-mod_src_compile || die "failed to build modules"
135 fi
136 }
137
138 src_install() {
139 einfo "Installing userspace"
140 emake DESTDIR="${D}" ${myconf} binaries_install || die "failed to package"
141
142 if [[ $modules -eq 1 ]]; then
143 einfo "Installing kernel modules"
144 cd "${S}/kernel"
145 export KERNELDIR="${KERNEL_DIR}"
146 linux-mod_src_install
147 fi
148 }