diff options
author | sem <sem@FreeBSD.org> | 2005-10-21 18:23:30 +0800 |
---|---|---|
committer | sem <sem@FreeBSD.org> | 2005-10-21 18:23:30 +0800 |
commit | af5059a70697d51136bc76d1f5203dc6a964b680 (patch) | |
tree | 3c5661480f1402d4014520e0eb15d6a6feb4d6c6 /www | |
parent | e106273350bf5a27f2c4609acb0a35810a4dcb28 (diff) | |
download | freebsd-ports-gnome-af5059a70697d51136bc76d1f5203dc6a964b680.tar.gz freebsd-ports-gnome-af5059a70697d51136bc76d1f5203dc6a964b680.tar.zst freebsd-ports-gnome-af5059a70697d51136bc76d1f5203dc6a964b680.zip |
Highly customizable PHP photo album
WWW: http://www.dalbum.org
Diffstat (limited to 'www')
-rw-r--r-- | www/Makefile | 1 | ||||
-rw-r--r-- | www/dalbum/Makefile | 47 | ||||
-rw-r--r-- | www/dalbum/distinfo | 2 | ||||
-rw-r--r-- | www/dalbum/files/patch-config-config.php | 11 | ||||
-rw-r--r-- | www/dalbum/files/pkg-message.in | 15 | ||||
-rw-r--r-- | www/dalbum/pkg-descr | 6 | ||||
-rw-r--r-- | www/dalbum/pkg-plist | 92 |
7 files changed, 174 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile index 7ed2e5853508..436f55faeeda 100644 --- a/www/Makefile +++ b/www/Makefile @@ -87,6 +87,7 @@ SUBDIR += css-mode.el SUBDIR += cssed SUBDIR += cybercalendar + SUBDIR += dalbum SUBDIR += dansguardian SUBDIR += dansguardian-devel SUBDIR += decss diff --git a/www/dalbum/Makefile b/www/dalbum/Makefile new file mode 100644 index 000000000000..0761cc25acf0 --- /dev/null +++ b/www/dalbum/Makefile @@ -0,0 +1,47 @@ +# New ports collection makefile for: dalbum +# Date created: 21 October 2005 +# Whom: Sergey Matveychuk <sem@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= dalbum +PORTVERSION= 140.152 +CATEGORIES= www +MASTER_SITES= http://www.dalbum.org/ +DISTNAME= ${PORTNAME}${PORTVERSION:S/./_/} + +MAINTAINER= sem@FreeBSD.org +COMMENT= Free, highly customizable PHP photo album + +RUN_DEPENDS= convert:${PORTSDIR}/graphics/ImageMagick +USE_PHP= session pcre +NO_BUILD= yes +USE_REINPLACE= yes + +DALBUM_DIR?= www/photo + +PLIST_SUB+= DALBUM_DIR=${DALBUM_DIR} +SUB_LIST+= DALBUM_DIR=${DALBUM_DIR} +SUB_FILES= pkg-message + +do-extract: + @${RM} -rf ${WRKDIR} + @${MKDIR} -p ${WRKSRC} + @if ! (cd ${WRKSRC} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/${DISTFILES} ${EXTRACT_AFTER_ARGS});\ + then \ + exit 1; \ + fi + +post-patch: + @${REINPLACE_CMD} "s#%%LOCALBASE%%#${LOCALBASE}#" ${WRKSRC}/config/config.php + @${RM} ${WRKSRC}/config/config.php.* + +do-install: + @${MKDIR} -m 0775 ${PREFIX}/${DALBUM_DIR} + @cd ${WRKSRC} && ${FIND} . -print | ${CPIO} --quiet -pdum -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${DALBUM_DIR} + +post-install: + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> diff --git a/www/dalbum/distinfo b/www/dalbum/distinfo new file mode 100644 index 000000000000..727e4d6ed668 --- /dev/null +++ b/www/dalbum/distinfo @@ -0,0 +1,2 @@ +MD5 (dalbum140_152.tar.gz) = a37b49b68ce13f347d794c80c7f9f203 +SIZE (dalbum140_152.tar.gz) = 160775 diff --git a/www/dalbum/files/patch-config-config.php b/www/dalbum/files/patch-config-config.php new file mode 100644 index 000000000000..3673828a1e29 --- /dev/null +++ b/www/dalbum/files/patch-config-config.php @@ -0,0 +1,11 @@ +--- config/config.php.orig Fri Oct 21 13:43:21 2005 ++++ config/config.php Fri Oct 21 13:44:15 2005 +@@ -242,7 +242,7 @@ + $g_bGDSetMemoryLimit=true; + + // ImageMagick convert location and command lines (if $g_sResizeMethod="IM") +-$g_sConvertPath="/usr/X11R6/bin/convert"; ++$g_sConvertPath="%%LOCALBASE%%/bin/convert"; + $g_sThumbnailImArg="$g_sConvertPath -filter Lanczos -quality {$g_sThumbnailQuality} " + . "-resize {$g_sThumbnailXSize}x{$g_sThumbnailYSize} " + . "-sharpen 2 +profile APP1 #src# #target#"; diff --git a/www/dalbum/files/pkg-message.in b/www/dalbum/files/pkg-message.in new file mode 100644 index 000000000000..9f7f35164413 --- /dev/null +++ b/www/dalbum/files/pkg-message.in @@ -0,0 +1,15 @@ +***************************************************************** + + Please consider adding the lines to your httpd.conf: + + Alias /photo %%PREFIX%%/%%DALBUM_DIR%% + <Directory %%PREFIX%%/%%DALBUM_DIR%%> + AllowOverride Indexes FileInfo Limit + </Directory> + + Don't forget restart apache after that. + + Now you can place your photos tree into pictures/, then + login as admin/admin and make reindex. + +***************************************************************** diff --git a/www/dalbum/pkg-descr b/www/dalbum/pkg-descr new file mode 100644 index 000000000000..55f7e7214130 --- /dev/null +++ b/www/dalbum/pkg-descr @@ -0,0 +1,6 @@ +DAlbum is a free PHP photo album. It is small, easy to install +and highly customizable at the same time. Features include +slide shows, image comments, support for video and PDF files +and many more. + +WWW: http://www.dalbum.org diff --git a/www/dalbum/pkg-plist b/www/dalbum/pkg-plist new file mode 100644 index 000000000000..3cb95c4644a4 --- /dev/null +++ b/www/dalbum/pkg-plist @@ -0,0 +1,92 @@ +%%DALBUM_DIR%%/.htaccess +%%DALBUM_DIR%%/.private/.htaccess +%%DALBUM_DIR%%/.private/.htpasswd +%%DALBUM_DIR%%/config/.htaccess +%%DALBUM_DIR%%/config/config.php +%%DALBUM_DIR%%/config/custom.php +%%DALBUM_DIR%%/config/t_index.php +%%DALBUM_DIR%%/config/t_showimg.php +%%DALBUM_DIR%%/custom.css +%%DALBUM_DIR%%/dalbum.js +%%DALBUM_DIR%%/dtree.js +%%DALBUM_DIR%%/editdef.php +%%DALBUM_DIR%%/editini.php +%%DALBUM_DIR%%/images/empty.gif +%%DALBUM_DIR%%/images/folder.gif +%%DALBUM_DIR%%/images/folder/bottomhl.gif +%%DALBUM_DIR%%/images/folder/leftbtm.gif +%%DALBUM_DIR%%/images/folder/lefttop.gif +%%DALBUM_DIR%%/images/folder/leftvl.gif +%%DALBUM_DIR%%/images/folder/pixels.gif +%%DALBUM_DIR%%/images/folder/rightbtm.gif +%%DALBUM_DIR%%/images/folder/righttop.gif +%%DALBUM_DIR%%/images/folder/rightvl.gif +%%DALBUM_DIR%%/images/folder/tophl.gif +%%DALBUM_DIR%%/images/folderopen.gif +%%DALBUM_DIR%%/images/imgfolder.gif +%%DALBUM_DIR%%/images/info.gif +%%DALBUM_DIR%%/images/join.gif +%%DALBUM_DIR%%/images/joinbottom.gif +%%DALBUM_DIR%%/images/line.gif +%%DALBUM_DIR%%/images/minus.gif +%%DALBUM_DIR%%/images/minusbottom.gif +%%DALBUM_DIR%%/images/nolines_minus.gif +%%DALBUM_DIR%%/images/nolines_plus.gif +%%DALBUM_DIR%%/images/notavail.gif +%%DALBUM_DIR%%/images/page.gif +%%DALBUM_DIR%%/images/plus.gif +%%DALBUM_DIR%%/images/plusbottom.gif +%%DALBUM_DIR%%/images/question.gif +%%DALBUM_DIR%%/images/spacer.gif +%%DALBUM_DIR%%/images/transpix.gif +%%DALBUM_DIR%%/images/trash.gif +%%DALBUM_DIR%%/include/.htaccess +%%DALBUM_DIR%%/include/album.php +%%DALBUM_DIR%%/include/conffix.php +%%DALBUM_DIR%%/include/createhta.php +%%DALBUM_DIR%%/include/createini.php +%%DALBUM_DIR%%/include/exif.php +%%DALBUM_DIR%%/include/functions.php +%%DALBUM_DIR%%/include/lang/cs.php +%%DALBUM_DIR%%/include/lang/de.php +%%DALBUM_DIR%%/include/lang/el-gr.php +%%DALBUM_DIR%%/include/lang/en-us.php +%%DALBUM_DIR%%/include/lang/et.php +%%DALBUM_DIR%%/include/lang/fr.php +%%DALBUM_DIR%%/include/lang/lt.php +%%DALBUM_DIR%%/include/lang/nb.php +%%DALBUM_DIR%%/include/lang/nl.php +%%DALBUM_DIR%%/include/lang/pl.php +%%DALBUM_DIR%%/include/lang/pt-br.php +%%DALBUM_DIR%%/include/lang/ru.php +%%DALBUM_DIR%%/include/lang/se.php +%%DALBUM_DIR%%/include/lang/sk.php +%%DALBUM_DIR%%/include/lang/sp.php +%%DALBUM_DIR%%/include/lang/zh-cn.php +%%DALBUM_DIR%%/include/lang/zh.php +%%DALBUM_DIR%%/include/md5crypt.php +%%DALBUM_DIR%%/include/timer.php +%%DALBUM_DIR%%/index.php +%%DALBUM_DIR%%/license.txt +%%DALBUM_DIR%%/login.php +%%DALBUM_DIR%%/logout.php +%%DALBUM_DIR%%/main_blue.css +%%DALBUM_DIR%%/main_cyan.css +%%DALBUM_DIR%%/main_gray.css +%%DALBUM_DIR%%/main_normal.css +%%DALBUM_DIR%%/pass.php +%%DALBUM_DIR%%/photo.php +%%DALBUM_DIR%%/pictures/.albumdef.ini +%%DALBUM_DIR%%/pictures/Sample album/sample.jpg +%%DALBUM_DIR%%/reindex.php +%%DALBUM_DIR%%/showimg.php +%%DALBUM_DIR%%/version.txt +@unexec rmdir %D/%%DALBUM_DIR%%/pictures/Sample\ album 2>/dev/null || true +@unexec rmdir %D/%%DALBUM_DIR%%/pictures 2>/dev/null || true +@dirrm %%DALBUM_DIR%%/include/lang +@dirrm %%DALBUM_DIR%%/include +@dirrm %%DALBUM_DIR%%/images/folder +@dirrm %%DALBUM_DIR%%/images +@dirrm %%DALBUM_DIR%%/config +@unexec rmdir %D/%%DALBUM_DIR%%/.private 2>/dev/null || true +@dirrm %%DALBUM_DIR%% |