1 |
flameeyes 12/08/27 15:28:20 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: net-snmp-5.7.2_rc1-r1.ebuild |
5 |
Log: |
6 |
Add an USE flag to make picutils dependency optional (bug #432926), as well as a netlink one to use libnl instead of parsing /proc/net/tcp. |
7 |
|
8 |
(Portage version: 2.2.0_alpha122/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.8 net-analyzer/net-snmp/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/net-snmp/metadata.xml?rev=1.8&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/net-snmp/metadata.xml?rev=1.8&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/net-snmp/metadata.xml?r1=1.7&r2=1.8 |
16 |
|
17 |
Index: metadata.xml |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/metadata.xml,v |
20 |
retrieving revision 1.7 |
21 |
retrieving revision 1.8 |
22 |
diff -u -r1.7 -r1.8 |
23 |
--- metadata.xml 20 Aug 2012 02:41:58 -0000 1.7 |
24 |
+++ metadata.xml 27 Aug 2012 15:28:20 -0000 1.8 |
25 |
@@ -3,16 +3,34 @@ |
26 |
<pkgmetadata> |
27 |
<herd>netmon</herd> |
28 |
<use> |
29 |
- <flag name='diskio'>Enable the use of diskio mibs</flag> |
30 |
+ <flag name='diskio' restrict='<net-analyzer/net-snmp-5.7.2_rc1'> |
31 |
+ Enable the use of diskio MIBs. |
32 |
+ </flag> |
33 |
<flag name='elf'>Enable the use of elf utils to check uptime on some systems</flag> |
34 |
- <flag name='extensible'>build deprecated extensible mib module (extend is successor)</flag> |
35 |
+ <flag name='extensible' restrict='<net-analyzer/net-snmp-5.7.2_rc1'> |
36 |
+ Build deprecated extensible mib module (extend is successor) |
37 |
+ </flag> |
38 |
<flag name='mfd-rewrites'>Use MFD rewrites of mib modules where available</flag> |
39 |
- <flag name='rpm'>Enable the rpm snmp probing</flag> |
40 |
+ <flag name='rpm'> |
41 |
+ Enable monitoring of <pkg>app-arch/rpm</pkg>. This flag requires |
42 |
+ the bzip2 and zlib flags to be enabled as well. |
43 |
+ </flag> |
44 |
<flag name='sendmail'>Enable sendmail statistics monitoring</flag> |
45 |
- <flag name='smux'>Enable the smux MIBS module</flag> |
46 |
+ <flag name='smux' restrict='<net-analyzer/net-snmp-5.7.2_rc1'> |
47 |
+ Enable the SNMP multiplexing (smux) MIBs module |
48 |
+ </flag> |
49 |
<flag name='ucd-compat'> |
50 |
Build UCD compatibility library. Increases significantly the |
51 |
install size. |
52 |
</flag> |
53 |
+ <flag name='pci'> |
54 |
+ Use libpci (from <pkg>sys-apps/pciutils</pkg>) to look up |
55 |
+ network interface description. This feature is only available on |
56 |
+ Linux. |
57 |
+ </flag> |
58 |
+ <flag name='netlink'> |
59 |
+ Use <pkg>dev-libs/libnl</pkg> to fetch TCP statistics instead of |
60 |
+ using /proc/net/tcp (Linux only). |
61 |
+ </flag> |
62 |
</use> |
63 |
</pkgmetadata> |
64 |
|
65 |
|
66 |
|
67 |
1.239 net-analyzer/net-snmp/ChangeLog |
68 |
|
69 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/net-snmp/ChangeLog?rev=1.239&view=markup |
70 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/net-snmp/ChangeLog?rev=1.239&content-type=text/plain |
71 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/net-snmp/ChangeLog?r1=1.238&r2=1.239 |
72 |
|
73 |
Index: ChangeLog |
74 |
=================================================================== |
75 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/ChangeLog,v |
76 |
retrieving revision 1.238 |
77 |
retrieving revision 1.239 |
78 |
diff -u -r1.238 -r1.239 |
79 |
--- ChangeLog 26 Aug 2012 14:14:42 -0000 1.238 |
80 |
+++ ChangeLog 27 Aug 2012 15:28:20 -0000 1.239 |
81 |
@@ -1,6 +1,13 @@ |
82 |
# ChangeLog for net-analyzer/net-snmp |
83 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
84 |
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/ChangeLog,v 1.238 2012/08/26 14:14:42 armin76 Exp $ |
85 |
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/ChangeLog,v 1.239 2012/08/27 15:28:20 flameeyes Exp $ |
86 |
+ |
87 |
+*net-snmp-5.7.2_rc1-r1 (27 Aug 2012) |
88 |
+ |
89 |
+ 27 Aug 2012; Diego E. Pettenò <flameeyes@g.o> |
90 |
+ +net-snmp-5.7.2_rc1-r1.ebuild, metadata.xml: |
91 |
+ Add an USE flag to make picutils dependency optional (bug #432926), as well as |
92 |
+ a netlink one to use libnl instead of parsing /proc/net/tcp. |
93 |
|
94 |
26 Aug 2012; Raúl Porcel <armin76@g.o> net-snmp-5.7.2_rc1.ebuild: |
95 |
alpha/arm/ia64/s390/sh/sparc stable wrt #431752 |
96 |
|
97 |
|
98 |
|
99 |
1.1 net-analyzer/net-snmp/net-snmp-5.7.2_rc1-r1.ebuild |
100 |
|
101 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/net-snmp/net-snmp-5.7.2_rc1-r1.ebuild?rev=1.1&view=markup |
102 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/net-snmp/net-snmp-5.7.2_rc1-r1.ebuild?rev=1.1&content-type=text/plain |
103 |
|
104 |
Index: net-snmp-5.7.2_rc1-r1.ebuild |
105 |
=================================================================== |
106 |
# Copyright 1999-2012 Gentoo Foundation |
107 |
# Distributed under the terms of the GNU General Public License v2 |
108 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/net-snmp-5.7.2_rc1-r1.ebuild,v 1.1 2012/08/27 15:28:20 flameeyes Exp $ |
109 |
|
110 |
EAPI=4 |
111 |
PYTHON_DEPEND="python? 2" |
112 |
|
113 |
WANT_AUTOMAKE=none |
114 |
|
115 |
PATCHSET=1 |
116 |
|
117 |
inherit eutils perl-module python autotools |
118 |
|
119 |
MY_P="${P/_rc/.rc}" |
120 |
|
121 |
DESCRIPTION="Software for generating and retrieving SNMP data" |
122 |
HOMEPAGE="http://net-snmp.sourceforge.net/" |
123 |
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz |
124 |
http://dev.gentoo.org/~flameeyes/${PN}/${MY_P}-patches-${PATCHSET}.tar.xz" |
125 |
|
126 |
# GPL-2 for the init scripts |
127 |
LICENSE="as-is BSD GPL-2" |
128 |
SLOT="0" |
129 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
130 |
IUSE="bzip2 doc elf ipv6 mfd-rewrites minimal perl python rpm selinux ssl tcpd X zlib lm_sensors ucd-compat pci netlink" |
131 |
|
132 |
COMMON="ssl? ( >=dev-libs/openssl-0.9.6d ) |
133 |
tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) |
134 |
rpm? ( |
135 |
app-arch/rpm |
136 |
dev-libs/popt |
137 |
) |
138 |
bzip2? ( app-arch/bzip2 ) |
139 |
zlib? ( >=sys-libs/zlib-1.1.4 ) |
140 |
elf? ( dev-libs/elfutils ) |
141 |
python? ( dev-python/setuptools ) |
142 |
pci? ( sys-apps/pciutils ) |
143 |
lm_sensors? ( sys-apps/lm_sensors ) |
144 |
netlink? ( dev-libs/libnl:1.1 )" |
145 |
|
146 |
RDEPEND="${COMMON} |
147 |
perl? ( |
148 |
X? ( dev-perl/perl-tk ) |
149 |
!minimal? ( dev-perl/TermReadKey ) |
150 |
) |
151 |
selinux? ( sec-policy/selinux-snmp ) |
152 |
sys-apps/openrc" |
153 |
|
154 |
# Dependency on autoconf due to bug #225893 |
155 |
DEPEND="${COMMON} |
156 |
>=sys-apps/sed-4 |
157 |
doc? ( app-doc/doxygen )" |
158 |
|
159 |
REQUIRED_USE="rpm? ( bzip2 zlib )" |
160 |
|
161 |
RESTRICT=test |
162 |
|
163 |
S="${WORKDIR}/${MY_P}" |
164 |
|
165 |
pkg_setup() { |
166 |
if use python; then |
167 |
python_set_active_version 2 |
168 |
python_pkg_setup |
169 |
fi |
170 |
} |
171 |
|
172 |
src_prepare() { |
173 |
# snmpconf generates config files with proper selinux context |
174 |
use selinux && epatch "${FILESDIR}"/${PN}-5.1.2-snmpconf-selinux.patch |
175 |
|
176 |
epatch "${WORKDIR}"/patches/*.patch |
177 |
eautoconf |
178 |
} |
179 |
|
180 |
src_configure() { |
181 |
# keep this in the same line, configure.ac arguments are passed down to config.h |
182 |
local mibs="host ucd-snmp/dlmod ucd-snmp/diskio ucd-snmp/extensible mibII/mta_sendmail smux" |
183 |
use lm_sensors && mibs="${mibs} ucd-snmp/lmsensorsMib" |
184 |
|
185 |
use python && export PYTHON_DIR="$(python_get_sitedir)" |
186 |
|
187 |
if ! use pci; then |
188 |
export ac_cv_header_pci_pci_h=no |
189 |
export netsnmp_cv_func_pci_lookup_name_LMIBLIBS=no |
190 |
fi |
191 |
|
192 |
econf \ |
193 |
--with-install-prefix="${D}" \ |
194 |
--with-sys-location="Unknown" \ |
195 |
--with-sys-contact="root@Unknown" \ |
196 |
--with-default-snmp-version="3" \ |
197 |
--with-mib-modules="${mibs}" \ |
198 |
--with-logfile="/var/log/net-snmpd.log" \ |
199 |
--with-persistent-directory="/var/lib/net-snmp" \ |
200 |
$(use_enable ucd-compat ucd-snmp-compatibility) \ |
201 |
--enable-shared --disable-static \ |
202 |
--with-ldflags="${LDFLAGS}" \ |
203 |
$(use_enable ipv6) \ |
204 |
$(use_enable mfd-rewrites) \ |
205 |
$(use_enable perl embedded-perl) \ |
206 |
$(use_enable !ssl internal-md5) \ |
207 |
$(use_with elf) \ |
208 |
$(use_with perl perl-modules INSTALLDIRS=vendor) \ |
209 |
$(use_with python python-modules) \ |
210 |
$(use_with ssl openssl) \ |
211 |
$(use_with tcpd libwrap) \ |
212 |
$(use_with bzip2) \ |
213 |
$(use_with zlib) \ |
214 |
$(use_with rpm) \ |
215 |
$(use_with netlink libnl) |
216 |
} |
217 |
|
218 |
src_compile() { |
219 |
emake OTHERLDFLAGS="${LDFLAGS}" |
220 |
|
221 |
if use doc ; then |
222 |
einfo "Building HTML Documentation" |
223 |
emake docsdox |
224 |
fi |
225 |
} |
226 |
|
227 |
src_install () { |
228 |
# bug #317965 |
229 |
emake -j1 DESTDIR="${D}" install |
230 |
|
231 |
if use perl ; then |
232 |
fixlocalpod |
233 |
use X || rm -f "${D}"/usr/bin/tkmib |
234 |
else |
235 |
rm -f "${D}"/usr/bin/mib2c "${D}"/usr/bin/snmpcheck "${D}"/usr/bin/tkmib |
236 |
fi |
237 |
|
238 |
dodoc AGENT.txt ChangeLog FAQ INSTALL NEWS PORTING README* TODO |
239 |
newdoc EXAMPLE.conf.def EXAMPLE.conf |
240 |
|
241 |
use doc && dohtml docs/html/* |
242 |
|
243 |
keepdir /var/lib/net-snmp |
244 |
|
245 |
newinitd "${FILESDIR}"/snmpd.init.2 snmpd |
246 |
newconfd "${FILESDIR}"/snmpd.conf snmpd |
247 |
|
248 |
newinitd "${FILESDIR}"/snmptrapd.init.2 snmptrapd |
249 |
newconfd "${FILESDIR}"/snmptrapd.conf snmptrapd |
250 |
|
251 |
insinto /etc/snmp |
252 |
newins "${S}"/EXAMPLE.conf snmpd.conf.example |
253 |
|
254 |
# Remove everything not required for an agent. |
255 |
# Keep only the snmpd, snmptrapd, MIBs, headers and libraries. |
256 |
if use minimal; then |
257 |
rm -rf \ |
258 |
"${D}"/usr/bin/{encode_keychange,snmp{get,getnext,set,usm,walk,bulkwalk,table,trap,bulkget,translate,status,delta,test,df,vacm,netstat,inform,check,conf},fixproc,traptoemail} \ |
259 |
"${D}"/usr/share/snmp/snmpconf-data \ |
260 |
"${D}"/usr/share/snmp/*.conf \ |
261 |
"${D}"/**/*.pl |
262 |
fi |
263 |
} |
264 |
|
265 |
pkg_postinst() { |
266 |
if use python; then |
267 |
python_mod_optimize netsnmp |
268 |
fi |
269 |
|
270 |
elog "An example configuration file has been installed in" |
271 |
elog "/etc/snmp/snmpd.conf.example." |
272 |
} |
273 |
|
274 |
pkg_postrm() { |
275 |
if use python; then |
276 |
python_mod_cleanup netsnmp |
277 |
fi |
278 |
} |