git » nmap.git » commit bdacb9f

upstream update

author Gaetan Bisson
2012-05-21 23:59:45 UTC
committer Gaetan Bisson
2012-05-21 23:59:45 UTC
parent e359a327afd3579a28e51dc0574a5e6919b3a363

upstream update

ChangeLog +0 -19
PKGBUILD +24 -28

diff --git a/ChangeLog b/ChangeLog
deleted file mode 100644
index f87ec48..0000000
--- a/ChangeLog
+++ /dev/null
@@ -1,19 +0,0 @@
-2012-02-22  Angel Velasquez <angvp@archlinux.org>
-	* Lua 5.2 rebuild
-
-2008-10-28  Douglas Soares de Andrade  <douglas@archlinux.org>
-
-	* Python 2.6 rebuild.
-
-2008-07-23  Hugo Doria  <hugo@archlinux.org>
-
-	* Added pygtk in optdepends: 4.68-3
-
-2008-07-09  Douglas Soares de Andrade  <douglas@archlinux.org>
-
-	* Fixing the pixmaps path for i686: 4.68
-
-2008-07-09  Douglas Soares de Andrade  <douglas@archlinux.org>
-
-	* Updated for i686: 4.68
-
diff --git a/PKGBUILD b/PKGBUILD
index 7f580e3..7a6d85c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,44 +1,40 @@
-# Maintainer: Angel Velasquez <angvp@archlinux.org>
+# Maintainer: Gaetan Bisson <bisson@archlinux.org>
+# Contributor: Angel Velasquez <angvp@archlinux.org>
 # Contributor: Hugo Doria <hugo@archlinux.org>
 
 pkgname=nmap
-pkgver=5.51
-pkgrel=4
-pkgdesc="A network exploration tool and security/port scanner"
+pkgver=6.00
+pkgrel=1
+pkgdesc='Utility for network discovery and security auditing'
+url='http://nmap.org/'
 arch=('i686' 'x86_64')
-url="http://nmap.org"
 license=('GPL')
-depends=('pcre' 'openssl' 'libpcap' 'lua')
-# python is needed for zenmap
-makedepends=('python2')
-optdepends=('pygtk: gui for nmap')
 options=('!makeflags')
-source=(http://nmap.org/dist/${pkgname}-${pkgver}.tar.bz2)
-md5sums=('0b80d2cb92ace5ebba8095a4c2850275')
+optdepends=('pygtk: zenmap')
+makedepends=('pygtk')
+depends=('pcre' 'openssl' 'libpcap' 'lua')
+source=("http://nmap.org/dist/${pkgname}-${pkgver}.tar.bz2")
+sha1sums=('11d8f418e31a85e5b5ad6b4cf98f3c1b5c19ddb2')
 
 build() {
-  cd ${srcdir}/${pkgname}-${pkgver}
+	cd "${srcdir}/${pkgname}-${pkgver}"
 
-  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 
+	# Show icon only if runnable; see FS#12045
+	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 \
+		--libexecdir=/usr/lib \
+		--mandir=/usr/share/man \
 
-  ./configure --prefix=/usr --mandir=/usr/share/man \
-    --libexecdir=/usr/lib
-  make
+	make
 }
 
 package() {
-  cd ${srcdir}/${pkgname}-${pkgver}
-  make DESTDIR="${pkgdir}" install
-
-  # remove zenmap uninstall script
-  rm "${pkgdir}/usr/bin/uninstall_zenmap"
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	make DESTDIR="${pkgdir}" install
 
-  # install custom GPL2 license
-  install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+	rm "${pkgdir}"/usr/bin/uninstall_zenmap
+	install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }