Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

10
sysutils/file/DESCR Normal file
View File

@@ -0,0 +1,10 @@
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 implementation of file(1) is the standard "file" command for
Linux, *BSD, and other systems. It (as well as the magic file)
was originally written by Ian Darwin and is now maintained by a
group of developers lead by Christos Zoulas.

10
sysutils/file/MESSAGE Normal file
View 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.
===========================================================================

40
sysutils/file/Makefile Normal file
View File

@@ -0,0 +1,40 @@
# $NetBSD: Makefile,v 1.28 2012/10/23 19:51:01 asau Exp $
DISTNAME= file-5.11
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.astron.com/pub/file/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.darwinsys.com/file/
COMMENT= Tool for determining file type
LICENSE= 2-clause-bsd
USE_LIBTOOL= YES
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --enable-fsect-man5
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
TEST_TARGET= check
.include "../../mk/compiler.mk"
# gcc<4 does not know -Wextra.
# XXX: should be treated with wrappers automatically.
.if !empty(CC_VERSION:Mgcc-[23]*)
BUILDLINK_TRANSFORM+= rename:-Wextra:-W
.endif
# gcc<3 does not know -Wunused-parameter
.if !empty(CC_VERSION:Mgcc-2*)
BUILDLINK_TRANSFORM+= rm:-Wunused-parameter
.endif
.if ${LOWER_OPSYS} == "aix"
CFLAGS+= -D_LINUX_SOURCE_COMPAT
.endif
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

8
sysutils/file/PLIST Normal file
View File

@@ -0,0 +1,8 @@
@comment $NetBSD: PLIST,v 1.4 2009/05/21 15:58:17 sno Exp $
bin/file
include/magic.h
lib/libmagic.la
man/man1/file.1
man/man3/libmagic.3
man/man5/magic.5
share/misc/magic.mgc

View File

@@ -0,0 +1,18 @@
# $NetBSD: buildlink3.mk,v 1.8 2009/03/20 19:25:24 joerg Exp $
#
BUILDLINK_TREE+= file
.if !defined(FILE_BUILDLINK3_MK)
FILE_BUILDLINK3_MK:=
. include "../../mk/bsd.fast.prefs.mk"
BUILDLINK_API_DEPENDS.file+= file>=4.17
BUILDLINK_ABI_DEPENDS.file+= file>=4.17
BUILDLINK_PKGSRCDIR.file?= ../../sysutils/file
pkgbase := file
.include "../../mk/pkg-build-options.mk"
.endif # FILE_BUILDLINK3_MK
BUILDLINK_TREE+= -file

60
sysutils/file/builtin.mk Normal file
View File

@@ -0,0 +1,60 @@
# $NetBSD: builtin.mk,v 1.6 2009/03/09 17:47:36 cube Exp $
BUILTIN_PKG:= file
BUILTIN_FIND_FILES_VAR:= H_FILE BIN_FILE
BUILTIN_FIND_FILES.H_FILE= /usr/include/magic.h
BUILTIN_FIND_GREP.H_FILE= magic_file
BUILTIN_FIND_FILES.BIN_FILE= /bin/file /usr/bin/file
.include "../../mk/buildlink3/bsd.builtin.mk"
###
### Determine if there is a built-in implementation of the package and
### set IS_BUILTIN.<pkg> appropriately ("yes" or "no").
###
.if !defined(IS_BUILTIN.file)
IS_BUILTIN.file= no
. if empty(H_FILE:M__nonexistent__) && empty(H_FILE:M${LOCALBASE}/*)
IS_BUILTIN.file= yes
. endif
. if empty(BIN_FILE:M__nonexistent__) && empty(BIN_FILE:M{LOCALBASE}/*)
BUILTIN_CMD.file= ${BIN_FILE}
. else
BUILTIN_CMD.file= file
. endif
.endif
MAKEVARS+= IS_BUILTIN.file
.if !defined(BUILTIN_PKG.file) && !empty(IS_BUILTIN.file:M[yY][eE][sS])
BUILTIN_VERSION.file!= ${BUILTIN_CMD.file} --version 2>&1 | ${GREP} 'file-' | ${SED} 's/file-//'
BUILTIN_PKG.file= file-${BUILTIN_VERSION.file}
.endif
MAKEVARS+= BUILTIN_PKG.file
###
### Determine whether we should use the built-in implementation if it
### exists, and set USE_BUILTIN.<pkg> appropriate ("yes" or "no").
###
.if !defined(USE_BUILTIN.file)
. if ${PREFER.file} == "pkgsrc"
USE_BUILTIN.file= no
. else
USE_BUILTIN.file= ${IS_BUILTIN.file}
. if defined(BUILTIN_PKG.file) && \
!empty(IS_BUILTIN.file:M[yY][eE][sS])
USE_BUILTIN.file= yes
. for _dep_ in ${BUILDLINK_API_DEPENDS.file}
. if !empty(USE_BUILTIN.file:M[yY][eE][sS])
USE_BUILTIN.file!= \
if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.file:Q}; then \
${ECHO} yes; \
else \
${ECHO} no; \
fi
. endif
. endfor
. endif
. endif # PREFER.file
.endif
MAKEVARS+= USE_BUILTIN.file

6
sysutils/file/distinfo Normal file
View File

@@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.14 2012/03/30 03:53:54 taca Exp $
SHA1 (file-5.11.tar.gz) = df8ffe8759ec8cd85a98dc98e858563ea2555f64
RMD160 (file-5.11.tar.gz) = 68885d838c1f3836e6fada4c4ea6c88c8699fdf2
Size (file-5.11.tar.gz) = 610019 bytes
SHA1 (patch-aa) = 6ec37d8666176693c5ead69333cf27f10664e630

View File

@@ -0,0 +1,19 @@
$NetBSD: patch-aa,v 1.6 2012/03/30 03:53:54 taca Exp $
Make pkgsrc file look in @sysconfdir@/magic first.
--- src/Makefile.in.orig 2012-02-21 19:17:04.000000000 +0000
+++ src/Makefile.in
@@ -240,10 +240,10 @@ target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
-MAGIC = $(pkgdatadir)/magic
+MAGIC = @sysconfdir@/magic
lib_LTLIBRARIES = libmagic.la
include_HEADERS = magic.h
-AM_CPPFLAGS = -DMAGIC='"$(MAGIC)"'
+AM_CPPFLAGS = -DMAGIC='"$(MAGIC):$(pkgdatadir)/magic"'
AM_CFLAGS = @WARNINGS@
libmagic_la_SOURCES = magic.c apprentice.c softmagic.c ascmagic.c \
encoding.c compress.c is_tar.c readelf.c print.c fsmagic.c \