ports/69199: New Port: sysutils/pecl-Fileinfo
Rong-En Fan
rafan at infor.org
Sat Jul 17 16:40:04 UTC 2004
>Number: 69199
>Category: ports
>Synopsis: New Port: sysutils/pecl-Fileinfo
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat Jul 17 16:40:03 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Rong-En Fan
>Release: FreeBSD 4.10-RELEASE-p2 i386
>Organization:
NTU CSIE
>Environment:
System: FreeBSD muse.csie.ntu.edu.tw 4.10-RELEASE-p2 FreeBSD 4.10-RELEASE-p2 #1: Mon Jul 12 20:06:43 CST 2004 root at muse.csie.ntu.edu.tw:/home/admin/usr/obj/home/admin/usr/src/sys/MUSE i386
>Description:
PECL Fileinfo:
This extension allows retrieval of information regarding vast majority of file.
T his information may include dimensions, quality, length etc...
Additionally it can also be used to retrieve the mime type for a particular
file and for text files proper language encoding.
==
This is very useful for Horde 4 (-HEAD)
which will speed up Horde.
>How-To-Repeat:
>Fix:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# pecl-Fileinfo
# pecl-Fileinfo/Makefile
# pecl-Fileinfo/distinfo
# pecl-Fileinfo/pkg-descr
# pecl-Fileinfo/pkg-message
# pecl-Fileinfo/pkg-plist
# pecl-Fileinfo/files
# pecl-Fileinfo/files/patch-config.m4
#
echo c - pecl-Fileinfo
mkdir -p pecl-Fileinfo > /dev/null 2>&1
echo x - pecl-Fileinfo/Makefile
sed 's/^X//' >pecl-Fileinfo/Makefile << 'END-of-pecl-Fileinfo/Makefile'
X# New ports collection makefile for: pecl-Fileinfo
X# Date created: 18 Jul 2004
X# Whom: Rong-En Fan <rafan at infor.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME= Fileinfo
XPORTVERSION= 0.2
XCATEGORIES= sysutils pear
XMASTER_SITES= http://pecl.php.net/get/
XPKGNAMEPREFIX= pecl-
XEXTRACT_SUFX= .tgz
XDIST_SUBDIR= PECL
X
XMAINTAINER= rafan at infor.org
XCOMMENT= A PECL extension for libmagic bindings
X
XLIB_DEPENDS= magic.1:${PORTSDIR}/sysutils/file
X
XUSE_PHP= yes
XUSE_PHPIZE= yes
X
Xdo-install:
X @${MKDIR} ${PREFIX}/lib/php/${PHP_EXT_DIR}
X @${INSTALL_DATA} ${WRKSRC}/modules/fileinfo.so \
X ${PREFIX}/lib/php/${PHP_EXT_DIR}
X
Xpost-install:
X @${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-pecl-Fileinfo/Makefile
echo x - pecl-Fileinfo/distinfo
sed 's/^X//' >pecl-Fileinfo/distinfo << 'END-of-pecl-Fileinfo/distinfo'
XMD5 (PECL/Fileinfo-0.2.tgz) = e228172c2486c4866c1242d752bae54d
XSIZE (PECL/Fileinfo-0.2.tgz) = 5491
END-of-pecl-Fileinfo/distinfo
echo x - pecl-Fileinfo/pkg-descr
sed 's/^X//' >pecl-Fileinfo/pkg-descr << 'END-of-pecl-Fileinfo/pkg-descr'
XThis extension allows retrieval of information regarding vast majority of file.
XThis information may include dimensions, quality, length etc...
X
XAdditionally it can also be used to retrieve the mime type for a particular
Xfile and for text files proper language encoding.
X
XWWW: http://pecl.php.net/package/Fileinfo/
END-of-pecl-Fileinfo/pkg-descr
echo x - pecl-Fileinfo/pkg-message
sed 's/^X//' >pecl-Fileinfo/pkg-message << 'END-of-pecl-Fileinfo/pkg-message'
X*****************************************************************************
X
XTo automatically load the installed extension add the following line to
Xyour php.ini configuration file:
X
Xextension="fileinfo.so"
X
X*****************************************************************************
END-of-pecl-Fileinfo/pkg-message
echo x - pecl-Fileinfo/pkg-plist
sed 's/^X//' >pecl-Fileinfo/pkg-plist << 'END-of-pecl-Fileinfo/pkg-plist'
Xlib/php/%%PHP_EXT_DIR%%/fileinfo.so
X at unexec rmdir %D/lib/php/%%PHP_EXT_DIR%% 2> /dev/null || true
END-of-pecl-Fileinfo/pkg-plist
echo c - pecl-Fileinfo/files
mkdir -p pecl-Fileinfo/files > /dev/null 2>&1
echo x - pecl-Fileinfo/files/patch-config.m4
sed 's/^X//' >pecl-Fileinfo/files/patch-config.m4 << 'END-of-pecl-Fileinfo/files/patch-config.m4'
X--- config.m4.orig Sun Jul 18 00:19:50 2004
X+++ config.m4 Sun Jul 18 00:20:00 2004
X@@ -36,7 +36,7 @@
X ],[
X AC_MSG_ERROR([wrong magic lib version or lib not found])
X ],[
X- -L$FILEINFO_DIR/lib -lm -ldl
X+ -L$FILEINFO_DIR/lib -lm
X ])
X
X MAGIC_MIME_LOCATIONS="/usr/local/share/file/magic /usr/share/file/magic /etc/magic"
END-of-pecl-Fileinfo/files/patch-config.m4
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list