author | Jan Alexander Steffens
<heftig@archlinux.org> 2012-02-09 20:41:23 UTC |
committer | Jan Alexander Steffens
<heftig@archlinux.org> 2012-02-09 20:41:23 UTC |
parent | a8ee21c915a5b13d52806056451b22a28ea79427 |
PKGBUILD | +7 | -3 |
diff --git a/PKGBUILD b/PKGBUILD index 600e2c9..cf378e3 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -3,7 +3,7 @@ pkgname=nmap pkgver=5.51 -pkgrel=2 +pkgrel=3 pkgdesc="A network exploration tool and security/port scanner" arch=('i686' 'x86_64') url="http://nmap.org" @@ -14,6 +14,7 @@ makedepends=('python2') optdepends=('pygtk: gui for nmap') options=('!makeflags') source=(http://nmap.org/dist/${pkgname}-${pkgver}.tar.bz2) +md5sums=('0b80d2cb92ace5ebba8095a4c2850275') build() { cd ${srcdir}/${pkgname}-${pkgver} @@ -21,6 +22,11 @@ build() { echo "TryExec=/usr/bin/pygtk-demo" >> zenmap/install_scripts/unix/zenmap.desktop echo "TryExec=/usr/bin/pygtk-demo" >> zenmap/install_scripts/unix/zenmap-root.desktop + # Force usage of external libpcap + # OSX bug check fails because of missing types + # autoreconf fails because our autotools are too new (?) + sed -i 's/have_libpcap=no/have_libpcap=yes/g' {.,ncat,nping}/configure + ./configure --prefix=/usr --mandir=/usr/share/man \ --libexecdir=/usr/lib make @@ -36,5 +42,3 @@ package() { # install custom GPL2 license install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE } - -md5sums=('0b80d2cb92ace5ebba8095a4c2850275')