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 @@ ...@@ -2,14 +2,14 @@
# Maintainer: Stuart Cardall <> # Maintainer: Stuart Cardall <>
pkgname=whois pkgname=whois
pkgver=5.5.6 pkgver=5.5.6
pkgrel=0 pkgrel=1
pkgdesc="Intelligent WHOIS client by Marco d'Itri" pkgdesc="Intelligent WHOIS client by Marco d'Itri"
url="" url=""
arch="all" arch="all"
license="GPL-2.0-or-later" license="GPL-2.0-or-later"
makedepends="perl libidn-dev gettext-dev" makedepends="perl libidn-dev gettext-dev"
options="!check" options="!check"
subpackages="$pkgname-doc mkpasswd:_mkpasswd mkpasswd-doc" subpackages="$pkgname-doc mkpasswd:_mkpasswd"
source="$pkgver-$pkgver.tar.gz::$pkgver.tar.gz source="$pkgver-$pkgver.tar.gz::$pkgver.tar.gz
undefined-libintl.patch undefined-libintl.patch
enable-sha256-sha512-mkpasswd.patch enable-sha256-sha512-mkpasswd.patch
...@@ -19,18 +19,20 @@ build() { ...@@ -19,18 +19,20 @@ build() {
make CONFIG_FILE="/etc/whois.conf" HAVE_ICONV=1 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() { _mkpasswd() {
depends="!expect" depends="!expect"
pkgdesc="mkpasswd with configurable number of rounds" 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() { mkdir -p "$subpkgdir"/usr/bin
make BASEDIR="$pkgdir" install-whois mv "$pkgdir"/usr/bin/mkpasswd "$subpkgdir"/usr/bin
install -D -m644 whois.conf "$pkgdir/etc/whois.conf"
} }
sha512sums="97a139a8e24b9a92c5597bc31e1b8d5d5bcab1ec4cc53f80cbdb7f2e5b7e54f36b3a8a8d90fd7b86452aad36adc0ba2015aaf936643b290c8a777f5f6cb27ef3 5.5.6-5.5.6.tar.gz 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