diff options
-rw-r--r-- | app-arch/gzip/ChangeLog | 75 | ||||
-rw-r--r-- | app-arch/gzip/Manifest | 16 | ||||
-rw-r--r-- | app-arch/gzip/files/digest-gzip-1.2.4a-r6 | 1 | ||||
-rw-r--r-- | app-arch/gzip/files/digest-gzip-1.3.2 | 1 | ||||
-rw-r--r-- | app-arch/gzip/files/digest-gzip-1.3.3 | 1 | ||||
-rw-r--r-- | app-arch/gzip/files/digest-gzip-1.3.3-r1 | 1 | ||||
-rw-r--r-- | app-arch/gzip/files/digest-gzip-1.3.3-r2 | 1 | ||||
-rw-r--r-- | app-arch/gzip/files/gzip-1.2.4a-r5-gentoo.diff | 15 | ||||
-rw-r--r-- | app-arch/gzip/files/gzip-1.2.4a-r6-gentoo.diff | 38 | ||||
-rw-r--r-- | app-arch/gzip/files/gzip-1.3.2-gentoo.diff | 24 | ||||
-rw-r--r-- | app-arch/gzip/files/gzip-1.3.3-gentoo.diff | 17 | ||||
-rw-r--r-- | app-arch/gzip/files/gzip-1.3.3-security.patch | 49 | ||||
-rw-r--r-- | app-arch/gzip/gzip-1.2.4a-r6.ebuild | 56 | ||||
-rw-r--r-- | app-arch/gzip/gzip-1.3.2.ebuild | 68 | ||||
-rw-r--r-- | app-arch/gzip/gzip-1.3.3-r1.ebuild | 87 | ||||
-rw-r--r-- | app-arch/gzip/gzip-1.3.3-r2.ebuild | 87 | ||||
-rw-r--r-- | app-arch/gzip/gzip-1.3.3.ebuild | 75 |
17 files changed, 612 insertions, 0 deletions
diff --git a/app-arch/gzip/ChangeLog b/app-arch/gzip/ChangeLog new file mode 100644 index 000000000000..e8ece0106795 --- /dev/null +++ b/app-arch/gzip/ChangeLog @@ -0,0 +1,75 @@ +# ChangeLog for app-arch/gzip +# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-arch/gzip/ChangeLog,v 1.1 2003/11/14 21:11:27 seemant Exp $ + +*gzip-1.3.2 (14 Nov 2003) + + 14 Nov 2003; Seemant Kulleen <seemant@gentoo.org> gzip-1.2.4a-r6.ebuild, + gzip-1.3.2.ebuild, gzip-1.3.3-r1.ebuild, gzip-1.3.3-r2.ebuild, + gzip-1.3.3.ebuild, files/gzip-1.2.4a-r5-gentoo.diff, + files/gzip-1.2.4a-r6-gentoo.diff, files/gzip-1.3.2-gentoo.diff, + files/gzip-1.3.3-gentoo.diff, files/gzip-1.3.3-security.patch: + moved from sys-apps to app-arch + +*gzip-1.3.3-r2 (09 Jun 2003) + + 15 Jun 2003; Joshua Kinard <kumba@gentoo.org> : + Fixed b0rked digests, added ChangeLog to Manifest + + 09 Jun 2003; Daniel Ahlberg <aliz@gentoo.org> : + Security update. Added Debian patches for znew and gzexe. + + 20 Feb 2003; Zach Welch <zwelch@gentoo.org> : + Added arm to keywords. + +*gzip-1.3.3-r1 (20 Jan 2003) + + 16 Apr 2003; Guy Martin <gmsoft@gentoo.org> gzip-1.3.3-r1.ebuild : + Marked stable on hppa. + + 02 Apr 2003; Christian Birchinger <joker@gentoo.org> gzip-1.3.3-r1.ebuild: + Added stable sparc keyword + + 24 Feb 2003; Nicholas Wourms <dragon@gentoo.org> gzip-1.3.3-r1.ebuild : + Mark as stable for mips. + + 20 Jan 2003; Martin Schlemmer <azarah@gentoo.org> gzip-1.3.3-r1.ebuild : + Do install gzcat, gunzip, etc as symlinks. Closing bug #7600. Also + added z?grep and zcmp to the list from #7600. + + 10 Dec 2002; Martin Schlemmer <azarah@gentoo.org> gzip-1.3.3.ebuild : + Mark stable. + + 06 Dec 2002; Rodney Rees <manson@gentoo.org>: + Changed sparc ~sparc keywords + + 19 Oct 2002; Michael Cohen <mjc@gentoo.org> gzip-1.3.3.ebuild : + Changed KEYWORDS to "~x86 ~ppc ~sparc ~sparc64 ~alpha". + +*gzip-1.3.3 (19 Oct 2002) + + 09 Feb 2003; Guy Martin <gmsoft@gentoo.org> gzip-1.3.3.ebuild : + Added hppa to keywords. + + 19 Oct 2002; Michael Cohen <mjc@gentoo.org> : New version. + +*gzip-1.2.4a-r6 (14 July 2002) + + 14 Jul 2002; phoen][x <phoenix@gentoo.org> gzip-1.2.4a-r6.ebuild : + Added KEYWORDS, SLOT. + +*gzip-1.3.2 (1 Feb 2002) + + 18 Jan 2003; Jan Seidel <tuxus@gentoo.org> : + Added mips to keywords + + 14 Jul 2002; phoen][x <phoenix@gentoo.org> gzip-1.3.2.ebuild : + Added KEYWORDS, SLOT. + + 1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog : + + Added initial ChangeLog which should be updated whenever the package is + updated in any way. This changelog is targetted to users. This means that the + comments should well explained and written in clean English. The details about + writing correct changelogs are explained in the skel.ChangeLog file which you + can find in the root directory of the portage repository. diff --git a/app-arch/gzip/Manifest b/app-arch/gzip/Manifest new file mode 100644 index 000000000000..dec585561ac4 --- /dev/null +++ b/app-arch/gzip/Manifest @@ -0,0 +1,16 @@ +MD5 59710e57383de22f871bd76bc056b7fa gzip-1.3.3-r2.ebuild 2049 +MD5 9bd2620e2da6163579f7f6b361463c39 gzip-1.2.4a-r6.ebuild 1518 +MD5 326cf30e30fbccfdce873489456e6016 gzip-1.3.2.ebuild 1688 +MD5 127320fb112e7cabd78e49b73e92ed86 gzip-1.3.3-r1.ebuild 2048 +MD5 36970de082a5bdbd72edf390be15a34f ChangeLog 2668 +MD5 85475ab376b7dc2fdaa9f54c954c918e gzip-1.3.3.ebuild 1689 +MD5 2c85be38c17f2c260eb18915cac9c8dc files/gzip-1.3.2-gentoo.diff 1008 +MD5 2e1eadb762ec68d94f784a1d28303658 files/gzip-1.3.3-security.patch 1562 +MD5 07d188e8d3db58c7d1fc83275aee4a3e files/digest-gzip-1.3.2 62 +MD5 2034712a3fa0de0258ee8a1598965ac5 files/digest-gzip-1.3.3 62 +MD5 daab8756fc6a3b566ffcff8fb105b32c files/digest-gzip-1.2.4a-r6 63 +MD5 ed4a8134f8bb4bfb32b4b6cbb303b756 files/gzip-1.3.3-gentoo.diff 779 +MD5 2034712a3fa0de0258ee8a1598965ac5 files/digest-gzip-1.3.3-r1 62 +MD5 2034712a3fa0de0258ee8a1598965ac5 files/digest-gzip-1.3.3-r2 62 +MD5 a7c6d77f250d9f3eabdbee0c1faa0656 files/gzip-1.2.4a-r5-gentoo.diff 413 +MD5 79d2f8ddcb0198886a9639cc7c3af29d files/gzip-1.2.4a-r6-gentoo.diff 1399 diff --git a/app-arch/gzip/files/digest-gzip-1.2.4a-r6 b/app-arch/gzip/files/digest-gzip-1.2.4a-r6 new file mode 100644 index 000000000000..f7eb7e99223e --- /dev/null +++ b/app-arch/gzip/files/digest-gzip-1.2.4a-r6 @@ -0,0 +1 @@ +MD5 39053e044b18ecd0627f80fbe7cfeaad gzip-1.2.4a.tar.gz 220774 diff --git a/app-arch/gzip/files/digest-gzip-1.3.2 b/app-arch/gzip/files/digest-gzip-1.3.2 new file mode 100644 index 000000000000..97d8fc765c3d --- /dev/null +++ b/app-arch/gzip/files/digest-gzip-1.3.2 @@ -0,0 +1 @@ +MD5 57bff96b6b4bcbb060566bdbed29485d gzip-1.3.2.tar.gz 311011 diff --git a/app-arch/gzip/files/digest-gzip-1.3.3 b/app-arch/gzip/files/digest-gzip-1.3.3 new file mode 100644 index 000000000000..8ee90a6f0a0d --- /dev/null +++ b/app-arch/gzip/files/digest-gzip-1.3.3 @@ -0,0 +1 @@ +MD5 52eaf713673507d21f7abefee98ba662 gzip-1.3.3.tar.gz 312263 diff --git a/app-arch/gzip/files/digest-gzip-1.3.3-r1 b/app-arch/gzip/files/digest-gzip-1.3.3-r1 new file mode 100644 index 000000000000..8ee90a6f0a0d --- /dev/null +++ b/app-arch/gzip/files/digest-gzip-1.3.3-r1 @@ -0,0 +1 @@ +MD5 52eaf713673507d21f7abefee98ba662 gzip-1.3.3.tar.gz 312263 diff --git a/app-arch/gzip/files/digest-gzip-1.3.3-r2 b/app-arch/gzip/files/digest-gzip-1.3.3-r2 new file mode 100644 index 000000000000..8ee90a6f0a0d --- /dev/null +++ b/app-arch/gzip/files/digest-gzip-1.3.3-r2 @@ -0,0 +1 @@ +MD5 52eaf713673507d21f7abefee98ba662 gzip-1.3.3.tar.gz 312263 diff --git a/app-arch/gzip/files/gzip-1.2.4a-r5-gentoo.diff b/app-arch/gzip/files/gzip-1.2.4a-r5-gentoo.diff new file mode 100644 index 000000000000..863117e69f93 --- /dev/null +++ b/app-arch/gzip/files/gzip-1.2.4a-r5-gentoo.diff @@ -0,0 +1,15 @@ +diff -r -C2 -P gzip-1.2.4a.orig/gzip.texi gzip-1.2.4a/gzip.texi +*** gzip-1.2.4a.orig/gzip.texi Tue Feb 2 18:51:38 1999 +--- gzip-1.2.4a/gzip.texi Thu Jul 26 23:33:25 2001 +*************** +*** 8,11 **** +--- 8,16 ---- + + @ifinfo ++ ++ @dircategory Utilities ++ @direntry ++ * gzip: (gzip). The GNU compression utility. ++ @end direntry + This file documents the the GNU @code{gzip} command for compressing files. + diff --git a/app-arch/gzip/files/gzip-1.2.4a-r6-gentoo.diff b/app-arch/gzip/files/gzip-1.2.4a-r6-gentoo.diff new file mode 100644 index 000000000000..61ffdaa5cfad --- /dev/null +++ b/app-arch/gzip/files/gzip-1.2.4a-r6-gentoo.diff @@ -0,0 +1,38 @@ +diff -r -C2 gzip-1.2.4a.orig/gzexe.in gzip-1.2.4a/gzexe.in +*** gzip-1.2.4a.orig/gzexe.in Thu Jun 24 06:25:05 1993 +--- gzip-1.2.4a/gzexe.in Mon Aug 13 21:48:59 2001 +*************** +*** 97,105 **** + if /bin/ln /tmp/gztmp$$ "/tmp/$prog" 2>/dev/null; then + trap '/bin/rm -f /tmp/gztmp$$ "/tmp/$prog"; exit $res' 0 +! (/bin/sleep 5; /bin/rm -f /tmp/gztmp$$ "/tmp/$prog") 2>/dev/null & + /tmp/"$prog" ${1+"$@"}; res=$? + else + trap '/bin/rm -f /tmp/gztmp$$; exit $res' 0 +! (/bin/sleep 5; /bin/rm -f /tmp/gztmp$$) 2>/dev/null & + /tmp/gztmp$$ ${1+"$@"}; res=$? + fi +--- 97,105 ---- + if /bin/ln /tmp/gztmp$$ "/tmp/$prog" 2>/dev/null; then + trap '/bin/rm -f /tmp/gztmp$$ "/tmp/$prog"; exit $res' 0 +! (/usr/bin/sleep 5; /bin/rm -f /tmp/gztmp$$ "/tmp/$prog") 2>/dev/null & + /tmp/"$prog" ${1+"$@"}; res=$? + else + trap '/bin/rm -f /tmp/gztmp$$; exit $res' 0 +! (/usr/bin/sleep 5; /bin/rm -f /tmp/gztmp$$) 2>/dev/null & + /tmp/gztmp$$ ${1+"$@"}; res=$? + fi +diff -r -C2 gzip-1.2.4a.orig/gzip.texi gzip-1.2.4a/gzip.texi +*** gzip-1.2.4a.orig/gzip.texi Tue Feb 2 18:51:38 1999 +--- gzip-1.2.4a/gzip.texi Mon Aug 13 21:51:58 2001 +*************** +*** 8,11 **** +--- 8,15 ---- + + @ifinfo ++ @direntry ++ * gzip: (gzip). The GNU compression utility. ++ @end direntry ++ + This file documents the the GNU @code{gzip} command for compressing files. + diff --git a/app-arch/gzip/files/gzip-1.3.2-gentoo.diff b/app-arch/gzip/files/gzip-1.3.2-gentoo.diff new file mode 100644 index 000000000000..c940fd30866e --- /dev/null +++ b/app-arch/gzip/files/gzip-1.3.2-gentoo.diff @@ -0,0 +1,24 @@ +diff -r -C2 gzip-1.2.4a.orig/gzexe.in gzip-1.2.4a/gzexe.in +*** gzip-1.3.2.orig/gzexe.in Thu Jun 24 06:25:05 1993 +--- gzip-1.3.2/gzexe.in Mon Aug 13 21:48:59 2001 +*************** +*** 97,105 **** + if /bin/ln /tmp/gztmp$$ "/tmp/$prog" 2>/dev/null; then + trap '/bin/rm -f /tmp/gztmp$$ "/tmp/$prog"; exit $res' 0 +! (/bin/sleep 5; /bin/rm -f /tmp/gztmp$$ "/tmp/$prog") 2>/dev/null & + /tmp/"$prog" ${1+"$@"}; res=$? + else + trap '/bin/rm -f /tmp/gztmp$$; exit $res' 0 +! (/bin/sleep 5; /bin/rm -f /tmp/gztmp$$) 2>/dev/null & + /tmp/gztmp$$ ${1+"$@"}; res=$? + fi +--- 97,105 ---- + if /bin/ln /tmp/gztmp$$ "/tmp/$prog" 2>/dev/null; then + trap '/bin/rm -f /tmp/gztmp$$ "/tmp/$prog"; exit $res' 0 +! (/usr/bin/sleep 5; /bin/rm -f /tmp/gztmp$$ "/tmp/$prog") 2>/dev/null & + /tmp/"$prog" ${1+"$@"}; res=$? + else + trap '/bin/rm -f /tmp/gztmp$$; exit $res' 0 +! (/usr/bin/sleep 5; /bin/rm -f /tmp/gztmp$$) 2>/dev/null & + /tmp/gztmp$$ ${1+"$@"}; res=$? + fi diff --git a/app-arch/gzip/files/gzip-1.3.3-gentoo.diff b/app-arch/gzip/files/gzip-1.3.3-gentoo.diff new file mode 100644 index 000000000000..50c955775180 --- /dev/null +++ b/app-arch/gzip/files/gzip-1.3.3-gentoo.diff @@ -0,0 +1,17 @@ +diff -Nru gzip-1.3.3/gzexe.in gzip-1.3.3.gentoo/gzexe.in +--- gzip-1.3.3/gzexe.in 1998-09-17 20:43:06.000000000 -0400 ++++ gzip-1.3.3.gentoo/gzexe.in 2002-10-19 17:44:02.000000000 -0400 +@@ -100,11 +100,11 @@ + prog="`echo $0 | /bin/sed 's|^.*/||'`" + if /bin/ln /tmp/gztmp$$ "/tmp/$prog" 2>/dev/null; then + trap '/bin/rm -f /tmp/gztmp$$ "/tmp/$prog"; exit $res' 0 +- (/bin/sleep 5; /bin/rm -f /tmp/gztmp$$ "/tmp/$prog") 2>/dev/null & ++ (/usr/bin/sleep 5; /bin/rm -f /tmp/gztmp$$ "/tmp/$prog") 2>/dev/null & + /tmp/"$prog" ${1+"$@"}; res=$? + else + trap '/bin/rm -f /tmp/gztmp$$; exit $res' 0 +- (/bin/sleep 5; /bin/rm -f /tmp/gztmp$$) 2>/dev/null & ++ (/usr/bin/sleep 5; /bin/rm -f /tmp/gztmp$$) 2>/dev/null & + /tmp/gztmp$$ ${1+"$@"}; res=$? + fi + else diff --git a/app-arch/gzip/files/gzip-1.3.3-security.patch b/app-arch/gzip/files/gzip-1.3.3-security.patch new file mode 100644 index 000000000000..cbebfaf679d9 --- /dev/null +++ b/app-arch/gzip/files/gzip-1.3.3-security.patch @@ -0,0 +1,49 @@ +--- gzip-1.3.2.orig/gzexe.in ++++ gzip-1.3.2/gzexe.in +@@ -90,22 +90,23 @@ + if test $decomp -eq 0; then + sed 1q $0 > $tmp + sed "s|^if tail|if $tail|" >> $tmp <<'EOF' +-skip=22 ++skip=23 + set -C + umask=`umask` + umask 77 +-if tail +$skip $0 | "BINDIR"/gzip -cd > /tmp/gztmp$$; then ++tmpfile=$(tempfile -p gztmp -d /tmp) ++if tail +$skip $0 | /bin/gzip -cd >> $tmpfile; then + umask $umask +- /bin/chmod 700 /tmp/gztmp$$ ++ /bin/chmod 700 $tmpfile + prog="`echo $0 | /bin/sed 's|^.*/||'`" +- if /bin/ln /tmp/gztmp$$ "/tmp/$prog" 2>/dev/null; then +- trap '/bin/rm -f /tmp/gztmp$$ "/tmp/$prog"; exit $res' 0 +- (/bin/sleep 5; /bin/rm -f /tmp/gztmp$$ "/tmp/$prog") 2>/dev/null & ++ if /bin/ln $tmpfile "/tmp/$prog" 2>/dev/null; then ++ trap '/bin/rm -f $tmpfile "/tmp/$prog"; exit $res' 0 ++ (/bin/sleep 5; /bin/rm -f $tmpfile "/tmp/$prog") 2>/dev/null & + /tmp/"$prog" ${1+"$@"}; res=$? + else +- trap '/bin/rm -f /tmp/gztmp$$; exit $res' 0 +- (/bin/sleep 5; /bin/rm -f /tmp/gztmp$$) 2>/dev/null & +- /tmp/gztmp$$ ${1+"$@"}; res=$? ++ trap '/bin/rm -f $tmpfile; exit $res' 0 ++ (/bin/sleep 5; /bin/rm -f $tmpfile) 2>/dev/null & ++ $tmpfile ${1+"$@"}; res=$? + fi + else + echo Cannot decompress $0; exit 1 +--- gzip-1.3.2.orig/znew.in ++++ gzip-1.3.2/znew.in +@@ -16,8 +16,8 @@ + warn="(does not preserve modes and timestamp)" + tmp=/tmp/zfoo.$$ + set -C +-echo hi > $tmp.1 +-echo hi > $tmp.2 ++echo hi > $tmp.1 || exit 1 ++echo hi > $tmp.2 || exit 1 + if test -z "`(${CPMOD-cpmod} $tmp.1 $tmp.2) 2>&1`"; then + cpmod=${CPMOD-cpmod} + warn="" + diff --git a/app-arch/gzip/gzip-1.2.4a-r6.ebuild b/app-arch/gzip/gzip-1.2.4a-r6.ebuild new file mode 100644 index 000000000000..f552a27467cf --- /dev/null +++ b/app-arch/gzip/gzip-1.2.4a-r6.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-arch/gzip/gzip-1.2.4a-r6.ebuild,v 1.1 2003/11/14 21:11:27 seemant Exp $ + +IUSE="nls build" + +S=${WORKDIR}/${P} +DESCRIPTION="Standard GNU compressor" +SRC_URI="ftp://prep.ai.mit.edu/gnu/gzip/${P}.tar.gz" +HOMEPAGE="http://www.gnu.org/software/gzip/gzip.html" +KEYWORDS="x86 amd64 sparc ppc" +SLOT="0" +DEPEND="virtual/glibc nls? ( sys-devel/gettext )" +RDEPEND="virtual/glibc" +LICENSE="GPL-2" + +src_unpack() { + unpack ${A} + cd ${WORKDIR} + patch -p0 < ${FILESDIR}/${PF}-gentoo.diff +} + +src_compile() { + [ -z "`use nls`" ] && myconf="--disable-nls" + ./configure --host=${CHOST} --prefix=/usr --exec-prefix=/ --mandir=/usr/share/man --infodir=/usr/share/info ${myconf} || die + emake || die +} + +src_install() { + dodir /usr/bin /usr/share/man/man1 + make prefix=${D}/usr exec_prefix=${D}/ mandir=${D}/usr/share/man/man1 infodir=${D}/usr/share/info install || die + cd ${D}/bin + for i in gzexe zforce zgrep zmore znew zcmp + do + cp ${i} ${i}.orig + sed -e "1d" -e "s:${D}::" ${i}.orig > ${i} + rm ${i}.orig + chmod 755 ${i} + done + if [ -z "`use build`" ] + then + cd ${D}/usr/share/man/man1 + for i in gzexe gzip zcat zcmp zdiff zforce zgrep zmore znew + do + rm ${i}.1 + ln -s gunzip.1.gz ${i}.1.gz + done + cd ${S} + rm -rf ${D}/usr/man ${D}/usr/lib + dodoc ChangeLog COPYING NEWS README THANKS TODO + docinto txt + dodoc algorithm.doc gzip.doc + else + rm -rf ${D}/usr + fi +} diff --git a/app-arch/gzip/gzip-1.3.2.ebuild b/app-arch/gzip/gzip-1.3.2.ebuild new file mode 100644 index 000000000000..42f293c4809c --- /dev/null +++ b/app-arch/gzip/gzip-1.3.2.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-arch/gzip/gzip-1.3.2.ebuild,v 1.1 2003/11/14 21:11:27 seemant Exp $ + +IUSE="nls build" + +S=${WORKDIR}/${P} +DESCRIPTION="Standard GNU compressor" +SRC_URI="ftp://alpha.gnu.org/gnu/gzip/${P}.tar.gz" +HOMEPAGE="http://www.gnu.org/software/gzip/gzip.html" +KEYWORDS="x86 amd64 ppc sparc alpha mips" +SLOT="0" +LICENSE="GPL-2" + +DEPEND="virtual/glibc nls? ( sys-devel/gettext )" +RDEPEND="virtual/glibc" + +src_unpack() { + unpack ${A} + cd ${WORKDIR} + patch -p0 < ${FILESDIR}/${PF}-gentoo.diff || die +} + +src_compile() { + [ -z "`use nls`" ] && myconf="--disable-nls" + + # Compiling with gcc3 and higher level of optimization seems to + # cause a segmentation fault in some very rare cases on alpha. + [ ${ARCH} == "alpha" ] && CFLAGS="-O -pipe" + + ./configure --host=${CHOST} \ + --prefix=/usr \ + --exec-prefix=/ \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + ${myconf} || die + emake || die +} + +src_install() { + dodir /usr/bin /usr/share/man/man1 + make prefix=${D}/usr \ + exec_prefix=${D}/ \ + mandir=${D}/usr/share/man \ + infodir=${D}/usr/share/info \ + install || die + cd ${D}/bin + for i in gzexe zforce zgrep zmore znew zcmp + do + dosed -e "1d" -e "s:${D}::" ${i} + chmod 755 ${i} + done + if [ -z "`use build`" ] + then + cd ${D}/usr/share/man/man1 + rm -f gunzip.* zcmp.* zcat.* + ln -s gzip.1.gz gunzip.1.gz + ln -s zdiff.1.gz zcmp.1.gz + ln -s gzip.1.gz zcat.1.gz + cd ${S} + rm -rf ${D}/usr/man ${D}/usr/lib + dodoc ChangeLog COPYING NEWS README THANKS TODO + docinto txt + dodoc algorithm.doc gzip.doc + else + rm -rf ${D}/usr + fi +} diff --git a/app-arch/gzip/gzip-1.3.3-r1.ebuild b/app-arch/gzip/gzip-1.3.3-r1.ebuild new file mode 100644 index 000000000000..5edff6e60529 --- /dev/null +++ b/app-arch/gzip/gzip-1.3.3-r1.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-arch/gzip/gzip-1.3.3-r1.ebuild,v 1.1 2003/11/14 21:11:27 seemant Exp $ + +IUSE="nls build" + +inherit eutils + +S="${WORKDIR}/${P}" +DESCRIPTION="Standard GNU compressor" +SRC_URI="http://www.gzip.org/${P}.tar.gz" +HOMEPAGE="http://www.gnu.org/software/gzip/gzip.html" + +KEYWORDS="x86 amd64 ppc sparc ~alpha hppa arm mips" +SLOT="0" +LICENSE="GPL-2" + +DEPEND="virtual/glibc nls? ( sys-devel/gettext )" +RDEPEND="virtual/glibc" + +src_unpack() { + unpack ${A} + + cd ${WORKDIR} + epatch ${FILESDIR}/${P}-gentoo.diff +} + +src_compile() { + [ -z "`use nls`" ] && myconf="--disable-nls" + + # Compiling with gcc3 and higher level of optimization seems to + # cause a segmentation fault in some very rare cases on alpha. + [ ${ARCH} = "alpha" ] && CFLAGS="-O -pipe" + + ./configure --host=${CHOST} \ + --prefix=/usr \ + --exec-prefix=/ \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + ${myconf} || die + emake || die +} + +src_install() { + dodir /usr/bin /usr/share/man/man1 + make prefix=${D}/usr \ + exec_prefix=${D}/ \ + mandir=${D}/usr/share/man \ + infodir=${D}/usr/share/info \ + install || die + + cd ${D}/bin + for i in gzexe zforce zgrep zmore znew zcmp + do + dosed -e "1d" -e "s:${D}::" ${i} + chmod 755 ${i} + done + + # No need to waste space -- these guys should be links + # gzcat is equivilant to zcat, but historically zcat + # was a link to compress. + rm -f gunzip zcat zcmp zegrep zfgrep + dosym gzip /bin/gunzip + dosym gzip /bin/gzcat + dosym gzip /bin/zcat + dosym zdiff /bin/zcmp + dosym zgrep /bin/zegrep + dosym zgrep /bin/zfgrep + + if [ -z "`use build`" ] + then + cd ${D}/usr/share/man/man1 + rm -f gunzip.* zcmp.* zcat.* + ln -s gzip.1.gz gunzip.1.gz + ln -s zdiff.1.gz zcmp.1.gz + ln -s gzip.1.gz zcat.1.gz + ln -s gzip.1.gz gzcat.1.gz + cd ${S} + rm -rf ${D}/usr/man ${D}/usr/lib + dodoc ChangeLog COPYING NEWS README THANKS TODO + docinto txt + dodoc algorithm.doc gzip.doc + else + rm -rf ${D}/usr + fi +} + diff --git a/app-arch/gzip/gzip-1.3.3-r2.ebuild b/app-arch/gzip/gzip-1.3.3-r2.ebuild new file mode 100644 index 000000000000..b28a6d02a683 --- /dev/null +++ b/app-arch/gzip/gzip-1.3.3-r2.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-arch/gzip/gzip-1.3.3-r2.ebuild,v 1.1 2003/11/14 21:11:27 seemant Exp $ + +IUSE="nls build" + +inherit eutils + +S="${WORKDIR}/${P}" +DESCRIPTION="Standard GNU compressor" +SRC_URI="http://www.gzip.org/${P}.tar.gz" +HOMEPAGE="http://www.gnu.org/software/gzip/gzip.html" + +KEYWORDS="x86 amd64 ppc sparc alpha hppa arm mips ia64" +SLOT="0" +LICENSE="GPL-2" + +DEPEND="virtual/glibc nls? ( sys-devel/gettext )" +RDEPEND="virtual/glibc" + +src_unpack() { + unpack ${A} + + cd ${S} + epatch ${FILESDIR}/${P}-security.patch +} + +src_compile() { + [ -z "`use nls`" ] && myconf="--disable-nls" + + # Compiling with gcc3 and higher level of optimization seems to + # cause a segmentation fault in some very rare cases on alpha. + [ ${ARCH} = "alpha" ] && CFLAGS="-O -pipe" + + ./configure --host=${CHOST} \ + --prefix=/usr \ + --exec-prefix=/ \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + ${myconf} || die + emake || die +} + +src_install() { + dodir /usr/bin /usr/share/man/man1 + make prefix=${D}/usr \ + exec_prefix=${D}/ \ + mandir=${D}/usr/share/man \ + infodir=${D}/usr/share/info \ + install || die + + cd ${D}/bin + for i in gzexe zforce zgrep zmore znew zcmp + do + dosed -e "1d" -e "s:${D}::" ${i} + chmod 755 ${i} + done + + # No need to waste space -- these guys should be links + # gzcat is equivilant to zcat, but historically zcat + # was a link to compress. + rm -f gunzip zcat zcmp zegrep zfgrep + dosym gzip /bin/gunzip + dosym gzip /bin/gzcat + dosym gzip /bin/zcat + dosym zdiff /bin/zcmp + dosym zgrep /bin/zegrep + dosym zgrep /bin/zfgrep + + if [ -z "`use build`" ] + then + cd ${D}/usr/share/man/man1 + rm -f gunzip.* zcmp.* zcat.* + ln -s gzip.1.gz gunzip.1.gz + ln -s zdiff.1.gz zcmp.1.gz + ln -s gzip.1.gz zcat.1.gz + ln -s gzip.1.gz gzcat.1.gz + cd ${S} + rm -rf ${D}/usr/man ${D}/usr/lib + dodoc ChangeLog COPYING NEWS README THANKS TODO + docinto txt + dodoc algorithm.doc gzip.doc + else + rm -rf ${D}/usr + fi +} + diff --git a/app-arch/gzip/gzip-1.3.3.ebuild b/app-arch/gzip/gzip-1.3.3.ebuild new file mode 100644 index 000000000000..20615ae5372f --- /dev/null +++ b/app-arch/gzip/gzip-1.3.3.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-arch/gzip/gzip-1.3.3.ebuild,v 1.1 2003/11/14 21:11:27 seemant Exp $ + +IUSE="nls build" + +inherit eutils + +S="${WORKDIR}/${P}" +DESCRIPTION="Standard GNU compressor" +SRC_URI="http://www.gzip.org/${P}.tar.gz" +HOMEPAGE="http://www.gnu.org/software/gzip/gzip.html" + +KEYWORDS="x86 amd64 ppc sparc alpha hppa" +SLOT="0" +LICENSE="GPL-2" + +DEPEND="virtual/glibc nls? ( sys-devel/gettext )" +RDEPEND="virtual/glibc" + +src_unpack() { + unpack ${A} + + cd ${WORKDIR} + epatch ${FILESDIR}/${PF}-gentoo.diff +} + +src_compile() { + [ -z "`use nls`" ] && myconf="--disable-nls" + + # Compiling with gcc3 and higher level of optimization seems to + # cause a segmentation fault in some very rare cases on alpha. + [ ${ARCH} = "alpha" ] && CFLAGS="-O -pipe" + + ./configure --host=${CHOST} \ + --prefix=/usr \ + --exec-prefix=/ \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + ${myconf} || die + emake || die +} + +src_install() { + dodir /usr/bin /usr/share/man/man1 + make prefix=${D}/usr \ + exec_prefix=${D}/ \ + mandir=${D}/usr/share/man \ + infodir=${D}/usr/share/info \ + install || die + + cd ${D}/bin + for i in gzexe zforce zgrep zmore znew zcmp + do + dosed -e "1d" -e "s:${D}::" ${i} + chmod 755 ${i} + done + + if [ -z "`use build`" ] + then + cd ${D}/usr/share/man/man1 + rm -f gunzip.* zcmp.* zcat.* + ln -s gzip.1.gz gunzip.1.gz + ln -s zdiff.1.gz zcmp.1.gz + ln -s gzip.1.gz zcat.1.gz + cd ${S} + rm -rf ${D}/usr/man ${D}/usr/lib + dodoc ChangeLog COPYING NEWS README THANKS TODO + docinto txt + dodoc algorithm.doc gzip.doc + else + rm -rf ${D}/usr + fi +} + |