diff options
-rw-r--r-- | www/p5-Apache-Gallery/DESCR | 3 | ||||
-rw-r--r-- | www/p5-Apache-Gallery/MESSAGE | 23 | ||||
-rw-r--r-- | www/p5-Apache-Gallery/Makefile | 91 | ||||
-rw-r--r-- | www/p5-Apache-Gallery/PLIST | 30 | ||||
-rw-r--r-- | www/p5-Apache-Gallery/distinfo | 5 | ||||
-rw-r--r-- | www/p5-Apache-Gallery/files/ag.conf | 26 | ||||
-rw-r--r-- | www/p5-Apache-Gallery/patches/patch-aa | 16 |
7 files changed, 194 insertions, 0 deletions
diff --git a/www/p5-Apache-Gallery/DESCR b/www/p5-Apache-Gallery/DESCR new file mode 100644 index 00000000000..37881ece173 --- /dev/null +++ b/www/p5-Apache-Gallery/DESCR @@ -0,0 +1,3 @@ +Apache::Gallery creates an thumbnail index of each directory and +allows viewing pictures in different resolutions. Pictures are +resized on the fly and cached. diff --git a/www/p5-Apache-Gallery/MESSAGE b/www/p5-Apache-Gallery/MESSAGE new file mode 100644 index 00000000000..d5deed3529a --- /dev/null +++ b/www/p5-Apache-Gallery/MESSAGE @@ -0,0 +1,23 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2002/09/01 22:42:49 kim Exp $ + +The default Apache::Gallery templates have been installed in + + ${AG_SHAREDIR}/templates + +The templates refer to icons and stylesheets, that need to be accessible +through your HTTP server. If you are running Apache, then you may either +symlink + + ln -s ${AG_SHAREDIR}/htdocs ${AG} + +in DocumentRoot, or add the following line to httpd.conf: + + Include ${PKG_SYSCONFDIR}/${AG}.conf + +For more configuration information, see the following files: + + ${AG_DOCDIR}/INSTALL + ${AG_DOCDIR}/README + +=========================================================================== diff --git a/www/p5-Apache-Gallery/Makefile b/www/p5-Apache-Gallery/Makefile new file mode 100644 index 00000000000..a38c0e496e5 --- /dev/null +++ b/www/p5-Apache-Gallery/Makefile @@ -0,0 +1,91 @@ +# $NetBSD: Makefile,v 1.1.1.1 2002/09/01 22:42:49 kim Exp $ +# + +DISTNAME= Apache-Gallery-0.4.1 +PKGNAME= p5-${DISTNAME} +SVR4_PKGNAME= p5aga +CATEGORIES= www graphics +MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Apache/} + +MAINTAINER= kim@tac.nyc.ny.us +HOMEPAGE= http://apachegallery.dk/ +COMMENT= perl5/Apache module for handling image directories + +DEPENDS+= ap-perl>=1.25:../../www/ap-perl +DEPENDS+= p5-URI-[0-9]*:../../www/p5-URI +DEPENDS+= p5-Image-Info-[0-9]*:../../graphics/p5-Image-Info +DEPENDS+= p5-Image-Size-[0-9]*:../../graphics/p5-Image-Size +DEPENDS+= p5-CGI-FastTemplate-[0-9]*:../../www/p5-CGI-FastTemplate +DEPENDS+= p5-Inline-[0-9]*:../../devel/p5-Inline +DEPENDS+= p5-libapreq-[0-9]*:../../www/p5-libapreq +DEPENDS+= imlib2-[0-9]*:../../graphics/imlib2 + +USE_BUILDLINK_ONLY= YES +PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/Apache/Gallery/.packlist + +.include "../../mk/bsd.prefs.mk" + +PKG_SYSCONFSUBDIR?= httpd +MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR} + +AG= ag +AG_DOCDIR= ${PREFIX}/share/doc/${AG} +AG_EGDIR= ${PREFIX}/share/examples/${AG} +AG_SHAREDIR= ${PREFIX}/share/${AG} + +FILES_SUBST+= AG=${AG} +FILES_SUBST+= AG_SHAREDIR=${AG_SHAREDIR} + +MESSAGE_SUBST+= AG=${AG} +MESSAGE_SUBST+= AG_DOCDIR=${AG_DOCDIR} +MESSAGE_SUBST+= AG_SHAREDIR=${AG_SHAREDIR} + +PLIST_SUBST+= AG=${AG} +PLIST_SUBST+= AG_DOCDIR=${AG_DOCDIR:S,${PREFIX}/,,} +PLIST_SUBST+= AG_EGDIR=${AG_EGDIR:S,${PREFIX}/,,} +PLIST_SUBST+= AG_SHAREDIR=${AG_SHAREDIR:S,${PREFIX}/,,} + +CONF_FILES= ${AG_EGDIR}/${AG}.conf ${PKG_SYSCONFDIR}/${AG}.conf + +post-patch: + @cd ${WRKSRC}/lib/Apache && \ + ${CP} -p Gallery.pm Gallery.pm.orig && \ + ${SED} ${FILES_SUBST_SED} Gallery.pm.orig > Gallery.pm && \ + ${RM} -f Gallery.pm.orig + +do-configure: + @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL + +post-build: + @cd ${WRKSRC}/templates; \ + for i in *.tpl; \ + do \ + ${CP} -p $$i $$i.orig && \ + ${SED} -e 's,/icons/,/${AG}/,' \ + -e 's,/gallery.css,/${AG}/gallery.css,' \ + $$i.orig > $$i; \ + ${RM} -f $$i.orig; \ + done + @${SED} ${FILES_SUBST_SED} ${FILESDIR}/ag.conf > ${WRKDIR}/${AG}.conf + +post-install: + ${INSTALL_DATA_DIR} ${AG_SHAREDIR} + @set +x; \ + for i in htdocs templates; \ + do \ + ${INSTALL_DATA_DIR} ${AG_SHAREDIR}/$$i; \ + cd ${WRKSRC}/$$i && ${PAX} -rw . ${AG_SHAREDIR}/$$i; \ + done; \ + ${INSTALL_DATA_DIR} ${AG_DOCDIR}; \ + for i in Changes INSTALL LICENSE README UPGRADE; \ + do \ + ${INSTALL_DATA} ${WRKSRC}/$$i ${AG_DOCDIR}; \ + done + ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${AG_SHAREDIR}; \ + ${INSTALL_DATA_DIR} ${AG_EGDIR} + ${INSTALL_DATA} ${WRKDIR}/${AG}.conf ${AG_EGDIR} + +.include "../../pkgtools/x11-links/xfree.buildlink2.mk" +.include "../../lang/perl5/buildlink2.mk" +.include "../../mk/bsd.pkg.install.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/www/p5-Apache-Gallery/PLIST b/www/p5-Apache-Gallery/PLIST new file mode 100644 index 00000000000..58a63ccf9b6 --- /dev/null +++ b/www/p5-Apache-Gallery/PLIST @@ -0,0 +1,30 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2002/09/01 22:42:49 kim Exp $ +${AG_SHAREDIR}/htdocs/folder.png +${AG_SHAREDIR}/htdocs/gallery.css +${AG_SHAREDIR}/htdocs/video-asf.png +${AG_SHAREDIR}/htdocs/video-avi.png +${AG_SHAREDIR}/htdocs/video-mov.png +${AG_SHAREDIR}/htdocs/video-mpeg.png +${AG_SHAREDIR}/htdocs/video-mpg.png +@dirrm ${AG_SHAREDIR}/htdocs +${AG_SHAREDIR}/templates/directory.tpl +${AG_SHAREDIR}/templates/error.tpl +${AG_SHAREDIR}/templates/index.tpl +${AG_SHAREDIR}/templates/info.tpl +${AG_SHAREDIR}/templates/layout.tpl +${AG_SHAREDIR}/templates/movie.tpl +${AG_SHAREDIR}/templates/navpicture.tpl +${AG_SHAREDIR}/templates/orig.tpl +${AG_SHAREDIR}/templates/picture.tpl +${AG_SHAREDIR}/templates/scale.tpl +${AG_SHAREDIR}/templates/showpicture.tpl +@dirrm ${AG_SHAREDIR}/templates +@dirrm ${AG_SHAREDIR} +${AG_DOCDIR}/Changes +${AG_DOCDIR}/INSTALL +${AG_DOCDIR}/LICENSE +${AG_DOCDIR}/README +${AG_DOCDIR}/UPGRADE +@dirrm ${AG_DOCDIR} +${AG_EGDIR}/${AG}.conf +@dirrm ${AG_EGDIR} diff --git a/www/p5-Apache-Gallery/distinfo b/www/p5-Apache-Gallery/distinfo new file mode 100644 index 00000000000..28cf8c62783 --- /dev/null +++ b/www/p5-Apache-Gallery/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2002/09/01 22:42:49 kim Exp $ + +SHA1 (Apache-Gallery-0.4.1.tar.gz) = 1e499a3e9832665f0097f1f2687b7fd97d961c39 +Size (Apache-Gallery-0.4.1.tar.gz) = 37385 bytes +SHA1 (patch-aa) = 7225905020e9799fae44fd16f26efedc35e0a049 diff --git a/www/p5-Apache-Gallery/files/ag.conf b/www/p5-Apache-Gallery/files/ag.conf new file mode 100644 index 00000000000..7740755c08d --- /dev/null +++ b/www/p5-Apache-Gallery/files/ag.conf @@ -0,0 +1,26 @@ +# $NetBSD: ag.conf,v 1.1.1.1 2002/09/01 22:42:49 kim Exp $ +# +# Configuration fragment for Apache::Gallery +# + +# +# Default settings +# + +PerlSetVar InlineDir /tmp +PerlSetVar GalleryTemplateDir @AG_SHAREDIR@/templates + +# +# Files referred by default templates +# + +<IfModule mod_alias.c> + Alias /@AG@/ "@AG_SHAREDIR@/htdocs/" +</IfModule> + +<Directory "@AG_SHAREDIR@/htdocs"> + Options None + AllowOverride None + Order allow,deny + Allow from all +</Directory> diff --git a/www/p5-Apache-Gallery/patches/patch-aa b/www/p5-Apache-Gallery/patches/patch-aa new file mode 100644 index 00000000000..e8e41317d58 --- /dev/null +++ b/www/p5-Apache-Gallery/patches/patch-aa @@ -0,0 +1,16 @@ +$NetBSD: patch-aa,v 1.1.1.1 2002/09/01 22:42:49 kim Exp $ + +--- lib/Apache/Gallery.pm.orig Sun Aug 11 11:40:26 2002 ++++ lib/Apache/Gallery.pm Sun Sep 1 17:51:34 2002 +@@ -23,9 +23,9 @@ + my $escape_rule = "^A-Za-z0-9\-_.!~*'()\/"; + + use Inline C => Config => +- LIBS => '-L/usr/X11R6/lib -lImlib2 -lm -ldl -lXext -lXext', ++ LIBS => '-lImlib2', + DIRECTORY => Apache->request()->dir_config('InlineDir') ? Apache->request()->dir_config('InlineDir') : "/tmp/", +- INC => '-I/usr/X11R6/include', ++ INC => '-I@X11BASE@/include', + ENABLE => 'UNTAINT'; + + use Inline 'C'; |