Update to use eselect-whois (don't install as whois on BSD userland).
authorDiego Elio Pettenò <flameeyes@gentoo.org>
Fri, 27 Oct 2006 17:02:46 +0000 (17:02 +0000)
committerDiego Elio Pettenò <flameeyes@gentoo.org>
Fri, 27 Oct 2006 17:02:46 +0000 (17:02 +0000)
Package-Manager: portage-2.1.2_pre3-r9

net-misc/bsdwhois/ChangeLog
net-misc/bsdwhois/bsdwhois-1.43.2.1.ebuild

index 76b8d6145dfda67cc3fb41294c3a48f1662b7df3..1177ca7251db3cb57d205f2c0d3a80b6a32fed15 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for net-misc/bsdwhois
 # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/bsdwhois/ChangeLog,v 1.2 2006/10/23 20:47:00 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/bsdwhois/ChangeLog,v 1.3 2006/10/27 17:02:46 flameeyes Exp $
+
+  27 Oct 2006; Diego Pettenò <flameeyes@gentoo.org>
+  bsdwhois-1.43.2.1.ebuild:
+  Update to use eselect-whois (don't install as whois on BSD userland).
 
   23 Oct 2006; Diego Pettenò <flameeyes@gentoo.org>
   bsdwhois-1.43.2.1.ebuild:
index 4d677149a7afa554b524b0ff047fd66a5f4304bd..17b1f273aa044d60f754e88595ee32447bf39472 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2006 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/bsdwhois/bsdwhois-1.43.2.1.ebuild,v 1.2 2006/10/23 20:47:00 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/bsdwhois/bsdwhois-1.43.2.1.ebuild,v 1.3 2006/10/27 17:02:46 flameeyes Exp $
 
 DESCRIPTION="FreeBSD Whois Client"
 HOMEPAGE="http://www.freebsd.org/"
@@ -11,13 +11,21 @@ SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE=""
 
-RDEPEND=""
+RDEPEND="app-admin/eselect-whois"
 DEPEND=""
 
 src_install() {
        emake DESTDIR="${D}" install || die
-       if [[ "${USERLAND}" = "GNU" ]]; then
-               mv "${D}"/usr/share/man/man1/{whois,bsdwhois}.1
-               mv "${D}"/usr/bin/{whois,bsdwhois}
-       fi
+       mv "${D}"/usr/share/man/man1/{whois,bsdwhois}.1
+       mv "${D}"/usr/bin/{whois,bsdwhois}
+}
+
+pkg_postinst() {
+       einfo "Setting /usr/bin/whois symlink"
+       eselect whois update --if-unset
+}
+
+pkg_postrm() {
+       einfo "Updating /usr/bin/whois symlink"
+       eselect whois update
 }