diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-02-17 17:11:00 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-02-17 17:11:00 +0000 |
commit | ecd2993c0717aa72f7004b2cc746d26fc457bf83 (patch) | |
tree | 199f44f069e6229068f091044ce81745ccabdac4 /sys-apps/net-tools | |
parent | libdir fix for LDPATH (diff) | |
download | gentoo-2-ecd2993c0717aa72f7004b2cc746d26fc457bf83.tar.gz gentoo-2-ecd2993c0717aa72f7004b2cc746d26fc457bf83.tar.bz2 gentoo-2-ecd2993c0717aa72f7004b2cc746d26fc457bf83.zip |
Fix crash due to unaligned accesses #163430 by Gustavo Zacarias.
(Portage version: 2.1.2-r9)
Diffstat (limited to 'sys-apps/net-tools')
-rw-r--r-- | sys-apps/net-tools/ChangeLog | 10 | ||||
-rw-r--r-- | sys-apps/net-tools/files/digest-net-tools-1.60-r13 | 6 | ||||
-rw-r--r-- | sys-apps/net-tools/net-tools-1.60-r13.ebuild | 75 |
3 files changed, 89 insertions, 2 deletions
diff --git a/sys-apps/net-tools/ChangeLog b/sys-apps/net-tools/ChangeLog index 06bccd0b7fa4..c8cc4958fe21 100644 --- a/sys-apps/net-tools/ChangeLog +++ b/sys-apps/net-tools/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-apps/net-tools -# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/net-tools/ChangeLog,v 1.62 2006/11/15 12:48:01 corsair Exp $ +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/net-tools/ChangeLog,v 1.63 2007/02/17 17:11:00 vapier Exp $ + +*net-tools-1.60-r13 (17 Feb 2007) + + 17 Feb 2007; Mike Frysinger <vapier@gentoo.org> + +net-tools-1.60-r13.ebuild: + Fix crash due to unaligned accesses #163430 by Gustavo Zacarias. 15 Nov 2006; Markus Rothe <corsair@gentoo.org> net-tools-1.60-r12.ebuild: Stable on ppc64; bug #152837 diff --git a/sys-apps/net-tools/files/digest-net-tools-1.60-r13 b/sys-apps/net-tools/files/digest-net-tools-1.60-r13 new file mode 100644 index 000000000000..de54b07940cd --- /dev/null +++ b/sys-apps/net-tools/files/digest-net-tools-1.60-r13 @@ -0,0 +1,6 @@ +MD5 b32bd55494eb53ccef0b433008dc2c23 net-tools-1.60-patches-1.6.tar.bz2 106557 +RMD160 1dce9fecbbab849bfdb8b832ee4baf5cead983d9 net-tools-1.60-patches-1.6.tar.bz2 106557 +SHA256 61df3fca2bd30a752231285bd714edcadc0c5206a09954eb1861a68a0ef4bba9 net-tools-1.60-patches-1.6.tar.bz2 106557 +MD5 888774accab40217dde927e21979c165 net-tools-1.60.tar.bz2 198520 +RMD160 58376371a9383842640d2c4215cf771d522ee43e net-tools-1.60.tar.bz2 198520 +SHA256 7ae4dd6d44d6715f18e10559ffd270511b6e55a8900ca54fbebafe0ae6cf7d7b net-tools-1.60.tar.bz2 198520 diff --git a/sys-apps/net-tools/net-tools-1.60-r13.ebuild b/sys-apps/net-tools/net-tools-1.60-r13.ebuild new file mode 100644 index 000000000000..eac0c84996f7 --- /dev/null +++ b/sys-apps/net-tools/net-tools-1.60-r13.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2007 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-r13.ebuild,v 1.1 2007/02/17 17:11:00 vapier Exp $ + +inherit flag-o-matic toolchain-funcs eutils + +PVER="1.6" +DESCRIPTION="Standard Linux networking tools" +HOMEPAGE="http://sites.inka.de/lina/linux/NetTools/" +SRC_URI="http://www.tazenda.demon.co.uk/phil/net-tools/${P}.tar.bz2 + mirror://gentoo/${P}-patches-${PVER}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="nls static" + +RDEPEND="!sys-apps/mii-diag + !net-misc/etherwake + !sys-apps/nictools" +DEPEND="nls? ( sys-devel/gettext )" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${WORKDIR}"/patch/*.patch + cp "${WORKDIR}"/extra/config.{h,make} . || die + mkdir include/linux + cp "${WORKDIR}"/extra/*.h include/linux/ + mv "${WORKDIR}"/extra/ethercard-diag/ "${S}"/ || die + + if use static ; then + append-flags -static + append-ldflags -static + fi + + sed -i \ + -e "/^COPTS =/s:=:=${CFLAGS}:" \ + -e "/^LOPTS =/s:=:=${LDFLAGS}:" \ + Makefile || die "sed FLAGS Makefile failed" + + if ! use nls ; then + sed -i \ + -e '/define I18N/s:1$:0:' config.h \ + || die "sed config.h failed" + sed -i \ + -e '/^I18N=/s:1$:0:' config.make \ + || die "sed config.make failed" + fi +} + +src_compile() { + tc-export CC + emake libdir || die "emake libdir failed" + emake || die "emake failed" + emake -C ethercard-diag || die "emake ethercard-diag failed" + + if use nls ; then + emake i18ndir || die "emake i18ndir failed" + fi +} + +src_install() { + make BASEDIR="${D}" install || die "make install failed" + make -C ethercard-diag DESTDIR="${D}" install || die "make install ethercard-diag failed" + mv "${D}"/usr/share/man/man8/ether{,-}wake.8 + mv "${D}"/usr/sbin/mii-diag "${D}"/sbin/ || die "mv mii-diag failed" + mv "${D}"/bin/* "${D}"/sbin/ || die "mv bin to sbin failed" + mv "${D}"/sbin/{hostname,domainname,netstat,dnsdomainname,ypdomainname,nisdomainname} "${D}"/bin/ \ + || die "mv sbin to bin failed" + dodir /usr/bin + dosym /bin/hostname /usr/bin/hostname + + dodoc README README.ipv6 TODO +} |