/[gentoo-x86]/net-analyzer/ngrep/ngrep-1.45-r3.ebuild
Gentoo

Contents of /net-analyzer/ngrep/ngrep-1.45-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Wed Jan 16 09:39:22 2013 UTC (3 years, 8 months ago) by ulm
Branch: MAIN
Changes since 1.8: +3 -3 lines
Fix LICENSE, see LICENSE.txt, bug 452012.

(Portage version: 2.1.11.42/cvs/Linux x86_64, signed Manifest commit with key E7BE08CA7DC6EA25)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/ngrep/ngrep-1.45-r3.ebuild,v 1.8 2012/06/12 02:56:28 zmedico Exp $
4
5 EAPI="3"
6
7 inherit autotools eutils user
8
9 DESCRIPTION="A grep for network layers"
10 HOMEPAGE="http://ngrep.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/ngrep/${P}.tar.bz2"
12
13 LICENSE="ngrep"
14 SLOT="0"
15 KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos"
16 IUSE="ipv6 pcre"
17
18 DEPEND="net-libs/libpcap
19 pcre? ( dev-libs/libpcre )"
20 RDEPEND="${DEPEND}"
21
22 src_prepare() {
23 # Remove bundled libpcre to avoid occasional linking with them
24 rm -rf pcre-5.0
25 epatch "${FILESDIR}/${P}-build-fixes.patch"
26 epatch "${FILESDIR}/${P}-setlocale.patch"
27 epatch "${FILESDIR}/${P}-prefix.patch"
28 eautoreconf
29 }
30
31 src_configure() {
32 econf \
33 --with-dropprivs-user=ngrep \
34 --with-pcap-includes="${EPREFIX}"/usr/include/pcap \
35 $(use_enable pcre) \
36 $(use_enable ipv6)
37 }
38
39 pkg_preinst() {
40 enewgroup ngrep
41 enewuser ngrep -1 -1 -1 ngrep
42 }
43
44 src_install() {
45 emake DESTDIR="${D}" install || die "emake install failed"
46 dodoc doc/*.txt
47 }

  ViewVC Help
Powered by ViewVC 1.1.20