diff options
author | cjep <cjep@pkgsrc.org> | 2003-04-13 10:24:27 +0000 |
---|---|---|
committer | cjep <cjep@pkgsrc.org> | 2003-04-13 10:24:27 +0000 |
commit | 47ffc22c9fa1436d4f7f9b02eda1c49cd614a883 (patch) | |
tree | ce7dce7444f00789c718df06924338d35fc56764 /sysutils | |
parent | 1cca64d9ce5a88a31dea7a7130856965c5fab89c (diff) | |
download | pkgsrc-47ffc22c9fa1436d4f7f9b02eda1c49cd614a883.tar.gz |
Initial import of file 4.02 into the NetBSD packages collection as
sysutils/file.
File is a file classification program. This version is the standard "file"
command for Linux, *BSD, and other systems. This is Ian Darwin's file(1)
command. It is maintained by Christos Zoulas.
Package supplied by Jeremy C. Reed in PR#20774 and also in pkgsrc-wip.
Thanks Jeremy.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/file/DESCR | 9 | ||||
-rw-r--r-- | sysutils/file/MESSAGE | 10 | ||||
-rw-r--r-- | sysutils/file/Makefile | 18 | ||||
-rw-r--r-- | sysutils/file/PLIST | 16 | ||||
-rw-r--r-- | sysutils/file/distinfo | 5 | ||||
-rw-r--r-- | sysutils/file/patches/patch-aa | 20 |
6 files changed, 78 insertions, 0 deletions
diff --git a/sysutils/file/DESCR b/sysutils/file/DESCR new file mode 100644 index 00000000000..252a0d0d218 --- /dev/null +++ b/sysutils/file/DESCR @@ -0,0 +1,9 @@ +File tests each argument in an attempt to classify it. There are +three sets of tests, performed in this order: file system tests, +magic number tests, and language tests. + +This package also includes the magic number recognition libraries. + +This version is the standard "file" command for Linux, *BSD, and other +systems. This is Ian Darwin's file(1) command. It is maintained +by Christos Zoulas. diff --git a/sysutils/file/MESSAGE b/sysutils/file/MESSAGE new file mode 100644 index 00000000000..a409c26f24c --- /dev/null +++ b/sysutils/file/MESSAGE @@ -0,0 +1,10 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2003/04/13 10:24:27 cjep Exp $ + +The magic(5) files used by file(1) and libmagic(3) are located +at ${PREFIX}/share/file/magic.*. + +Custom magic(5) additions can be placed in a ${PKG_SYSCONFDIR}/magic +file. + +=========================================================================== diff --git a/sysutils/file/Makefile b/sysutils/file/Makefile new file mode 100644 index 00000000000..8c6630b6132 --- /dev/null +++ b/sysutils/file/Makefile @@ -0,0 +1,18 @@ +# $NetBSD: Makefile,v 1.1.1.1 2003/04/13 10:24:27 cjep Exp $ + +DISTNAME= file-4.02 +CATEGORIES= sysutils +MASTER_SITES= ftp://ftp.gw.com/mirrors/pub/unix/file/ +MASTER_SITES+= ftp://ftp.astron.com/pub/file/ + +MAINTAINER= packages@netbsd.org +#HOMEPAGE= +COMMENT= tool for determining file type + +GNU_CONFIGURE= YES +CONFIGURE_ARGS+= --enable-fsect-man5 +CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} + +MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR} + +.include "../../mk/bsd.pkg.mk" diff --git a/sysutils/file/PLIST b/sysutils/file/PLIST new file mode 100644 index 00000000000..924efcf8fd2 --- /dev/null +++ b/sysutils/file/PLIST @@ -0,0 +1,16 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2003/04/13 10:24:27 cjep Exp $ +bin/file +include/magic.h +lib/libmagic.a +lib/libmagic.la +lib/libmagic.so +lib/libmagic.so.1 +lib/libmagic.so.1.0 +man/man1/file.1 +man/man3/libmagic.3 +man/man5/magic.5 +share/file/magic +share/file/magic.mgc +share/file/magic.mime +share/file/magic.mime.mgc +@dirrm share/file diff --git a/sysutils/file/distinfo b/sysutils/file/distinfo new file mode 100644 index 00000000000..a3378984895 --- /dev/null +++ b/sysutils/file/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2003/04/13 10:24:27 cjep Exp $ + +SHA1 (file-4.02.tar.gz) = d224f8d48231271915ba94c3176a266161d69c65 +Size (file-4.02.tar.gz) = 333501 bytes +SHA1 (patch-aa) = 01ef09e5a7cd6c967cb8fe5972ecc15fd4f0dd3c diff --git a/sysutils/file/patches/patch-aa b/sysutils/file/patches/patch-aa new file mode 100644 index 00000000000..84d787a24c0 --- /dev/null +++ b/sysutils/file/patches/patch-aa @@ -0,0 +1,20 @@ +$NetBSD: patch-aa,v 1.1.1.1 2003/04/13 10:24:27 cjep Exp $ + +--- src/Makefile.in.orig Fri Apr 11 19:37:59 2003 ++++ src/Makefile.in Fri Apr 11 19:41:12 2003 +@@ -122,13 +122,13 @@ + sharedstatedir = @sharedstatedir@ + sysconfdir = @sysconfdir@ + target_alias = @target_alias@ +-MAGIC = $(pkgdatadir)/magic ++MAGIC = @sysconfdir@/magic + lib_LTLIBRARIES = libmagic.la + include_HEADERS = magic.h + + bin_PROGRAMS = file + +-AM_CPPFLAGS = -DMAGIC='"$(MAGIC)"' ++AM_CPPFLAGS = -DMAGIC='"$(MAGIC):$(pkgdatadir)/magic"' + + libmagic_la_SOURCES = magic.c apprentice.c softmagic.c ascmagic.c \ + compress.c is_tar.c readelf.c print.c fsmagic.c \ |