Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Oct 2002 15:36:24 +0200 (CEST)
From:      Erwin Lansing <erwin@lansing.dk>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/44434: New port: Apache::Gallery - mod_perl handler to create an image gallery
Message-ID:  <200210241336.g9ODaOSq027881@lemur.droso.net>

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

>Number:         44434
>Category:       ports
>Synopsis:       New port: 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:   Thu Oct 24 06:40:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Erwin Lansing
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
pil.dk 
>Environment:
System: FreeBSD lemur.droso.net 4.7-STABLE FreeBSD 4.7-STABLE #11: Thu Oct 10 01:16:26 CEST 2002 root@panda.droso.net:/usr/obj/usr/src/sys/PANDA i386


	
>Description:

New port: Apache::Gallery - mod_perl handler to create an image gallery

Obsoletes PR: 39030

>How-To-Repeat:
	
>Fix:

	

--- p5-Apache-Gallery-0.5.1.sh 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/pkg-message
#	p5-Apache-Gallery/distinfo
#	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
X@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/Apache 2>/dev/null || true
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:				October 24 2002
X# Whom:	      				Erwin Lansing <erwin@lansing.dk>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	Apache-Gallery
XPORTVERSION=	0.5.1
XCATEGORIES=	www perl5
XMASTER_SITES=	http://apachegallery.dk/download/ \
X		${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 \
X		${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec \
X		${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple
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/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        PerlSetVar   GalleryCacheDir '/var/tmp/Apache-Gallery/'
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 x - p5-Apache-Gallery/distinfo
sed 's/^X//' >p5-Apache-Gallery/distinfo << 'END-of-p5-Apache-Gallery/distinfo'
XMD5 (Apache-Gallery-0.5.1.tar.gz) = 2859479dbeb6ac23303cc2167364ec18
END-of-p5-Apache-Gallery/distinfo
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	Thu Oct 24 14:55:48 2002
X+++ lib/Apache/Gallery.pm	Thu Oct 24 14:55:59 2002
X@@ -27,8 +27,7 @@
X use Inline C => Config => 
X 				LIBS => '-L/usr/X11R6/lib -lImlib2 -lm -ldl -lXext -lXext',
X 				DIRECTORY => File::Spec->tmpdir(),
X-				INC => '-I/usr/X11R6/include',
X-				ENABLE    => 'UNTAINT';
X+				INC => '-I/usr/X11R6/include';
X 
X use Inline 'C';
X Inline->init;
END-of-p5-Apache-Gallery/files/patch-aa
exit
--- p5-Apache-Gallery-0.5.1.sh 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?200210241336.g9ODaOSq027881>