blob: 363c2d47c72716aa99dabb8eaa90b0b3890ad32c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Contributor: Leonardo Arena <rnalrd@gmail.com>
# Maintainer: Leonardo Arena <rnalrd@gmail.com>
pkgname=nmap
pkgver=5.00
pkgrel=0
pkgdesc="A network exploration tool and security/port scanner"
url="http:/nmap.org"
license="custom:GPL"
depends=
makedepends="uclibc++-dev libpcap-dev openssl-dev lua-dev"
install=
subpackages="$pkgname-doc $pkgname-nse"
source="http://nmap.org/dist/$pkgname-$pkgver.tgz
nmap-4.53-uclibc++-output.cc.patch
"
build() {
cd "$srcdir/$pkgname-$pkgver"
for i in ../*.patch; do
msg "Applying $i..."
patch -p1 < $i || return 1
done
export CXX=${CXX_UC:-g++-uc}
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--without-zenmap \
--with-liblua=/usr/include \
--with-openssl=/usr/lib
make || return 1
make DESTDIR="$pkgdir" install
# install custom GPL2 license
install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}
nse() {
pkgdesc="nmap scripting engine"
mkdir -p "$subpkgdir"/usr/share/$pkgname
mv "$pkgdir"/usr/share/$pkgname/nselib \
"$pkgdir"/usr/share/$pkgname/scripts \
"$subpkgdir"/usr/share/$pkgname/
}
md5sums="6b5b28f421cae71fd2710c1247c8db66 nmap-5.00.tgz
507b0936aaafaeddebad309b0924de39 nmap-4.53-uclibc++-output.cc.patch"
|