aboutsummaryrefslogtreecommitdiffstats
path: root/main/nmap/APKBUILD
blob: 904e65b672676db3835f50e18d786b1b82f41a9e (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.46
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"
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="ab2310e7649a628052b20bfb536ee5c5  nmap-6.46.tgz"
sha256sums="2a14e1f216b3ca0e8eec8767ee9836b99a36d3660f137fb7705069e4ad7b75d9  nmap-6.46.tgz"
sha512sums="236c582c4110e209bb0fc79d96a10fb5bacc8cd24b1374536ae72ce010acbd7db1f0eb3766bb4d4898df44c48eb84130450bd3a62dfe7288a5f7878483732dea  nmap-6.46.tgz"