updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / nmap-exp / PKGBUILD
blobbc0284692e0dce5bc10250af0f0ca4e433c524fc
1 # Author: David Manouchehri <me@davidmanouchehri.com>
2 # Modified from Ermenegildo Fiorito's PKGBUILD <fiorito.g@gmail.com>
4 pkgname=nmap-exp
5 pkgver=4.85BETA10
6 pkgrel=1
7 pkgdesc="A network exploration tool and security/port scanner, experimental branch"
8 arch=('i686' 'x86_64')
9 url="http://nmap.org"
10 license=('custom:GPL')
11 depends=('pcre' 'openssl' 'libpcap>=1.0.0' 'lua')
12 makedepends=('python3' 'subversion') # remove python3 if you don't need zenmap
13 conflicts=('nmap' 'nmap-svn' 'nmap-dev' 'nmap-nogui')
14 options=('!makeflags')
15 source=()
16 md5sums=()
18 _svntrunk=svn://svn.insecure.org/nmap-exp/dev
20 build() {
21   cd "$srcdir"
22   if [ -d $_svnmod/.svn ]; then
23     (cd $_svnmod && svn up -r $pkgver)
24   else
25 svn co --username guest --password "" --no-auth-cache $_svntrunk
26   fi
27   msg "SVN checkout done or server timeout"
28   msg "Starting make..."
30   cd dev/nmap
32   echo "TryExec=/usr/bin/pygtk-demo" >> zenmap/install_scripts/unix/zenmap.desktop
33    echo "TryExec=/usr/bin/pygtk-demo" >> zenmap/install_scripts/unix/zenmap-root.desktop
35   ./configure --prefix=/usr --mandir=/usr/share/man
36   make || return 1
37   make DESTDIR="${pkgdir}" install
38   make clean
39   make distclean
40   # remove zenmap uninstall script
41   rm "${pkgdir}/usr/bin/uninstall_zenmap"
43   # install custom GPL2 license
44   install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE