summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Ahlberg <aliz@gentoo.org>2003-03-06 20:59:49 +0000
committerDaniel Ahlberg <aliz@gentoo.org>2003-03-06 20:59:49 +0000
commit875b77a042e011d49a42b2bd7b3f0482b10c1ad3 (patch)
tree9e202c1d60a8be381891c2192fb209df65a27a70 /sys-apps/file
parentadd patch for kernel-2.5 (diff)
downloadgentoo-2-875b77a042e011d49a42b2bd7b3f0482b10c1ad3.tar.gz
gentoo-2-875b77a042e011d49a42b2bd7b3f0482b10c1ad3.tar.bz2
gentoo-2-875b77a042e011d49a42b2bd7b3f0482b10c1ad3.zip
Security update.
Diffstat (limited to 'sys-apps/file')
-rw-r--r--sys-apps/file/ChangeLog7
-rw-r--r--sys-apps/file/file-3.41.ebuild45
-rw-r--r--sys-apps/file/files/digest-file-3.411
-rw-r--r--sys-apps/file/files/file-3.41-mips-gentoo.diff123
4 files changed, 175 insertions, 1 deletions
diff --git a/sys-apps/file/ChangeLog b/sys-apps/file/ChangeLog
index 4856837920ad..a7c38c3adfad 100644
--- a/sys-apps/file/ChangeLog
+++ b/sys-apps/file/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-apps/file
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/file/ChangeLog,v 1.10 2003/02/21 02:34:19 zwelch Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/file/ChangeLog,v 1.11 2003/03/06 20:59:49 aliz Exp $
+
+*file-3.41 (06 Mar 2003)
+
+ 06 Mar 2003; Daniel Ahlberg <aliz@gentoo.rg> :
+ Security update.
20 Feb 2003; Zach Welch <zwelch@gentoo.org> file-3.39.ebuild :
Added arm to keywords.
diff --git a/sys-apps/file/file-3.41.ebuild b/sys-apps/file/file-3.41.ebuild
new file mode 100644
index 000000000000..3566ae47555e
--- /dev/null
+++ b/sys-apps/file/file-3.41.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/file/file-3.41.ebuild,v 1.1 2003/03/06 20:59:49 aliz Exp $
+
+inherit eutils
+
+S=${WORKDIR}/${P}
+DESCRIPTION="Program to identify a file's format by scanning binary data for patterns"
+SRC_URI="ftp://ftp.gw.com/mirrors/pub/unix/file/${P}.tar.gz
+ ftp://ftp.astron.com/pub/file/${P}.tar.gz"
+HOMEPAGE="ftp://ftp.astron.com/pub/file/"
+
+KEYWORDS="~x86 ~ppc ~sparc ~alpha ~mips ~hppa ~arm"
+SLOT="0"
+LICENSE="as-is"
+
+DEPEND="virtual/glibc"
+
+src_unpack() {
+ unpack ${A}
+
+ if [ "${ARCH}" = "mips" ]; then
+ cd ${S}
+ epatch ${FILESDIR}/${P}-mips-gentoo.diff || die
+ fi
+}
+
+src_compile() {
+ ./configure --prefix=/usr \
+ --mandir=/usr/share/man \
+ --datadir=/usr/share/misc \
+ --host=${CHOST} || die
+
+ emake || die
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+
+ if [ -z "`use build`" ] ; then
+ dodoc LEGAL.NOTICE MAINT README
+ else
+ rm -rf ${D}/usr/share/man
+ fi
+}
diff --git a/sys-apps/file/files/digest-file-3.41 b/sys-apps/file/files/digest-file-3.41
new file mode 100644
index 000000000000..97e2d6ae41c8
--- /dev/null
+++ b/sys-apps/file/files/digest-file-3.41
@@ -0,0 +1 @@
+MD5 1d9ac92fa1da3043a67c9445bb140824 file-3.41.tar.gz 183928
diff --git a/sys-apps/file/files/file-3.41-mips-gentoo.diff b/sys-apps/file/files/file-3.41-mips-gentoo.diff
new file mode 100644
index 000000000000..cae5d23e3a02
--- /dev/null
+++ b/sys-apps/file/files/file-3.41-mips-gentoo.diff
@@ -0,0 +1,123 @@
+diff -ur file-3.39/Magdir/elf file-3.39-working/Magdir/elf
+--- file-3.39/Magdir/elf 2002-05-16 20:45:57.000000000 +0200
++++ file-3.39-working/Magdir/elf 2003-02-06 23:43:22.000000000 +0100
+@@ -18,10 +18,32 @@
+ >4 byte 2 64-bit
+ >5 byte 0 invalid byte order
+ >5 byte 1 LSB
++>>16 leshort 0 no file type,
++>>16 leshort 1 relocatable,
++>>16 leshort 2 executable,
++>>16 leshort 3 shared object,
++# Core handling from Peter Tobias <tobias@server.et-inf.fho-emden.de>
++# corrections by Christian 'Dr. Disk' Hechelmann <drdisk@ds9.au.s.shuttle.de>
++>>16 leshort 4 core file
++# Core file detection is not reliable.
++#>>>(0x38+0xcc) string >\0 of '%s'
++#>>>(0x38+0x10) lelong >0 (signal %d),
++>>16 leshort &0xff00 processor-specific,
++>>18 leshort 0 no machine,
++>>18 leshort 1 AT&T WE32100 - invalid byte order,
++>>18 leshort 2 SPARC - invalid byte order,
++>>18 leshort 3 Intel 80386,
++>>18 leshort 4 Motorola
++>>>36 lelong &0x01000000 68000 - invalid byte order,
++>>>36 lelong &0x00810000 CPU32 - invalid byte order,
++>>>36 lelong 0 68020 - invalid byte order,
++>>18 leshort 5 Motorola 88000 - invalid byte order,
++>>18 leshort 6 Intel 80486,
++>>18 leshort 7 Intel 80860,
+ # The official e_machine number for MIPS is now #8, regardless of endianness.
+ # The second number (#10) will be deprecated later. For now, we still
+ # say something if #10 is encountered, but only gory details for #8.
+->>18 leshort 8
++>>18 leshort 8 MIPS,
+ # only for 32-bit
+ >>>4 byte 1
+ >>>>36 lelong&0xf0000000 0x00000000 MIPS-I
+@@ -44,29 +66,6 @@
+ >>>>48 lelong&0xf0000000 0x70000000 MIPS64
+ >>>>48 lelong&0xf0000000 0x80000000 MIPS32 rel2
+ >>>>48 lelong&0xf0000000 0x90000000 MIPS64 rel2
+->>16 leshort 0 no file type,
+->>16 leshort 1 relocatable,
+->>16 leshort 2 executable,
+->>16 leshort 3 shared object,
+-# Core handling from Peter Tobias <tobias@server.et-inf.fho-emden.de>
+-# corrections by Christian 'Dr. Disk' Hechelmann <drdisk@ds9.au.s.shuttle.de>
+->>16 leshort 4 core file
+-# Core file detection is not reliable.
+-#>>>(0x38+0xcc) string >\0 of '%s'
+-#>>>(0x38+0x10) lelong >0 (signal %d),
+->>16 leshort &0xff00 processor-specific,
+->>18 leshort 0 no machine,
+->>18 leshort 1 AT&T WE32100 - invalid byte order,
+->>18 leshort 2 SPARC - invalid byte order,
+->>18 leshort 3 Intel 80386,
+->>18 leshort 4 Motorola
+->>>36 lelong &0x01000000 68000 - invalid byte order,
+->>>36 lelong &0x00810000 CPU32 - invalid byte order,
+->>>36 lelong 0 68020 - invalid byte order,
+->>18 leshort 5 Motorola 88000 - invalid byte order,
+->>18 leshort 6 Intel 80486,
+->>18 leshort 7 Intel 80860,
+->>18 leshort 8 MIPS,
+ >>18 leshort 9 Amdahl - invalid byte order,
+ >>18 leshort 10 MIPS (deprecated),
+ >>18 leshort 11 RS6000 - invalid byte order,
+@@ -102,8 +101,27 @@
+ >>20 lelong 1 version 1
+ >>36 lelong 1 MathCoPro/FPU/MAU Required
+ >5 byte 2 MSB
++>>16 beshort 0 no file type,
++>>16 beshort 1 relocatable,
++>>16 beshort 2 executable,
++>>16 beshort 3 shared object,
++>>16 beshort 4 core file,
++#>>>(0x38+0xcc) string >\0 of '%s'
++#>>>(0x38+0x10) belong >0 (signal %d),
++>>16 beshort &0xff00 processor-specific,
++>>18 beshort 0 no machine,
++>>18 beshort 1 AT&T WE32100,
++>>18 beshort 2 SPARC,
++>>18 beshort 3 Intel 80386 - invalid byte order,
++>>18 beshort 4 Motorola
++>>>36 belong &0x01000000 68000,
++>>>36 belong &0x00810000 CPU32,
++>>>36 belong 0 68020,
++>>18 beshort 5 Motorola 88000,
++>>18 beshort 6 Intel 80486 - invalid byte order,
++>>18 beshort 7 Intel 80860,
+ # only for MIPS - see comment in little-endian section above.
+->>18 beshort 8
++>>18 beshort 8 MIPS,
+ # only for 32-bit
+ >>>4 byte 1
+ >>>>36 belong&0xf0000000 0x00000000 MIPS-I
+@@ -126,26 +144,6 @@
+ >>>>48 belong&0xf0000000 0x70000000 MIPS64
+ >>>>48 belong&0xf0000000 0x80000000 MIPS32 rel2
+ >>>>48 belong&0xf0000000 0x90000000 MIPS64 rel2
+->>16 beshort 0 no file type,
+->>16 beshort 1 relocatable,
+->>16 beshort 2 executable,
+->>16 beshort 3 shared object,
+->>16 beshort 4 core file,
+-#>>>(0x38+0xcc) string >\0 of '%s'
+-#>>>(0x38+0x10) belong >0 (signal %d),
+->>16 beshort &0xff00 processor-specific,
+->>18 beshort 0 no machine,
+->>18 beshort 1 AT&T WE32100,
+->>18 beshort 2 SPARC,
+->>18 beshort 3 Intel 80386 - invalid byte order,
+->>18 beshort 4 Motorola
+->>>36 belong &0x01000000 68000,
+->>>36 belong &0x00810000 CPU32,
+->>>36 belong 0 68020,
+->>18 beshort 5 Motorola 88000,
+->>18 beshort 6 Intel 80486 - invalid byte order,
+->>18 beshort 7 Intel 80860,
+->>18 beshort 8 MIPS,
+ >>18 beshort 9 Amdahl,
+ >>18 beshort 10 MIPS (deprecated),
+ >>18 beshort 11 RS6000,