diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-02-15 11:16:20 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-02-15 11:19:07 -0500 |
commit | edcf1c49ca25f6f46082f6ebd254af0d2e21d906 (patch) | |
tree | 8f39c8fc09601fe10eb166992064fcadd8c44e5d /sys-apps | |
parent | app-emulation/xen-tools: allow qemu-traditional to be disabled (diff) | |
download | gentoo-edcf1c49ca25f6f46082f6ebd254af0d2e21d906.tar.gz gentoo-edcf1c49ca25f6f46082f6ebd254af0d2e21d906.tar.bz2 gentoo-edcf1c49ca25f6f46082f6ebd254af0d2e21d906.zip |
sys-apps/net-tools: switch to upstream config knobs
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/net-tools/net-tools-9999.ebuild | 30 |
1 files changed, 6 insertions, 24 deletions
diff --git a/sys-apps/net-tools/net-tools-9999.ebuild b/sys-apps/net-tools/net-tools-9999.ebuild index 5db331c78dcb..31bb147c12ef 100644 --- a/sys-apps/net-tools/net-tools-9999.ebuild +++ b/sys-apps/net-tools/net-tools-9999.ebuild @@ -20,6 +20,7 @@ HOMEPAGE="http://net-tools.sourceforge.net/" LICENSE="GPL-2" SLOT="0" IUSE="+arp +hostname ipv6 nis nls plipconfig selinux slattach static" +REQUIRED_USE="nis? ( hostname )" RDEPEND="selinux? ( sys-libs/libselinux )" DEPEND="${RDEPEND} @@ -67,6 +68,11 @@ src_configure() { set_opt HAVE_HWTR has_version '<sys-kernel/linux-headers-3.5' set_opt HAVE_HWSTRIP has_version '<sys-kernel/linux-headers-3.6' set_opt HAVE_SELINUX use selinux + set_opt HAVE_ARP_TOOLS use arp + set_opt HAVE_HOSTNAME_TOOLS use hostname + set_opt HAVE_HOSTNAME_SYMLINKS use nis + set_opt HAVE_PLIP_TOOLS use plipconfig + set_opt HAVE_SERIAL_TOOLS use slattach if use static ; then append-flags -static append-ldflags -static @@ -79,28 +85,4 @@ src_install() { # We need to use emake by hand to pass ED. #567300 emake DESTDIR="${ED}" install dodoc README THANKS TODO - - # TODO: Make these into config knobs upstream. - if ! use arp ; then - rm "${ED}"/sbin/{,r}arp "${ED}"/usr/share/man/man8/{,r}arp.8* || die - fi - if ! use hostname ; then - if use nis ; then - # Since all the tools are symlinks, repoint them. - rm "${ED}"/bin/domainname || die - cp -p "${ED}"/bin/{host,domain}name || die - dosym domainname /bin/nisdomainname - dosym domainname /bin/ypdomainname - fi - rm "${ED}"/bin/{host,dnsdomain}name "${ED}"/usr/share/man/man1/{host,dnsdomain}name.1* || die - fi - if ! use nis ; then - rm "${ED}"/bin/{,nis,yp}domainname "${ED}"/usr/share/man/man1/{,nis,yp}domainname.1* || die - fi - if ! use plipconfig ; then - rm "${ED}"/sbin/plipconfig "${ED}"/usr/share/man/man8/plipconfig.8* || die - fi - if ! use slattach ; then - rm "${ED}"/sbin/slattach "${ED}"/usr/share/man/man8/slattach.8* || die - fi } |