aboutsummaryrefslogtreecommitdiff
path: root/security/pecl-crypto
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2014-01-06 15:11:54 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2014-01-06 15:11:54 +0000
commitf5deb59c80f33e4bfcd4bd92e119b9d672163e9f (patch)
tree7b71248bab500ea59d3917c0481e0aa045c7e49f /security/pecl-crypto
parent9958ccb34565d49fc1402bda7ac3bb7863e0d08c (diff)
downloadports-f5deb59c80f33e4bfcd4bd92e119b9d672163e9f.tar.gz
ports-f5deb59c80f33e4bfcd4bd92e119b9d672163e9f.zip
- Add pecl-crypto 0.1.0
This package provides an objective wrapper for OpenSSL Crypto Library WWW: http://pecl.php.net/package/crypto PR: ports/185410 Submitted by: Gasol Wu <gasol.wu@gmail.com>
Notes
Notes: svn path=/head/; revision=338894
Diffstat (limited to 'security/pecl-crypto')
-rw-r--r--security/pecl-crypto/Makefile23
-rw-r--r--security/pecl-crypto/distinfo2
-rw-r--r--security/pecl-crypto/files/patch-config.m411
-rw-r--r--security/pecl-crypto/pkg-descr3
4 files changed, 39 insertions, 0 deletions
diff --git a/security/pecl-crypto/Makefile b/security/pecl-crypto/Makefile
new file mode 100644
index 000000000000..6b6c631b9268
--- /dev/null
+++ b/security/pecl-crypto/Makefile
@@ -0,0 +1,23 @@
+# Created by: Gasol Wu <gasol.wu@gmail.com>
+# $FreeBSD$
+
+PORTNAME= crypto
+PORTVERSION= 0.1.1
+CATEGORIES= security
+MASTER_SITES= http://pecl.php.net/get/
+PKGNAMEPREFIX= pecl-
+EXTRACT_SUFX= .tgz
+DIST_SUBDIR= PECL
+
+MAINTAINER= gasol.wu@gmail.com
+COMMENT= Objective wrapper for OpenSSL Crypto Library
+
+LICENSE= PHP301
+
+CONFIGURE_ARGS= --with-crypto
+USE_OPENSSL= yes
+USE_PHP= yes
+USE_PHPEXT= yes
+USE_PHPIZE= yes
+
+.include <bsd.port.mk>
diff --git a/security/pecl-crypto/distinfo b/security/pecl-crypto/distinfo
new file mode 100644
index 000000000000..9775492859fc
--- /dev/null
+++ b/security/pecl-crypto/distinfo
@@ -0,0 +1,2 @@
+SHA256 (PECL/crypto-0.1.1.tgz) = 9844e93078ac165255bdba6944abf6ec196be9964f9807df9f8f7d792a18807b
+SIZE (PECL/crypto-0.1.1.tgz) = 31097
diff --git a/security/pecl-crypto/files/patch-config.m4 b/security/pecl-crypto/files/patch-config.m4
new file mode 100644
index 000000000000..20120bc9846b
--- /dev/null
+++ b/security/pecl-crypto/files/patch-config.m4
@@ -0,0 +1,11 @@
+--- ./config.m4.orig 2014-01-06 13:47:54.000000000 +0800
++++ ./config.m4 2014-01-06 13:48:11.000000000 +0800
+@@ -17,6 +17,8 @@
+ PHP_ADD_INCLUDE($OPENSSL_INCDIR)
+ CRYPTO_LIBS=`$PKG_CONFIG --libs openssl`
+ PHP_EVAL_LIBLINE($CRYPTO_LIBS, CRYPTO_SHARED_LIBADD)
++ else
++ PHP_EVAL_LIBLINE("-lssl -lcrypto", CRYPTO_SHARED_LIBADD)
+ fi
+
+ AC_DEFINE(HAVE_CRYPTOLIB,1,[Enable objective OpenSSL Crypto wrapper])
diff --git a/security/pecl-crypto/pkg-descr b/security/pecl-crypto/pkg-descr
new file mode 100644
index 000000000000..17a5b2fd2e8e
--- /dev/null
+++ b/security/pecl-crypto/pkg-descr
@@ -0,0 +1,3 @@
+This package provides an objective wrapper for OpenSSL Crypto Library
+
+WWW: http://pecl.php.net/package/crypto