Sat Mar 12 09:39:57 2016 UTC ()
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.


(fhajny)
diff -r0 -r1.1 pkgsrc/security/php-oauth1/DESCR
diff -r0 -r1.1 pkgsrc/security/php-oauth1/Makefile
diff -r0 -r1.1 pkgsrc/security/php-oauth1/distinfo
diff -r0 -r1.1 pkgsrc/security/php-oauth1/patches/patch-config.m4

File Added: pkgsrc/security/php-oauth1/DESCR
OAuth is an authorization protocol built on top of HTTP which allows
applications to securely access data without having to store usernames
and passwords.

File Added: pkgsrc/security/php-oauth1/Makefile
# $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"

File Added: pkgsrc/security/php-oauth1/distinfo
$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

File Added: pkgsrc/security/php-oauth1/patches/patch-config.m4
$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)