diff options
author | Seemant Kulleen <seemant@gentoo.org> | 2002-03-13 05:51:49 +0000 |
---|---|---|
committer | Seemant Kulleen <seemant@gentoo.org> | 2002-03-13 05:51:49 +0000 |
commit | 02d86bb8d80facf18df653c769e382240e660eb7 (patch) | |
tree | 21105c1f238ca0f95cf1dd43843285d315662771 /sys-apps/net-tools | |
parent | unmask new galeon (diff) | |
download | gentoo-2-02d86bb8d80facf18df653c769e382240e660eb7.tar.gz gentoo-2-02d86bb8d80facf18df653c769e382240e660eb7.tar.bz2 gentoo-2-02d86bb8d80facf18df653c769e382240e660eb7.zip |
Added USE dependent nls compilation
Diffstat (limited to 'sys-apps/net-tools')
-rw-r--r-- | sys-apps/net-tools/ChangeLog | 8 | ||||
-rw-r--r-- | sys-apps/net-tools/files/digest-net-tools-1.60-r2 | 1 | ||||
-rw-r--r-- | sys-apps/net-tools/net-tools-1.60-r2.ebuild | 57 |
3 files changed, 65 insertions, 1 deletions
diff --git a/sys-apps/net-tools/ChangeLog b/sys-apps/net-tools/ChangeLog index 94d997914204..c98b4144f22f 100644 --- a/sys-apps/net-tools/ChangeLog +++ b/sys-apps/net-tools/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-apps/net-tools # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/sys-apps/net-tools/ChangeLog,v 1.1 2002/02/01 21:53:37 gbevin Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/net-tools/ChangeLog,v 1.2 2002/03/13 05:51:49 seemant Exp $ + +*net-tools-1.60-r2 (12 Mar 2002) + + 12 Mar 2002; Seemant Kulleen <seemant@gentoo.org> net-tools-1.60-r2 : + + Added USE dependent nls compilation *net-tools-1.60-r1 (1 Feb 2002) diff --git a/sys-apps/net-tools/files/digest-net-tools-1.60-r2 b/sys-apps/net-tools/files/digest-net-tools-1.60-r2 new file mode 100644 index 000000000000..909d0b74ea6f --- /dev/null +++ b/sys-apps/net-tools/files/digest-net-tools-1.60-r2 @@ -0,0 +1 @@ +MD5 888774accab40217dde927e21979c165 net-tools-1.60.tar.bz2 198520 diff --git a/sys-apps/net-tools/net-tools-1.60-r2.ebuild b/sys-apps/net-tools/net-tools-1.60-r2.ebuild new file mode 100644 index 000000000000..a36c8bebf170 --- /dev/null +++ b/sys-apps/net-tools/net-tools-1.60-r2.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2001 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Maintainer: System Team <system@gentoo.org> +# Author: Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/net-tools/net-tools-1.60-r2.ebuild,v 1.1 2002/03/13 05:51:49 seemant Exp $ + +S=${WORKDIR}/${P} +DESCRIPTION="standard Linux network tools" +SRC_URI="http://www.tazenda.demon.co.uk/phil/net-tools/${P}.tar.bz2" +HOMEPAGE="http://sites.inka.de/lina/linux/NetTools/" + +DEPEND="virtual/glibc + nls? ( sys-devel/gettext )" + +src_unpack() { + unpack ${A} + cd ${S} + cp ${FILESDIR}/config.h . + cp ${FILESDIR}/config.make . + cp Makefile Makefile.orig + sed -e "s/-O2 -Wall -g/${CFLAGS}/" Makefile.orig > Makefile + cd man + cp Makefile Makefile.orig + sed -e "s:/usr/man:/usr/share/man:" Makefile.orig > Makefile +} + +src_compile() { + # Changing "emake" to "make" closes half of bug #820; configure is run from *inside* + # the Makefile, sometimes breaking parallel makes (if ./configure doesn't finish first) + + + if [ -z "`use nls`" ] + then + yes "" | make config + make || die + else + make || die + cd po + make || die + fi +} + +src_install() { + make BASEDIR=${D} install || die + mv ${D}/bin/* ${D}/sbin + for i in hostname domainname netstat dnsdomainname ypdomainname nisdomainname + do + mv ${D}/sbin/${i} ${D}/bin + done + dosym /bin/hostname /usr/bin/hostname + if [ -z "`use bootcd`" ] && [ -z "`use build`" ] + then + dodoc COPYING README README.ipv6 TODO + else + rm -rf ${D}/usr/share + fi +} |