Gentoo Archives: gentoo-commits

From: "Martin Jackson (mjolnir)" <mjolnir@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/net-snmp: ChangeLog net-snmp-5.4-r1.ebuild
Date: Thu, 08 Nov 2007 12:51:22
Message-Id: E1Iq6qm-00013X-2J@stork.gentoo.org
1 mjolnir 07/11/08 12:51:12
2
3 Modified: ChangeLog
4 Added: net-snmp-5.4-r1.ebuild
5 Log:
6 Add patch and bump net-snmp-5.4 for 198346
7 (Portage version: 2.1.3.16)
8
9 Revision Changes Path
10 1.155 net-analyzer/net-snmp/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/net-snmp/ChangeLog?rev=1.155&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/net-snmp/ChangeLog?rev=1.155&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/net-snmp/ChangeLog?r1=1.154&r2=1.155
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/ChangeLog,v
19 retrieving revision 1.154
20 retrieving revision 1.155
21 diff -u -r1.154 -r1.155
22 --- ChangeLog 7 Sep 2007 03:57:29 -0000 1.154
23 +++ ChangeLog 8 Nov 2007 12:51:11 -0000 1.155
24 @@ -1,6 +1,12 @@
25 # ChangeLog for net-analyzer/net-snmp
26 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/ChangeLog,v 1.154 2007/09/07 03:57:29 mjolnir Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/ChangeLog,v 1.155 2007/11/08 12:51:11 mjolnir Exp $
29 +
30 + 08 Nov 2007; Martin Jackson <mjolnir@g.o>
31 + +files/net-snmp-maxreps.patch, +net-snmp-5.4-r1.ebuild:
32 + Add maxreps patch from upstream, to fix #198346
33 +
34 +*net-snmp-5.4-r1 (07 Nov 2007)
35
36 07 Sep 2007; Martin Jackson <mjolnir@g.o> net-snmp-5.4.1-r1.ebuild:
37 Add dep on setuptools to fix #191504
38
39
40
41 1.1 net-analyzer/net-snmp/net-snmp-5.4-r1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/net-snmp/net-snmp-5.4-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/net-snmp/net-snmp-5.4-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: net-snmp-5.4-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2007 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/net-snmp-5.4-r1.ebuild,v 1.1 2007/11/08 12:51:11 mjolnir Exp $
51
52 inherit fixheadtails flag-o-matic perl-module
53
54 DESCRIPTION="Software for generating and retrieving SNMP data"
55 HOMEPAGE="http://net-snmp.sourceforge.net/"
56 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
57
58 LICENSE="as-is BSD"
59 SLOT="0"
60 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
61 IUSE="diskio doc elf ipv6 lm_sensors mfd-rewrites minimal perl rpm selinux smux ssl tcpd X sendmail"
62
63 DEPEND="ssl? ( >=dev-libs/openssl-0.9.6d )
64 tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
65 rpm? (
66 app-arch/rpm
67 dev-libs/popt
68 app-arch/bzip2
69 >=sys-libs/zlib-1.1.4
70 )
71 elf? ( dev-libs/elfutils )
72 lm_sensors? ( sys-apps/lm_sensors )"
73
74 RDEPEND="${DEPEND}
75 perl? (
76 X? ( dev-perl/perl-tk )
77 !minimal? ( dev-perl/TermReadKey )
78 )
79 selinux? ( sec-policy/selinux-snmpd )"
80
81 DEPEND="${DEPEND}
82 >=sys-apps/sed-4
83 doc? ( app-doc/doxygen )"
84
85 src_unpack() {
86 unpack ${A}
87 cd "${S}"
88
89 epatch "${FILESDIR}"/${P}-makefile.patch
90
91 # For #198346 - from upstream. Commited 5/7/2007, so 5.4.1+ not affected
92 epatch "${FILESDIR}"/${PN}-maxreps.patch
93
94 # The lm_sensors patch has a memory leak
95 # If you can help, please attach a patch to bug 109785
96
97 # if use lm_sensors; then
98 # if use x86 || use amd64; then
99 # epatch "${FILESDIR}"/${PN}-lm_sensors.patch
100 # else
101 # eerror "Unfortunatly you are trying to enable lm_sensors support for an unsupported arch."
102 # eerror "please check the availability of sys-apps/lm_sensors - if it is available on"
103 # eerror "your arch, please file a bug about this."
104 # die "lm_sensors patch error: unsupported arch."
105 # fi
106 # fi
107
108 # fix access violation in make check
109 sed -i -e 's/\(snmpd.*\)-Lf/\1-l/' testing/eval_tools.sh || \
110 die "sed eval_tools.sh failed"
111 # fix path in fixproc
112 sed -i -e 's|\(database_file =.*\)/local\(.*\)$|\1\2|' local/fixproc || \
113 die "sed fixproc failed"
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
133 econf \
134 --with-install-prefix="${D}" \
135 --with-sys-location="Unknown" \
136 --with-sys-contact="root@Unknown" \
137 --with-default-snmp-version="3" \
138 --with-mib-modules="${mibs}" \
139 --with-logfile="/var/log/net-snmpd.log" \
140 --with-persistent-directory="/var/lib/net-snmp" \
141 --enable-ucd-snmp-compatibility \
142 --enable-shared \
143 --enable-as-needed \
144 $(use_enable mfd-rewrites) \
145 $(use_enable perl embedded-perl) \
146 $(use_enable ipv6) \
147 $(use_enable !ssl internal-md5) \
148 $(use_with ssl openssl) \
149 $(use_with tcpd libwrap) \
150 $(use_with rpm) \
151 $(use_with rpm bzip2) \
152 $(use_with rpm zlib) \
153 $(use_with elf) \
154 || die "econf failed"
155
156 emake -j1 || die "emake failed"
157
158 if use perl ; then
159 emake perlmodules || die "compile perl modules problem"
160 fi
161
162 if use doc ; then
163 einfo "Building HTML Documentation"
164 make docsdox || die "failed to build docs"
165 fi
166 }
167
168 src_test() {
169 cd testing
170 if ! make test ; then
171 echo
172 einfo "Don't be alarmed if a few tests FAIL."
173 einfo "This could happen for several reasons:"
174 einfo " - You don't already have a working configuration."
175 einfo " - Your ethernet interface isn't properly configured."
176 echo
177 fi
178 }
179
180 src_install () {
181 make DESTDIR="${D}" install || die "make install failed"
182
183 if use perl ; then
184 make DESTDIR="${D}" perlinstall || die "make perlinstall failed"
185 fixlocalpod
186
187 use X || rm -f "${D}/usr/bin/tkmib"
188 else
189 rm -f "${D}/usr/bin/mib2c" "${D}/usr/bin/tkmib" "${D}/usr/bin/snmpcheck"
190 fi
191
192 dodoc AGENT.txt ChangeLog FAQ INSTALL NEWS PORTING README* TODO
193 newdoc EXAMPLE.conf.def EXAMPLE.conf
194
195 use doc && dohtml docs/html/*
196
197 keepdir /etc/snmp /var/lib/net-snmp
198
199 newinitd "${FILESDIR}"/snmpd.rc7 snmpd
200 newconfd "${FILESDIR}"/snmpd.conf snmpd
201
202 newinitd "${FILESDIR}"/snmptrapd.rc7 snmptrapd
203 newconfd "${FILESDIR}"/snmptrapd.conf snmptrapd
204
205 # Remove everything, keeping only the snmpd, snmptrapd, MIBs, libs, and includes.
206 if use minimal; then
207 elog "USE=minimal is set. Cleaning up excess cruft for a embedded/minimal/server only install."
208 rm -rf
209 "${D}"/usr/bin/{encode_keychange,snmp{get,getnext,set,usm,walk,bulkwalk,table,trap,bulkget,translate,status,delta,test,df,vacm,netstat,inform,snmpcheck}}
210 rm -rf "${D}"/usr/share/snmp/snmpconf-data "${D}"/usr/share/snmp/*.conf
211 rm -rf "${D}"/usr/bin/{fixproc,traptoemail} "${D}"/usr/bin/snmpc{heck,onf}
212 find "${D}" -name '*.pl' -exec rm -f '{}' \;
213 use ipv6 || rm -rf "${D}"/usr/share/snmp/mibs/IPV6*
214 fi
215
216 # bug 113788, install example config
217 insinto /etc/snmp
218 newins "${S}"/EXAMPLE.conf snmpd.conf.example
219 }
220
221 pkg_postinst() {
222 elog "An example configuration file has been installed in"
223 elog "/etc/snmp/snmpd.conf.example."
224 }
225
226
227
228 --
229 gentoo-commits@g.o mailing list