summaryrefslogtreecommitdiff
path: root/extra/nmap
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-05-23 00:02:37 +0000
committerroot <root@rshg054.dnsready.net>2012-05-23 00:02:37 +0000
commitbd614ac21d2754d778a796cd5e92d1568ec8baec (patch)
tree094c785b4da8bafd835e9e319e9908b776258975 /extra/nmap
parent62e13d20ed92262c7396eff00d048ce815693e74 (diff)
Wed May 23 00:02:37 UTC 2012
Diffstat (limited to 'extra/nmap')
-rw-r--r--extra/nmap/PKGBUILD54
1 files changed, 25 insertions, 29 deletions
diff --git a/extra/nmap/PKGBUILD b/extra/nmap/PKGBUILD
index 541c4b6ca..6d64c8aa4 100644
--- a/extra/nmap/PKGBUILD
+++ b/extra/nmap/PKGBUILD
@@ -1,45 +1,41 @@
-# $Id: PKGBUILD 149962 2012-02-11 23:31:11Z allan $
-# Maintainer: Angel Velasquez <angvp@archlinux.org>
+# $Id: PKGBUILD 159344 2012-05-22 00:00:17Z bisson $
+# Maintainer: Gaetan Bisson <bisson@archlinux.org>
+# Contributor: Angel Velasquez <angvp@archlinux.org>
# Contributor: Hugo Doria <hugo@archlinux.org>
pkgname=nmap
-pkgver=5.51
-pkgrel=3
-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"
}