Initial import of pecl-fileinfo:

The Fileinfo extension allows retrieval of information regarding
vast majority of file.
This 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.

From MAINTAINER: Johan Huldtgren
Tweaks by me and one from sthen
ok sthen
This commit is contained in:
merdely 2010-10-27 22:39:16 +00:00
parent 9e6f83dd31
commit 926433a339
6 changed files with 94 additions and 0 deletions

View File

@ -0,0 +1,55 @@
# $OpenBSD: Makefile,v 1.1.1.1 2010/10/27 22:39:16 merdely Exp $
SHARED_ONLY = Yes
COMMENT = PHP support for retrieving info about files
DISTNAME = Fileinfo-1.0.4
PKGNAME = pecl-${DISTNAME:L}
CATEGORIES = sysutils
MAINTAINER = Johan Huldtgren <jhuldtgren@gmail.com>
HOMEPAGE = http://pecl.php.net/package/fileinfo/
# PHP License
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
MASTER_SITES = http://pecl.php.net/get/
EXTRACT_SUFX = .tgz
AUTOCONF_VERSION = 2.62
AUTOMAKE_VERSION = 1.9
BUILD_DEPENDS = :pear-*:www/pear \
${MODGNU_AUTOCONF_DEPENDS} \
${MODGNU_AUTOMAKE_DEPENDS}
RUN_DEPENDS = :php5-core-*:www/php5/core
CONFIGURE_STYLE = gnu
CONFIGURE_ENV = AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \
AUTOCONF_VERSION=${AUTOCONF_VERSION} \
PHP_EXECUTABLE=${LOCALBASE}/bin/php
LIB_DEPENDS = ::devel/libmagic
WANTLIB += z magic
PREFIX = /var/www
DESTDIRNAME = INSTALL_ROOT
REGRESS_TARGET = test
USE_LIBTOOL = Yes
LIBTOOL_FLAGS += --tag=disable-static
pre-configure:
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${LOCALBASE}/bin/phpize
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/conf/php5.sample
@echo "extension=fileinfo.so" > \
${PREFIX}/conf/php5.sample/fileinfo.ini
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (Fileinfo-1.0.4.tgz) = KFTnSdsVc2XHacuUlvVYbw==
RMD160 (Fileinfo-1.0.4.tgz) = /t9/crGy3KMPE47zH1BwhNE5Lb4=
SHA1 (Fileinfo-1.0.4.tgz) = YKFGz1g1erWfQgYdNcCqS/+PsXA=
SHA256 (Fileinfo-1.0.4.tgz) = 3zXuAPzmSDxYsvN9ve0zgxuoT9rpKCnb4D9zMb7Aqj8=
SIZE (Fileinfo-1.0.4.tgz) = 5835

View File

@ -0,0 +1,6 @@
The Fileinfo extension allows retrieval of information regarding
vast majority of file.
This 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.

View File

@ -0,0 +1,10 @@
You can enable this module by creating a symbolic
link from ${PREFIX}/conf/php5.sample/fileinfo.ini to
${PREFIX}/conf/php5/fileinfo.ini.
ln -fs ${PREFIX}/conf/php5.sample/fileinfo.ini \
${PREFIX}/conf/php5/fileinfo.ini
If you already have Apache running on your machine,
you should not use "apachectl restart" - instead,
you should fully stop and then restart the server.

View File

@ -0,0 +1,9 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/10/27 22:39:16 merdely Exp $
@comment conf/php5.sample/
@group bin
conf/php5.sample/fileinfo.ini
@comment lib/
@comment lib/php/
@comment lib/php/modules/
@owner root
lib/php/modules/fileinfo.so

View File

@ -0,0 +1,9 @@
You can disable this module by removing the
${PREFIX}/conf/php5/fileinfo.ini symbolic link by
issuing the following command:
rm -f ${PREFIX}/conf/php5/fileinfo.ini
If you already have Apache running on your machine,
you should not use "apachectl restart" - instead,
you should fully stop and then restart the server.