# 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:
# 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/"
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
}