From 867556192bc4ab9e532c77f581f8f39f6ae1ef9e Mon Sep 17 00:00:00 2001 From: Diego Elio Pettenò Date: Fri, 27 Oct 2006 17:02:46 +0000 Subject: Update to use eselect-whois (don't install as whois on BSD userland). (Portage version: 2.1.2_pre3-r9) --- net-misc/bsdwhois/ChangeLog | 6 +++++- net-misc/bsdwhois/bsdwhois-1.43.2.1.ebuild | 20 ++++++++++++++------ 2 files changed, 19 insertions(+), 7 deletions(-) (limited to 'net-misc/bsdwhois') diff --git a/net-misc/bsdwhois/ChangeLog b/net-misc/bsdwhois/ChangeLog index 76b8d6145dfd..1177ca7251db 100644 --- a/net-misc/bsdwhois/ChangeLog +++ b/net-misc/bsdwhois/ChangeLog @@ -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ò + bsdwhois-1.43.2.1.ebuild: + Update to use eselect-whois (don't install as whois on BSD userland). 23 Oct 2006; Diego Pettenò bsdwhois-1.43.2.1.ebuild: diff --git a/net-misc/bsdwhois/bsdwhois-1.43.2.1.ebuild b/net-misc/bsdwhois/bsdwhois-1.43.2.1.ebuild index 4d677149a7af..17b1f273aa04 100644 --- a/net-misc/bsdwhois/bsdwhois-1.43.2.1.ebuild +++ b/net-misc/bsdwhois/bsdwhois-1.43.2.1.ebuild @@ -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 } -- cgit v1.2.3-65-gdbad