1 |
pva 08/06/06 20:06:33 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: net-snmp-5.4.1-r4.ebuild |
5 |
Log: |
6 |
Incorporated patches from upstream to fix different issues: bug #203127 - error on subcontainer, followed by crash, thank Andrew Belousoff for report and Thomas Anders for the fix; bug #21660 - hrFSStorageIndex incorrect, thank for report Dominique PRUNIER; bug #213415 - process checking bug, reported by David Bosso; security bug #222265 - perl/python module buffer overflow (CVE-2008-2292), thank Robert Buchholz for report. |
7 |
(Portage version: 2.1.4.4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.168 net-analyzer/net-snmp/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/net-snmp/ChangeLog?rev=1.168&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/net-snmp/ChangeLog?rev=1.168&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/net-snmp/ChangeLog?r1=1.167&r2=1.168 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/ChangeLog,v |
19 |
retrieving revision 1.167 |
20 |
retrieving revision 1.168 |
21 |
diff -u -r1.167 -r1.168 |
22 |
--- ChangeLog 31 Mar 2008 05:26:17 -0000 1.167 |
23 |
+++ ChangeLog 6 Jun 2008 20:06:33 -0000 1.168 |
24 |
@@ -1,6 +1,22 @@ |
25 |
# ChangeLog for net-analyzer/net-snmp |
26 |
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/ChangeLog,v 1.167 2008/03/31 05:26:17 ricmm Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/ChangeLog,v 1.168 2008/06/06 20:06:33 pva Exp $ |
29 |
+ |
30 |
+*net-snmp-5.4.1-r4 (06 Jun 2008) |
31 |
+ |
32 |
+ 06 Jun 2008; Peter Volkov <pva@g.o> |
33 |
+ +files/net-snmp-5.1.2-snmpconf-selinux.patch, |
34 |
+ +files/net-snmp-5.4.1-CVE-2008-2292.patch, |
35 |
+ +files/net-snmp-5.4.1-incorrect-hrFSStorageIndex.patch, |
36 |
+ +files/net-snmp-5.4.1-ipAddressTable-crash-with-double-free.patch, |
37 |
+ +files/net-snmp-5.4.1-process-count-race.patch, |
38 |
+ +files/net-snmp-5.4-exec-crash.patch, +net-snmp-5.4.1-r4.ebuild: |
39 |
+ Incorporated patches from upstream to fix different issues: bug #203127 - |
40 |
+ error on subcontainer, followed by crash, thank Andrew Belousoff for |
41 |
+ report and Thomas Anders for the fix; bug #21660 - hrFSStorageIndex |
42 |
+ incorrect, thank for report Dominique PRUNIER; bug #213415 - process |
43 |
+ checking bug, reported by David Bosso; security bug #222265 - perl/python |
44 |
+ module buffer overflow (CVE-2008-2292), thank Robert Buchholz for report. |
45 |
|
46 |
31 Mar 2008; <ricmm@g.o> net-snmp-5.4.ebuild: |
47 |
Drop to ~mips due to unstable deps |
48 |
|
49 |
|
50 |
|
51 |
1.1 net-analyzer/net-snmp/net-snmp-5.4.1-r4.ebuild |
52 |
|
53 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/net-snmp/net-snmp-5.4.1-r4.ebuild?rev=1.1&view=markup |
54 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/net-snmp/net-snmp-5.4.1-r4.ebuild?rev=1.1&content-type=text/plain |
55 |
|
56 |
Index: net-snmp-5.4.1-r4.ebuild |
57 |
=================================================================== |
58 |
# Copyright 1999-2008 Gentoo Foundation |
59 |
# Distributed under the terms of the GNU General Public License v2 |
60 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/net-snmp-5.4.1-r4.ebuild,v 1.1 2008/06/06 20:06:33 pva Exp $ |
61 |
|
62 |
inherit fixheadtails flag-o-matic perl-module python |
63 |
|
64 |
DESCRIPTION="Software for generating and retrieving SNMP data" |
65 |
HOMEPAGE="http://net-snmp.sourceforge.net/" |
66 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
67 |
|
68 |
LICENSE="as-is BSD" |
69 |
SLOT="0" |
70 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
71 |
IUSE="diskio doc elf ipv6 lm_sensors mfd-rewrites minimal perl python rpm selinux smux ssl tcpd X sendmail extensible" |
72 |
|
73 |
DEPEND="ssl? ( >=dev-libs/openssl-0.9.6d ) |
74 |
tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) |
75 |
rpm? ( |
76 |
app-arch/rpm |
77 |
dev-libs/popt |
78 |
app-arch/bzip2 |
79 |
>=sys-libs/zlib-1.1.4 |
80 |
) |
81 |
elf? ( dev-libs/elfutils ) |
82 |
lm_sensors? ( sys-apps/lm_sensors ) |
83 |
python? ( dev-python/setuptools )" |
84 |
|
85 |
RDEPEND="${DEPEND} |
86 |
perl? ( |
87 |
X? ( dev-perl/perl-tk ) |
88 |
!minimal? ( dev-perl/TermReadKey ) |
89 |
) |
90 |
selinux? ( sec-policy/selinux-snmpd )" |
91 |
|
92 |
DEPEND="${DEPEND} |
93 |
>=sys-apps/sed-4 |
94 |
doc? ( app-doc/doxygen )" |
95 |
|
96 |
src_unpack() { |
97 |
unpack ${A} |
98 |
cd "${S}" |
99 |
|
100 |
# fix access violation in make check |
101 |
sed -i -e 's/\(snmpd.*\)-Lf/\1-l/' testing/eval_tools.sh || \ |
102 |
die "sed eval_tools.sh failed" |
103 |
# fix path in fixproc |
104 |
sed -i -e 's|\(database_file =.*\)/local\(.*\)$|\1\2|' local/fixproc || \ |
105 |
die "sed fixproc failed" |
106 |
|
107 |
if use python ; then |
108 |
python_version |
109 |
PYTHON_MODNAME="netsnmp" |
110 |
PYTHON_DIR=/usr/$(get_libdir)/python${PYVER}/site-packages |
111 |
sed -i -e "s:\(install --basedir=\$\$dir\):\1 --root='${D}':" Makefile.in || die "sed python failed" |
112 |
fi |
113 |
|
114 |
# snmpd crashes when snmpd.conf contains more than one "exec shelltest" line |
115 |
# https://bugzilla.redhat.com/show_bug.cgi?id=85071 |
116 |
epatch "${FILESDIR}"/${PN}-5.4-exec-crash.patch |
117 |
# agent: suppress annoying "registration != duplicate" warning for root oids |
118 |
epatch "${FILESDIR}"/${P}-suppresssuppress-annoying.patch |
119 |
# bug 180266 |
120 |
epatch "${FILESDIR}"/${P}-clientaddr-fix.patch |
121 |
# Crash when more then one interface have the same IP, bug 203127 |
122 |
epatch "${FILESDIR}"/${P}-ipAddressTable-crash-with-double-free.patch |
123 |
# snmpconf generates config files with proper selinux context |
124 |
# https://bugzilla.redhat.com/show_bug.cgi?id=247462 |
125 |
use selinux && epatch "${FILESDIR}"/${PN}-5.1.2-snmpconf-selinux.patch |
126 |
epatch "${FILESDIR}"/${P}-CVE-2008-2292.patch #222265 |
127 |
epatch "${FILESDIR}"/${P}-process-count-race.patch #213415 |
128 |
epatch "${FILESDIR}"/${P}-incorrect-hrFSStorageIndex.patch #211660 |
129 |
ht_fix_all |
130 |
} |
131 |
|
132 |
src_compile() { |
133 |
local mibs |
134 |
|
135 |
strip-flags |
136 |
|
137 |
# filter for bug #145960 |
138 |
# as it seems that the option is not enough |
139 |
filter-ldflags -Wl,--as-needed |
140 |
|
141 |
mibs="host ucd-snmp/dlmod" |
142 |
use smux && mibs="${mibs} smux" |
143 |
use sendmail && mibs="${mibs} mibII/mta_sendmail" |
144 |
use lm_sensors && mibs="${mibs} ucd-snmp/lmSensors" |
145 |
use diskio && mibs="${mibs} ucd-snmp/diskio" |
146 |
use extensible && mibs="${mibs} ucd-snmp/extensible" |
147 |
|
148 |
econf \ |
149 |
--with-install-prefix="${D}" \ |
150 |
--with-sys-location="Unknown" \ |
151 |
--with-sys-contact="root@Unknown" \ |
152 |
--with-default-snmp-version="3" \ |
153 |
--with-mib-modules="${mibs}" \ |
154 |
--with-logfile="/var/log/net-snmpd.log" \ |
155 |
--with-persistent-directory="/var/lib/net-snmp" \ |
156 |
--enable-ucd-snmp-compatibility \ |
157 |
--enable-shared \ |
158 |
--enable-as-needed \ |
159 |
$(use_enable mfd-rewrites) \ |
160 |
$(use_enable perl embedded-perl) \ |
161 |
$(use_enable ipv6) \ |
162 |
$(use_enable !ssl internal-md5) \ |
163 |
$(use_with ssl openssl) \ |
164 |
$(use_with tcpd libwrap) \ |
165 |
$(use_with rpm) \ |
166 |
$(use_with rpm bzip2) \ |
167 |
$(use_with rpm zlib) \ |
168 |
$(use_with elf) \ |
169 |
$(use_with python python-modules) \ |
170 |
|| die "econf failed" |
171 |
|
172 |
emake -j1 || die "emake failed" |
173 |
|
174 |
if use perl ; then |
175 |
emake perlmodules || die "compile perl modules problem" |
176 |
fi |
177 |
|
178 |
if use python ; then |
179 |
emake pythonmodules || die "compile python modules problem" |
180 |
fi |
181 |
|
182 |
if use doc ; then |
183 |
einfo "Building HTML Documentation" |
184 |
make docsdox || die "failed to build docs" |
185 |
fi |
186 |
} |
187 |
|
188 |
src_test() { |
189 |
cd testing |
190 |
if ! make test ; then |
191 |
echo |
192 |
einfo "Don't be alarmed if a few tests FAIL." |
193 |
einfo "This could happen for several reasons:" |
194 |
einfo " - You don't already have a working configuration." |
195 |
einfo " - Your ethernet interface isn't properly configured." |
196 |
echo |
197 |
fi |
198 |
} |
199 |
|
200 |
src_install () { |
201 |
|
202 |
make DESTDIR="${D}" install || die "make install failed" |
203 |
|
204 |
if use perl ; then |
205 |
make DESTDIR="${D}" perlinstall || die "make perlinstall failed" |
206 |
fixlocalpod |
207 |
|
208 |
use X || rm -f "${D}/usr/bin/tkmib" |
209 |
else |
210 |
rm -f "${D}/usr/bin/mib2c" "${D}/usr/bin/tkmib" "${D}/usr/bin/snmpcheck" |
211 |
fi |
212 |
|
213 |
if use python ; then |
214 |
mkdir -p "${D}/${PYTHON_DIR}" || die "Couldn't make $PYTHON_DIR" |
215 |
make pythoninstall || die "make pythoninstall failed" |
216 |
fi |
217 |
|
218 |
dodoc AGENT.txt ChangeLog FAQ INSTALL NEWS PORTING README* TODO |
219 |
newdoc EXAMPLE.conf.def EXAMPLE.conf |
220 |
|
221 |
use doc && dohtml docs/html/* |
222 |
|
223 |
keepdir /etc/snmp /var/lib/net-snmp |
224 |
|
225 |
newinitd "${FILESDIR}"/snmpd.rc7 snmpd |
226 |
newconfd "${FILESDIR}"/snmpd.conf snmpd |
227 |
|
228 |
newinitd "${FILESDIR}"/snmptrapd.rc7 snmptrapd |
229 |
newconfd "${FILESDIR}"/snmptrapd.conf snmptrapd |
230 |
|
231 |
# Remove everything, keeping only the snmpd, snmptrapd, MIBs, libs, and includes. |
232 |
if use minimal; then |
233 |
elog "USE=minimal is set. Cleaning up excess cruft for a embedded/minimal/server only install." |
234 |
rm -rf |
235 |
"${D}"/usr/bin/{encode_keychange,snmp{get,getnext,set,usm,walk,bulkwalk,table,trap,bulkget,translate,status,delta,test,df,vacm,netstat,inform,snmpcheck}} |
236 |
rm -rf "${D}"/usr/share/snmp/snmpconf-data "${D}"/usr/share/snmp/*.conf |
237 |
rm -rf "${D}"/usr/bin/{fixproc,traptoemail} "${D}"/usr/bin/snmpc{heck,onf} |
238 |
find "${D}" -name '*.pl' -exec rm -f '{}' \; |
239 |
use ipv6 || rm -rf "${D}"/usr/share/snmp/mibs/IPV6* |
240 |
fi |
241 |
|
242 |
# bug 113788, install example config |
243 |
insinto /etc/snmp |
244 |
newins "${S}"/EXAMPLE.conf snmpd.conf.example |
245 |
} |
246 |
|
247 |
pkg_postrm() { |
248 |
if use python ; then |
249 |
python_mod_cleanup |
250 |
fi |
251 |
} |
252 |
|
253 |
pkg_postinst() { |
254 |
elog "An example configuration file has been installed in" |
255 |
elog "/etc/snmp/snmpd.conf.example." |
256 |
} |
257 |
|
258 |
|
259 |
|
260 |
-- |
261 |
gentoo-commits@l.g.o mailing list |