whois: add mkpasswd subpkg

Closes: #13653 [via git-merge-pr]
This commit is contained in:
Andrew Benson 2019-08-13 16:41:46 -05:00 committed by Michael Aldridge
parent 9a8ccbdd54
commit ae16c791f9
2 changed files with 12 additions and 1 deletions

1
srcpkgs/mkpasswd Symbolic link
View file

@ -0,0 +1 @@
whois

View file

@ -1,7 +1,7 @@
# Template file for 'whois'
pkgname=whois
version=5.5.1
revision=1
revision=2
wrksrc=whois
hostmakedepends="perl pkg-config"
makedepends="libidn2-devel"
@ -25,3 +25,13 @@ do_install() {
mv ${DESTDIR}/usr/bin/{whois,gwhois}
mv ${DESTDIR}/usr/share/man/man1/{whois,gwhois}.1
}
mkpasswd_package() {
short_desc="Feature-rich front end to crypt(3) password encryption"
alternatives="mkpasswd:mkpasswd:/usr/bin/gmkpasswd
mkpasswd:mkpasswd.1:/usr/share/man/man1/gmkpasswd.1"
pkg_install() {
vbin mkpasswd gmkpasswd
vman mkpasswd.1 gmkpasswd.1
}
}