aboutsummaryrefslogtreecommitdiff
path: root/www/p5-Apache-Gallery
diff options
context:
space:
mode:
authorErwin Lansing <erwin@FreeBSD.org>2003-06-04 08:54:50 +0000
committerErwin Lansing <erwin@FreeBSD.org>2003-06-04 08:54:50 +0000
commitbdee6a4e671928372ec5a84082320f207745bfe5 (patch)
treecd6de1dbbeed7bba8bf00c6b694a1d63d21a1925 /www/p5-Apache-Gallery
parent8b05fbf70500445ba9b0fc82150b990f98162eb4 (diff)
downloadports-bdee6a4e671928372ec5a84082320f207745bfe5.tar.gz
ports-bdee6a4e671928372ec5a84082320f207745bfe5.zip
folder.png was never installed as it conflicts with the one provided by
Apache. However, the on bundled with p5-Apache-Gallery is much nicer, so install it under a different name and patch the default template. Approved by: edwin (mentor)
Notes
Notes: svn path=/head/; revision=82243
Diffstat (limited to 'www/p5-Apache-Gallery')
-rw-r--r--www/p5-Apache-Gallery/Makefile3
-rw-r--r--www/p5-Apache-Gallery/files/patch-templates-directory.tpl5
-rw-r--r--www/p5-Apache-Gallery/pkg-plist1
3 files changed, 9 insertions, 0 deletions
diff --git a/www/p5-Apache-Gallery/Makefile b/www/p5-Apache-Gallery/Makefile
index bee364f5fbc4..74e316b4102f 100644
--- a/www/p5-Apache-Gallery/Makefile
+++ b/www/p5-Apache-Gallery/Makefile
@@ -7,6 +7,7 @@
PORTNAME= Apache-Gallery
PORTVERSION= 0.6
+PORTREVISION= 1
CATEGORIES= www perl5
MASTER_SITES= http://apachegallery.dk/download/ \
${MASTER_SITE_PERL_CPAN}
@@ -55,6 +56,8 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/htdocs/${f} \
${PREFIX}/www/icons/
.endfor
+ ${INSTALL_DATA} ${WRKSRC}/htdocs/folder.png \
+ ${PREFIX}/www/icons/folder-apache-gallery.png
${MKDIR} ${PREFIX}/share/Apache-Gallery/css
${INSTALL_DATA} ${WRKSRC}/htdocs/gallery.css \
${PREFIX}/share/Apache-Gallery/css/
diff --git a/www/p5-Apache-Gallery/files/patch-templates-directory.tpl b/www/p5-Apache-Gallery/files/patch-templates-directory.tpl
new file mode 100644
index 000000000000..90797c582c26
--- /dev/null
+++ b/www/p5-Apache-Gallery/files/patch-templates-directory.tpl
@@ -0,0 +1,5 @@
+--- templates/directory.tpl.orig Sun Jun 1 12:10:37 2003
++++ templates/directory.tpl Sun Jun 1 12:10:48 2003
+@@ -1 +1 @@
+- <div id="folder"><a href="$FILEURL/"><img border="0" src="/icons/folder.png"><br>$FILE</a></div>
++ <div id="folder"><a href="$FILEURL/"><img border="0" src="/icons/folder-apache-gallery.png"><br>$FILE</a></div>
diff --git a/www/p5-Apache-Gallery/pkg-plist b/www/p5-Apache-Gallery/pkg-plist
index 23e9d97f841b..41930c274f76 100644
--- a/www/p5-Apache-Gallery/pkg-plist
+++ b/www/p5-Apache-Gallery/pkg-plist
@@ -35,6 +35,7 @@ www/icons/video-mov.png
www/icons/video-mpeg.png
www/icons/video-mpg.png
www/icons/video-wmv.png
+www/icons/folder-apache-gallery.png
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Apache/Gallery
@unexec rmdir %D/%%SITE_PERL%%/Apache 2>/dev/null || true
@dirrm share/Apache-Gallery/templates