aboutsummaryrefslogtreecommitdiffstats
path: root/community/whois/APKBUILD
blob: 68e5ef8ecfb237c3d37673a49edeb4539f0ee1ca (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
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=whois
pkgver=5.5.3
pkgrel=0
pkgdesc="Intelligent WHOIS client by Marco d'Itri"
url="https://github.com/rfc1036/whois"
arch="all"
license="GPL-2.0-or-later"
makedepends="perl libidn-dev gettext-dev"
options="!check"
subpackages="$pkgname-doc mkpasswd:_mkpasswd mkpasswd-doc"
source="$pkgver-$pkgver.tar.gz::https://github.com/rfc1036/whois/archive/v$pkgver.tar.gz
	undefined-libintl.patch
	enable-sha256-sha512-mkpasswd.patch
	"

build() {
	make CONFIG_FILE="/etc/whois.conf" 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() {
	make BASEDIR="$pkgdir" install-whois
	install -D -m644 whois.conf "$pkgdir/etc/whois.conf"
}

sha512sums="ce943e9a07a2cd755e61c28e57bb95f15cfe24e132f5ace55363a4adb8890aac057dec66a1ac26a238bdcfabfeaa098cb4f82ca4a2ca1b0bcae987a16f390cb8  5.5.3-5.5.3.tar.gz
efa32ec848e3d3e61481567815e8c02757eab32712eb5a431adb13b59fd359f735eb684fbdf8a5b8334410d17052dc93d65bdda27a328617e2b6772b23717487  undefined-libintl.patch
66a6b36e4caa00d58ab44c8fb55bfe919994fc6c7631cc283d9f37f9d69bf3e911ab365b27b1720065103e8d7abbf7549dfb260e156c1b52726a8c8b8820c836  enable-sha256-sha512-mkpasswd.patch"