aboutsummaryrefslogtreecommitdiffstats
path: root/testing/nbtscan/APKBUILD
blob: cdc4704affb2e1f1c3412dd2a8205434e3dd0d39 (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer:
pkgname=nbtscan
pkgver=1.5.1
pkgrel=0
pkgdesc="A NetBIOS name network scanner"
url="http://www.inetcat.net/software/nbtscan.html"
arch="all"
license="GPL2"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages=""
source="http://www.inetcat.net/software/$pkgname-$pkgver.tar.gz
		$pkgname-$pkgver-makefile.patch"
_builddir="$srcdir"/$pkgname-"$pkgver"a

prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--prefix=/usr \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="85bb085077c380b82a6ff73e0de0c154  nbtscan-1.5.1.tar.gz
513430ac89e76bfdb2fd9f8bfce4cca2  nbtscan-1.5.1-makefile.patch"