Gentoo Archives: gentoo-commits

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