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