updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / nmap-nogui / PKGBUILD
blob0dc1db37fd7365519bf88997b48476d908b55203
1 # Maintainer: Jekyll Wu <adaptee [at] gmail [dot] com>
2 # Contributor: Hugo Doria <ly50247@gmail.com>
4 pkgname=nmap-nogui
5 pkgver=5.51
6 pkgrel=2
7 pkgdesc="A network exploration tool and security/port scanner, without zenmap"
8 _realname=nmap
9 arch=('i686' 'x86_64')
10 url="http://nmap.org"
11 license=('GPL')
12 depends=('pcre' 'openssl' 'libpcap>=1.0.0' 'lua')
13 makedepends=('python2')
14 options=('!makeflags')
15 provides=('nmap')
16 conflicts=('nmap')
17 source=(http://nmap.org/dist/${_realname}-${pkgver}.tar.bz2)
18 md5sums=('0b80d2cb92ace5ebba8095a4c2850275')
20 build() {
21   cd ${srcdir}/${_realname}-${pkgver}
23   PYTHON=/usr/bin/python2 ./configure --without-zenmap --prefix=/usr --mandir=/usr/share/man \
24     --libexecdir=/usr/lib --with-openssl=/usr/include/openssl --with-libpcap=/usr/include/pcap
26   make || return 1
27   make DESTDIR="${pkgdir}" install
29   # install GPL2 license
30   install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${_realname}/LICENSE