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.
This commit is contained in:
parent
1cca64d9ce
commit
47ffc22c9f
6 changed files with 78 additions and 0 deletions
9
sysutils/file/DESCR
Normal file
9
sysutils/file/DESCR
Normal file
|
@ -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.
|
10
sysutils/file/MESSAGE
Normal file
10
sysutils/file/MESSAGE
Normal file
|
@ -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.
|
||||
|
||||
===========================================================================
|
18
sysutils/file/Makefile
Normal file
18
sysutils/file/Makefile
Normal file
|
@ -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"
|
16
sysutils/file/PLIST
Normal file
16
sysutils/file/PLIST
Normal file
|
@ -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
|
5
sysutils/file/distinfo
Normal file
5
sysutils/file/distinfo
Normal file
|
@ -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
|
20
sysutils/file/patches/patch-aa
Normal file
20
sysutils/file/patches/patch-aa
Normal file
|
@ -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 \
|
Loading…
Reference in a new issue