add pbms php module

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/mysql@2245 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one
2010-05-30 13:06:10 +00:00
parent cadfeb7ca9
commit 436249a263
5 changed files with 172 additions and 0 deletions

4
dev-php5/pbms/Manifest Normal file
View File

@@ -0,0 +1,4 @@
DIST pbms-0.5.09-alpha.tar.gz 19322174 RMD160 1794581b40e6c3bdcead5e06c1c4c271a703cb20 SHA1 59c5124aac2cc22e1f3b25cb32319d1574552705 SHA256 2e5a2ae452817aed5d7feeddb97202c413ccf629cb2d2788f492c91bf3a2851d
DIST pbms-0.5.12-beta.tar.gz 7930741 RMD160 d816cec5c9add4b64f5fca95da2a9bfcb320823b SHA1 ca31ed2b83ed91ec0a566a0b5487dc790e228e94 SHA256 d60ac0ffa30f75eb9ddcd0d4cd222d856228bda4706699b8702d55bfdee42483
EBUILD pbms-0.5.09_alpha.ebuild 1478 RMD160 3f327de85c6606f2ffdf8cabadb6525821c8c89b SHA1 6629cc7b0c6620376a4796ddc4e99dff1cf0bfc7 SHA256 0aa24fa23fd59d1f340b3976ebb1ec83c148906552c9cb618615d91a67cd066a
EBUILD pbms-0.5.12_beta.ebuild 1483 RMD160 8b601e0f1501fbfa97f233c2fd4ed9b081345af6 SHA1 693cc5e1cc4e29053a889b015a18462b6ea0bd3d SHA256 f044144781b5b900b58bf604d9690e9abf3031ca1f2636c3ec6372f7ca3ee672

View File

@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<!--
$Header: /var/cvsroot/gentoo-x86/skel.metadata.xml,v 1.18 2008/07/28 19:27:05 cardoe Exp $
This is the example metadata file.
The root element of this file is <pkgmetadata>. Within this element a
number of subelements are allowed: herd, maintainer, and
longdescription. herd is a required subelement.
For a full description look at:
http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=4
Before committing, please remove the comments from this file. They are
not relevant for general metadata.xml files.
-->
<pkgmetadata>
<herd>no-herd</herd>
<maintainer>
<email>@gentoo.org</email>
<!-- <description>Description of the maintainership</description> -->
</maintainer>
<!-- <longdescription>Long description of the package</longdescription> -->
<!--
<use>
<flag name='flag'>Description of how USE='flag' affects this package</flag>
<flag name='userland_GNU'>Description of how USERLAND='GNU' affects this
package</flag>
<flag name='aspell'>Uses <pkg>app-text/aspell</pkg> for spell checking.
Requires an installed dictionary from <cat>app-dicts</cat></flag>
</use>
-->
</pkgmetadata>

View File

@@ -0,0 +1,66 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
PHP_EXT_NAME="pbms"
PHP_EXT_INI="yes"
PHP_EXT_ZENDEXT="yes"
MY_P=${P/_/-}
inherit php-ext-source-r1 eutils depend.apache autotools
KEYWORDS="~amd64 ~x86 ~arm"
DESCRIPTION="PBMS PHP Extension."
HOMEPAGE="http://www.eaccelerator.net/"
SRC_URI="http://www.blobstreaming.org/download/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
IUSE=""
DEPEND="dev-db/mysql[pbms]"
RDEPEND="${DEPEND}"
# Webserver user and group, here for Apache by default
HTTPD_USER="${HTTPD_USER:-apache}"
HTTPD_GROUP="${HTTPD_GROUP:-apache}"
need_php_by_category
want_apache
S="${WORKDIR}/${MY_P}/php/ext"
pkg_setup() {
depend.apache_pkg_setup
has_php
require_php_sapi_from cgi apache2
}
src_configure() {
my_conf="--enable-pbms=shared --with-mysql=/usr"
}
src_install() {
php-ext-source-r1_src_install
insinto "/usr/share/${PN}-php5/"
doins -r docs
dodoc-php tests/*
php-ext-base-r1_addtoinifiles "pbms.default_host" '"localhost"'
php-ext-base-r1_addtoinifiles "pbms.default_port" '"8080"'
php-ext-base-r1_addtoinifiles "pbms.default_database" '"PBMS_TEST"'
php-ext-base-r1_addtoinifiles "pbms.pool_size" '"0"'
php-ext-base-r1_addtoinifiles "pbms.max_connections" '"-1"'
}
pkg_postinst() {
elog "Please see the files in ${ROOT}usr/share/${PN}-php5/ for some"
elog "examples and informations on how to use the functions that"
elog "pbms adds to PHP."
}

View File

@@ -0,0 +1,66 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
PHP_EXT_NAME="pbms"
PHP_EXT_INI="yes"
PHP_EXT_ZENDEXT="yes"
MY_P=${P/_/-}
inherit php-ext-source-r1 eutils depend.apache autotools
KEYWORDS="~amd64 ~x86 ~arm"
DESCRIPTION="PBMS PHP Extension."
HOMEPAGE="http://www.eaccelerator.net/"
SRC_URI="http://www.blobstreaming.org/download/pbms/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
IUSE=""
DEPEND="dev-db/mysql[pbms]"
RDEPEND="${DEPEND}"
# Webserver user and group, here for Apache by default
HTTPD_USER="${HTTPD_USER:-apache}"
HTTPD_GROUP="${HTTPD_GROUP:-apache}"
need_php_by_category
want_apache
S="${WORKDIR}/${MY_P}/php/ext"
pkg_setup() {
depend.apache_pkg_setup
has_php
require_php_sapi_from cgi apache2
}
src_configure() {
my_conf="--enable-pbms=shared --with-mysql=/usr"
}
src_install() {
php-ext-source-r1_src_install
insinto "/usr/share/${PN}-php5/"
doins -r docs
dodoc-php tests/*
php-ext-base-r1_addtoinifiles "pbms.default_host" '"localhost"'
php-ext-base-r1_addtoinifiles "pbms.default_port" '"8080"'
php-ext-base-r1_addtoinifiles "pbms.default_database" '"PBMS_TEST"'
php-ext-base-r1_addtoinifiles "pbms.pool_size" '"0"'
php-ext-base-r1_addtoinifiles "pbms.max_connections" '"-1"'
}
pkg_postinst() {
elog "Please see the files in ${ROOT}usr/share/${PN}-php5/ for some"
elog "examples and informations on how to use the functions that"
elog "pbms adds to PHP."
}