pecl-geoip-1.0.7, PHP support for geocoding IPv4 addresses

This commit is contained in:
jolan 2009-04-30 23:44:13 +00:00
parent ae7cacbcab
commit c4d03817fa
6 changed files with 91 additions and 0 deletions

51
www/pecl-geoip/Makefile Normal file
View File

@ -0,0 +1,51 @@
# $OpenBSD: Makefile,v 1.1.1.1 2009/04/30 23:44:13 jolan Exp $
SHARED_ONLY= Yes
COMMENT= PHP support for geocoding IPv4 addresses
DISTNAME= geoip-1.0.7
PKGNAME= pecl-${DISTNAME}
CATEGORIES= www
HOMEPAGE= http://pecl.php.net/package/geoip/
# 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}
LIB_DEPENDS= GeoIP::net/GeoIP
RUN_DEPENDS= :php5-core-*:www/php5/core
CONFIGURE_STYLE=gnu
CONFIGURE_ENV= AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \
AUTOCONF_VERSION=${AUTOCONF_VERSION}
PREFIX= /var/www
DESTDIRNAME= INSTALL_ROOT
NO_REGRESS= Yes
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=geoip.so" > \
${PREFIX}/conf/php5.sample/geoip.ini
.include <bsd.port.mk>

5
www/pecl-geoip/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (geoip-1.0.7.tgz) = ylOXodrLYq/UJsIGX8HhBg==
RMD160 (geoip-1.0.7.tgz) = qb3Q1xpLL8gRHP6wi9LSFh8CkXQ=
SHA1 (geoip-1.0.7.tgz) = 00RfVZgTpuwJcjIM9kCbiU+ENkI=
SHA256 (geoip-1.0.7.tgz) = tO8+agwLI5/tP6mJl6wH0lMIxGljUxa0wIxsXyKOfgI=
SIZE (geoip-1.0.7.tgz) = 9416

5
www/pecl-geoip/pkg/DESCR Normal file
View File

@ -0,0 +1,5 @@
pecl-geoip is an extension which allows you to geocode IPv4 addresses.
Documentation is available online at:
http://us.php.net/geoip/

View File

@ -0,0 +1,10 @@
You can enable this module by creating a symbolic
link from ${PREFIX}/conf/php5.sample/geoip.ini to
${PREFIX}/conf/php5/geoip.ini.
ln -fs ${PREFIX}/conf/php5.sample/geoip.ini \
${PREFIX}/conf/php5/geoip.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.

11
www/pecl-geoip/pkg/PLIST Normal file
View File

@ -0,0 +1,11 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/04/30 23:44:13 jolan Exp $
@comment conf/php5.sample/
@group bin
conf/php5.sample/geoip.ini
@comment lib/
@comment lib/php/
@comment lib/php/modules/
@owner root
lib/php/modules/geoip.so
@owner
@group

View File

@ -0,0 +1,9 @@
You can disable this module by removing the
${PREFIX}/conf/php5/geoip.ini symbolic link by
issuing the following command:
rm -f ${PREFIX}/conf/php5/geoip.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.