From 41067da645e3bce1e984aae9cd681cf684e11aba Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 9 Nov 2015 17:12:53 +0100 Subject: [PATCH] whois: register 'whois' alternatives group. --- srcpkgs/whois/template | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/srcpkgs/whois/template b/srcpkgs/whois/template index f5e1c332ec..c9d9da466e 100644 --- a/srcpkgs/whois/template +++ b/srcpkgs/whois/template @@ -1,7 +1,7 @@ # Template file for 'whois' pkgname=whois version=5.2.10 -revision=1 +revision=2 build_pie=yes hostmakedepends="perl" makedepends="libidn-devel" @@ -12,9 +12,15 @@ license="GPL-2" distfiles="${DEBIAN_SITE}/main/w/${pkgname}/${pkgname}_${version}.tar.xz" checksum=8acb42bc693f73f3141b413f7df11b5582b9b738d9bf0d60e9017a8af4cb53b9 +alternatives=" + whois:whois:/usr/bin/gwhois + whois:whois.1:/usr/share/man/man1/gwhois.1" + do_build() { make CC=$CC prefix=/usr HAVE_LIBIDN=1 } do_install() { make prefix=/usr BASEDIR=${DESTDIR} install-whois + mv ${DESTDIR}/usr/bin/{whois,gwhois} + mv ${DESTDIR}/usr/share/man/man1/{whois,gwhois}.1 }