aboutsummaryrefslogtreecommitdiffstats
path: root/main/nmap/APKBUILD
blob: daf33eaf8239656441f31e8cf863e214a9905ae5 (plain) (blame)
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=7.00
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="a2dd8bd8b64624b0d92e1fdd4be0b9cd  nmap-7.00.tgz"
sha256sums="8ba3248e6e1443114b62822786d17681e312c6ed6c2bb609b692700776aba2a4  nmap-7.00.tgz"
sha512sums="6769fe6799c33c00bf57c729fe9d32b2833721a9fee519cd103084b6531c14920eee7642d7441b66ce83b650c1df0ef86fb514bfe27163f7f8abb2aff72ff2ac  nmap-7.00.tgz"