Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/net-snmp/
Date: Sun, 08 May 2016 07:09:26
Message-Id: 1462691308.40d21873cdec8614a4bd699ae3c834a2276fefd0.jer@gentoo
1 commit: 40d21873cdec8614a4bd699ae3c834a2276fefd0
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 8 07:08:28 2016 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Sun May 8 07:08:28 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40d21873
7
8 net-analyzer/net-snmp: Old.
9
10 Package-Manager: portage-2.2.28
11
12 net-analyzer/net-snmp/Manifest | 2 -
13 net-analyzer/net-snmp/net-snmp-5.7.3-r1.ebuild | 180 --------------------
14 net-analyzer/net-snmp/net-snmp-5.7.3-r2.ebuild | 183 ---------------------
15 .../net-snmp/net-snmp-5.7.3_pre5-r1.ebuild | 162 ------------------
16 4 files changed, 527 deletions(-)
17
18 diff --git a/net-analyzer/net-snmp/Manifest b/net-analyzer/net-snmp/Manifest
19 index 743619f..f261269 100644
20 --- a/net-analyzer/net-snmp/Manifest
21 +++ b/net-analyzer/net-snmp/Manifest
22 @@ -1,4 +1,2 @@
23 -DIST net-snmp-5.7.3-patches-1.tar.xz 5128 SHA256 742c5382a0e96f151b335cbfedc3da762f3d23d8e94ffc4903c49071070328ff SHA512 3109edef399815cfcfd76176c05c150f69f2ede6f41859d3a4d42b7ac450e1375ebb15b016257a52488dd6a8cebdecf47974d0542a792e0c215c538ea43a6a7d WHIRLPOOL c9331e6d5fbfc97872f5e6172d059deadfde5592e45ec57f1a7d0275ef211c122e3d0a024608a9fa6bc3b4a79d47ac81c934340ed030dcfe77d0928479693615
24 DIST net-snmp-5.7.3-patches-2.tar.xz 3312 SHA256 a72732f9e40988ef1d79b6750c7ef7f56accbf5a32543dd15c000e58b1e9054c SHA512 22ca6cc4dd1fd58a8cff53881d248155dbfdab765e9a3664320c8c4a5cfa35e741adfb0304bb38be7719ba1c7418f9b0f9178719951b82d70257c3c944c450ad WHIRLPOOL 509da418db4c380f431af1d2d342bea4bd18caad99f2fb8120466ffcbbe8d2e09702a28b43b59d2a633ae3566d599a82a221eae4e9ac601a545445c614d3459f
25 -DIST net-snmp-5.7.3.pre5.tar.gz 6375630 SHA256 bcc6ab55f90e963b51bb34941c846979ecf62a5b385835d090ecdca5efad32e0 SHA512 5e59ece818fe2937d8ac9a9765361fe4db84d4b6eb5f5f96789d9bfc181d0e4b7a77a6a387f441f98f19afbfb645aebeb2443b7aee63c5d594d45a31df09a31c WHIRLPOOL 28e4e587639a024ae30253705a19b4b6a40cb4cf83405dc5dde081be55263538f3c6edac02e086ef63008729e5eb1d30764424eacc3d91c0b0499510f929e120
26 DIST net-snmp-5.7.3.tar.gz 6382428 SHA256 12ef89613c7707dc96d13335f153c1921efc9d61d3708ef09f3fc4a7014fb4f0 SHA512 0758bba5844cfd6c80959ac16b83906a2f830ba49fd0ab1bf9e191dc6a79d312a2e4760bd53b3e1a1c82759481f0064d088d5a3cf475d84b25679a6bd0f049bb WHIRLPOOL ee741c1278206dd8dae00e085629e7c13ce518ad1911af804872ccaba576ab4d234f7801dbb447ae1ddba8196d43d1dbcd46c4bd8f69aa9dc9eb1662ce5e718a
27
28 diff --git a/net-analyzer/net-snmp/net-snmp-5.7.3-r1.ebuild b/net-analyzer/net-snmp/net-snmp-5.7.3-r1.ebuild
29 deleted file mode 100644
30 index 3c2670e..0000000
31 --- a/net-analyzer/net-snmp/net-snmp-5.7.3-r1.ebuild
32 +++ /dev/null
33 @@ -1,180 +0,0 @@
34 -# Copyright 1999-2016 Gentoo Foundation
35 -# Distributed under the terms of the GNU General Public License v2
36 -# $Id$
37 -
38 -EAPI=5
39 -PYTHON_COMPAT=( python2_7 )
40 -DISTUTILS_SINGLE_IMPL=yesplz
41 -DISTUTILS_OPTIONAL=yesplz
42 -WANT_AUTOMAKE=none
43 -PATCHSET=2
44 -GENTOO_DEPEND_ON_PERL=no
45 -
46 -inherit autotools distutils-r1 eutils perl-module systemd
47 -
48 -DESCRIPTION="Software for generating and retrieving SNMP data"
49 -HOMEPAGE="http://net-snmp.sourceforge.net/"
50 -SRC_URI="
51 - mirror://sourceforge/project/${PN}/${PN}/${PV}/${P}.tar.gz
52 - https://dev.gentoo.org/~jer/${PN}-5.7.3-patches-${PATCHSET}.tar.xz
53 -"
54 -
55 -S=${WORKDIR}/${P/_/.}
56 -
57 -# GPL-2 for the init scripts
58 -LICENSE="HPND BSD GPL-2"
59 -SLOT="0"
60 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
61 -IUSE="bzip2 doc elf ipv6 mfd-rewrites minimal perl python rpm selinux ssl tcpd X zlib lm_sensors ucd-compat pci netlink mysql"
62 -
63 -COMMON_DEPEND="
64 - ssl? ( >=dev-libs/openssl-0.9.6d )
65 - tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
66 - rpm? (
67 - app-arch/rpm
68 - dev-libs/popt
69 - )
70 - bzip2? ( app-arch/bzip2 )
71 - zlib? ( >=sys-libs/zlib-1.1.4 )
72 - elf? ( dev-libs/elfutils )
73 - python? (
74 - dev-python/setuptools[${PYTHON_USEDEP}]
75 - ${PYTHON_DEPS}
76 - )
77 - pci? ( sys-apps/pciutils )
78 - lm_sensors? ( sys-apps/lm_sensors )
79 - netlink? ( dev-libs/libnl:3 )
80 - mysql? ( virtual/mysql )
81 - perl? ( <dev-lang/perl-5.24.0:= )
82 -"
83 -DEPEND="
84 - ${COMMON_DEPEND}
85 - doc? ( app-doc/doxygen )
86 -"
87 -RDEPEND="
88 - ${COMMON_DEPEND}
89 - perl? (
90 - X? ( dev-perl/Tk )
91 - !minimal? ( dev-perl/TermReadKey )
92 - )
93 - selinux? ( sec-policy/selinux-snmp )
94 -"
95 -
96 -REQUIRED_USE="
97 - python? ( ${PYTHON_REQUIRED_USE} )
98 - rpm? ( bzip2 zlib )
99 -"
100 -
101 -RESTRICT=test
102 -
103 -pkg_setup() {
104 - use python && python-single-r1_pkg_setup
105 -}
106 -
107 -src_prepare() {
108 - # snmpconf generates config files with proper selinux context
109 - use selinux && epatch "${FILESDIR}"/${PN}-5.1.2-snmpconf-selinux.patch
110 -
111 - epatch "${WORKDIR}"/patches/*.patch
112 -
113 - epatch_user
114 -
115 - eautoconf
116 -}
117 -
118 -src_configure() {
119 - # keep this in the same line, configure.ac arguments are passed down to config.h
120 - local mibs="host ucd-snmp/dlmod ucd-snmp/diskio ucd-snmp/extensible mibII/mta_sendmail smux etherlike-mib/dot3StatsTable"
121 - use lm_sensors && mibs="${mibs} ucd-snmp/lmsensorsMib"
122 -
123 - econf \
124 - $(use_enable !ssl internal-md5) \
125 - $(use_enable ipv6) \
126 - $(use_enable mfd-rewrites) \
127 - $(use_enable perl embedded-perl) \
128 - $(use_enable ucd-compat ucd-snmp-compatibility) \
129 - $(use_with bzip2) \
130 - $(use_with elf) \
131 - $(use_with mysql) \
132 - $(use_with netlink nl) \
133 - $(use_with pci) \
134 - $(use_with perl perl-modules INSTALLDIRS=vendor) \
135 - $(use_with python python-modules) \
136 - $(use_with rpm) \
137 - $(use_with ssl openssl) \
138 - $(use_with tcpd libwrap) \
139 - $(use_with zlib) \
140 - --enable-shared --disable-static \
141 - --with-default-snmp-version="3" \
142 - --with-install-prefix="${D}" \
143 - --with-ldflags="${LDFLAGS}" \
144 - --with-logfile="/var/log/net-snmpd.log" \
145 - --with-mib-modules="${mibs}" \
146 - --with-persistent-directory="/var/lib/net-snmp" \
147 - --with-sys-contact="root@Unknown" \
148 - --with-sys-location="Unknown"
149 -}
150 -
151 -src_compile() {
152 - emake \
153 - OTHERLDFLAGS="${LDFLAGS}" \
154 - sedscript all
155 -
156 - use doc && emake docsdox
157 -}
158 -
159 -src_install () {
160 - # bug #317965
161 - emake -j1 DESTDIR="${D}" install
162 -
163 - if use perl ; then
164 - perl_delete_localpod
165 - if ! use X; then
166 - rm "${D}"/usr/bin/tkmib || die
167 - fi
168 - else
169 - rm -f \
170 - "${D}"/usr/bin/fixproc \
171 - "${D}"/usr/bin/ipf-mod.pl \
172 - "${D}"/usr/bin/mib2c \
173 - "${D}"/usr/bin/net-snmp-cert \
174 - "${D}"/usr/bin/snmp-bridge-mib \
175 - "${D}"/usr/bin/snmpcheck \
176 - "${D}"/usr/bin/snmpconf \
177 - "${D}"/usr/bin/tkmib \
178 - "${D}"/usr/bin/traptoemail \
179 - "${D}"/usr/share/snmp/mib2c.perl.conf \
180 - "${D}"/usr/share/snmp/snmp_perl_trapd.pl \
181 - || die
182 - fi
183 -
184 - dodoc AGENT.txt ChangeLog FAQ INSTALL NEWS PORTING README* TODO
185 - newdoc EXAMPLE.conf.def EXAMPLE.conf
186 -
187 - use doc && dohtml docs/html/*
188 -
189 - keepdir /var/lib/net-snmp
190 -
191 - newinitd "${FILESDIR}"/snmpd.init.2 snmpd
192 - newconfd "${FILESDIR}"/snmpd.conf snmpd
193 -
194 - newinitd "${FILESDIR}"/snmptrapd.init.2 snmptrapd
195 - newconfd "${FILESDIR}"/snmptrapd.conf snmptrapd
196 -
197 - systemd_dounit "${FILESDIR}"/snmpd.service
198 - systemd_dounit "${FILESDIR}"/snmptrapd.service
199 -
200 - insinto /etc/snmp
201 - newins "${S}"/EXAMPLE.conf snmpd.conf.example
202 -
203 - # Remove everything not required for an agent.
204 - # Keep only the snmpd, snmptrapd, MIBs, headers and libraries.
205 - if use minimal; then
206 - rm -rf \
207 - "${D}"/**/*.pl \
208 - "${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} \
209 - "${D}"/usr/share/snmp/*.conf \
210 - "${D}"/usr/share/snmp/snmpconf-data \
211 - || die
212 - fi
213 -}
214
215 diff --git a/net-analyzer/net-snmp/net-snmp-5.7.3-r2.ebuild b/net-analyzer/net-snmp/net-snmp-5.7.3-r2.ebuild
216 deleted file mode 100644
217 index efa488a..0000000
218 --- a/net-analyzer/net-snmp/net-snmp-5.7.3-r2.ebuild
219 +++ /dev/null
220 @@ -1,183 +0,0 @@
221 -# Copyright 1999-2016 Gentoo Foundation
222 -# Distributed under the terms of the GNU General Public License v2
223 -# $Id$
224 -
225 -EAPI=5
226 -PYTHON_COMPAT=( python2_7 )
227 -DISTUTILS_SINGLE_IMPL=yesplz
228 -DISTUTILS_OPTIONAL=yesplz
229 -WANT_AUTOMAKE=none
230 -PATCHSET=2
231 -GENTOO_DEPEND_ON_PERL=no
232 -
233 -inherit autotools distutils-r1 eutils perl-module systemd
234 -
235 -DESCRIPTION="Software for generating and retrieving SNMP data"
236 -HOMEPAGE="http://net-snmp.sourceforge.net/"
237 -SRC_URI="
238 - mirror://sourceforge/project/${PN}/${PN}/${PV}/${P}.tar.gz
239 - https://dev.gentoo.org/~jer/${PN}-5.7.3-patches-${PATCHSET}.tar.xz
240 -"
241 -
242 -S=${WORKDIR}/${P/_/.}
243 -
244 -# GPL-2 for the init scripts
245 -LICENSE="HPND BSD GPL-2"
246 -SLOT="0"
247 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
248 -IUSE="bzip2 doc elf ipv6 libressl mfd-rewrites minimal perl python rpm selinux ssl tcpd X zlib lm_sensors ucd-compat pci netlink mysql"
249 -
250 -COMMON_DEPEND="
251 - ssl? (
252 - !libressl? ( >=dev-libs/openssl-0.9.6d:0 )
253 - libressl? ( dev-libs/libressl )
254 - )
255 - tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
256 - rpm? (
257 - app-arch/rpm
258 - dev-libs/popt
259 - )
260 - bzip2? ( app-arch/bzip2 )
261 - zlib? ( >=sys-libs/zlib-1.1.4 )
262 - elf? ( dev-libs/elfutils )
263 - python? (
264 - dev-python/setuptools[${PYTHON_USEDEP}]
265 - ${PYTHON_DEPS}
266 - )
267 - pci? ( sys-apps/pciutils )
268 - lm_sensors? ( sys-apps/lm_sensors )
269 - netlink? ( dev-libs/libnl:3 )
270 - mysql? ( virtual/mysql )
271 - perl? ( <dev-lang/perl-5.24.0:= )
272 -"
273 -DEPEND="
274 - ${COMMON_DEPEND}
275 - doc? ( app-doc/doxygen )
276 -"
277 -RDEPEND="
278 - ${COMMON_DEPEND}
279 - perl? (
280 - X? ( dev-perl/Tk )
281 - !minimal? ( dev-perl/TermReadKey )
282 - )
283 - selinux? ( sec-policy/selinux-snmp )
284 -"
285 -
286 -REQUIRED_USE="
287 - python? ( ${PYTHON_REQUIRED_USE} )
288 - rpm? ( bzip2 zlib )
289 -"
290 -
291 -RESTRICT=test
292 -
293 -pkg_setup() {
294 - use python && python-single-r1_pkg_setup
295 -}
296 -
297 -src_prepare() {
298 - # snmpconf generates config files with proper selinux context
299 - use selinux && epatch "${FILESDIR}"/${PN}-5.1.2-snmpconf-selinux.patch
300 -
301 - epatch "${WORKDIR}"/patches/*.patch
302 -
303 - epatch_user
304 -
305 - eautoconf
306 -}
307 -
308 -src_configure() {
309 - # keep this in the same line, configure.ac arguments are passed down to config.h
310 - local mibs="host ucd-snmp/dlmod ucd-snmp/diskio ucd-snmp/extensible mibII/mta_sendmail smux etherlike-mib/dot3StatsTable"
311 - use lm_sensors && mibs="${mibs} ucd-snmp/lmsensorsMib"
312 -
313 - econf \
314 - $(use_enable !ssl internal-md5) \
315 - $(use_enable ipv6) \
316 - $(use_enable mfd-rewrites) \
317 - $(use_enable perl embedded-perl) \
318 - $(use_enable ucd-compat ucd-snmp-compatibility) \
319 - $(use_with bzip2) \
320 - $(use_with elf) \
321 - $(use_with mysql) \
322 - $(use_with netlink nl) \
323 - $(use_with pci) \
324 - $(use_with perl perl-modules INSTALLDIRS=vendor) \
325 - $(use_with python python-modules) \
326 - $(use_with rpm) \
327 - $(use_with ssl openssl) \
328 - $(use_with tcpd libwrap) \
329 - $(use_with zlib) \
330 - --enable-shared --disable-static \
331 - --with-default-snmp-version="3" \
332 - --with-install-prefix="${D}" \
333 - --with-ldflags="${LDFLAGS}" \
334 - --with-logfile="/var/log/net-snmpd.log" \
335 - --with-mib-modules="${mibs}" \
336 - --with-persistent-directory="/var/lib/net-snmp" \
337 - --with-sys-contact="root@Unknown" \
338 - --with-sys-location="Unknown"
339 -}
340 -
341 -src_compile() {
342 - emake \
343 - OTHERLDFLAGS="${LDFLAGS}" \
344 - sedscript all
345 -
346 - use doc && emake docsdox
347 -}
348 -
349 -src_install () {
350 - # bug #317965
351 - emake -j1 DESTDIR="${D}" install
352 -
353 - if use perl ; then
354 - perl_delete_localpod
355 - if ! use X; then
356 - rm "${D}"/usr/bin/tkmib || die
357 - fi
358 - else
359 - rm -f \
360 - "${D}"/usr/bin/fixproc \
361 - "${D}"/usr/bin/ipf-mod.pl \
362 - "${D}"/usr/bin/mib2c \
363 - "${D}"/usr/bin/net-snmp-cert \
364 - "${D}"/usr/bin/snmp-bridge-mib \
365 - "${D}"/usr/bin/snmpcheck \
366 - "${D}"/usr/bin/snmpconf \
367 - "${D}"/usr/bin/tkmib \
368 - "${D}"/usr/bin/traptoemail \
369 - "${D}"/usr/share/snmp/mib2c.perl.conf \
370 - "${D}"/usr/share/snmp/snmp_perl_trapd.pl \
371 - || die
372 - fi
373 -
374 - dodoc AGENT.txt ChangeLog FAQ INSTALL NEWS PORTING README* TODO
375 - newdoc EXAMPLE.conf.def EXAMPLE.conf
376 -
377 - use doc && dohtml docs/html/*
378 -
379 - keepdir /var/lib/net-snmp
380 -
381 - newinitd "${FILESDIR}"/snmpd.init.2 snmpd
382 - newconfd "${FILESDIR}"/snmpd.conf snmpd
383 -
384 - newinitd "${FILESDIR}"/snmptrapd.init.2 snmptrapd
385 - newconfd "${FILESDIR}"/snmptrapd.conf snmptrapd
386 -
387 - systemd_dounit "${FILESDIR}"/snmpd.service
388 - systemd_dounit "${FILESDIR}"/snmptrapd.service
389 -
390 - insinto /etc/snmp
391 - newins "${S}"/EXAMPLE.conf snmpd.conf.example
392 -
393 - # Remove everything not required for an agent.
394 - # Keep only the snmpd, snmptrapd, MIBs, headers and libraries.
395 - if use minimal; then
396 - rm -rf \
397 - "${D}"/**/*.pl \
398 - "${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} \
399 - "${D}"/usr/share/snmp/*.conf \
400 - "${D}"/usr/share/snmp/snmpconf-data \
401 - || die
402 - fi
403 -}
404
405 diff --git a/net-analyzer/net-snmp/net-snmp-5.7.3_pre5-r1.ebuild b/net-analyzer/net-snmp/net-snmp-5.7.3_pre5-r1.ebuild
406 deleted file mode 100644
407 index d9d3bb2..0000000
408 --- a/net-analyzer/net-snmp/net-snmp-5.7.3_pre5-r1.ebuild
409 +++ /dev/null
410 @@ -1,162 +0,0 @@
411 -# Copyright 1999-2016 Gentoo Foundation
412 -# Distributed under the terms of the GNU General Public License v2
413 -# $Id$
414 -
415 -EAPI=5
416 -PYTHON_COMPAT=( python2_7 )
417 -DISTUTILS_SINGLE_IMPL=yesplz
418 -DISTUTILS_OPTIONAL=yesplz
419 -WANT_AUTOMAKE=none
420 -PATCHSET=1
421 -
422 -inherit autotools distutils-r1 eutils perl-module systemd
423 -
424 -DESCRIPTION="Software for generating and retrieving SNMP data"
425 -HOMEPAGE="http://net-snmp.sourceforge.net/"
426 -SRC_URI="
427 - mirror://sourceforge/${PN}/${PN}/${PV/_pre*/}-pre-releases/${P/_pre*/}.${PV/*_}.tar.gz
428 - https://dev.gentoo.org/~jer/${PN}-5.7.3-patches-${PATCHSET}.tar.xz
429 -"
430 -
431 -S=${WORKDIR}/${P/_/.}
432 -
433 -# GPL-2 for the init scripts
434 -LICENSE="HPND BSD GPL-2"
435 -SLOT="0"
436 -KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
437 -IUSE="bzip2 doc elf ipv6 mfd-rewrites minimal perl python rpm selinux ssl tcpd X zlib lm_sensors ucd-compat pci netlink mysql"
438 -
439 -COMMON="ssl? ( >=dev-libs/openssl-0.9.6d )
440 - tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
441 - rpm? (
442 - app-arch/rpm
443 - dev-libs/popt
444 - )
445 - bzip2? ( app-arch/bzip2 )
446 - zlib? ( >=sys-libs/zlib-1.1.4 )
447 - elf? ( dev-libs/elfutils )
448 - python? (
449 - dev-python/setuptools[${PYTHON_USEDEP}]
450 - ${PYTHON_DEPS}
451 - )
452 - pci? ( sys-apps/pciutils )
453 - lm_sensors? ( sys-apps/lm_sensors )
454 - netlink? ( dev-libs/libnl:3 )
455 - mysql? ( virtual/mysql )"
456 -
457 -RDEPEND="${COMMON}
458 - perl? (
459 - X? ( dev-perl/Tk )
460 - !minimal? ( dev-perl/TermReadKey )
461 - )
462 - selinux? ( sec-policy/selinux-snmp )
463 -"
464 -
465 -# Dependency on autoconf due to bug #225893
466 -DEPEND="${COMMON}
467 - >=sys-apps/sed-4
468 - doc? ( app-doc/doxygen )"
469 -
470 -REQUIRED_USE="
471 - python? ( ${PYTHON_REQUIRED_USE} )
472 - rpm? ( bzip2 zlib )
473 -"
474 -
475 -RESTRICT=test
476 -
477 -pkg_setup() {
478 - use python && python-single-r1_pkg_setup
479 -}
480 -
481 -src_prepare() {
482 - # snmpconf generates config files with proper selinux context
483 - use selinux && epatch "${FILESDIR}"/${PN}-5.1.2-snmpconf-selinux.patch
484 -
485 - epatch "${WORKDIR}"/patches/*.patch
486 -
487 - epatch_user
488 -
489 - eautoconf
490 -}
491 -
492 -src_configure() {
493 - # keep this in the same line, configure.ac arguments are passed down to config.h
494 - local mibs="host ucd-snmp/dlmod ucd-snmp/diskio ucd-snmp/extensible mibII/mta_sendmail smux"
495 - use lm_sensors && mibs="${mibs} ucd-snmp/lmsensorsMib"
496 -
497 - econf \
498 - $(use_enable !ssl internal-md5) \
499 - $(use_enable ipv6) \
500 - $(use_enable mfd-rewrites) \
501 - $(use_enable perl embedded-perl) \
502 - $(use_enable ucd-compat ucd-snmp-compatibility) \
503 - $(use_with bzip2) \
504 - $(use_with elf) \
505 - $(use_with mysql) \
506 - $(use_with netlink nl) \
507 - $(use_with pci) \
508 - $(use_with perl perl-modules INSTALLDIRS=vendor) \
509 - $(use_with python python-modules) \
510 - $(use_with rpm) \
511 - $(use_with ssl openssl) \
512 - $(use_with tcpd libwrap) \
513 - $(use_with zlib) \
514 - --enable-shared --disable-static \
515 - --with-default-snmp-version="3" \
516 - --with-install-prefix="${D}" \
517 - --with-ldflags="${LDFLAGS}" \
518 - --with-logfile="/var/log/net-snmpd.log" \
519 - --with-mib-modules="${mibs}" \
520 - --with-persistent-directory="/var/lib/net-snmp" \
521 - --with-sys-contact="root@Unknown" \
522 - --with-sys-location="Unknown"
523 -}
524 -
525 -src_compile() {
526 - emake \
527 - OTHERLDFLAGS="${LDFLAGS}" \
528 - sedscript all
529 -
530 - use doc && emake docsdox
531 -}
532 -
533 -src_install () {
534 - # bug #317965
535 - emake -j1 DESTDIR="${D}" install
536 -
537 - if use perl ; then
538 - perl_delete_localpod
539 - use X || rm -f "${D}"/usr/bin/tkmib
540 - else
541 - rm -f "${D}"/usr/bin/mib2c "${D}"/usr/bin/snmpcheck "${D}"/usr/bin/tkmib
542 - fi
543 -
544 - dodoc AGENT.txt ChangeLog FAQ INSTALL NEWS PORTING README* TODO
545 - newdoc EXAMPLE.conf.def EXAMPLE.conf
546 -
547 - use doc && dohtml docs/html/*
548 -
549 - keepdir /var/lib/net-snmp
550 -
551 - newinitd "${FILESDIR}"/snmpd.init.2 snmpd
552 - newconfd "${FILESDIR}"/snmpd.conf snmpd
553 -
554 - newinitd "${FILESDIR}"/snmptrapd.init.2 snmptrapd
555 - newconfd "${FILESDIR}"/snmptrapd.conf snmptrapd
556 -
557 - systemd_dounit "${FILESDIR}"/snmpd.service
558 - systemd_dounit "${FILESDIR}"/snmptrapd.service
559 -
560 - insinto /etc/snmp
561 - newins "${S}"/EXAMPLE.conf snmpd.conf.example
562 -
563 - # Remove everything not required for an agent.
564 - # Keep only the snmpd, snmptrapd, MIBs, headers and libraries.
565 - if use minimal; then
566 - rm -rf \
567 - "${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} \
568 - "${D}"/usr/share/snmp/snmpconf-data \
569 - "${D}"/usr/share/snmp/*.conf \
570 - "${D}"/**/*.pl
571 - fi
572 -}