ports/110551: [NEW PORT] www/horde-ansel - Photo gallery for Horde

Beech Rintoul beech at alaskaparadise.com
Tue Mar 20 01:20:04 UTC 2007


>Number:         110551
>Category:       ports
>Synopsis:       [NEW PORT] www/horde-ansel - Photo gallery for Horde
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 20 01:20:03 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Beech Rintoul
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
Alaska Paradise  
>Environment:


System: FreeBSD 7.0-CURRENT #108: Tue Mar  6 20:59:53 AKST 2007
    root at stargate.alaskaparadise.com:/usr/obj/usr/src/sys/STARGATE



>Description:


New Port  www/horde-ansel
Photo gallery for Horde.


>How-To-Repeat:





>Fix:


#!/bin/sh
# This is a shell archive
echo x horde-ansel
mkdir -p horde-ansel > /dev/null 2>&1
echo x horde-ansel/files
mkdir -p horde-ansel/files > /dev/null 2>&1
echo x horde-ansel/Makefile
sed 's/^X//' > horde-ansel/Makefile << 'SHAR_END'
X# Ports collection makefile for: ansel
X# Date created:			Mon Mar 19, 2007
X# Whom:				Beech Rintoul <beech at alaskaparadise.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	ansel
XPORTVERSION=	0.1.b20070319
XCATEGORIES=	www
XMASTER_SITES=	CENKES
X# Sourcefile available at: http://freebsd.alaskaparadise.com/source/
XPKGNAMEPREFIX=	horde-
X
XMAINTAINER=	beech at alaskaparadise.com
XCOMMENT=	Image gallery
X
XRUN_DEPENDS+=	${LOCALBASE}/${LHORDEDIR}/rpc.php:${PORTSDIR}/www/horde-base
X
XNO_BUILD=	yes
XUSE_APACHE=	1.3+	# needed to test APACHE_VERSION
XUSE_GETTEXT=	yes
XREINPLACE_ARGS=	-i ""
X
XPORTDOCS=	CHANGES CREDITS TODO README
XCONFFILE=	conf.xml
XSUB_DIRS=	config gallery img js lib locale po scripts templates themes
X
XLHORDEDIR?=	www/horde
XLANSDIR=	${LHORDEDIR}/ansel
XPEARDIR?=	${LOCALBASE}/share/pear
X
XPLIST_SUB=	ANSDIR=${LANSDIR} HORDE_INC=${HORDE_INC:S|^${LOCALBASE}/||}
XPKGMESSAGE=	${WRKDIR}/pkg-message
XPKGDEINSTALL=	${WRKDIR}/pkg-deinstall
XSUB_FILES=	pkg-message pkg-install pkg-deinstall
XSUB_LIST=	ANSDIR=${ANSDIR} PORTSDIR=${PORTSDIR} CONFDIR=${CONFDIR}
X
XANSDIR=		${PREFIX}/${LANSDIR}
XCONFDIR=	${ANSDIR}/config
X
XHOSTNAME?=	`/bin/hostname`
XSERVOS?=	${OPSYS}-${OSREL}
X
XPORTREV_H?=	${LOCALBASE}/include/c-client/portrevision.h
X
X.include <bsd.port.pre.mk>
X
X.if ${APACHE_VERSION} >= 20
XHORDE_INC=	${LOCALBASE}/etc/apache${APACHE_VERSION:S/20/2/}/Includes/
X.else
XHORDE_INC=	${LOCALBASE}/etc/horde/
X.endif
X
Xpost-extract:
X	@${MV} ${WRKSRC}/README ${WRKSRC}/docs/
X
Xpre-configure:
X	@${REINPLACE_CMD} -e "s:/usr/local:${LOCALBASE}:" ${WRKSRC}/config/conf.xml
X	@${SED} -e "s:/home/httpd/html/horde/ansel:${ANSDIR}:" \
X		${FILESDIR}/httpd.conf.ansel > ${WRKDIR}/httpd-ansel.conf
X
Xdo-install:
X	@${INSTALL} -d ${ANSDIR}/
X	@${CP} -Rp ${SUB_DIRS:S|^|${WRKSRC}/|} ${ANSDIR}/
X	@${CP} -p ${WRKSRC}/*.php ${ANSDIR}/
X	@${INSTALL_DATA} ${WRKSRC}/config/conf.xml ${CONFDIR}/
X	@${INSTALL_DATA} ${WRKDIR}/httpd-ansel.conf ${HORDE_INC}/
X	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${ANSDIR}/
X	@${CHMOD} -R o-rwx ${CONFDIR}/
X.if !defined(NOPORTDOCS)
X	@${INSTALL} -d ${DOCSDIR}/
X	@${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/docs/|} ${DOCSDIR}/
X	@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
X.endif
X
Xpost-install:
X	@${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
X	@${ECHO_MSG}
X	@${CAT} ${PKGMESSAGE}
X	@${ECHO_MSG}
X
X.include <bsd.port.post.mk>
SHAR_END
echo x horde-ansel/pkg-descr
sed 's/^X//' > horde-ansel/pkg-descr << 'SHAR_END'
XAnsel is a Horde-based image gallery program
X
XWWW: http://horde.org/ansel/
SHAR_END
echo x horde-ansel/distinfo
sed 's/^X//' > horde-ansel/distinfo << 'SHAR_END'
XMD5 (ansel-0.1.b20070319.tar.gz) = bbd5c8c5066f0003877c145057673b51
XSHA256 (ansel-0.1.b20070319.tar.gz) = 5cf6e82b693828d89fe5645c4938b03d5109230cda38c85ae3bd476c39d3f2a5
XSIZE (ansel-0.1.b20070319.tar.gz) = 645199
SHAR_END
echo x horde-ansel/pkg-plist
sed 's/^X//' > horde-ansel/pkg-plist << 'SHAR_END'
X%%ANSDIR%%/config/.cvsignore
X%%ANSDIR%%/config/conf.xml
X%%ANSDIR%%/config/prefs.php.dist
X%%ANSDIR%%/gallery.php
X%%ANSDIR%%/gallery/captions.php
X%%ANSDIR%%/gallery/delete.php
X%%ANSDIR%%/gallery/index.php
X%%ANSDIR%%/gallery/sort.php
X%%ANSDIR%%/group.php
X%%ANSDIR%%/image.php
X%%ANSDIR%%/img/download.php
X%%ANSDIR%%/img/ecard.php
X%%ANSDIR%%/img/full.php
X%%ANSDIR%%/img/index.php
X%%ANSDIR%%/img/mini.php
X%%ANSDIR%%/img/screen.php
X%%ANSDIR%%/img/thumb.php
X%%ANSDIR%%/img/upload.php
X%%ANSDIR%%/index.php
X%%ANSDIR%%/js/controls.js
X%%ANSDIR%%/js/dragdrop.js
X%%ANSDIR%%/js/effects.js
X%%ANSDIR%%/js/scriptaculous.js
X%%ANSDIR%%/js/slideshow.js
X%%ANSDIR%%/js/src/controls.js
X%%ANSDIR%%/js/src/dragdrop.js
X%%ANSDIR%%/js/src/effects.js
X%%ANSDIR%%/js/src/scriptaculous.js
X%%ANSDIR%%/js/src/slideshow.js
X%%ANSDIR%%/lib/Ansel.php
X%%ANSDIR%%/lib/Block/gallery.php
X%%ANSDIR%%/lib/Block/random_gallery.php
X%%ANSDIR%%/lib/Block/random_photo.php
X%%ANSDIR%%/lib/Exif.php
X%%ANSDIR%%/lib/Exif/canon.php
X%%ANSDIR%%/lib/Exif/fujifilm.php
X%%ANSDIR%%/lib/Exif/gps.php
X%%ANSDIR%%/lib/Exif/nikon.php
X%%ANSDIR%%/lib/Exif/olympus.php
X%%ANSDIR%%/lib/Exif/sanyo.php
X%%ANSDIR%%/lib/Forms/Ecard.php
X%%ANSDIR%%/lib/Forms/Upload.php
X%%ANSDIR%%/lib/Views/Abstract.php
X%%ANSDIR%%/lib/Views/Gallery.php
X%%ANSDIR%%/lib/Views/Image.php
X%%ANSDIR%%/lib/XPPublisher.php
X%%ANSDIR%%/lib/api.php
X%%ANSDIR%%/lib/base.php
X%%ANSDIR%%/lib/version.php
X%%ANSDIR%%/list.php
X%%ANSDIR%%/locale/de_DE/LC_MESSAGES/ansel.mo
X%%ANSDIR%%/locale/en_US/help.xml
X%%ANSDIR%%/locale/es_ES/LC_MESSAGES/ansel.mo
X%%ANSDIR%%/locale/fi_FI/LC_MESSAGES/ansel.mo
X%%ANSDIR%%/locale/fi_FI/help.xml
X%%ANSDIR%%/locale/it_IT/LC_MESSAGES/ansel.mo
X%%ANSDIR%%/locale/lt_LT/LC_MESSAGES/ansel.mo
X%%ANSDIR%%/locale/sl_SI/LC_MESSAGES/ansel.mo
X%%ANSDIR%%/locale/sv_SE/LC_MESSAGES/ansel.mo
X%%ANSDIR%%/locale/zh_TW/LC_MESSAGES/ansel.mo
X%%ANSDIR%%/perms.php
X%%ANSDIR%%/po/.cvsignore
X%%ANSDIR%%/po/README
X%%ANSDIR%%/po/ansel.pot
X%%ANSDIR%%/po/de_DE.po
X%%ANSDIR%%/po/es_ES.po
X%%ANSDIR%%/po/fi_FI.po
X%%ANSDIR%%/po/it_IT.po
X%%ANSDIR%%/po/lt_LT.po
X%%ANSDIR%%/po/sl_SI.po
X%%ANSDIR%%/po/sv_SE.po
X%%ANSDIR%%/po/zh_TW.po
X%%ANSDIR%%/scripts/.htaccess
X%%ANSDIR%%/scripts/ansel.php
X%%ANSDIR%%/scripts/garbage_collection.php
X%%ANSDIR%%/scripts/recursive_import.php
X%%ANSDIR%%/scripts/sql/ansel.sql
X%%ANSDIR%%/scripts/upgrades/2006-11-27_cleanup.php
X%%ANSDIR%%/scripts/upgrades/2006-11-27_datatree_to_sql_renames.php
X%%ANSDIR%%/scripts/upgrades/2006-11-27_fix_default_images.php
X%%ANSDIR%%/scripts/upgrades/2006-11-27_sql_images.php
X%%ANSDIR%%/templates/captions/captions.inc
X%%ANSDIR%%/templates/common-header.inc
X%%ANSDIR%%/templates/gallery/delete_confirmation.inc
X%%ANSDIR%%/templates/gallery/gallery.inc
X%%ANSDIR%%/templates/group/category.inc
X%%ANSDIR%%/templates/group/footer.inc
X%%ANSDIR%%/templates/group/header.inc
X%%ANSDIR%%/templates/group/owner.inc
X%%ANSDIR%%/templates/group/pager.inc
X%%ANSDIR%%/templates/image/edit_image.inc
X%%ANSDIR%%/templates/image/preview_image.inc
X%%ANSDIR%%/templates/list/filler.inc
X%%ANSDIR%%/templates/list/footer.inc
X%%ANSDIR%%/templates/list/gallery_footers.inc
X%%ANSDIR%%/templates/list/gallery_headers.inc
X%%ANSDIR%%/templates/list/gallery_summaries.inc
X%%ANSDIR%%/templates/list/header.inc
X%%ANSDIR%%/templates/list/images.inc
X%%ANSDIR%%/templates/list/pager.inc
X%%ANSDIR%%/templates/menu.inc
X%%ANSDIR%%/templates/view/gallery.inc
X%%ANSDIR%%/templates/view/image.inc
X%%ANSDIR%%/templates/view/subgallery_header.inc
X%%ANSDIR%%/templates/xppublish/javascript.inc
X%%ANSDIR%%/templates/xppublish/list.inc
X%%ANSDIR%%/templates/xppublish/login.inc
X%%ANSDIR%%/templates/xppublish/new.inc
X%%ANSDIR%%/test.php
X%%ANSDIR%%/themes/graphics/add.png
X%%ANSDIR%%/themes/graphics/ansel.png
X%%ANSDIR%%/themes/graphics/favicon.ico
X%%ANSDIR%%/themes/graphics/mini-error.png
X%%ANSDIR%%/themes/graphics/mygalleries.png
X%%ANSDIR%%/themes/graphics/mypics.png
X%%ANSDIR%%/themes/graphics/resize.png
X%%ANSDIR%%/themes/graphics/screen-error.png
X%%ANSDIR%%/themes/graphics/slideshow_next.png
X%%ANSDIR%%/themes/graphics/slideshow_pause.png
X%%ANSDIR%%/themes/graphics/slideshow_play.png
X%%ANSDIR%%/themes/graphics/slideshow_prev.png
X%%ANSDIR%%/themes/graphics/text.png
X%%ANSDIR%%/themes/graphics/thumb-error.png
X%%ANSDIR%%/themes/screen.css
X%%ANSDIR%%/view.php
X%%ANSDIR%%/xppublish.php
X%%HORDE_INC%%httpd-ansel.conf
X at dirrm %%ANSDIR%%/themes/graphics
X at dirrm %%ANSDIR%%/themes
X at dirrm %%ANSDIR%%/templates/xppublish
X at dirrm %%ANSDIR%%/templates/view
X at dirrm %%ANSDIR%%/templates/list
X at dirrm %%ANSDIR%%/templates/image
X at dirrm %%ANSDIR%%/templates/group
X at dirrm %%ANSDIR%%/templates/gallery
X at dirrm %%ANSDIR%%/templates/captions
X at dirrm %%ANSDIR%%/templates
X at dirrm %%ANSDIR%%/scripts/upgrades
X at dirrm %%ANSDIR%%/scripts/sql
X at dirrm %%ANSDIR%%/scripts
X at dirrm %%ANSDIR%%/po
X at dirrm %%ANSDIR%%/locale/zh_TW/LC_MESSAGES
X at dirrm %%ANSDIR%%/locale/zh_TW
X at dirrm %%ANSDIR%%/locale/sv_SE/LC_MESSAGES
X at dirrm %%ANSDIR%%/locale/sv_SE
X at dirrm %%ANSDIR%%/locale/sl_SI/LC_MESSAGES
X at dirrm %%ANSDIR%%/locale/sl_SI
X at dirrm %%ANSDIR%%/locale/lt_LT/LC_MESSAGES
X at dirrm %%ANSDIR%%/locale/lt_LT
X at dirrm %%ANSDIR%%/locale/it_IT/LC_MESSAGES
X at dirrm %%ANSDIR%%/locale/it_IT
X at dirrm %%ANSDIR%%/locale/fi_FI/LC_MESSAGES
X at dirrm %%ANSDIR%%/locale/fi_FI
X at dirrm %%ANSDIR%%/locale/es_ES/LC_MESSAGES
X at dirrm %%ANSDIR%%/locale/es_ES
X at dirrm %%ANSDIR%%/locale/en_US
X at dirrm %%ANSDIR%%/locale/de_DE/LC_MESSAGES
X at dirrm %%ANSDIR%%/locale/de_DE
X at dirrm %%ANSDIR%%/locale
X at dirrm %%ANSDIR%%/lib/Views
X at dirrm %%ANSDIR%%/lib/Forms
X at dirrm %%ANSDIR%%/lib/Exif
X at dirrm %%ANSDIR%%/lib/Block
X at dirrm %%ANSDIR%%/lib
X at dirrm %%ANSDIR%%/js/src
X at dirrm %%ANSDIR%%/js
X at dirrm %%ANSDIR%%/img
X at dirrm %%ANSDIR%%/gallery
X at dirrm %%ANSDIR%%/config
X at dirrm %%ANSDIR%%
SHAR_END
echo x horde-ansel/files/pkg-message.in
sed 's/^X//' > horde-ansel/files/pkg-message.in << 'SHAR_END'
X************************************************************************
XANSEL has been installed in %%ANSDIR%% with your blank
Xconfiguration files.
X
XAnsel must be configured; if not, see `pkg_info -D -x horde'.
X
XFinally, you must login to Horde as a Horde Administrator to finish the
Xconfiguration.
X
XTo protect your configuration files, you have to restart Apache.
X************************************************************************
SHAR_END
echo x horde-ansel/files/pkg-deinstall.in
sed 's/^X//' > horde-ansel/files/pkg-deinstall.in << 'SHAR_END'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X# Backup ansel config files, if needed.
X
Xif [ x$2 != xDEINSTALL ]; then
X    exit
Xfi
X
Xif [ -z "${PACKAGE_BUILDING}" ]; then
X  for cf in `ls %%ANSDIR%%/config/*php`; do
X    diff -bBqw $cf $cf.dist >/dev/null 2>&1
X    case $? in
X      0)  # original config file, delete it
X          rm -f $cf
X          ;;
X      1)  # config file has been updated, leave it alone
X          ;;
X      *)  # not found?
X          ;;
X    esac
X  done
Xfi
SHAR_END
echo x horde-ansel/files/pkg-install.in
sed 's/^X//' > horde-ansel/files/pkg-install.in << 'SHAR_END'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X#
X
XPATH=/usr/sbin:/usr/bin:/bin ; export PATH
X
Xcase $2 in
X    PRE-INSTALL)
X    ;;
X
X    POST-INSTALL)
X        if [ -z "${PACKAGE_BUILDING}" ]; then
X            # Copy over sample config files unless they already exist
X
X            for cf in `ls %%ANSDIR%%/config/*.dist | sed -e 's/\.dist//g'`; do
X                if [ ! -f $cf ]; then
X                    cp -p $cf.dist $cf
X                fi
X            done
X        fi
X    ;;
Xesac
SHAR_END
echo x horde-ansel/files/httpd.conf.ansel
sed 's/^X//' > horde-ansel/files/httpd.conf.ansel << 'SHAR_END'
X# This is included in Apache's httpd.conf for ansel
X#
X# For security, don't serve pages from the ansel configuration and
X# library directories.
X#
X<Directory "/home/httpd/html/horde/ansel/config">
X    order deny,allow
X    deny from all
X</Directory>
X<Directory "/home/httpd/html/horde/ansel/lib">
X    order deny,allow
X    deny from all
X</Directory>
X<Directory "/home/httpd/html/horde/ansel/locale">
X    order deny,allow
X    deny from all
X</Directory>
X<Directory "/home/httpd/html/horde/ansel/po">
X    order deny,allow
X    deny from all
X</Directory>
X<Directory "/home/httpd/html/horde/ansel/scripts">
X    order deny,allow
X    deny from all
X</Directory>
X<Directory "/home/httpd/html/horde/ansel/templates">
X    order deny,allow
X    deny from all
X</Directory>
X# End of ansel configuration ================
X
SHAR_END
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list