summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Holzer <mholzer@gentoo.org>2003-10-16 20:40:49 +0000
committerMartin Holzer <mholzer@gentoo.org>2003-10-16 20:40:49 +0000
commitadf02f0f8aed11877bf2f20392abd0a6dd68ada8 (patch)
tree407a4cd1d04e281eaf9902d5c691840fbddb2ab4 /sys-apps
parentVersion bumped. (diff)
downloadgentoo-2-adf02f0f8aed11877bf2f20392abd0a6dd68ada8.tar.gz
gentoo-2-adf02f0f8aed11877bf2f20392abd0a6dd68ada8.tar.bz2
gentoo-2-adf02f0f8aed11877bf2f20392abd0a6dd68ada8.zip
Version bumped.
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/file/ChangeLog6
-rw-r--r--sys-apps/file/Manifest4
-rw-r--r--sys-apps/file/file-4.06.ebuild60
-rw-r--r--sys-apps/file/files/digest-file-4.061
4 files changed, 68 insertions, 3 deletions
diff --git a/sys-apps/file/ChangeLog b/sys-apps/file/ChangeLog
index edd9d30b3425..da1fc4499436 100644
--- a/sys-apps/file/ChangeLog
+++ b/sys-apps/file/ChangeLog
@@ -1,7 +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.20 2003/10/12 05:52:20 kumba Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/file/ChangeLog,v 1.21 2003/10/16 20:40:43 mholzer Exp $
+*file-4.06 (17 Oct 2003)
+
+ 17 Oct 2003; Martin Holzer <mholzer@gentoo.org> file-4.06.ebuild:
+ Version bumped.
*file-4.05 (09 Oct 2003)
diff --git a/sys-apps/file/Manifest b/sys-apps/file/Manifest
index f8415a79b8e7..0b747be13835 100644
--- a/sys-apps/file/Manifest
+++ b/sys-apps/file/Manifest
@@ -1,10 +1,10 @@
-MD5 61e507585afce0de6e3931e9f805ed94 ChangeLog 3116
+MD5 37118251cde90e71d0f719e0d5bdf1cd ChangeLog 3230
MD5 9199c0027f82ae3e018e2415de888492 file-3.37.ebuild 870
MD5 11c4331cb3a68b4bd5250959127e31c0 file-3.39.ebuild 1008
MD5 864d9d78ae48573d790cc598fcc4bc40 file-3.41.ebuild 1025
MD5 20dd962c51a7b039d867a7a99645fbb5 file-4.01.ebuild 936
MD5 e593a4a7dea3146bb413dea1737d48b6 file-4.02.ebuild 1093
-MD5 27a946b2fd4e620bf524521883c626a6 file-4.06.ebuild 1832
+MD5 8eb25e939579bbe95b4c354b223bcd21 file-4.06.ebuild 1844
MD5 eaf31df54d9fcbb759afd4c5e6dcfc7e file-4.03.ebuild 1102
MD5 27a946b2fd4e620bf524521883c626a6 file-4.05.ebuild 1832
MD5 3a18c97dfcc727e6c1b701cc8c03af47 files/digest-file-3.37 267
diff --git a/sys-apps/file/file-4.06.ebuild b/sys-apps/file/file-4.06.ebuild
new file mode 100644
index 000000000000..2b8ecee4d2d8
--- /dev/null
+++ b/sys-apps/file/file-4.06.ebuild
@@ -0,0 +1,60 @@
+# 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-4.06.ebuild,v 1.1 2003/10/16 20:40:43 mholzer Exp $
+
+inherit flag-o-matic
+
+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 ~amd64 ~ppc ~sparc ~arm ~alpha ~hppa ~mips ~ia64"
+SLOT="0"
+LICENSE="as-is"
+
+DEPEND="virtual/glibc"
+
+src_unpack() {
+ unpack ${A}
+
+ # (12 Oct 2003) <kumba@gentoo.org>
+ # This sed command fixes file's src/patchlevel.h to report the proper version
+ # information. Current, file-4.05 reports itself as file-4.04. An email is
+ # Going to be sent to the author about this, so this little kludge will not
+ # be needed with the next version of file.
+ mv -f ${S}/src/patchlevel.h ${S}/src/patchlevel.h.orig
+ sed -re 's/(#define\W+)(patchlevel\W+)4/\1\25/g' ${S}/src/patchlevel.h.orig > ${S}/src/patchlevel.h
+
+ # (12 Oct 2003) <kumba@gentoo.org>
+ # This patch is for MIPS only. It slightly changes the 'file' output
+ # on MIPS machines to a specific format so that other programs can
+ # recognize things.
+ if [ "${ARCH}" = "mips" ]; then
+ epatch ${FILESDIR}/${P}-mips-gentoo.diff
+ fi
+}
+
+src_compile() {
+
+ # file command segfaults on hppa - reported by gustavo@zacarias.com.ar
+ [ ${ARCH} = "hppa" ] && filter-flags "-mschedule=8000"
+
+ ./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 ChangeLog LEGAL.NOTICE MAINT README || die
+ else
+ rm -rf ${D}/usr/share/man
+ fi
+}
diff --git a/sys-apps/file/files/digest-file-4.06 b/sys-apps/file/files/digest-file-4.06
new file mode 100644
index 000000000000..8a65a67aa14d
--- /dev/null
+++ b/sys-apps/file/files/digest-file-4.06
@@ -0,0 +1 @@
+MD5 e00475c8b37dc4a3f9e576d9280bc3f5 file-4.06.tar.gz 353638