diff options
author | agc <agc@pkgsrc.org> | 2010-09-03 07:14:12 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2010-09-03 07:14:12 +0000 |
commit | 553ec39f0a61b3e373ba9667fbd96d1aa06a0d2e (patch) | |
tree | a3d3ff50f24902ea01a7f20f3877bcbb781c9b25 /security | |
parent | f5848fa934e96f43c33d653c4142b0757da86978 (diff) | |
download | pkgsrc-553ec39f0a61b3e373ba9667fbd96d1aa06a0d2e.tar.gz |
Import liboauth-0.8.9 into the Packages Collection.
This is an updated version of the liboauth package in pkgsrc-wip by
Kamel Derouiche, modified by myself not to have nss, doxygen, perl and
graphviz pre-requisites.
OAuth (Open Authorization) is an open standard that allows users to
share their private resources (e.g. photos, videos, contact lists)
stored on one site with another site without having to hand out their
username and password.
OAuth allows users to hand out tokens instead of usernames and
passwords to their data hosted by a given service provider. Each
token grants access to a specific site (e.g. a video editing site)
for specific resources (e.g. just videos from a specific album) and
for a defined duration (e.g. the next 2 hours).
Thus OAuth allows a user to grant a third party site access to their
information stored with another service provider, without sharing
their access permissions or the full extent of their data.
OAuth is a service that is complementary to but distinct from OpenID.
liboauth is a collection of C functions implementing the OAuth
Core 1.0 standard API. liboauth provides basic functions to
escape and encode parameters according to OAuth specs and
offers high-level functions to sign requests or verify
signatures.
Necessary these days for twitter applications; useful for flickr and many
others...
Diffstat (limited to 'security')
-rw-r--r-- | security/liboauth/DESCR | 16 | ||||
-rw-r--r-- | security/liboauth/Makefile | 23 | ||||
-rw-r--r-- | security/liboauth/PLIST | 5 | ||||
-rw-r--r-- | security/liboauth/buildlink3.mk | 13 | ||||
-rw-r--r-- | security/liboauth/distinfo | 6 | ||||
-rw-r--r-- | security/liboauth/patches/patch-aa | 33 |
6 files changed, 96 insertions, 0 deletions
diff --git a/security/liboauth/DESCR b/security/liboauth/DESCR new file mode 100644 index 00000000000..40fbff6b5ec --- /dev/null +++ b/security/liboauth/DESCR @@ -0,0 +1,16 @@ +OAuth (Open Authorization) is an open standard that allows users to +share their private resources (e.g. photos, videos, contact lists) +stored on one site with another site without having to hand out their +username and password. + +OAuth allows users to hand out tokens instead of usernames and +passwords to their data hosted by a given service provider. Each +token grants access to a specific site (e.g. a video editing site) +for specific resources (e.g. just videos from a specific album) and +for a defined duration (e.g. the next 2 hours). + +Thus OAuth allows a user to grant a third party site access to their +information stored with another service provider, without sharing +their access permissions or the full extent of their data. + +OAuth is a service that is complementary to but distinct from OpenID. diff --git a/security/liboauth/Makefile b/security/liboauth/Makefile new file mode 100644 index 00000000000..dc4818a3950 --- /dev/null +++ b/security/liboauth/Makefile @@ -0,0 +1,23 @@ +# $NetBSD: Makefile,v 1.1.1.1 2010/09/03 07:14:12 agc Exp $ + +DISTNAME= liboauth-0.8.9 +CATEGORIES= security +MASTER_SITES= http://liboauth.sourceforge.net/pool/ + +MAINTAINER= agc@NetBSD.org +HOMEPAGE= http://liboauth.sourceforge.net/ +COMMENT= Embeddable oauth 1.0 implementation +LICENSE= mit AND gnu-gpl-v2 + +PKG_DESTDIR_SUPPORT= user-destdir + +GNU_CONFIGURE= yes +USE_LIBTOOL= yes +USE_TOOLS+= pkg-config + +PKGCONFIG_OVERRIDE+= oauth.pc.in + +.include "../../security/openssl/buildlink3.mk" +.include "../../www/curl/buildlink3.mk" + +.include "../../mk/bsd.pkg.mk" diff --git a/security/liboauth/PLIST b/security/liboauth/PLIST new file mode 100644 index 00000000000..da28f70d6c7 --- /dev/null +++ b/security/liboauth/PLIST @@ -0,0 +1,5 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2010/09/03 07:14:12 agc Exp $ +include/oauth.h +lib/liboauth.la +lib/pkgconfig/oauth.pc +man/man3/oauth.3 diff --git a/security/liboauth/buildlink3.mk b/security/liboauth/buildlink3.mk new file mode 100644 index 00000000000..fe540993921 --- /dev/null +++ b/security/liboauth/buildlink3.mk @@ -0,0 +1,13 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2010/09/03 07:14:12 agc Exp $ + +BUILDLINK_TREE+= liboauth + +.if !defined(LIBOAUTH_BUILDLINK3_MK) +LIBOAUTH_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.liboauth+= liboauth>=0.8.9 +BUILDLINK_PKGSRCDIR.liboauth?= ../../security/liboath + +.endif # LIBOAUTH_BUILDLINK3_MK + +BUILDLINK_TREE+= -liboauth diff --git a/security/liboauth/distinfo b/security/liboauth/distinfo new file mode 100644 index 00000000000..710085191c5 --- /dev/null +++ b/security/liboauth/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2010/09/03 07:14:12 agc Exp $ + +SHA1 (liboauth-0.8.9.tar.gz) = ab1227d4aba8b9050b93b418b888f696ec0574b7 +RMD160 (liboauth-0.8.9.tar.gz) = a540ac04085c999fc8a1d90ae597d2a82117228f +Size (liboauth-0.8.9.tar.gz) = 394622 bytes +SHA1 (patch-aa) = a192cb5a763e4cbca089944cf26034c07204f4ba diff --git a/security/liboauth/patches/patch-aa b/security/liboauth/patches/patch-aa new file mode 100644 index 00000000000..aaea842a4b8 --- /dev/null +++ b/security/liboauth/patches/patch-aa @@ -0,0 +1,33 @@ +$NetBSD: patch-aa,v 1.1.1.1 2010/09/03 07:14:12 agc Exp $ + +Remove some assumptions about the test(1) (sub)command + +--- configure 2010/08/31 17:01:09 1.1 ++++ configure 2010/08/31 17:01:34 +@@ -12044,7 +12044,7 @@ + + report_curltimeout="-" + if test -n "${with_curltimeout}"; then +- if test "${with_curltimeout}" == "yes"; then ++ if test "${with_curltimeout}" = "yes"; then + $as_echo "#define OAUTH_CURL_TIMEOUT 60" >>confdefs.h + + report_curltimeout="60" +@@ -12062,7 +12062,7 @@ + + + +-if test "${enable_nss}" == "yes"; then : ++if test "${enable_nss}" = "yes"; then : + + + pkg_failed=no +@@ -12364,7 +12364,7 @@ + fi + + +-if test "$PERL" == "no"; then ++if test "$PERL" = "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dude, where's your perl? doxygen will not like this!)" >&5 + $as_echo "$as_me: WARNING: dude, where's your perl? doxygen will not like this!)" >&2;} + fi |