diff --git a/srcpkgs/whois/template b/srcpkgs/whois/template
index f5e1c332ec6..c9d9da466e3 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
 }