* [gentoo-commits] gentoo-x86 commit in net-analyzer/net-snmp: metadata.xml net-snmp-5.7.2_rc1.ebuild ChangeLog
@ 2012-08-20 2:41 Diego Petteno (flameeyes)
0 siblings, 0 replies; only message in thread
From: Diego Petteno (flameeyes) @ 2012-08-20 2:41 UTC (permalink / raw
To: gentoo-commits
flameeyes 12/08/20 02:41:58
Modified: metadata.xml net-snmp-5.7.2_rc1.ebuild ChangeLog
Log:
Replace most seds with full-fledged, targeted patches. Add an ucd-compat USE flag for those packages still using ucd-snmp.
(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)
Revision Changes Path
1.7 net-analyzer/net-snmp/metadata.xml
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/net-snmp/metadata.xml?rev=1.7&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/net-snmp/metadata.xml?rev=1.7&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/net-snmp/metadata.xml?r1=1.6&r2=1.7
Index: metadata.xml
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/metadata.xml,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- metadata.xml 19 Aug 2012 02:23:59 -0000 1.6
+++ metadata.xml 20 Aug 2012 02:41:58 -0000 1.7
@@ -10,5 +10,9 @@
<flag name='rpm'>Enable the rpm snmp probing</flag>
<flag name='sendmail'>Enable sendmail statistics monitoring</flag>
<flag name='smux'>Enable the smux MIBS module</flag>
+ <flag name='ucd-compat'>
+ Build UCD compatibility library. Increases significantly the
+ install size.
+ </flag>
</use>
</pkgmetadata>
1.3 net-analyzer/net-snmp/net-snmp-5.7.2_rc1.ebuild
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/net-snmp/net-snmp-5.7.2_rc1.ebuild?rev=1.3&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/net-snmp/net-snmp-5.7.2_rc1.ebuild?rev=1.3&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/net-snmp/net-snmp-5.7.2_rc1.ebuild?r1=1.2&r2=1.3
Index: net-snmp-5.7.2_rc1.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/net-snmp-5.7.2_rc1.ebuild,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- net-snmp-5.7.2_rc1.ebuild 20 Aug 2012 02:10:11 -0000 1.2
+++ net-snmp-5.7.2_rc1.ebuild 20 Aug 2012 02:41:58 -0000 1.3
@@ -1,23 +1,26 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/net-snmp-5.7.2_rc1.ebuild,v 1.2 2012/08/20 02:10:11 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/net-snmp-5.7.2_rc1.ebuild,v 1.3 2012/08/20 02:41:58 flameeyes Exp $
EAPI=4
PYTHON_DEPEND="python? 2"
-inherit eutils perl-module python
+PATCHSET=1
+
+inherit eutils perl-module python autotools
MY_P="${P/_rc/.rc}"
DESCRIPTION="Software for generating and retrieving SNMP data"
HOMEPAGE="http://net-snmp.sourceforge.net/"
-SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz
+ http://dev.gentoo.org/~flameeyes/${PN}/${MY_P}-patches-${PATCHSET}.tar.xz"
# GPL-2 for the init scripts
LICENSE="as-is BSD GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-IUSE="bzip2 doc elf ipv6 mfd-rewrites minimal perl python rpm selinux ssl tcpd X zlib lm_sensors"
+IUSE="bzip2 doc elf ipv6 mfd-rewrites minimal perl python rpm selinux ssl tcpd X zlib lm_sensors ucd-compat"
COMMON="ssl? ( >=dev-libs/openssl-0.9.6d )
tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
@@ -42,7 +45,6 @@
# Dependency on autoconf due to bug #225893
DEPEND="${COMMON}
- >=sys-devel/autoconf-2.61-r2
>=sys-apps/sed-4
doc? ( app-doc/doxygen )"
@@ -60,43 +62,11 @@
}
src_prepare() {
- # fix access violation in make check
- sed -i \
- -e 's/\(snmpd.*\)-Lf/\1-l/' \
- testing/fulltests/support/simple_eval_tools.sh || die "sed eval_tools.sh failed"
-
- # fix path in fixproc
- sed -i \
- -e 's|\(database_file =.*\)/local\(.*\)$|\1\2|' \
- local/fixproc || die "sed fixproc failed"
-
- if use python ; then
- PYTHON_DIR="$(python_get_sitedir)"
- sed -i -e "s:\(install --basedir=\$\$dir\):\1 --root='${D}':" Makefile.in || \
- die "sed python failed"
- fi
-
# snmpconf generates config files with proper selinux context
use selinux && epatch "${FILESDIR}"/${PN}-5.1.2-snmpconf-selinux.patch
- # remove CFLAGS from net-snmp-config script (bug #257622):
- sed -i \
- -e 's|@CFLAGS@ ||g' \
- -e 's|@LDFLAGS@ ||g' \
- net-snmp-config.in || die "sedding CFLAGS failed"
-
- # Respect LDFLAGS
- sed -i Makefile.top \
- -e '/^LIB_LD_CMD/{s|$(CFLAGS)|& $(LDFLAGS)|g}' \
- || die "sed LDFLAGS failed"
-
- # Fix version number:
- sed -i \
- -e "s|PACKAGE_VERSION|\"${PV}\"|g" \
- snmplib/snmp_version.c || die "sedding version failed"
-
- # Fix toolchain quadruplet detection, bug #330353, #432004
- epatch "${FILESDIR}"/${P}-hppa.patch
+ epatch "${WORKDIR}"/patches/*.patch
+ eautoconf
}
src_configure() {
@@ -104,6 +74,8 @@
local mibs="host ucd-snmp/dlmod ucd-snmp/diskio ucd-snmp/extensible mibII/mta_sendmail smux"
use lm_sensors && mibs="${mibs} ucd-snmp/lmsensorsMib"
+ use python && export PYTHON_DIR="$(python_get_sitedir)"
+
econf \
--with-install-prefix="${D}" \
--with-sys-location="Unknown" \
@@ -112,7 +84,7 @@
--with-mib-modules="${mibs}" \
--with-logfile="/var/log/net-snmpd.log" \
--with-persistent-directory="/var/lib/net-snmp" \
- --disable-ucd-snmp-compatibility \
+ $(use_enable ucd-compat ucd-snmp-compatibility) \
--enable-shared --disable-static \
--with-ldflags="${LDFLAGS}" \
$(use_enable ipv6) \
1.231 net-analyzer/net-snmp/ChangeLog
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/net-snmp/ChangeLog?rev=1.231&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/net-snmp/ChangeLog?rev=1.231&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/net-snmp/ChangeLog?r1=1.230&r2=1.231
Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/ChangeLog,v
retrieving revision 1.230
retrieving revision 1.231
diff -u -r1.230 -r1.231
--- ChangeLog 20 Aug 2012 02:10:11 -0000 1.230
+++ ChangeLog 20 Aug 2012 02:41:58 -0000 1.231
@@ -1,6 +1,11 @@
# ChangeLog for net-analyzer/net-snmp
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/ChangeLog,v 1.230 2012/08/20 02:10:11 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/ChangeLog,v 1.231 2012/08/20 02:41:58 flameeyes Exp $
+
+ 20 Aug 2012; Diego E. Pettenò <flameeyes@gentoo.org> metadata.xml,
+ net-snmp-5.7.2_rc1.ebuild:
+ Replace most seds with full-fledged, targeted patches. Add an ucd-compat USE
+ flag for those packages still using ucd-snmp.
20 Aug 2012; Jeroen Roovers <jer@gentoo.org> net-snmp-5.7.2_rc1.ebuild,
+files/net-snmp-5.7.2_rc1-hppa.patch:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-08-20 2:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-20 2:41 [gentoo-commits] gentoo-x86 commit in net-analyzer/net-snmp: metadata.xml net-snmp-5.7.2_rc1.ebuild ChangeLog Diego Petteno (flameeyes)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox