[arch-commits] Commit in php-memcache/repos (3 files)
Pierre Schmitz
pierre at archlinux.org
Sun Dec 3 14:04:38 UTC 2017
Date: Sunday, December 3, 2017 @ 14:04:37
Author: pierre
Revision: 271981
archrelease: copy trunk to community-staging-x86_64
Added:
php-memcache/repos/community-staging-x86_64/
php-memcache/repos/community-staging-x86_64/PKGBUILD
(from rev 271980, php-memcache/trunk/PKGBUILD)
php-memcache/repos/community-staging-x86_64/php-memcache.install
(from rev 271980, php-memcache/trunk/php-memcache.install)
----------------------+
PKGBUILD | 73 +++++++++++++++++++++++++++++++++++++++++++++++++
php-memcache.install | 10 ++++++
2 files changed, 83 insertions(+)
Copied: php-memcache/repos/community-staging-x86_64/PKGBUILD (from rev 271980, php-memcache/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-12-03 14:04:37 UTC (rev 271981)
@@ -0,0 +1,73 @@
+# $Id$
+# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
+
+pkgname=php-memcache
+pkgver=3.0.8
+pkgrel=6
+_commit=fdbd46bbc6f53ed6e024521895e142cbfc9b3340
+pkgdesc="Memcache module for PHP"
+arch=('x86_64')
+url="http://pecl.php.net/package/memcache"
+license=('PHP')
+depends=('php')
+makedepends=('git')
+checkdepends=('memcached')
+backup=('etc/php/conf.d/memcache.ini')
+install=php-memcache.install
+#source=(https://pecl.php.net/get/memcache-$pkgver.tgz)
+source=("git+https://github.com/websupport-sk/pecl-memcache.git#commit=$_commit")
+sha256sums=('SKIP')
+
+prepare() {
+ cd "$srcdir/pecl-memcache"
+
+ # Disable UDP tests
+ sed -i "s|^\(\$udpPort2\? =\) .*|\1 0;|" tests/connect.inc
+
+ # Remove flaky tests
+ # [tests/040.phpt] memcache->increment()/decrement() with multiple keys
+ # [tests/042.phpt] memcache->set() with multiple values
+ # strange keys [tests/005.phpt]
+ # ini_set('session.save_handler') [tests/036.phpt]
+ # ini_set('memcache.session_redundancy') [tests/044.phpt]
+ # ini_set('session.save_handler') with unix domain socket [tests/053.phpt]
+ # session locking [tests/057.phpt]
+ rm tests/{005,036,040,042,044,053,057}.phpt
+}
+
+build() {
+ cd "$srcdir/pecl-memcache"
+
+ phpize
+ ./configure --prefix=/usr
+ make
+}
+
+check() {
+ cd "$srcdir/pecl-memcache"
+
+ sed -i "s|^\(\$domainsocket =\) .*|\1 'unix://$PWD/memcached.sock';|" \
+ tests/connect.inc
+
+ memcached_pids=()
+ memcached -p 11211 -U 11211 >/dev/null & memcached_pids+=($!)
+ memcached -p 11212 -U 11212 >/dev/null & memcached_pids+=($!)
+ memcached -s "$PWD/memcached.sock" >/dev/null & memcached_pids+=($!)
+
+ local ret=0
+ make test NO_INTERACTION=1 REPORT_EXIT_STATUS=1 || ret=1
+
+ kill ${memcached_pids[@]}
+
+ return $ret
+}
+
+package() {
+ cd "$srcdir/pecl-memcache"
+
+ make INSTALL_ROOT="$pkgdir" install
+ echo ';extension=memcache.so' >memcache.ini
+ install -Dm644 memcache.ini "$pkgdir/etc/php/conf.d/memcache.ini"
+}
+
+# vim:set ts=2 sw=2 et:
Copied: php-memcache/repos/community-staging-x86_64/php-memcache.install (from rev 271980, php-memcache/trunk/php-memcache.install)
===================================================================
--- community-staging-x86_64/php-memcache.install (rev 0)
+++ community-staging-x86_64/php-memcache.install 2017-12-03 14:04:37 UTC (rev 271981)
@@ -0,0 +1,10 @@
+post_install() {
+ echo '
+ ==> PHP extension
+
+ A config file was stored under /etc/php/conf.d/. In order to use this
+ extension make sure to uncomment it from its config file.
+ '
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list