summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2008-11-17 11:54:06 +0000
committerPeter Volkov <pva@gentoo.org>2008-11-17 11:54:06 +0000
commitda131b8ba29e38b400d479db2b0cb7c71758ab2b (patch)
tree6e7e4bef0734125d8dfebc6fa96f48f76d7fcf78 /net-analyzer/ngrep/ngrep-1.45-r2.ebuild
parentAdded -j1 to emake install as a temporary fix for parallel install problems (... (diff)
downloadgentoo-2-da131b8ba29e38b400d479db2b0cb7c71758ab2b.tar.gz
gentoo-2-da131b8ba29e38b400d479db2b0cb7c71758ab2b.tar.bz2
gentoo-2-da131b8ba29e38b400d479db2b0cb7c71758ab2b.zip
Fixed build issue with libpcap-1.0.0, bug #247128, thank Matthias Liebig for report and fix. Changed a bit patches so everything respect CC, CFLAGS and etc... Added patch from debian to make regexps respect locale.
(Portage version: 2.2_rc14/cvs/Linux 2.6.26-openvz.git-35f41f1 i686)
Diffstat (limited to 'net-analyzer/ngrep/ngrep-1.45-r2.ebuild')
-rw-r--r--net-analyzer/ngrep/ngrep-1.45-r2.ebuild45
1 files changed, 45 insertions, 0 deletions
diff --git a/net-analyzer/ngrep/ngrep-1.45-r2.ebuild b/net-analyzer/ngrep/ngrep-1.45-r2.ebuild
new file mode 100644
index 000000000000..07efb58889a1
--- /dev/null
+++ b/net-analyzer/ngrep/ngrep-1.45-r2.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ngrep/ngrep-1.45-r2.ebuild,v 1.1 2008/11/17 11:54:06 pva Exp $
+
+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"
+IUSE="ipv6 pcre"
+
+DEPEND="net-libs/libpcap
+ pcre? ( dev-libs/libpcre )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ # 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"
+ eautoreconf
+}
+
+src_compile() {
+ econf --with-dropprivs-user=ngrep \
+ --with-pcap-includes=/usr/include \
+ $(use_enable pcre) \
+ $(use_enable ipv6)
+ emake || die "emake failed"
+}
+
+pkg_preinst() {
+ enewgroup ngrep
+ enewuser ngrep -1 -1 -1 ngrep
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc doc/*.txt
+}