From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Jul 17 16:40:04 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 01A7316A4CE for ; Sat, 17 Jul 2004 16:40:04 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EAF4843D5C for ; Sat, 17 Jul 2004 16:40:03 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i6HGe37c063723 for ; Sat, 17 Jul 2004 16:40:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i6HGe3qf063722; Sat, 17 Jul 2004 16:40:03 GMT (envelope-from gnats) Resent-Date: Sat, 17 Jul 2004 16:40:03 GMT Resent-Message-Id: <200407171640.i6HGe3qf063722@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Rong-En Fan Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E9A2616A4CE for ; Sat, 17 Jul 2004 16:32:46 +0000 (GMT) Received: from muse.csie.ntu.edu.tw (muse.csie.ntu.edu.tw [140.112.28.158]) by mx1.FreeBSD.org (Postfix) with ESMTP id 80D2F43D3F for ; Sat, 17 Jul 2004 16:32:46 +0000 (GMT) (envelope-from rafan@muse.csie.ntu.edu.tw) Received: by muse.csie.ntu.edu.tw (Postfix, from userid 1001) id 5B8A952095; Sun, 18 Jul 2004 00:32:43 +0800 (CST) Message-Id: <20040717163243.5B8A952095@muse.csie.ntu.edu.tw> Date: Sun, 18 Jul 2004 00:32:43 +0800 (CST) From: Rong-En Fan To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/69199: New Port: sysutils/pecl-Fileinfo X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Rong-En Fan List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jul 2004 16:40:04 -0000 >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@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 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@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 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@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: