diff options
author | Jeroen Roovers <jer@gentoo.org> | 2010-12-10 17:16:07 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2010-12-10 17:16:07 +0000 |
commit | 0b998774bae46e835c012b8cee2ccc3d1aea10e0 (patch) | |
tree | cd3f30f7b9f4c901fa8848e3bb1c906706a40ecf /net-analyzer/ngrep | |
parent | Version bump. Remove old. (diff) | |
download | gentoo-2-0b998774bae46e835c012b8cee2ccc3d1aea10e0.tar.gz gentoo-2-0b998774bae46e835c012b8cee2ccc3d1aea10e0.tar.bz2 gentoo-2-0b998774bae46e835c012b8cee2ccc3d1aea10e0.zip |
Correct libpcap include directory (bug #299040 by Hartmut Figge).
(Portage version: 2.1.9.25/cvs/Linux i686)
Diffstat (limited to 'net-analyzer/ngrep')
-rw-r--r-- | net-analyzer/ngrep/ChangeLog | 7 | ||||
-rw-r--r-- | net-analyzer/ngrep/ngrep-1.45-r3.ebuild | 46 |
2 files changed, 52 insertions, 1 deletions
diff --git a/net-analyzer/ngrep/ChangeLog b/net-analyzer/ngrep/ChangeLog index ab05d6cfc1b2..66fb0269bbc6 100644 --- a/net-analyzer/ngrep/ChangeLog +++ b/net-analyzer/ngrep/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-analyzer/ngrep # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ngrep/ChangeLog,v 1.62 2010/05/26 16:31:12 abcd Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ngrep/ChangeLog,v 1.63 2010/12/10 17:16:07 jer Exp $ + +*ngrep-1.45-r3 (10 Dec 2010) + + 10 Dec 2010; Jeroen Roovers <jer@gentoo.org> +ngrep-1.45-r3.ebuild: + Correct libpcap include directory (bug #299040 by Hartmut Figge). 26 May 2010; Jonathan Callen <abcd@gentoo.org> ngrep-1.45-r2.ebuild, +files/ngrep-1.45-prefix.patch: diff --git a/net-analyzer/ngrep/ngrep-1.45-r3.ebuild b/net-analyzer/ngrep/ngrep-1.45-r3.ebuild new file mode 100644 index 000000000000..e63b9b1faa51 --- /dev/null +++ b/net-analyzer/ngrep/ngrep-1.45-r3.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ngrep/ngrep-1.45-r3.ebuild,v 1.1 2010/12/10 17:16:07 jer Exp $ + +EAPI="3" + +inherit eutils autotools + +DESCRIPTION="A grep for network layers" +HOMEPAGE="http://ngrep.sourceforge.net/" +SRC_URI="mirror://sourceforge/ngrep/${P}.tar.bz2" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="ipv6 pcre" + +DEPEND="net-libs/libpcap + pcre? ( dev-libs/libpcre )" + +src_prepare() { + # Remove bundled libpcre to avoid occasional linking with them + rm -rf pcre-5.0 + epatch "${FILESDIR}/${P}-build-fixes.patch" + epatch "${FILESDIR}/${P}-setlocale.patch" + epatch "${FILESDIR}/${P}-prefix.patch" + eautoreconf +} + +src_configure() { + econf \ + --with-dropprivs-user=ngrep \ + --with-pcap-includes="${EPREFIX}"/usr/include/pcap \ + $(use_enable pcre) \ + $(use_enable ipv6) +} + +pkg_preinst() { + enewgroup ngrep + enewuser ngrep -1 -1 -1 ngrep +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc doc/*.txt +} |