From nobody@FreeBSD.org  Sat Aug 29 06:56:16 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 20BE7106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 29 Aug 2009 06:56:16 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 0FFBC8FC1B
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 29 Aug 2009 06:56:16 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n7T6uFJU084944
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 29 Aug 2009 06:56:15 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n7T6uFpx084943;
	Sat, 29 Aug 2009 06:56:15 GMT
	(envelope-from nobody)
Message-Id: <200908290656.n7T6uFpx084943@www.freebsd.org>
Date: Sat, 29 Aug 2009 06:56:15 GMT
From: Venky Shankar <venkyshankar@yahoo.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Apache module for accessing Flickr API
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         138299
>Category:       ports
>Synopsis:       New port: www/mod_flickr, Apache module for accessing Flickr API
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 29 07:00:08 UTC 2009
>Closed-Date:    Sun Sep 13 12:34:18 UTC 2009
>Last-Modified:  Sun Sep 13 12:40:07 UTC 2009
>Originator:     Venky Shankar
>Release:        FeeeBSD 7.2
>Organization:
>Environment:
FreeBSD bsd.home.mill 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May  1 08:49:13 UTC 2009     root@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
New port: www/mod_flickr

mod_flickr is a apache module (for apache 2.0 and above) that makes call to
flickr via flickr API's to get a users (configured in httpd.conf) public photo
sets, photos in sets and recent photos uploaded in flickr etc...

Currently only 4 api calls have been implmeneted (all are GET calls). These
API's return data in XML format although work is in progress to return the data as JSON and/or as a HTML markup (which can be called from a iframe tag in frontend code)

Users (for whome flickr data has to be accesses) can be configured in apache's configuration file. Configuration involves setting the Flickr API key, secret and auth token which can be obtained from: http://www.flickr.com/services/api/

Sample API calls: (assuming SetHandler has been set to flickr-handler for Location /flickr)

* http://<hostname>/flickr/vshankar/getMyPhotos/<page_no>/<number_of_pics>
  eg: http://www.whatsoever.com/flickr/vshankar/getMyPhotos/1/10

* http://<hostname>/flickr/vshankar/getMySets/

* http://<hostname>/flickr/vshankar/getPhotosInSet/<set_no>/<Page_no>/<no_of_pics>
  eg: http://www.whatsoever.com/flickr/vshankar/getPhotosInSet/123456/1/20

* http://<hostname>/flickr/vshankar/getRecentPhotos/<page_no>/<no_of_pics>
  eg: http://www.whatsoever.com/flickr/vshankar/getRecentPhotos/1/50

Code repository: http://github.com/vshankar/mod_flickr/
Homepage: http://www.vshank.com/code/mod_flickr/
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	www/mod_flickr
#	www/mod_flickr/Makefile
#	www/mod_flickr/pkg-descr
#	www/mod_flickr/distinfo
#
echo c - www/mod_flickr
mkdir -p www/mod_flickr > /dev/null 2>&1
echo x - www/mod_flickr/Makefile
sed 's/^X//' >www/mod_flickr/Makefile << 'f9d6e42f39fa1ae50f9e09e5aa576603'
X# New ports collection makefile for:	mod_flickr
X# Date created:				2009-08-24
X# Whom:						vshankar
X#
X# $FreeBSD$
X#
X
XPORTNAME=		mod_flickr
XPORTVERSION=	1.0
XCATEGORIES=		www
XMASTER_SITES=	http://www.vshank.com/modcode/
X
XMAINTAINER=		venkyshankar@yahoo.com
XCOMMENT=		Apache module for Flickr API access
X
XLIB_DEPENDS=	curl.5:${PORTSDIR}/ftp/curl
X
XXTRA_FLAGS=		-lcurl
X
XAP_INC=			${LOCALBASE}/include
XAP_LIB=			${LOCALBASE}/lib
X
X.if defined(WITH_DEBUG)
XXTRA_FLAGS+=	-DDEBUG
X.endif
X
XAP_EXTRAS=		${XTRA_FLAGS}
XUSE_LDCONFIG=	yes
X
XUSE_APACHE=	2.0+
XAP_FAST_BUILD=	yes
XAP_GENPLIST=	yes
X
X.include <bsd.port.mk>
f9d6e42f39fa1ae50f9e09e5aa576603
echo x - www/mod_flickr/pkg-descr
sed 's/^X//' >www/mod_flickr/pkg-descr << '9721c716d059faa9cc52551b85b42591'
Xmod_flickr is a apache module (for apache 2.0 and above) that makes call to 
Xflickr via flickr API's to get a users (configured in httpd.conf) public photo 
Xsets, photos in sets and recent photos uploaded in flickr etc... 
X
XCurrently only 4 api calls have been implmeneted (all are GET calls). These
XAPI's return data in XML format. The XML can then be parsed by the calling code
X(e.g. front end Javascript/php) to display thumbnails of the images say in a
Xscrollbar. (Code for front end is not distributed as yet)
X
XThis module can be used by web developers who want to show their photos/albums
Xuploaded in flickr on their website and/or access to metadata of their photos
Xfor their own needs/purposes.
X
XWWW: http://www.vshank.com/code/mod_flickr
9721c716d059faa9cc52551b85b42591
echo x - www/mod_flickr/distinfo
sed 's/^X//' >www/mod_flickr/distinfo << 'a129ff9d5d1a7d79f3bd9668769c7b44'
XMD5 (mod_flickr-1.0.tar.gz) = 029e7263043de04252d683a91185ff79
XSHA256 (mod_flickr-1.0.tar.gz) = b43ab4cc9332462e6d4c37dbe3aa8ed0d9d9e3fb87a405d8d9c264c2b039aab6
XSIZE (mod_flickr-1.0.tar.gz) = 10634
a129ff9d5d1a7d79f3bd9668769c7b44
exit



>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: miwi 
State-Changed-When: Sun Sep 13 12:34:17 UTC 2009 
State-Changed-Why:  
New port added, with minor changes. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=138299 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/138299: commit references a PR
Date: Sun, 13 Sep 2009 12:34:39 +0000 (UTC)

 miwi        2009-09-13 12:34:31 UTC
 
   FreeBSD ports repository
 
   Modified files:
     www                  Makefile 
   Added files:
     www/mod_flickr       Makefile distinfo pkg-descr 
   Log:
   mod_flickr is a apache module (for apache 2.0 and above) that makes call to
   flickr via flickr API's to get a users (configured in httpd.conf) public photo
   sets, photos in sets and recent photos uploaded in flickr etc...
   
   Currently only 4 api calls have been implmeneted (all are GET calls). These
   API's return data in XML format. The XML can then be parsed by the calling code
   (e.g. front end Javascript/php) to display thumbnails of the images say in a
   scrollbar. (Code for front end is not distributed as yet)
   
   This module can be used by web developers who want to show their photos/albums
   uploaded in flickr on their website and/or access to metadata of their photos
   for their own needs/purposes.
   
   WWW: http://www.vshank.com/code/mod_flickr
   
   PR:             ports/138299
   Submitted by:   vshankar
   
   Revision  Changes    Path
   1.2436    +1 -0      ports/www/Makefile
   1.1       +34 -0     ports/www/mod_flickr/Makefile (new)
   1.1       +3 -0      ports/www/mod_flickr/distinfo (new)
   1.1       +14 -0     ports/www/mod_flickr/pkg-descr (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
