diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2004-07-17 08:37:38 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2004-07-17 08:37:38 +0000 |
commit | b678741478447b5cbe94f0f6105a1d359823e866 (patch) | |
tree | c094b2472b0be9ab2567cb1db8fd8b25dcc88029 /sys-apps/net-tools | |
parent | bootstrap cleanups for zhen (diff) | |
download | gentoo-2-b678741478447b5cbe94f0f6105a1d359823e866.tar.gz gentoo-2-b678741478447b5cbe94f0f6105a1d359823e866.tar.bz2 gentoo-2-b678741478447b5cbe94f0f6105a1d359823e866.zip |
use emake (work around buggy makefiles); error check; tidy
Diffstat (limited to 'sys-apps/net-tools')
-rw-r--r-- | sys-apps/net-tools/ChangeLog | 6 | ||||
-rw-r--r-- | sys-apps/net-tools/net-tools-1.60-r8.ebuild | 42 |
2 files changed, 27 insertions, 21 deletions
diff --git a/sys-apps/net-tools/ChangeLog b/sys-apps/net-tools/ChangeLog index 64f6e88c4bea..f93c0e64f4e4 100644 --- a/sys-apps/net-tools/ChangeLog +++ b/sys-apps/net-tools/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-apps/net-tools # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/net-tools/ChangeLog,v 1.33 2004/07/17 05:28:10 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/net-tools/ChangeLog,v 1.34 2004/07/17 08:37:38 mr_bones_ Exp $ + + 17 Jul 2004; Michael Sterrett <mr_bones_@gentoo.org> + net-tools-1.60-r8.ebuild: + use emake (work around buggy makefiles); error check; tidy 16 Jul 2004; Michael Sterrett <mr_bones_@gentoo.org> -net-tools-1.60-r7.ebuild: diff --git a/sys-apps/net-tools/net-tools-1.60-r8.ebuild b/sys-apps/net-tools/net-tools-1.60-r8.ebuild index f111005d22c1..81c89e183f04 100644 --- a/sys-apps/net-tools/net-tools-1.60-r8.ebuild +++ b/sys-apps/net-tools/net-tools-1.60-r8.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/net-tools/net-tools-1.60-r8.ebuild,v 1.5 2004/06/24 22:19:18 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/net-tools/net-tools-1.60-r8.ebuild,v 1.6 2004/07/17 08:37:38 mr_bones_ Exp $ inherit flag-o-matic gcc eutils @@ -18,7 +18,10 @@ DEPEND="nls? ( sys-devel/gettext ) >=sys-apps/sed-4" src_unpack() { - use static && append-flags -static && append-ldflags -static + if use static ; then + append-flags -static + append-ldflags -static + fi PATCHDIR=${WORKDIR}/${P}-gentoo @@ -50,6 +53,7 @@ src_unpack() { cp ${PATCHDIR}/net-tools-1.60-config.make config.make sed -i \ + -e 's/^libdir:/libdir: version.h/' \ -e "s:-O2 -Wall -g:${CFLAGS}:" \ -e "/^LOPTS =/ s/\$/${CFLAGS}/" Makefile \ || die "sed Makefile failed" @@ -74,29 +78,28 @@ src_unpack() { } 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) - emake -j1 || die + #configure shouldn't run anymore so bug #820 shouldn't apply... + emake libdir || die "emake libdir failed" + emake || die "emake failed" if use nls ; then - cd po - make || die - cd .. + emake i18ndir || die "emake i18ndir failed" fi - use uclibc || $(gcc-getCC) ${CFLAGS} -o ether-wake ether-wake.c || die "ether-wake failed to build" + if ! use uclibc ; then + $(gcc-getCC) ${CFLAGS} -o ether-wake ether-wake.c || die "ether-wake failed to build" + fi } src_install() { - make BASEDIR=${D} install || die - - use uclibc || dosbin ether-wake || die - mv ${D}/bin/* ${D}/sbin - for i in hostname domainname netstat dnsdomainname ypdomainname nisdomainname - do - mv ${D}/sbin/${i} ${D}/bin - done + make BASEDIR="${D}" install || die "make install failed" + + if ! use uclibc ; then + dosbin ether-wake || die "dosbin failed" + fi + mv ${D}/bin/* ${D}/sbin || die "mv failed" + mv ${D}/sbin/{hostname,domainname,netstat,dnsdomainname,ypdomainname,nisdomainname} ${D}/bin \ + || die "mv failed" use uclibc && rm -f ${D}/bin/{yp,nis}domainname dodir /usr/bin dosym /bin/hostname /usr/bin/hostname @@ -106,8 +109,7 @@ src_install() { dodoc README README.ipv6 TODO else #only install /bin/hostname - rm -rf ${D}/usr - rm -rf ${D}/sbin + rm -rf ${D}/usr ${D}/sbin rm -f ${D}/bin/{domainname,netstat,dnsdomainname} rm -f ${D}/bin/{ypdomainname,nisdomainname} fi |