1 # Author: David Manouchehri <me@davidmanouchehri.com>
2 # Modified from Ermenegildo Fiorito's PKGBUILD <fiorito.g@gmail.com>
7 pkgdesc="A network exploration tool and security/port scanner, experimental branch"
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')
18 _svntrunk=svn://svn.insecure.org/nmap-exp/dev
22 if [ -d $_svnmod/.svn ]; then
23 (cd $_svnmod && svn up -r $pkgver)
25 svn co --username guest --password "" --no-auth-cache $_svntrunk
27 msg "SVN checkout done or server timeout"
28 msg "Starting make..."
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
37 make DESTDIR="${pkgdir}" install
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