mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
|
# $Id: PKGBUILD 46365 2009-07-16 18:17:24Z hugo $
|
||
|
# Maintainer: Hugo Doria <hugo@archlinux.org>
|
||
|
|
||
|
pkgname=nmap
|
||
|
pkgver=5.00
|
||
|
pkgrel=1
|
||
|
pkgdesc="A network exploration tool and security/port scanner"
|
||
|
arch=('i686' 'x86_64')
|
||
|
url="http://nmap.org"
|
||
|
license=('custom:GPL')
|
||
|
depends=('pcre' 'openssl' 'libpcap>=1.0.0' 'lua')
|
||
|
# python is needed for zenmap
|
||
|
makedepends=('python')
|
||
|
optdepends=('pygtk: gui for nmap')
|
||
|
options=('!makeflags')
|
||
|
source=(http://download.insecure.org/nmap/dist/${pkgname}-${pkgver}.tgz)
|
||
|
md5sums=('6b5b28f421cae71fd2710c1247c8db66')
|
||
|
|
||
|
build() {
|
||
|
cd ${srcdir}/${pkgname}-${pkgver}
|
||
|
|
||
|
echo "TryExec=/usr/bin/pygtk-demo" >> zenmap/install_scripts/unix/zenmap.desktop || return 1
|
||
|
echo "TryExec=/usr/bin/pygtk-demo" >> zenmap/install_scripts/unix/zenmap-root.desktop || return 1
|
||
|
|
||
|
./configure --prefix=/usr --mandir=/usr/share/man \
|
||
|
--libexecdir=/usr/lib
|
||
|
make || return 1
|
||
|
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
|
||
|
}
|