Skip site navigation (1)Skip section navigation (2)
Date:      Sat,  8 Jun 2002 18:22:44 +0200 (CEST)
From:      Erwin Lansing <erwin@lansing.dk>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/39030: New port: www/p5-Apache-Gallery - mod_perl handler to create an image gallery
Message-ID:  <20020608162244.981C81ABC2@backup-mx.droso.dk>

next in thread | raw e-mail | index | archive | help

>Number:         39030
>Category:       ports
>Synopsis:       New port: www/p5-Apache-Gallery - mod_perl handler to create an image gallery
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 08 09:30:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Erwin Lansing
>Release:        FreeBSD 4.6-RC i386
>Organization:
>Environment:
System: FreeBSD panda.droso.net 4.6-RC FreeBSD 4.6-RC #3: Thu Jun 6 22:58:01 CEST 2002 root@panda.droso.net:/home/obj/home/src/sys/PANDA i386


	
>Description:
New port: Apache::Gallery - mod_perl handler to create an image gallery
>How-To-Repeat:
	
>Fix:

	

--- p5-Apache-Gallery begins here ---
# 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:
#
#	p5-Apache-Gallery/
#	p5-Apache-Gallery/pkg-comment
#	p5-Apache-Gallery/pkg-descr
#	p5-Apache-Gallery/pkg-plist
#	p5-Apache-Gallery/Makefile
#	p5-Apache-Gallery/distinfo
#	p5-Apache-Gallery/pkg-message
#	p5-Apache-Gallery/files
#	p5-Apache-Gallery/files/patch-aa
#
echo c - p5-Apache-Gallery/
mkdir -p p5-Apache-Gallery/ > /dev/null 2>&1
echo x - p5-Apache-Gallery/pkg-comment
sed 's/^X//' >p5-Apache-Gallery/pkg-comment << 'END-of-p5-Apache-Gallery/pkg-comment'
XApache::Gallery - mod_perl handler to create an image gallery
END-of-p5-Apache-Gallery/pkg-comment
echo x - p5-Apache-Gallery/pkg-descr
sed 's/^X//' >p5-Apache-Gallery/pkg-descr << 'END-of-p5-Apache-Gallery/pkg-descr'
XApache::Gallery creates an thumbnail index of each directory and
Xallows viewing pictures in different resolutions. Pictures are
Xresized on the fly and cached.
X
XWWW: http://apachegallery.dk/
X
X- Erwin Lansing
Xerwin@lansing.dk
END-of-p5-Apache-Gallery/pkg-descr
echo x - p5-Apache-Gallery/pkg-plist
sed 's/^X//' >p5-Apache-Gallery/pkg-plist << 'END-of-p5-Apache-Gallery/pkg-plist'
Xlib/perl5/site_perl/%%PERL_VER%%/Apache/Gallery.pm
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Apache/Gallery/.packlist
Xshare/Apache-Gallery/templates/directory.tpl
Xshare/Apache-Gallery/templates/error.tpl
Xshare/Apache-Gallery/templates/index.tpl
Xshare/Apache-Gallery/templates/info.tpl
Xshare/Apache-Gallery/templates/layout.tpl
Xshare/Apache-Gallery/templates/movie.tpl
Xshare/Apache-Gallery/templates/navpicture.tpl
Xshare/Apache-Gallery/templates/orig.tpl
Xshare/Apache-Gallery/templates/picture.tpl
Xshare/Apache-Gallery/templates/scale.tpl
Xshare/Apache-Gallery/templates/showpicture.tpl
Xshare/Apache-Gallery/css/gallery.css
Xwww/icons/folder.png
Xwww/icons/video-asf.png
Xwww/icons/video-avi.png
Xwww/icons/video-mov.png
Xwww/icons/video-mpeg.png
Xwww/icons/video-mpg.png
X@dirrm share/Apache-Gallery/templates
X@dirrm share/Apache-Gallery/css
X@dirrm share/Apache-Gallery
X@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Apache/Gallery
END-of-p5-Apache-Gallery/pkg-plist
echo x - p5-Apache-Gallery/Makefile
sed 's/^X//' >p5-Apache-Gallery/Makefile << 'END-of-p5-Apache-Gallery/Makefile'
X# New ports collection makefile for:    p5-Apache-Gallery
X# Date created:				May 29th, 2002
X# Whom:	      				Erwin Lansing <erwin@lansing.dk>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	Apache-Gallery
XPORTVERSION=	0.4
XCATEGORIES=	www perl5
XMASTER_SITES=	${MASTER_SITE_PERL_CPAN}
XMASTER_SITE_SUBDIR=	Apache
XPKGNAMEPREFIX=	p5-
X
XMAINTAINER=	erwin@lansing.dk
X
XLIB_DEPENDS=	Imlib2.1:${PORTSDIR}/graphics/imlib2
XBUILD_DEPENDS=	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Apache/Request.pm:${PORTSDIR}/www/p5-libapreq \
X		${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/URI/Escape.pm:${PORTSDIR}/net/p5-URI \
X		${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Image/Info.pm:${PORTSDIR}/graphics/p5-Image-Info \
X		${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/CGI/FastTemplate.pm:${PORTSDIR}/www/p5-CGI-FastTemplate \
X		${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Inline.pm:${PORTSDIR}/devel/p5-Inline \
X		${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Image/Size.pm:${PORTSDIR}/graphics/p5-Image-Size
XRUN_DEPENDS=	${BUILD_DEPENDS}
X
XPKGMESSAGE=	${WRKDIR}/pkg-message
XPERL_CONFIGURE=	yes
X
XMAN3PREFIX=	${PREFIX}/lib/perl5/${PERL_VERSION}
XMAN3=		Apache::Gallery.3
X
XTEMPLATES=	directory.tpl error.tpl index.tpl info.tpl layout.tpl \
X		movie.tpl navpicture.tpl orig.tpl picture.tpl scale.tpl \
X		showpicture.tpl
XICONS=		folder.png video-avi.png video-asf.png video-mov.png \
X		video-mpeg.png video-mpg.png
X
Xpost-patch:
X	@ ${RM} ${WRKSRC}/lib/Apache/Gallery.pm.orig
X
Xpost-configure:
X	@ ${SED} -e 's#%%PREFIX%%#${PREFIX}#g' pkg-message > ${PKGMESSAGE}
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${PREFIX}/share/Apache-Gallery/templates
X.for f in ${TEMPLATES}
X	${INSTALL_DATA} ${WRKSRC}/templates/${f} \
X		${PREFIX}/share/Apache-Gallery/templates/
X.endfor
X.for f in ${ICONS}
X	${INSTALL_DATA} ${WRKSRC}/htdocs/${f} \
X		${PREFIX}/www/icons/
X.endfor
X	${MKDIR} ${PREFIX}/share/Apache-Gallery/css
X	${INSTALL_DATA} ${WRKSRC}/htdocs/gallery.css \
X		${PREFIX}/share/Apache-Gallery/css/
X.endif
X.if !defined(BATCH)
X	@ ${CAT} ${PKGMESSAGE}
X.endif
X
X.include <bsd.port.mk>
END-of-p5-Apache-Gallery/Makefile
echo x - p5-Apache-Gallery/distinfo
sed 's/^X//' >p5-Apache-Gallery/distinfo << 'END-of-p5-Apache-Gallery/distinfo'
XMD5 (Apache-Gallery-0.4.tar.gz) = 9ed2ac626db96541e883ee5b79e2fbc4
END-of-p5-Apache-Gallery/distinfo
echo x - p5-Apache-Gallery/pkg-message
sed 's/^X//' >p5-Apache-Gallery/pkg-message << 'END-of-p5-Apache-Gallery/pkg-message'
X---------------------------------------------------------------------------------------
X
X<VirtualHost 123.123.123.123>
X        ServerName   gallery.yourdomain.org
X        DocumentRoot /data/pictures/
X        ErrorLog     logs/gallery-error_log
X        TransferLog  logs/gallery-access_log
X        PerlSetVar   GalleryTemplateDir '%%PREFIX%%/share/Apache-Gallery/templates'
X        PerlSetVar   GalleryInfo 'Picture Taken => DateTimeOriginal, Flash => Flash' 
X        PerlSetVar   GallerySizes '640 1024 1600 2272'
X        PerlSetVar   GalleryThumbnailSize '100x75'
X        <Location />
X                SetHandler        perl-script
X                PerlHandler       Apache::Gallery
X        </Location>
X</VirtualHost>
X
XAnd copy %%PREFIX%%/share/Apache-Gallery/css/gallery.css to your DocumentRoot
X
X---------------------------------------------------------------------------------------
END-of-p5-Apache-Gallery/pkg-message
echo c - p5-Apache-Gallery/files
mkdir -p p5-Apache-Gallery/files > /dev/null 2>&1
echo x - p5-Apache-Gallery/files/patch-aa
sed 's/^X//' >p5-Apache-Gallery/files/patch-aa << 'END-of-p5-Apache-Gallery/files/patch-aa'
X--- lib/Apache/Gallery.pm.orig	Wed Jun  5 17:13:38 2002
X+++ lib/Apache/Gallery.pm	Sat Jun  8 17:49:39 2002
X@@ -2,9 +2,7 @@
X 
X # $Id: Gallery.pm,v 1.81 2002/06/05 15:13:38 mil Exp $
X 
X-use 5.006;
X use strict;
X-use warnings;
X 
X use vars qw($VERSION);
X 
X@@ -754,7 +752,7 @@
X 
X You can view all the keys from the EXIF header using this perl-oneliner:
X 
X-perl -e 'use Data::Dumper; use Image::Info qw(image_info); print Dumper(image_info(shift));' filename.jpg
X+perl C<-e> 'use Data::Dumper; use Image::Info qw(image_info); print Dumper(image_info(shift));' filename.jpg
X 
X Default is: 'Picture Taken => DateTimeOriginal, Flash => Flash'
X 
END-of-p5-Apache-Gallery/files/patch-aa
exit
--- p5-Apache-Gallery ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020608162244.981C81ABC2>