summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeemant Kulleen <seemant@gentoo.org>2002-03-20 22:26:11 +0000
committerSeemant Kulleen <seemant@gentoo.org>2002-03-20 22:26:11 +0000
commit0a901cb56c7a0884625038c4e3210e0ab6617028 (patch)
tree627b74541986dab7b0621761e9248adab2ff59c1 /sys-apps/net-tools
parentpre30 (diff)
downloadgentoo-2-0a901cb56c7a0884625038c4e3210e0ab6617028.tar.gz
gentoo-2-0a901cb56c7a0884625038c4e3210e0ab6617028.tar.bz2
gentoo-2-0a901cb56c7a0884625038c4e3210e0ab6617028.zip
Alternate implementation of USE dependent NLS compilation
Diffstat (limited to 'sys-apps/net-tools')
-rw-r--r--sys-apps/net-tools/ChangeLog8
-rw-r--r--sys-apps/net-tools/files/digest-net-tools-1.60-r31
-rw-r--r--sys-apps/net-tools/net-tools-1.60-r3.ebuild65
3 files changed, 73 insertions, 1 deletions
diff --git a/sys-apps/net-tools/ChangeLog b/sys-apps/net-tools/ChangeLog
index c98b4144f22f..afd6816f6cfa 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.2 2002/03/13 05:51:49 seemant Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/net-tools/ChangeLog,v 1.3 2002/03/20 22:26:11 seemant Exp $
+
+*net-tools-1.60-r3 (20 Mar 2002)
+
+ 20 Mar 2002; Seemant Kulleen <seemant@gentoo.org> net-tools-1.60-r3 :
+
+ Alternate implementation of USE dependent nls compilation.
*net-tools-1.60-r2 (12 Mar 2002)
diff --git a/sys-apps/net-tools/files/digest-net-tools-1.60-r3 b/sys-apps/net-tools/files/digest-net-tools-1.60-r3
new file mode 100644
index 000000000000..909d0b74ea6f
--- /dev/null
+++ b/sys-apps/net-tools/files/digest-net-tools-1.60-r3
@@ -0,0 +1 @@
+MD5 888774accab40217dde927e21979c165 net-tools-1.60.tar.bz2 198520
diff --git a/sys-apps/net-tools/net-tools-1.60-r3.ebuild b/sys-apps/net-tools/net-tools-1.60-r3.ebuild
new file mode 100644
index 000000000000..9dcf1de48f02
--- /dev/null
+++ b/sys-apps/net-tools/net-tools-1.60-r3.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2002 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-r3.ebuild,v 1.1 2002/03/20 22:26:11 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
+
+ if [ -z "`use nls`" ]
+ then
+ cd ${S}
+ mv config.h config.h.orig
+ sed 's:\(#define I18N\) 1:\1 0:' config.h.orig > config.h
+
+ mv config.make config.make.orig
+ sed 's:I18N=1:I18N=0:' config.make.orig > config.make
+ fi
+
+}
+
+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)
+
+ make || die
+
+ if [ "`use nls`" ]
+ then
+ 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
+}