From 299e917c17619f800f0c21cf43209065b608223f Mon Sep 17 00:00:00 2001 From: root Date: Fri, 24 Feb 2012 23:15:21 +0000 Subject: Fri Feb 24 23:15:21 UTC 2012 --- staging/nmap/ChangeLog | 19 +++++++++++++++++++ staging/nmap/PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 staging/nmap/ChangeLog create mode 100644 staging/nmap/PKGBUILD (limited to 'staging/nmap') 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 + * Lua 5.2 rebuild + +2008-10-28 Douglas Soares de Andrade + + * Python 2.6 rebuild. + +2008-07-23 Hugo Doria + + * Added pygtk in optdepends: 4.68-3 + +2008-07-09 Douglas Soares de Andrade + + * Fixing the pixmaps path for i686: 4.68 + +2008-07-09 Douglas Soares de Andrade + + * 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 +# Contributor: Hugo Doria + +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 +} -- cgit v1.2.3-54-g00ecf