diff options
author | root <root@rshg054.dnsready.net> | 2012-02-25 23:15:06 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-02-25 23:15:06 +0000 |
commit | e4a5730eb358cb0d78bc022204ddccac068c2bf2 (patch) | |
tree | 8dc9d2ac6b1313cb68be1a6c8b51500397f8b225 /community/ngrep/PKGBUILD | |
parent | 299e917c17619f800f0c21cf43209065b608223f (diff) |
Sat Feb 25 23:15:06 UTC 2012
Diffstat (limited to 'community/ngrep/PKGBUILD')
-rw-r--r-- | community/ngrep/PKGBUILD | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/community/ngrep/PKGBUILD b/community/ngrep/PKGBUILD index 2b50b67f6..2bc220a0e 100644 --- a/community/ngrep/PKGBUILD +++ b/community/ngrep/PKGBUILD @@ -1,27 +1,38 @@ -# $Id: PKGBUILD 64341 2012-02-11 23:22:31Z allan $ +# $Id: PKGBUILD 66459 2012-02-25 02:54:09Z lfleischer $ # Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de> # Contributor: Eric Belanger <eric@archlinux.org> # Contributor: dorphell <dorphell@archlinux.org> pkgname=ngrep pkgver=1.45 -pkgrel=8 +pkgrel=9 pkgdesc='A grep-like utility that allows you to search for network packets on an interface.' arch=('i686' 'x86_64') url='http://ngrep.sourceforge.net/' license=('custom') -depends=('libpcap>=1.0.0') +depends=('libpcap>=1.0.0' 'pcre') # Fix build failure when using "-j" (FS#27091). options=(!makeflags) -source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2" "ngrep-fix-ipv6-support.patch") -md5sums=('bc8150331601f3b869549c94866b4f1c' '90e6dfb335bccf12615d3c468ceeb60f') -# Added patch for broken ipv6 support (FS#27225) +source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2" + 'ngrep-1.45-fix-ipv6.patch' + 'ngrep-1.45-use-system-pcre.patch') +md5sums=('bc8150331601f3b869549c94866b4f1c' + '524ee2e0d9ff3c6a262eca836ddf63ed' + 'c546da1e47d3e8bddc7678c81a22a6b7') build() { cd "${srcdir}/${pkgname}-${pkgver}" - patch -Np1 -i $srcdir/ngrep-fix-ipv6-support.patch - ./configure --prefix=/usr --with-pcap-includes=/usr/include/pcap --enable-ipv6 + # add patch for broken ipv6 support (FS#27225) + patch -Np1 -i "$srcdir/ngrep-1.45-fix-ipv6.patch" + + # use system PCRE (FS#27225) + patch -Np1 -i "$srcdir/ngrep-1.45-use-system-pcre.patch" + autoreconf + + export EXTRA_INCLUDES=$(pcre-config --cflags) + export EXTRA_LIBS=$(pcre-config --libs) + ./configure --prefix=/usr --with-pcap-includes=/usr/include/pcap --enable-ipv6 --enable-pcre make } |