Commit 03e26353 authored by Sören Tempel's avatar Sören Tempel

community/whois: remove mkpasswd-doc subpackage

The general rule of thumb is: Only one -doc subpackage per package.

Enforcing this rules requires moving the install-mkpasswd Makefile
target to package() as documentation files (e.g. man pages) installed to
a $subpkgdir are not considered by the default_doc split function.
parent b93b0b13
Pipeline #45199 passed with stages
in 5 minutes and 1 second
......@@ -2,14 +2,14 @@
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=whois
pkgver=5.5.6
pkgrel=0
pkgrel=1
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"
subpackages="$pkgname-doc mkpasswd:_mkpasswd"
source="$pkgver-$pkgver.tar.gz::https://github.com/rfc1036/whois/archive/v$pkgver.tar.gz
undefined-libintl.patch
enable-sha256-sha512-mkpasswd.patch
......@@ -19,18 +19,20 @@ build() {
make CONFIG_FILE="/etc/whois.conf" HAVE_ICONV=1
}
package() {
make BASEDIR="$pkgdir" install-whois
install -D -m644 whois.conf "$pkgdir/etc/whois.conf"
# Installed are moved to a subpackage in _mkpasswd()
make BASEDIR="$pkgdir" install-mkpasswd
}
_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"
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/mkpasswd "$subpkgdir"/usr/bin
}
sha512sums="97a139a8e24b9a92c5597bc31e1b8d5d5bcab1ec4cc53f80cbdb7f2e5b7e54f36b3a8a8d90fd7b86452aad36adc0ba2015aaf936643b290c8a777f5f6cb27ef3 5.5.6-5.5.6.tar.gz
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment