summaryrefslogtreecommitdiff
path: root/staging/nmap
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-02-24 23:15:21 +0000
committerroot <root@rshg054.dnsready.net>2012-02-24 23:15:21 +0000
commit299e917c17619f800f0c21cf43209065b608223f (patch)
treee175a7bbdb5d933670f10b09f1cc52ece45ced87 /staging/nmap
parentd466ef49f224a9347fe0375eac8126725e10a0a4 (diff)
Fri Feb 24 23:15:21 UTC 2012
Diffstat (limited to 'staging/nmap')
-rw-r--r--staging/nmap/ChangeLog19
-rw-r--r--staging/nmap/PKGBUILD45
2 files changed, 64 insertions, 0 deletions
diff --git a/staging/nmap/ChangeLog b/staging/nmap/ChangeLog
new file mode 100644
index 000000000..f87ec482e
--- /dev/null
+++ b/staging/nmap/ChangeLog
@@ -0,0 +1,19 @@
+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/staging/nmap/PKGBUILD b/staging/nmap/PKGBUILD
new file mode 100644
index 000000000..ceb05eae7
--- /dev/null
+++ b/staging/nmap/PKGBUILD
@@ -0,0 +1,45 @@
+# $Id: PKGBUILD 150913 2012-02-23 15:15:39Z angvp $
+# Maintainer: 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"
+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')
+
+build() {
+ 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
+
+ # 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
+}
+
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ make DESTDIR="${pkgdir}" install
+
+ # remove zenmap uninstall script
+ rm "${pkgdir}/usr/bin/uninstall_zenmap"
+
+ # install custom GPL2 license
+ install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+}