summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorwiz <wiz>2012-09-02 15:12:51 +0000
committerwiz <wiz>2012-09-02 15:12:51 +0000
commitc472babb1e79b0702bf7b15b3986811ae7b19436 (patch)
treec3d4b1264a219ad102ebb4c9fa4391452894aed6 /net
parent086111d6b265b92d8645e2e105be6a3a73a6b1eb (diff)
downloadpkgsrc-c472babb1e79b0702bf7b15b3986811ae7b19436.tar.gz
Update to 1.23:
2012-09-01 Flickcurl Version 1.23 Released This release fully supports using Flickr via OAuth 1.0 and converting from the legacy Flickr authentication to OAuth. It supports both authentication flows but Flickr has deprecated the legacy authentication, so it might stop working at any time. Flickr [2]Legacy authentication flow with Flickcurl: 1. The initial configuration needed is the API Key and Shared Secret, obtained from the [3]Flickr App Garden. 2. Get the Authentication URL from the Flickr App Garden. 3. Show the Authentication URL to the user who approves the app resulting in a user visible Frob. 4. Authentication completes using flickcurl_auth_getFullToken() which exchanges the Frob for the final Auth Token. 5. Optionally, the flickcurl(1) utility will store in the configuration file: auth_token, api_key and secret. Otherwise the application should do this. Flickr [4]Flickr OAuth 1.0 flow with Flickcurl: 1. The initial configuration needed is the Client Key (API Key) and Client Secret (Shared Secret), obtained from the [5]Flickr App Garden. 2. Authentication starts with a call to flickcurl_oauth_create_request_token() to get the Request Token and Request Token Secret. 3. Get the Authentication URL using flickcurl_oauth_get_authorize_uri(). 4. Show the Authentication URL to the user who approves the app resulting in a user visible Verifier. 5. Authentication completes using flickcurl_oauth_create_access_token() to exchange the request token, request token secret and verifier for the final Access Token and Access Token Secret. 6. Optionally, the flickcurl(1) utility will store in the configuration file: oauth_token, oauth_token_secret, oauth_client_key and oauth_client_secret. Otherwise the application should do this. Added an API call to upgrade from the Flickr legacy authentication to OAuth 1.0. This revokes and deletes the legacy 'auth_token' and returns an OAuth Access Token and Access Token Secret pair which need to be saved. int flickcurl_auth_oauth_getAccessToken(flickcurl* fc) The upgrade can also be performed by using the oauth.upgrade command of the flickcurl(1) utility. Added new API calls to get and set OAuth parameters: const char* flickcurl_get_oauth_token(flickcurl *fc); void flickcurl_set_oauth_token(flickcurl *fc, const char* token); const char* flickcurl_get_oauth_token_secret(flickcurl* fc); void flickcurl_set_oauth_token_secret(flickcurl* fc, const char *secret); const char* flickcurl_get_oauth_client_key(flickcurl *fc); void flickcurl_set_oauth_client_key(flickcurl *fc, const char* client_key); const char* flickcurl_get_oauth_client_secret(flickcurl *fc); void flickcurl_set_oauth_client_secret(flickcurl *fc, const char* client_secre t); const char* flickcurl_get_oauth_request_token(flickcurl* fc); void flickcurl_set_oauth_request_token(flickcurl *fc, const char* token); const char* flickcurl_get_oauth_request_token_secret(flickcurl* fc); void flickcurl_set_oauth_request_token_secret(flickcurl *fc, const char* secre t); Added new API calls for performing the OAuth flow int flickcurl_oauth_create_request_token(flickcurl* fc, const char* callback); char* flickcurl_oauth_get_authorize_uri(flickcurl* fc); int flickcurl_oauth_create_access_token(flickcurl* fc, const char* verifier); In flickcurl_photos_setDates() actually send date_taken parameter. This fixes [6]GitHub issue 15 Updated configure to use xml2-config(1) and curl-config(1) as well as pkg-config(1), for systems that do not ship with the pkg-config files, such as OSX 10.8. Fixed memory leak in flickcurl_build_persons() on loop exit (always) and on the error path. Fixed memory leak in flickcurl_build_photos() of string_value for tags. Updated flickcurl utility to handle the OAuth authentication flow with new commands oauth-create and oauth-verify, while still supporting legacy Flickr auth flow with the existing -a FROB form. Multiple internal changes in the construction of parameters to make the code more readable and handle the extra parameters needed by OAuth. Multiple internal changes for error path and leaks found by the LLVM [7]clang static code analyzer. Removed all strncpy, strcat and strcpy with counted memcpy.
Diffstat (limited to 'net')
-rw-r--r--net/flickcurl/Makefile5
-rw-r--r--net/flickcurl/PLIST9
-rw-r--r--net/flickcurl/distinfo8
3 files changed, 14 insertions, 8 deletions
diff --git a/net/flickcurl/Makefile b/net/flickcurl/Makefile
index 1db181efa48..a085ba23abf 100644
--- a/net/flickcurl/Makefile
+++ b/net/flickcurl/Makefile
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.5 2012/06/14 07:45:08 sbd Exp $
+# $NetBSD: Makefile,v 1.6 2012/09/02 15:12:51 wiz Exp $
#
-DISTNAME= flickcurl-1.22
-PKGREVISION= 2
+DISTNAME= flickcurl-1.23
CATEGORIES= net
MASTER_SITES= http://download.dajobe.org/flickcurl/
diff --git a/net/flickcurl/PLIST b/net/flickcurl/PLIST
index 08b9de66494..8b84e6110c2 100644
--- a/net/flickcurl/PLIST
+++ b/net/flickcurl/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2012/01/20 12:36:26 wiz Exp $
+@comment $NetBSD: PLIST,v 1.3 2012/09/02 15:12:51 wiz Exp $
bin/flickcurl
bin/flickcurl-config
bin/flickrdf
@@ -17,9 +17,16 @@ share/gtk-doc/html/flickcurl/appgarden-new-api-key-secret.png
share/gtk-doc/html/flickcurl/appgarden-tell-us-about-your-app.png
share/gtk-doc/html/flickcurl/appgarden-test-app-page.png
share/gtk-doc/html/flickcurl/flickcurl-auth-authenticate.html
+share/gtk-doc/html/flickcurl/flickcurl-auth-build.html
share/gtk-doc/html/flickcurl/flickcurl-auth-register.html
+share/gtk-doc/html/flickcurl/flickcurl-auth-upgrade.html
share/gtk-doc/html/flickcurl/flickcurl-auth-use.html
share/gtk-doc/html/flickcurl/flickcurl-auth.html
+share/gtk-doc/html/flickcurl/flickcurl-legacy-auth-authenticate.html
+share/gtk-doc/html/flickcurl/flickcurl-legacy-auth-build.html
+share/gtk-doc/html/flickcurl/flickcurl-legacy-auth-register.html
+share/gtk-doc/html/flickcurl/flickcurl-legacy-auth-use.html
+share/gtk-doc/html/flickcurl/flickcurl-legacy-auth.html
share/gtk-doc/html/flickcurl/flickcurl-searching-search-example.html
share/gtk-doc/html/flickcurl/flickcurl-searching-search-extras.html
share/gtk-doc/html/flickcurl/flickcurl-searching-search-paging.html
diff --git a/net/flickcurl/distinfo b/net/flickcurl/distinfo
index 6aa7873024f..9f07f396556 100644
--- a/net/flickcurl/distinfo
+++ b/net/flickcurl/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.3 2012/01/20 12:36:26 wiz Exp $
+$NetBSD: distinfo,v 1.4 2012/09/02 15:12:51 wiz Exp $
-SHA1 (flickcurl-1.22.tar.gz) = 38f427262bc76c23ac4ab31ed4df6c6022c5d3ec
-RMD160 (flickcurl-1.22.tar.gz) = 820e09983327738c6af34e7c5b7913b5d9acab42
-Size (flickcurl-1.22.tar.gz) = 1821304 bytes
+SHA1 (flickcurl-1.23.tar.gz) = 56dd6ae8fad8dfa98b43ab9b3d3f623dada9b67b
+RMD160 (flickcurl-1.23.tar.gz) = 4f908f2c0cc2cfdf5f98062831a7cfc60547aec3
+Size (flickcurl-1.23.tar.gz) = 1847951 bytes