summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authoraugustss <augustss@pkgsrc.org>2005-04-28 15:11:59 +0000
committeraugustss <augustss@pkgsrc.org>2005-04-28 15:11:59 +0000
commitd6a161ed41396d811912a9633849a118ca39a0ed (patch)
tree6b7bfcdc5c0929722df10d4fc6b8bf7d12f4bd8b /www
parent30c11390c518c4517ecf9a806521c516bb02e616 (diff)
downloadpkgsrc-d6a161ed41396d811912a9633849a118ca39a0ed.tar.gz
Add album, a web photo album generator.
Diffstat (limited to 'www')
-rw-r--r--www/Makefile4
-rw-r--r--www/album/DESCR3
-rw-r--r--www/album/MESSAGE4
-rw-r--r--www/album/Makefile37
-rw-r--r--www/album/PLIST25
-rw-r--r--www/album/distinfo6
-rw-r--r--www/album/patches/patch-aa24
-rw-r--r--www/album_themes/DESCR1
-rw-r--r--www/album_themes/MESSAGE8
-rw-r--r--www/album_themes/Makefile41
-rw-r--r--www/album_themes/distinfo5
11 files changed, 157 insertions, 1 deletions
diff --git a/www/Makefile b/www/Makefile
index b7a42cecd86..0f39979d756 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1,10 +1,12 @@
-# $NetBSD: Makefile,v 1.393 2005/04/24 03:02:12 rh Exp $
+# $NetBSD: Makefile,v 1.394 2005/04/28 15:11:59 augustss Exp $
#
COMMENT= Packages related to the World Wide Web
SUBDIR+= SpeedyCGI
SUBDIR+= adzap
+SUBDIR+= album
+SUBDIR+= album_themes
SUBDIR+= amaya
SUBDIR+= analog
SUBDIR+= ap-Embperl
diff --git a/www/album/DESCR b/www/album/DESCR
new file mode 100644
index 00000000000..960c019fadc
--- /dev/null
+++ b/www/album/DESCR
@@ -0,0 +1,3 @@
+Album is HTML photo album generator that supports themes. It takes
+directories of images and creates all the thumbnails and HTML that you
+need. It's fast, easy to use, and very powerful.
diff --git a/www/album/MESSAGE b/www/album/MESSAGE
new file mode 100644
index 00000000000..e52f3312295
--- /dev/null
+++ b/www/album/MESSAGE
@@ -0,0 +1,4 @@
+$NetBSD: MESSAGE,v 1.1 2005/04/28 15:12:00 augustss Exp $
+
+To use `album' you also need themes. There are some sample themes in the
+album_themes package.
diff --git a/www/album/Makefile b/www/album/Makefile
new file mode 100644
index 00000000000..5d878ff4c24
--- /dev/null
+++ b/www/album/Makefile
@@ -0,0 +1,37 @@
+# $NetBSD $
+#
+
+DISTNAME= album
+PKGREVISION= 1
+ALBUMREV= 3.07
+PKGNAME= ${DISTNAME}-${ALBUMREV}
+CATEGORIES= www
+MASTER_SITES= http://marginalhacks.com/bin/
+
+MAINTAINER= augustss@NetBSD.org
+HOMEPAGE= http://marginalhacks.com/Hacks/album/Download.html
+COMMENT= Generate HTML albums of images
+
+DEPENDS+= ImageMagick-[0-9]*:../../graphics/ImageMagick
+DEPENDS+= jhead-[2-9]*:../../graphics/jhead
+DEPENDS+= ffmpeg*:../../multimedia/ffmpeg
+
+WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
+
+MY_SCRIPT= album
+
+USE_PERL5= # defined
+REPLACE_PERL= ${MY_SCRIPT}
+
+NO_CONFIGURE= # defined
+NO_BUILD= # defined
+
+do-install: replace-interpreter
+ ${INSTALL_SCRIPT} ${WRKSRC}/${MY_SCRIPT} ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/${MY_SCRIPT}.1 ${PREFIX}/man/man1
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/album
+ ${INSTALL_DATA} ${WRKSRC}/Docs/[Sa-z]* ${PREFIX}/share/doc/album
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/album/Pics
+ ${INSTALL_DATA} ${WRKSRC}/Docs/Pics/* ${PREFIX}/share/doc/album/Pics
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/album/PLIST b/www/album/PLIST
new file mode 100644
index 00000000000..02aafe874f1
--- /dev/null
+++ b/www/album/PLIST
@@ -0,0 +1,25 @@
+@comment $NetBSD $
+bin/album
+share/doc/album/Pics/Caption.gif
+share/doc/album/Section_1.html
+share/doc/album/conf.bak
+share/doc/album/conf
+share/doc/album/Section_2.html
+share/doc/album/Section_3.html
+share/doc/album/Section_4.html
+share/doc/album/Section_5.html
+share/doc/album/Section_6.html
+share/doc/album/Section_7.html
+share/doc/album/Section_8.html
+share/doc/album/Short.html
+share/doc/album/index.html
+share/doc/album/txt_1
+share/doc/album/txt_2
+share/doc/album/txt_3
+share/doc/album/txt_4
+share/doc/album/txt_5
+share/doc/album/txt_6
+share/doc/album/txt_7
+share/doc/album/txt_8
+@dirrm share/doc/album/Pics
+@dirrm share/doc/album
diff --git a/www/album/distinfo b/www/album/distinfo
new file mode 100644
index 00000000000..d807fd36f51
--- /dev/null
+++ b/www/album/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2005/04/28 15:12:00 augustss Exp $
+
+SHA1 (album.tar.gz) = 8ebf94792c7f98916ffc3624057ac8b3ff682d77
+RMD160 (album.tar.gz) = 6532da2c1d4eef8d28923029836ede651d69b732
+Size (album.tar.gz) = 99600 bytes
+SHA1 (patch-aa) = caf5d961cced6f4b658a8d264e541423ac728aa6
diff --git a/www/album/patches/patch-aa b/www/album/patches/patch-aa
new file mode 100644
index 00000000000..2fd3673b2ec
--- /dev/null
+++ b/www/album/patches/patch-aa
@@ -0,0 +1,24 @@
+*** album.orig Wed Mar 9 14:59:01 2005
+--- album Wed Mar 9 15:01:17 2005
+***************
+*** 1308,1318 ****
+
+ unless ($themes) {
+ # Try to guess path
+! $themes = '/var/www/html' unless -x $themes;
+! $themes = '/var/www' unless -x $themes;
+! $themes = '/home/httpd' unless -x $themes;
+! $themes = '/home/http' unless -x $themes;
+! $themes = "$ENV{HOME}/public_html" unless -x $themes;
+ $themes = '' unless -x $themes;
+ $themes .= "/Themes" if $themes;
+ }
+--- 1308,1314 ----
+
+ unless ($themes) {
+ # Try to guess path
+! $themes = '/usr/pkg/share/httpd/htdocs/Album' unless -x $themes;
+! $themes = '/usr/pkg/share/Album' unless -x $themes;
+ $themes = '' unless -x $themes;
+ $themes .= "/Themes" if $themes;
+ }
diff --git a/www/album_themes/DESCR b/www/album_themes/DESCR
new file mode 100644
index 00000000000..358e1784443
--- /dev/null
+++ b/www/album_themes/DESCR
@@ -0,0 +1 @@
+Various themes for the web album generator `album'.
diff --git a/www/album_themes/MESSAGE b/www/album_themes/MESSAGE
new file mode 100644
index 00000000000..c34b096aa2b
--- /dev/null
+++ b/www/album_themes/MESSAGE
@@ -0,0 +1,8 @@
+$NetBSD: MESSAGE,v 1.1 2005/04/28 15:12:00 augustss Exp $
+
+The album themes are installed in
+ ${PREFIX}/${A_DATADIR}
+To make them accessible from your web server you can do something like
+ ln -s ${PREFIX}/${A_DATADIR} ${PREFIX}/${A_HTTPDIR}
+or
+ cp -r ${PREFIX}/${A_DATADIR} ${PREFIX}/${A_HTTPDIR}
diff --git a/www/album_themes/Makefile b/www/album_themes/Makefile
new file mode 100644
index 00000000000..6b9ef79a91e
--- /dev/null
+++ b/www/album_themes/Makefile
@@ -0,0 +1,41 @@
+# $NetBSD $
+#
+
+DISTNAME= album_themes
+CATEGORIES= www
+MASTER_SITES= http://marginalhacks.com/bin/
+
+MAINTAINER= augustss@NetBSD.org
+HOMEPAGE= http://marginalhacks.com/Hacks/album/Download.html
+COMMENT= Themes for the album generator
+
+DEPENDS+= album-*:../../www/album
+
+NO_CONFIGURE= # defined
+NO_BUILD= # defined
+EXTRACT_ONLY= # defined
+
+A_DATADIR= share/Album
+A_HTTPDIR= share/httpd/htdocs/Album
+
+PLIST_SRC= ${WRKDIR}/PLIST
+
+MESSAGE_SUBST= A_DATADIR=${A_DATADIR} A_HTTPDIR=${A_HTTPDIR}
+
+# dynamic PLIST generation
+pre-install:
+ @${RM} -f ${PLIST_SRC}
+ @${TAR} -tvzf ${DISTDIR}/${DISTFILES} | \
+ ${SED} -n -e 's,^-.* ,${A_DATADIR}/,p' >> ${PLIST_SRC}
+ @${TAR} -tvzf ${DISTDIR}/${DISTFILES} | \
+ ${SED} -n -e 's,^d.* ,@dirrm ${A_DATADIR}/,p' | ${SORT} -r >> ${PLIST_SRC}
+ @${ECHO} "@dirrm ${A_DATADIR}/Themes" >> ${PLIST_SRC}
+ @${ECHO} "@dirrm ${A_DATADIR}" >> ${PLIST_SRC}
+
+do-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/${A_DATADIR}
+ cd ${PREFIX}/${A_DATADIR}; \
+ ${TAR} -xzf ${DISTDIR}/${DISTFILES}
+
+.include "../../www/apache/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/album_themes/distinfo b/www/album_themes/distinfo
new file mode 100644
index 00000000000..dcd20544d0e
--- /dev/null
+++ b/www/album_themes/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2005/04/28 15:12:00 augustss Exp $
+
+SHA1 (album_themes.tar.gz) = 70f5788ffb09038530eeb8040155da2748599e9c
+RMD160 (album_themes.tar.gz) = a58ea8eabb28834a7196f1e106451398f3dad909
+Size (album_themes.tar.gz) = 804873 bytes