diff options
author | fhajny <fhajny@pkgsrc.org> | 2016-03-12 09:39:57 +0000 |
---|---|---|
committer | fhajny <fhajny@pkgsrc.org> | 2016-03-12 09:39:57 +0000 |
commit | 08a5d3f48a7661b915f246c5fd20b260ff00f5ad (patch) | |
tree | 0c24454123e42cf8f985f5447d75c44a7437f63d /security | |
parent | 5514c90b375c53c78fc9026424cda582703f0d45 (diff) | |
download | pkgsrc-08a5d3f48a7661b915f246c5fd20b260ff00f5ad.tar.gz |
Re-import security/php-oauth as security/php-oauth1 (for PHP<7).
OAuth is an authorization protocol built on top of HTTP which allows
applications to securely access data without having to store usernames
and passwords.
Diffstat (limited to 'security')
-rw-r--r-- | security/php-oauth1/DESCR | 3 | ||||
-rw-r--r-- | security/php-oauth1/Makefile | 20 | ||||
-rw-r--r-- | security/php-oauth1/distinfo | 7 | ||||
-rw-r--r-- | security/php-oauth1/patches/patch-config.m4 | 25 |
4 files changed, 55 insertions, 0 deletions
diff --git a/security/php-oauth1/DESCR b/security/php-oauth1/DESCR new file mode 100644 index 00000000000..bf0999c608c --- /dev/null +++ b/security/php-oauth1/DESCR @@ -0,0 +1,3 @@ +OAuth is an authorization protocol built on top of HTTP which allows +applications to securely access data without having to store usernames +and passwords. diff --git a/security/php-oauth1/Makefile b/security/php-oauth1/Makefile new file mode 100644 index 00000000000..2aa6b805d1c --- /dev/null +++ b/security/php-oauth1/Makefile @@ -0,0 +1,20 @@ +# $NetBSD: Makefile,v 1.1 2016/03/12 09:39:57 fhajny Exp $ + +MODNAME= oauth +PKGREVISION= 2 +PECL_VERSION= 1.2.3 +CATEGORIES+= security + +MAINTAINER= pkgsrc-users@NetBSD.org +COMMENT= PHP oauth consumer extension +LICENSE= modified-bsd + +PHP_VERSIONS_ACCEPTED= 55 56 + +USE_LANGUAGES= c c++ + +CONFIGURE_ARGS+= --with-curl=${BUILDLINK_PREFIX.curl} + +.include "../../lang/php/ext.mk" +.include "../../www/curl/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/security/php-oauth1/distinfo b/security/php-oauth1/distinfo new file mode 100644 index 00000000000..3fb4592a4a7 --- /dev/null +++ b/security/php-oauth1/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2016/03/12 09:39:57 fhajny Exp $ + +SHA1 (php-oauth/oauth-1.2.3.tgz) = e2a42961c8134746fc0cd8ef9bd433f760b94975 +RMD160 (php-oauth/oauth-1.2.3.tgz) = 506f0644b22323a4d1ad6794433768d83357b5ba +SHA512 (php-oauth/oauth-1.2.3.tgz) = ca61dbec8fa51679accb31eab90b8699c7780f2d60a83566ce05667148ee44b7dc70fd8235414d6a3a996b252ad4a236b3e8a549685fd7e890e0874029c455e1 +Size (php-oauth/oauth-1.2.3.tgz) = 45531 bytes +SHA1 (patch-config.m4) = c64940fc005c3f61a4c2bd8f370a4e16d434c336 diff --git a/security/php-oauth1/patches/patch-config.m4 b/security/php-oauth1/patches/patch-config.m4 new file mode 100644 index 00000000000..a2c37d2d932 --- /dev/null +++ b/security/php-oauth1/patches/patch-config.m4 @@ -0,0 +1,25 @@ +$NetBSD: patch-config.m4,v 1.1 2016/03/12 09:39:57 fhajny Exp $ + +Make sure configure can find our curl. + +--- config.m4.orig 1970-01-01 09:13:08.000000000 +0000 ++++ config.m4 +@@ -5,6 +5,9 @@ dnl + PHP_ARG_ENABLE(oauth, for oauth support, + [ --enable-oauth Include oauth support]) + ++PHP_ARG_WITH([curl], [whether to enable cURL engine support], ++[ --with-curl[=PATH] Include cURL engine support], $PHP_OAUTH, $PHP_OAUTH) ++ + if test "$PHP_OAUTH" != "no"; then + PHP_SUBST(OAUTH_SHARED_LIBADD) + +@@ -12,7 +15,7 @@ if test "$PHP_OAUTH" != "no"; then + CFLAGS="$CFLAGS -Wall -g" + + AC_MSG_CHECKING(for cURL in default path) +- for i in /usr/local /usr; do ++ for i in "$PHP_CURL" /usr/local /usr; do + if test -r $i/include/curl/easy.h; then + CURL_DIR=$i + AC_MSG_RESULT(found in $i) |