diff options
author | Patrick McLean <chutzpah@gentoo.org> | 2006-11-01 21:15:57 +0000 |
---|---|---|
committer | Patrick McLean <chutzpah@gentoo.org> | 2006-11-01 21:15:57 +0000 |
commit | 09eb17bf839d74fa4a0fecbf3a11a5520c6f5d5d (patch) | |
tree | 6773a97056f637b329a84be8f5bdcabd42826405 /net-analyzer/pchar | |
parent | Stable on x86 wrt bug #148913. (diff) | |
download | gentoo-2-09eb17bf839d74fa4a0fecbf3a11a5520c6f5d5d.tar.gz gentoo-2-09eb17bf839d74fa4a0fecbf3a11a5520c6f5d5d.tar.bz2 gentoo-2-09eb17bf839d74fa4a0fecbf3a11a5520c6f5d5d.zip |
Re-add snmp USE flag (bug #152701). Thanks to Francisco Javier <ffelix@sshinf.com> for the patch.
(Portage version: 2.1.2_pre3-r7)
Diffstat (limited to 'net-analyzer/pchar')
-rw-r--r-- | net-analyzer/pchar/ChangeLog | 7 | ||||
-rw-r--r-- | net-analyzer/pchar/files/pchar-1.5-snmp.patch | 24 | ||||
-rw-r--r-- | net-analyzer/pchar/pchar-1.5.ebuild | 16 |
3 files changed, 44 insertions, 3 deletions
diff --git a/net-analyzer/pchar/ChangeLog b/net-analyzer/pchar/ChangeLog index f1053a956143..66dcc86b3b95 100644 --- a/net-analyzer/pchar/ChangeLog +++ b/net-analyzer/pchar/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-analyzer/pchar # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/pchar/ChangeLog,v 1.2 2006/03/24 17:46:30 chutzpah Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/pchar/ChangeLog,v 1.3 2006/11/01 21:15:57 chutzpah Exp $ + + 01 Nov 2006; Patrick McLean <chutzpah@gentoo.org> + +files/pchar-1.5-snmp.patch, pchar-1.5.ebuild: + Re-add snmp USE flag (bug #152701). Thanks to Francisco Javier + <ffelix@sshinf.com> for the patch. 24 Mar 2006; Patrick McLean <chutzpah@gentoo.org> pchar-1.5.ebuild: Dropped snmp USE flag to fix bug #127389. diff --git a/net-analyzer/pchar/files/pchar-1.5-snmp.patch b/net-analyzer/pchar/files/pchar-1.5-snmp.patch new file mode 100644 index 000000000000..9ebfbad39eb0 --- /dev/null +++ b/net-analyzer/pchar/files/pchar-1.5-snmp.patch @@ -0,0 +1,24 @@ +--- GetIfInfo.h.old 2005-02-12 21:32:18.000000000 +0100 ++++ GetIfInfo.h 2006-09-22 11:08:44.000000000 +0200 +@@ -17,7 +17,7 @@ + bool IsValid(void); + + const char * GetDescription(void) const; +- const char * GetIfInfo::GetName(void) const; ++ const char * GetName(void) const; + const char * GetContact(void) const; + const char * GetLocation(void) const; + const char * GetIfDescription(void) const; +--- configure.in.old 2005-02-12 21:32:18.000000000 +0100 ++++ configure.in 2006-10-24 23:08:38.000000000 +0200 +@@ -128,8 +128,8 @@ + LDFLAGS="-L$with_snmp/lib $LDFLAGS" + CPPFLAGS="-I$with_snmp/include $CPPFLAGS" + fi +- AC_CHECK_LIB(crypto, des_cbc_encrypt) +- AC_CHECK_LIB(snmp, snmp_sess_init,,,-lcrypto) ++ AC_CHECK_LIB(crypto, DES_cbc_encrypt) ++ AC_CHECK_LIB(snmp, snmp_sess_init) + fi + + dnl pcap support if desired. If the user enabled --with-pcap, diff --git a/net-analyzer/pchar/pchar-1.5.ebuild b/net-analyzer/pchar/pchar-1.5.ebuild index 4e8f0673f851..5ab15ff66428 100644 --- a/net-analyzer/pchar/pchar-1.5.ebuild +++ b/net-analyzer/pchar/pchar-1.5.ebuild @@ -1,6 +1,8 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/pchar/pchar-1.5.ebuild,v 1.2 2006/03/24 17:46:30 chutzpah Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/pchar/pchar-1.5.ebuild,v 1.3 2006/11/01 21:15:57 chutzpah Exp $ + +inherit eutils autotools DESCRIPTION="Internet bandwidth, latency, and loss of links analyzer." HOMEPAGE="http://www.kitchenlab.org/www/bmah/Software/pchar/" @@ -9,12 +11,22 @@ SRC_URI="http://www.kitchenlab.org/www/bmah/Software/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="ipv6 pcap" +IUSE="ipv6 pcap snmp" DEPEND=">=dev-libs/openssl-0.9.7 + snmp? ( net-analyzer/net-snmp ) pcap? ( net-libs/libpcap )" +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${P}-snmp.patch +} + src_compile() { + eautoreconf + econf --without-suid \ $(use_with ipv6) \ $(use_with snmp snmp /usr/lib) \ |