Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Mar 2007 01:13:27 -0900
From:      "Beech Rintoul" <beech@alaskaparadise.com>
To:        "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org>
Cc:        infofarmer@FreeBSD.org
Subject:   ports/110123: [NEW PORT] mail/horde-vacation - Horde module for "vacation notices" or "auto-responders"
Message-ID:  <1173435207.55164@stargate.alaskaparadise.com>
Resent-Message-ID: <200703091020.l29AKKh1094847@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         110123
>Category:       ports
>Synopsis:       [NEW PORT] mail/horde-vacation - Horde module for  "vacation notices" or "auto-responders"
>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:   Fri Mar 09 10:20:20 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:


Horde module for  "vacation notices" or "auto-responders"


>How-To-Repeat:





>Fix:


#!/bin/sh
# This is a shell archive
echo x horde-vacation
mkdir -p horde-vacation > /dev/null 2>&1
echo x horde-vacation/files
mkdir -p horde-vacation/files > /dev/null 2>&1
echo x horde-vacation/pkg-descr
sed 's/^X//' > horde-vacation/pkg-descr << 'SHAR_END'
XVacation is a Horde module for managing user e-mail "vacation notices" or
X"auto-responders." It works via a local vacation program and the .forward style
Xforwarding mechanism supported by several popular mailers.
X
XRight now, Vacation provides fairly complete support for managing .forward style
Xvacation notices on Sendmail or Courier mail based systems via an FTP transport.
XIt also has some support for LDAP, Qmail, and SQL servers.
X
XWWW: http://www.horde.org/vacation/
SHAR_END
echo x horde-vacation/Makefile
sed 's/^X//' > horde-vacation/Makefile << 'SHAR_END'
X# Ports collection makefile for:	vacation3
X# Date created:			Thu Mar 08, 2007
X# Whom:				Beech Rintoul <beech@alaskaparadise.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	vacation
XPORTVERSION=	3.0
XCATEGORIES=	mail www
XMASTER_SITES=	HORDE
XPKGNAMEPREFIX=	horde-
XDISTNAME=	${PORTNAME}-h3-${PORTVERSION}
X
XMAINTAINER=	beech@alaskaparadise.com
XCOMMENT=	Horde module for  "vacation notices" or "auto-responders"
X
X#-----------------------------------------------------------------------
X# You may define these options:
X#
X# - WITHOUT_LDAP	if you do not need OpenLDAP;
X#
X# - WITHOUT_FTP	disable FTP support;
X#-----------------------------------------------------------------------
X
XRUN_DEPENDS+=	${PEARDIR}/Auth/SASL.php:${PORTSDIR}/security/pear-Auth_SASL
X
X. if !defined(WITHOUT_LDAP)
XUSE_PHP+=	ldap
X. endif
X
X.if !defined(WITHOUT_FTP)
XUSE_PHP+=	ftp
X.endif
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 INSTALL RELEASE_NOTES TODO
XCONFFILE=	 conf.xml .htaccess
XSUB_DIRS=	config files lib locale po scripts templates themes
X
XLHORDEDIR?=	www/horde
XLVACDIR=	${LHORDEDIR}/vacation
XPEARDIR?=	${LOCALBASE}/share/pear
X
XPLIST_SUB=	VACDIR=${LVACDIR} HORDE_INC=${HORDE_INC:S|^${LOCALBASE}/||}
XPKGMESSAGE=	${WRKDIR}/pkg-message
XPKGDEINSTALL=	${WRKDIR}/pkg-deinstall
XSUB_FILES=	pkg-message pkg-install pkg-deinstall
XSUB_LIST=	VACDIR=${VACDIR} PORTSDIR=${PORTSDIR} CONFDIR=${CONFDIR}
X
XVACDIR=	${PREFIX}/${LVACDIR}
XCONFDIR=	${VACDIR}/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
XVAC_INC=	${LOCALBASE}/etc/apache${APACHE_VERSION:S/20/2/}/Includes/
X.else
XVAC_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/vacation:${VACDIR}:" \
X		${FILESDIR}/httpd.conf.vacation > ${WRKDIR}/httpd-vacation.conf
X
Xpre-install:
X
Xdo-install:
X	@${INSTALL} -d ${VACDIR}/
X.for REP in ${SUB_DIRS}
X	@${CP} -Rp ${WRKSRC}/${REP} ${VACDIR}/
X.endfor
X
X	@${CP} -p  ${WRKSRC}/*.php ${VACDIR}/
X	@${INSTALL_DATA} ${WRKSRC}/config/conf.xml ${CONFDIR}/
X	@${INSTALL_DATA} ${WRKDIR}/httpd-vacation.conf ${VAC_INC}/
X	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${VACDIR}/
X	@${CHMOD} -R o-rwx ${CONFDIR}/
X
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-vacation/distinfo
sed 's/^X//' > horde-vacation/distinfo << 'SHAR_END'
XMD5 (vacation-h3-3.0.tar.gz) = aebac7f1f1a1bdf8d7f9a7ed8aecee8e
XSHA256 (vacation-h3-3.0.tar.gz) = 1c41e20015242eadc30d9da3ea15748e511e14bea671b62fd57c5daf69d4e502
XSIZE (vacation-h3-3.0.tar.gz) = 836530
SHAR_END
echo x horde-vacation/pkg-plist
sed 's/^X//' > horde-vacation/pkg-plist << 'SHAR_END'
X%%VACDIR%%/config/.htaccess
X%%VACDIR%%/config/conf.xml
X%%VACDIR%%/files/empty.btree.bin
X%%VACDIR%%/files/empty.empty.bin
X%%VACDIR%%/files/empty.gdbm.bin
X%%VACDIR%%/files/empty.hash.bin
X%%VACDIR%%/files/empty.hash3.bin
X%%VACDIR%%/index.php
X%%VACDIR%%/lib/AliasDriver/ftp.php
X%%VACDIR%%/lib/AliasDriver/none.php
X%%VACDIR%%/lib/Block/summary.php
X%%VACDIR%%/lib/AliasDriver.php
X%%VACDIR%%/lib/base.php
X%%VACDIR%%/lib/Driver.php
X%%VACDIR%%/lib/Driver/forwards.php
X%%VACDIR%%/lib/Driver/ldap.php
X%%VACDIR%%/lib/Driver/qmail.php
X%%VACDIR%%/lib/Driver/sql.php
X%%VACDIR%%/lib/.htaccess
X%%VACDIR%%/lib/version.php
X%%VACDIR%%/locale/bg_BG/LC_MESSAGES/vacation.mo
X%%VACDIR%%/locale/cs_CZ/LC_MESSAGES/vacation.mo
X%%VACDIR%%/locale/da_DK/LC_MESSAGES/vacation.mo
X%%VACDIR%%/locale/de_DE/LC_MESSAGES/vacation.mo
X%%VACDIR%%/locale/el_GR/LC_MESSAGES/vacation.mo
X%%VACDIR%%/locale/en_US/help.xml
X%%VACDIR%%/locale/es_ES/LC_MESSAGES/vacation.mo
X%%VACDIR%%/locale/es_ES/help.xml
X%%VACDIR%%/locale/fa_IR/LC_MESSAGES/vacation.mo
X%%VACDIR%%/locale/fa_IR/help.xml
X%%VACDIR%%/locale/fi_FI/LC_MESSAGES/vacation.mo
X%%VACDIR%%/locale/fi_FI/help.xml
X%%VACDIR%%/locale/fr_FR/LC_MESSAGES/vacation.mo
X%%VACDIR%%/locale/gl_ES/LC_MESSAGES/vacation.mo
X%%VACDIR%%/locale/hu_HU/LC_MESSAGES/vacation.mo
X%%VACDIR%%/locale/it_IT/LC_MESSAGES/vacation.mo
X%%VACDIR%%/locale/nl_NL/LC_MESSAGES/vacation.mo
X%%VACDIR%%/locale/nl_NL/help.xml
X%%VACDIR%%/locale/nn_NO/LC_MESSAGES/vacation.mo
X%%VACDIR%%/locale/pl_PL/LC_MESSAGES/vacation.mo
X%%VACDIR%%/locale/pt_BR/LC_MESSAGES/vacation.mo
X%%VACDIR%%/locale/ro_RO/LC_MESSAGES/vacation.mo
X%%VACDIR%%/locale/sv_SE/LC_MESSAGES/vacation.mo
X%%VACDIR%%/locale/zh_TW/LC_MESSAGES/vacation.mo
X%%VACDIR%%/main.php
X%%VACDIR%%/po/README
X%%VACDIR%%/po/.htaccess
X%%VACDIR%%/po/bg_BG.po
X%%VACDIR%%/po/cs_CZ.po
X%%VACDIR%%/po/da_DK.po
X%%VACDIR%%/po/de_DE.po
X%%VACDIR%%/po/el_GR.po
X%%VACDIR%%/po/es_ES.po
X%%VACDIR%%/po/fa_IR.po
X%%VACDIR%%/po/fi_FI.po
X%%VACDIR%%/po/fr_FR.po
X%%VACDIR%%/po/gl_ES.po
X%%VACDIR%%/po/hu_HU.po
X%%VACDIR%%/po/it_IT.po
X%%VACDIR%%/po/nl_NL.po
X%%VACDIR%%/po/nn_NO.po
X%%VACDIR%%/po/pl_PL.po
X%%VACDIR%%/po/pt_BR.po
X%%VACDIR%%/po/ro_RO.po
X%%VACDIR%%/po/sv_SE.po
X%%VACDIR%%/po/vacation.pot
X%%VACDIR%%/po/zh_TW.po
X%%VACDIR%%/scripts/.htaccess
X%%VACDIR%%/scripts/create-db-files.pl
X%%VACDIR%%/templates/common-header.inc
X%%VACDIR%%/templates/.htaccess
X%%VACDIR%%/templates/main/main.inc
X%%VACDIR%%/themes/graphics/favicon.ico
X%%VACDIR%%/themes/graphics/vacation.png
X@dirrm %%VACDIR%%/themes/graphics
X@dirrm %%VACDIR%%/themes
X@dirrm %%VACDIR%%/templates/main
X@dirrm %%VACDIR%%/templates
X@dirrm %%VACDIR%%/scripts
X@dirrm %%VACDIR%%/po
X@dirrm %%VACDIR%%/locale/zh_TW/LC_MESSAGES
X@dirrm %%VACDIR%%/locale/zh_TW
X@dirrm %%VACDIR%%/locale/sv_SE/LC_MESSAGES
X@dirrm %%VACDIR%%/locale/sv_SE
X@dirrm %%VACDIR%%/locale/ro_RO/LC_MESSAGES
X@dirrm %%VACDIR%%/locale/ro_RO
X@dirrm %%VACDIR%%/locale/pt_BR/LC_MESSAGES
X@dirrm %%VACDIR%%/locale/pt_BR
X@dirrm %%VACDIR%%/locale/pl_PL/LC_MESSAGES
X@dirrm %%VACDIR%%/locale/pl_PL
X@dirrm %%VACDIR%%/locale/nn_NO/LC_MESSAGES
X@dirrm %%VACDIR%%/locale/nn_NO
X@dirrm %%VACDIR%%/locale/nl_NL/LC_MESSAGES
X@dirrm %%VACDIR%%/locale/nl_NL
X@dirrm %%VACDIR%%/locale/it_IT/LC_MESSAGES
X@dirrm %%VACDIR%%/locale/it_IT
X@dirrm %%VACDIR%%/locale/hu_HU/LC_MESSAGES
X@dirrm %%VACDIR%%/locale/hu_HU
X@dirrm %%VACDIR%%/locale/gl_ES/LC_MESSAGES
X@dirrm %%VACDIR%%/locale/gl_ES
X@dirrm %%VACDIR%%/locale/fr_FR/LC_MESSAGES
X@dirrm %%VACDIR%%/locale/fr_FR
X@dirrm %%VACDIR%%/locale/fi_FI/LC_MESSAGES
X@dirrm %%VACDIR%%/locale/fi_FI
X@dirrm %%VACDIR%%/locale/fa_IR/LC_MESSAGES
X@dirrm %%VACDIR%%/locale/fa_IR
X@dirrm %%VACDIR%%/locale/es_ES/LC_MESSAGES
X@dirrm %%VACDIR%%/locale/es_ES
X@dirrm %%VACDIR%%/locale/en_US
X@dirrm %%VACDIR%%/locale/el_GR/LC_MESSAGES
X@dirrm %%VACDIR%%/locale/el_GR
X@dirrm %%VACDIR%%/locale/de_DE/LC_MESSAGES
X@dirrm %%VACDIR%%/locale/de_DE
X@dirrm %%VACDIR%%/locale/da_DK/LC_MESSAGES
X@dirrm %%VACDIR%%/locale/da_DK
X@dirrm %%VACDIR%%/locale/cs_CZ/LC_MESSAGES
X@dirrm %%VACDIR%%/locale/cs_CZ
X@dirrm %%VACDIR%%/locale/bg_BG/LC_MESSAGES
X@dirrm %%VACDIR%%/locale/bg_BG
X@dirrm %%VACDIR%%/locale
X@dirrm %%VACDIR%%/lib/Driver
X@dirrm %%VACDIR%%/lib/Block
X@dirrm %%VACDIR%%/lib/AliasDriver
X@dirrm %%VACDIR%%/lib
X@dirrm %%VACDIR%%/files
X@dirrmtry %%VACDIR%%/config
X@dirrmtry %%VACDIR%%
SHAR_END
echo x horde-vacation/files/httpd.conf.vacation
sed 's/^X//' > horde-vacation/files/httpd.conf.vacation << 'SHAR_END'
X# This is included in Apache's httpd.conf for VACATION
X#
X# For security, don't serve pages from the VACATION configuration and
X# library directories.
X#
X<Directory "/home/httpd/html/horde/vacation/config">
X    order deny,allow
X    deny from all
X</Directory>
X<Directory "/home/httpd/html/horde/vacation/lib">
X    order deny,allow
X    deny from all
X</Directory>
X<Directory "/home/httpd/html/horde/vacation/locale">
X    order deny,allow
X    deny from all
X</Directory>
X<Directory "/home/httpd/html/horde/vacation/po">
X    order deny,allow
X    deny from all
X</Directory>
X<Directory "/home/httpd/html/horde/vacation/scripts">
X    order deny,allow
X    deny from all
X</Directory>
X<Directory "/home/httpd/html/horde/vacation/templates">
X    order deny,allow
X    deny from all
X</Directory>
X# End of VACATION configuration ================
X
SHAR_END
echo x horde-vacation/files/pkg-message.in
sed 's/^X//' > horde-vacation/files/pkg-message.in << 'SHAR_END'
X************************************************************************
XVACATION has been installed in %%VACDIR%% with your blank
Xconfiguration files.
X
XHorde must be configured and the tables created; if not, see
X`pkg_info -D -x horde'.
X
XThen, you must login to Horde as a Horde Administrator to finish the
Xconfiguration. Please read %%DOCSDIR%%/INSTALL.
X
XTo protect your configuration files, you have to restart your webserver.
X************************************************************************
SHAR_END
echo x horde-vacation/files/pkg-deinstall.in
sed 's/^X//' > horde-vacation/files/pkg-deinstall.in << 'SHAR_END'
X#!/bin/sh
X#
X# $FreeBSD: 
X#
X
Xif [ x$2 != xDEINSTALL ]; then
X    exit
Xfi
X
Xif [ -z "${PACKAGE_BUILDING}" ]; then
X  for cf in `ls %%VACDIR%%/config/*.xml %%VACDIR%%/config/*xml`; do
X    diff -bBqw $cf $cf.xml >/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-vacation/files/pkg-install.in
sed 's/^X//' > horde-vacation/files/pkg-install.in << 'SHAR_END'
X#!/bin/sh
X#
X# $FreeBSD: 
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 %%VACDIR%%/config/*.xml | sed -e 's/\.dist//g'`; do
X                if [ ! -f $cf ]; then
X                    cp -p $cf.xml $cf
X                fi
X            done
X        fi
X    ;;
Xesac
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?1173435207.55164>