aboutsummaryrefslogtreecommitdiffstats
path: root/community/whois/APKBUILD
blob: c604e53ad1450a969ed67a4c51fd77ff4d29b308 (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
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=whois
pkgver=5.2.18
pkgrel=0
pkgdesc="Intelligent WHOIS client by Marco d'Itri"
url="http://www.linux.it/~md/software/"
arch="all"
license="GPL2"
makedepends="perl libidn-dev gettext-dev"
options="!check"
subpackages="$pkgname-doc mkpasswd:_mkpasswd mkpasswd-doc"
source="$pkgname-$pkgver.tar.xz::http://ftp.de.debian.org/debian/pool/main/w/$pkgname/${pkgname}_$pkgver.tar.xz
	undefined-libintl.patch
	enable-sha256-sha512-mkpasswd.patch
	"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	make CONFIG_FILE="/etc/whois.conf" \
		HAVE_LIBIDN=1 HAVE_ICONV=1
}

_mkpasswd() {
	depends="!expect"
	pkgdesc="mkpasswd with configurable number of rounds"
	cd "$builddir"
	make BASEDIR="$subpkgdir" install-mkpasswd
	mkdir -p  "$subpkgdir"-doc/usr
	mv "$subpkgdir"/usr/share "$subpkgdir"-doc/usr
}

package() {
	cd "$builddir"
	make BASEDIR="$pkgdir" install-whois
	install -D -m644 whois.conf "$pkgdir/etc/whois.conf"
}

sha512sums="dcbfbab0da3b9b5876c7c51bc411ac371a5c33012bf1286a3e6ccfb59fb4fba89eab1c4b812766d2f101a93ca3424ef636214c05add59549b9809621dfb03d73  whois-5.2.18.tar.xz
efa32ec848e3d3e61481567815e8c02757eab32712eb5a431adb13b59fd359f735eb684fbdf8a5b8334410d17052dc93d65bdda27a328617e2b6772b23717487  undefined-libintl.patch
ef455fd21403995524a3de6039db41261b6549181f3dd234c6a28a10a65d09a6e86c71b6ddb752aa15f0e4ff2232887ff65bd72ed9a977b8da2ed40ea11519f1  enable-sha256-sha512-mkpasswd.patch"