blob: fa9c88c38ede32ce3ead7cbf7bf63fce3e8f62d0 (
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
50
|
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=nmap
pkgver=6.47
pkgrel=0
pkgdesc="A network exploration tool and security/port scanner"
url="http:/nmap.org"
arch="all"
license="custom:GPL"
depends=
makedepends="libpcap-dev openssl-dev lua-dev linux-headers"
install=
subpackages="$pkgname-doc"
replaces="nmap-nse"
source="http://nmap.org/dist/$pkgname-$pkgver.tgz"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
update_config_sub || return 1
}
build() {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--without-zenmap \
--with-liblua=/usr/include \
--with-openssl=/usr/lib \
|| return 1
# fix LUA libs linking order
make "LUA_LIBS=../liblua/liblua.a -ldl -lm" || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install
# install custom GPL2 license
install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}
md5sums="21577e7c7da2be170eb6c82d3e68ce5e nmap-6.47.tgz"
sha256sums="5a5fc2543566309d14e45b5c83c93dd5d1068a2c013de120036fabfc139f5561 nmap-6.47.tgz"
sha512sums="056edf34599946a43060d46a34c321c5b31d78f3faca3bcb2197a1030d8a8168041f5d3b6cece328061188b26d59fbd1c54d46306c4d4868f76ede0bd65fbe24 nmap-6.47.tgz"
|