aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDíaz Devera Víctor <vitronic2@gmail.com>2014-12-19 23:55:20 -0430
committerNatanael Copa <ncopa@alpinelinux.org>2014-12-17 09:24:37 +0000
commit9b9c6b450ba32771e6c7f95ccfe70e6b0e146f9a (patch)
treebad2d9bb99880f3029ca00864f9bb4eebd4e140d
parent3ad339b015f3e647b9a0b394d5ee386a7b0220dc (diff)
downloadaports-9b9c6b450ba32771e6c7f95ccfe70e6b0e146f9a.tar.bz2
aports-9b9c6b450ba32771e6c7f95ccfe70e6b0e146f9a.tar.xz
testing/php-rrd: new aport
PHP bindings to rrd tool system http://pecl.php.net/package/rrd
-rw-r--r--testing/php-rrd/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/php-rrd/APKBUILD b/testing/php-rrd/APKBUILD
new file mode 100644
index 0000000000..e1c229a70a
--- /dev/null
+++ b/testing/php-rrd/APKBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Diaz Devera Victor <vitronic2@gmail.com>
+
+pkgname=php-rrd
+pkgver=1.1.3
+pkgrel=0
+pkgdesc="PHP bindings to rrd tool system"
+url="http://pecl.php.net/package/rrd"
+arch="all"
+license="PHP"
+depends=
+depends_dev="php-dev"
+makedepends="$depends_dev rrdtool-dev autoconf"
+install=""
+subpackages=""
+source="http://pecl.php.net/get/rrd-$pkgver.tgz"
+
+_builddir="$srcdir/rrd-$pkgver"
+
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ phpize || return 1
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make INSTALL_ROOT="$pkgdir/" install || return 1
+ install -d "$pkgdir"/etc/php/conf.d || return 1
+ echo "extension=rrd.so" > "$pkgdir"/etc/php/conf.d/rrd.ini
+}
+
+md5sums="bde6c50fa2aa39090ed22e574ac71c5a rrd-1.1.3.tgz"
+sha256sums="0415ac51e09fe2e7a999d155d10d6af42ddf40ab0b4847a63ed1f9458533858e rrd-1.1.3.tgz"
+sha512sums="356264de1b967af0f78e25e3c0afcbec704dd3e49d828e08d21d744d5fcdc46f4cd7f7c118b4e283c20bcaf2a4c29e0ac9437c7f66ca0d260a76fddf7b9d3242 rrd-1.1.3.tgz"