Date: Mon, 19 Mar 2007 17:15:01 -0800 From: "Beech Rintoul" <beech@alaskaparadise.com> To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org> Cc: infofarmer@FreeBSD.org Subject: ports/110551: [NEW PORT] www/horde-ansel - Photo gallery for Horde Message-ID: <1174353301.61770@stargate.alaskaparadise.com> Resent-Message-ID: <200703200120.l2K1K4Mc083853@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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@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@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@dirrm %%ANSDIR%%/themes/graphics X@dirrm %%ANSDIR%%/themes X@dirrm %%ANSDIR%%/templates/xppublish X@dirrm %%ANSDIR%%/templates/view X@dirrm %%ANSDIR%%/templates/list X@dirrm %%ANSDIR%%/templates/image X@dirrm %%ANSDIR%%/templates/group X@dirrm %%ANSDIR%%/templates/gallery X@dirrm %%ANSDIR%%/templates/captions X@dirrm %%ANSDIR%%/templates X@dirrm %%ANSDIR%%/scripts/upgrades X@dirrm %%ANSDIR%%/scripts/sql X@dirrm %%ANSDIR%%/scripts X@dirrm %%ANSDIR%%/po X@dirrm %%ANSDIR%%/locale/zh_TW/LC_MESSAGES X@dirrm %%ANSDIR%%/locale/zh_TW X@dirrm %%ANSDIR%%/locale/sv_SE/LC_MESSAGES X@dirrm %%ANSDIR%%/locale/sv_SE X@dirrm %%ANSDIR%%/locale/sl_SI/LC_MESSAGES X@dirrm %%ANSDIR%%/locale/sl_SI X@dirrm %%ANSDIR%%/locale/lt_LT/LC_MESSAGES X@dirrm %%ANSDIR%%/locale/lt_LT X@dirrm %%ANSDIR%%/locale/it_IT/LC_MESSAGES X@dirrm %%ANSDIR%%/locale/it_IT X@dirrm %%ANSDIR%%/locale/fi_FI/LC_MESSAGES X@dirrm %%ANSDIR%%/locale/fi_FI X@dirrm %%ANSDIR%%/locale/es_ES/LC_MESSAGES X@dirrm %%ANSDIR%%/locale/es_ES X@dirrm %%ANSDIR%%/locale/en_US X@dirrm %%ANSDIR%%/locale/de_DE/LC_MESSAGES X@dirrm %%ANSDIR%%/locale/de_DE X@dirrm %%ANSDIR%%/locale X@dirrm %%ANSDIR%%/lib/Views X@dirrm %%ANSDIR%%/lib/Forms X@dirrm %%ANSDIR%%/lib/Exif X@dirrm %%ANSDIR%%/lib/Block X@dirrm %%ANSDIR%%/lib X@dirrm %%ANSDIR%%/js/src X@dirrm %%ANSDIR%%/js X@dirrm %%ANSDIR%%/img X@dirrm %%ANSDIR%%/gallery X@dirrm %%ANSDIR%%/config X@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1174353301.61770>