[arch-commits] Commit in nmap/trunk (PKGBUILD)

Jan Steffens heftig at archlinux.org
Thu Feb 9 15:41:24 EST 2012


    Date: Thursday, February 9, 2012 @ 15:41:23
  Author: heftig
Revision: 149734

Rebuild with libpcap

Modified:
  nmap/trunk/PKGBUILD

----------+
 PKGBUILD |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-02-09 20:35:06 UTC (rev 149733)
+++ PKGBUILD	2012-02-09 20:41:23 UTC (rev 149734)
@@ -4,7 +4,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"
@@ -15,6 +15,7 @@
 optdepends=('pygtk: gui for nmap')
 options=('!makeflags')
 source=(http://nmap.org/dist/${pkgname}-${pkgver}.tar.bz2)
+md5sums=('0b80d2cb92ace5ebba8095a4c2850275')
 
 build() {
   cd ${srcdir}/${pkgname}-${pkgver}
@@ -22,6 +23,11 @@
   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
@@ -37,5 +43,3 @@
   # install custom GPL2 license
   install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
 }
-
-md5sums=('0b80d2cb92ace5ebba8095a4c2850275')



More information about the arch-commits mailing list