# Description: Utility for network exploration or security auditing
# URL: http://nmap.org
# Maintainer:  Thomas Penteker, tek at serverop dot de
# Packager: sten, nick dot steeves at shaw dot ca

name=nmap
version=5.21
release=1
source=(http://ftp.uni-erlangen.de/mirrors/gentoo/distfiles/$name-$version.tar.bz2 \
	nse_openssl.cc.diff)


build () {
    cd $name-$version
    patch -i ../nse_openssl.cc.diff
    ./configure --prefix=/usr --libexecdir=/usr/lib --mandir=/usr/man \
    --with-libpcre=included --with-liblua=included \
    --with-libpcap=included --without-zenmap \
    --without-ndiff --disable-nls
    #install -d $PKG/usr/share/nmap
    make
    make DESTDIR=$PKG install
    rm -rf $PKG/usr/man/man1/zenmap.*
    rm -f $PKG/usr/share/nmap/nselib/data/psexec/README
    
    
}