Skip to content

Commit

Permalink
sysutils/file: Updated to 4.26, added new maintainer. Closes https://…
Browse files Browse the repository at this point in the history
…trac.macports.org/ticket/16759, thanks to jay-macports@shopwatch.org.

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@40528 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Simon Ruderich committed Oct 5, 2008
1 parent dbe85f1 commit cf6ebe1
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 20 deletions.
26 changes: 11 additions & 15 deletions sysutils/file/Portfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$

PortSystem 1.0

name file
version 4.25
version 4.26
categories sysutils
maintainers nomaintainer
maintainers jay.fm:jay-macports \
openmaintainer
description File - determine file type
long_description \
File tests each argument in an attempt to classify it. There are three \
Expand All @@ -18,28 +20,22 @@ platforms darwin
master_sites ftp://ftp.fu-berlin.de/unix/tools/${name}/ \
ftp://ftp.astron.com/pub/${name}/ \
ftp://ftp.gw.com/mirrors/pub/unix/${name}/
checksums md5 cdf1f90d2704e71118353c16c19898ba \
sha1 0d4a0b678a4c13fbc38cd0ea633ef4df60d74f22 \
rmd160 c877a223a1dbdfd38c6f5ac385b533e8c5223fe1
checksums md5 74cd5466416136da30a4e69f74dbc7a0 \
sha1 412cdac5cd778d867e2d91a01b09858be1998ec3 \
rmd160 e8b84e01d1f43faedfe676afc92c2cba4a01ecdf

patchfiles patch-lzma.diff
patchfiles patch-lzma.diff \
patch-src-file.h.diff

configure.args --mandir=${prefix}/share/man \
--enable-fsect-man5 \
--program-prefix=g
depends_lib port:zlib

variant with_default_names description {don't prefix names with a 'g'} {
post-destroot {
foreach d {bin share/man/man1 share/man/man3 share/man/man5} {
foreach a [glob -directory ${destroot}${prefix}/$d g*] {
regexp /g(.+)\$ $a dummy b
file link -hard ${destroot}${prefix}/$d/$b $a
}
}
}
configure.args-delete --program-prefix=g
}

livecheck.check md5
livecheck.url ftp://ftp.fu-berlin.de/unix/tools/${name}/
livecheck.md5 600d214efae30987572951c14fa31863
livecheck.md5 a2918bbcee8b1ca0225c5358f1801fdb
16 changes: 11 additions & 5 deletions sysutils/file/files/patch-lzma.diff
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
# adapted from lzma-4.42.0alphaX/extra/tar/file-4.21.patch
--- magic/Magdir/compress.orig 2006-03-02 23:10:26.000000000 +0100
+++ magic/Magdir/compress 2007-09-12 21:40:54.000000000 -0000
@@ -174,6 +174,19 @@
>6 byte x version %d
>7 byte x \b.%d
# 2008-10-05 lzma doesn't write this new format yet (as of
# lzma 4.43 revision 2), but when it does, file will be ready
# See discussion at
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=364260
#
--- magic/Magdir/compress.orig 2008-10-05 08:59:54.000000000 -0400
+++ magic/Magdir/compress 2008-10-05 09:08:57.000000000 -0400
@@ -189,6 +189,19 @@
# bug #364260)
#0 string ]\000\000\200\000 LZMA compressed data

+# LZMA (Lempel-Ziv-Markov chain-Algorithm) file format supported by:
+# - 7-Zip <http://7-zip.org/>
Expand All @@ -20,6 +25,7 @@
+
# AFX compressed files (Wolfram Kleff)
2 string -afx- AFX compressed file data


--- src/compress.c.orig 2007-03-05 03:41:29.000000000 +0100
+++ src/compress.c 2007-09-12 21:40:54.000000000 -0000
Expand Down
21 changes: 21 additions & 0 deletions sysutils/file/files/patch-src-file.h.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Prereq: 1.108
--- src/file.h.orig 16 Jul 2008 18:00:57 -0000 1.108
+++ src/file.h 2 Sep 2008 07:11:30 -0000 1.109
@@ -27,7 +27,7 @@
*/
/*
* file.h - definitions for file(1) program
- * @(#)$File: file.h,v 1.108 2008/07/16 18:00:57 christos Exp $
+ * @(#)$File: file.h,v 1.109 2008/09/02 07:11:30 christos Exp $
*/

#ifndef __file_h__
@@ -302,7 +302,7 @@
int last_match;
int last_cond; /* used for error checking by parse() */
#endif
-} *li;
+};
struct magic_set {
struct mlist *mlist;
struct cont {

0 comments on commit cf6ebe1

Please sign in to comment.