1 |
jer 14/04/30 05:02:41 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: net-snmp-5.7.3_pre3.ebuild |
5 |
Removed: net-snmp-5.7.2.1-r1.ebuild |
6 |
Log: |
7 |
Version bump (bug #509110). |
8 |
|
9 |
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A792A613) |
10 |
|
11 |
Revision Changes Path |
12 |
1.276 net-analyzer/net-snmp/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/net-snmp/ChangeLog?rev=1.276&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/net-snmp/ChangeLog?rev=1.276&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/net-snmp/ChangeLog?r1=1.275&r2=1.276 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/ChangeLog,v |
21 |
retrieving revision 1.275 |
22 |
retrieving revision 1.276 |
23 |
diff -u -r1.275 -r1.276 |
24 |
--- ChangeLog 23 Apr 2014 15:43:35 -0000 1.275 |
25 |
+++ ChangeLog 30 Apr 2014 05:02:41 -0000 1.276 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for net-analyzer/net-snmp |
28 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/ChangeLog,v 1.275 2014/04/23 15:43:35 jer Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/ChangeLog,v 1.276 2014/04/30 05:02:41 jer Exp $ |
31 |
+ |
32 |
+*net-snmp-5.7.3_pre3 (30 Apr 2014) |
33 |
+ |
34 |
+ 30 Apr 2014; Jeroen Roovers <jer@g.o> -net-snmp-5.7.2.1-r1.ebuild, |
35 |
+ +net-snmp-5.7.3_pre3.ebuild: |
36 |
+ Version bump (bug #509110). |
37 |
|
38 |
*net-snmp-5.7.2.1-r1 (23 Apr 2014) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 net-analyzer/net-snmp/net-snmp-5.7.3_pre3.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/net-snmp/net-snmp-5.7.3_pre3.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/net-snmp/net-snmp-5.7.3_pre3.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: net-snmp-5.7.3_pre3.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2014 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/net-snmp-5.7.3_pre3.ebuild,v 1.1 2014/04/30 05:02:41 jer Exp $ |
53 |
|
54 |
EAPI=5 |
55 |
PYTHON_COMPAT=( python2_{6,7} ) |
56 |
DISTUTILS_SINGLE_IMPL=yesplz |
57 |
DISTUTILS_OPTIONAL=yesplz |
58 |
WANT_AUTOMAKE=none |
59 |
PATCHSET=1 |
60 |
|
61 |
inherit autotools distutils-r1 eutils perl-module systemd |
62 |
|
63 |
DESCRIPTION="Software for generating and retrieving SNMP data" |
64 |
HOMEPAGE="http://net-snmp.sourceforge.net/" |
65 |
SRC_URI=" |
66 |
mirror://sourceforge/${PN}/${PN}/${PV/_pre*/}-pre-releases/${P/_pre*/}.${PV/*_}.tar.gz |
67 |
http://dev.gentoo.org/~flameeyes/${PN}/${PN}-5.7.2-patches-${PATCHSET}.tar.xz |
68 |
" |
69 |
|
70 |
S=${WORKDIR}/${P/_/.} |
71 |
|
72 |
# GPL-2 for the init scripts |
73 |
LICENSE="HPND BSD GPL-2" |
74 |
SLOT="0" |
75 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
76 |
IUSE="bzip2 doc elf ipv6 mfd-rewrites minimal perl python rpm selinux ssl tcpd X zlib lm_sensors ucd-compat pci netlink mysql" |
77 |
|
78 |
COMMON="ssl? ( >=dev-libs/openssl-0.9.6d ) |
79 |
tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) |
80 |
rpm? ( |
81 |
app-arch/rpm |
82 |
dev-libs/popt |
83 |
) |
84 |
bzip2? ( app-arch/bzip2 ) |
85 |
zlib? ( >=sys-libs/zlib-1.1.4 ) |
86 |
elf? ( dev-libs/elfutils ) |
87 |
python? ( dev-python/setuptools ${PYTHON_DEPS} ) |
88 |
pci? ( sys-apps/pciutils ) |
89 |
lm_sensors? ( sys-apps/lm_sensors ) |
90 |
netlink? ( dev-libs/libnl:1.1 ) |
91 |
mysql? ( virtual/mysql )" |
92 |
|
93 |
RDEPEND="${COMMON} |
94 |
perl? ( |
95 |
X? ( dev-perl/perl-tk ) |
96 |
!minimal? ( dev-perl/TermReadKey ) |
97 |
) |
98 |
selinux? ( sec-policy/selinux-snmp ) |
99 |
" |
100 |
|
101 |
# Dependency on autoconf due to bug #225893 |
102 |
DEPEND="${COMMON} |
103 |
>=sys-apps/sed-4 |
104 |
doc? ( app-doc/doxygen )" |
105 |
|
106 |
REQUIRED_USE="rpm? ( bzip2 zlib )" |
107 |
|
108 |
RESTRICT=test |
109 |
|
110 |
src_prepare() { |
111 |
# snmpconf generates config files with proper selinux context |
112 |
use selinux && epatch "${FILESDIR}"/${PN}-5.1.2-snmpconf-selinux.patch |
113 |
|
114 |
epatch "${WORKDIR}"/patches/*.patch |
115 |
epatch "${FILESDIR}"/${PN}-5.7.2.1-phony.patch |
116 |
|
117 |
epatch_user |
118 |
|
119 |
eautoconf |
120 |
} |
121 |
|
122 |
src_configure() { |
123 |
# keep this in the same line, configure.ac arguments are passed down to config.h |
124 |
local mibs="host ucd-snmp/dlmod ucd-snmp/diskio ucd-snmp/extensible mibII/mta_sendmail smux" |
125 |
use lm_sensors && mibs="${mibs} ucd-snmp/lmsensorsMib" |
126 |
|
127 |
econf \ |
128 |
$(use_enable !ssl internal-md5) \ |
129 |
$(use_enable ipv6) \ |
130 |
$(use_enable mfd-rewrites) \ |
131 |
$(use_enable perl embedded-perl) \ |
132 |
$(use_enable ucd-compat ucd-snmp-compatibility) \ |
133 |
$(use_with bzip2) \ |
134 |
$(use_with elf) \ |
135 |
$(use_with mysql) \ |
136 |
$(use_with netlink nl) \ |
137 |
$(use_with pci) \ |
138 |
$(use_with perl perl-modules INSTALLDIRS=vendor) \ |
139 |
$(use_with python python-modules) \ |
140 |
$(use_with rpm) \ |
141 |
$(use_with ssl openssl) \ |
142 |
$(use_with tcpd libwrap) \ |
143 |
$(use_with zlib) \ |
144 |
--enable-shared --disable-static \ |
145 |
--with-default-snmp-version="3" \ |
146 |
--with-install-prefix="${D}" \ |
147 |
--with-ldflags="${LDFLAGS}" \ |
148 |
--with-logfile="/var/log/net-snmpd.log" \ |
149 |
--with-mib-modules="${mibs}" \ |
150 |
--with-persistent-directory="/var/lib/net-snmp" \ |
151 |
--with-sys-contact="root@Unknown" \ |
152 |
--with-sys-location="Unknown" |
153 |
} |
154 |
|
155 |
src_compile() { |
156 |
emake \ |
157 |
OTHERLDFLAGS="${LDFLAGS}" \ |
158 |
sedscript all |
159 |
|
160 |
use doc && emake docsdox |
161 |
} |
162 |
|
163 |
src_install () { |
164 |
# bug #317965 |
165 |
emake -j1 DESTDIR="${D}" install |
166 |
|
167 |
if use perl ; then |
168 |
fixlocalpod |
169 |
use X || rm -f "${D}"/usr/bin/tkmib |
170 |
else |
171 |
rm -f "${D}"/usr/bin/mib2c "${D}"/usr/bin/snmpcheck "${D}"/usr/bin/tkmib |
172 |
fi |
173 |
|
174 |
dodoc AGENT.txt ChangeLog FAQ INSTALL NEWS PORTING README* TODO |
175 |
newdoc EXAMPLE.conf.def EXAMPLE.conf |
176 |
|
177 |
use doc && dohtml docs/html/* |
178 |
|
179 |
keepdir /var/lib/net-snmp |
180 |
|
181 |
newinitd "${FILESDIR}"/snmpd.init.2 snmpd |
182 |
newconfd "${FILESDIR}"/snmpd.conf snmpd |
183 |
|
184 |
newinitd "${FILESDIR}"/snmptrapd.init.2 snmptrapd |
185 |
newconfd "${FILESDIR}"/snmptrapd.conf snmptrapd |
186 |
|
187 |
systemd_dounit "${FILESDIR}"/snmpd.service |
188 |
systemd_dounit "${FILESDIR}"/snmptrapd.service |
189 |
|
190 |
insinto /etc/snmp |
191 |
newins "${S}"/EXAMPLE.conf snmpd.conf.example |
192 |
|
193 |
# Remove everything not required for an agent. |
194 |
# Keep only the snmpd, snmptrapd, MIBs, headers and libraries. |
195 |
if use minimal; then |
196 |
rm -rf \ |
197 |
"${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} \ |
198 |
"${D}"/usr/share/snmp/snmpconf-data \ |
199 |
"${D}"/usr/share/snmp/*.conf \ |
200 |
"${D}"/**/*.pl |
201 |
fi |
202 |
} |