diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-06-22 06:02:32 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-06-22 06:02:32 +0000 |
commit | b75b9153684cce1c051fa0346dbf70c98ace0085 (patch) | |
tree | d38bc571390fecff9fc1865ea3bfa517ac562011 /community/php7-mongodb | |
parent | e165f8a17d0f62a4925ef7238609b80144471436 (diff) | |
download | aports-b75b9153684cce1c051fa0346dbf70c98ace0085.tar.bz2 aports-b75b9153684cce1c051fa0346dbf70c98ace0085.tar.xz |
community/php7-mongodb: moved from testing
Diffstat (limited to 'community/php7-mongodb')
-rw-r--r-- | community/php7-mongodb/APKBUILD | 35 | ||||
-rw-r--r-- | community/php7-mongodb/libressl-273.patch | 26 |
2 files changed, 61 insertions, 0 deletions
diff --git a/community/php7-mongodb/APKBUILD b/community/php7-mongodb/APKBUILD new file mode 100644 index 0000000000..635cb91f68 --- /dev/null +++ b/community/php7-mongodb/APKBUILD @@ -0,0 +1,35 @@ +# Contributor: Fabio Ribeiro <fabiorphp@gmail.com> +# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com> +pkgname=php7-mongodb +_pkgreal=mongodb +pkgver=1.4.4 +_pkgver=${pkgver/_rc/RC} +pkgrel=0 +pkgdesc="PHP7 MongoDB driver" +url="http://pecl.php.net/package/mongodb" +arch="all" +license="PHP" +depends="php7-json" +makedepends="libressl-dev pcre-dev php7-dev autoconf" +source="http://pecl.php.net/get/$_pkgreal-$_pkgver.tgz + libressl-273.patch" +options="!check" # tests requires additional dependencies (vagrant) +builddir="$srcdir"/$_pkgreal-$_pkgver + +build() { + cd "$builddir" + phpize7 + ./configure --prefix=/usr \ + --with-php-config=/usr/bin/php-config7 + make +} + +package() { + cd "$builddir" + make INSTALL_ROOT="$pkgdir/" install + install -d "$pkgdir"/etc/php7/conf.d + echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/$_pkgreal.ini +} + +sha512sums="fe54b169593d8cddc0318ae6e40f833796b8745a45917446ce360604bb1ceb7b3242498ac9ca6a6be1389a735c12786b0542ba29655ff42a0c96e16a4a0b68cb mongodb-1.4.4.tgz +d1851a2fc4bd311e6286527038f677e4eb48f1b773470eb0a9f324a8fa5ffebdcfd0f2f2419eb13634045e1fa5f9669e2e64d4c976c0fa97ce870fd4de5cc735 libressl-273.patch" diff --git a/community/php7-mongodb/libressl-273.patch b/community/php7-mongodb/libressl-273.patch new file mode 100644 index 0000000000..2689f5aea7 --- /dev/null +++ b/community/php7-mongodb/libressl-273.patch @@ -0,0 +1,26 @@ +diff --git a/src/libmongoc/src/mongoc/mongoc-stream-tls-openssl-bio.c b/src/libmongoc/src/mongoc/mongoc-stream-tls-openssl-bio.c +index 053439b..3306236 100644 +--- a/src/libmongoc/src/mongoc/mongoc-stream-tls-openssl-bio.c ++++ b/src/libmongoc/src/mongoc/mongoc-stream-tls-openssl-bio.c +@@ -39,7 +39,7 @@ + #define MONGOC_LOG_DOMAIN "stream-tls-openssl-bio" + + +-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL) + + /* Magic vtable to make our BIO shim */ + static BIO_METHOD gMongocStreamTlsOpenSslRawMethods = { +diff --git a/src/libmongoc/src/mongoc/mongoc-stream-tls-openssl.c b/src/libmongoc/src/mongoc/mongoc-stream-tls-openssl.c +index fd1800b..0ccc4a1 100644 +--- a/src/libmongoc/src/mongoc/mongoc-stream-tls-openssl.c ++++ b/src/libmongoc/src/mongoc/mongoc-stream-tls-openssl.c +@@ -45,7 +45,7 @@ + + #define MONGOC_STREAM_TLS_OPENSSL_BUFFER_SIZE 4096 + +-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL) + static void + BIO_meth_free (BIO_METHOD *meth) + { |