aboutsummaryrefslogtreecommitdiff
path: root/mail/horde4-ingo
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2004-12-26 10:23:36 +0000
committerThierry Thomas <thierry@FreeBSD.org>2004-12-26 10:23:36 +0000
commit4c395e97edebc723608cf203afa07bdbc8ba854d (patch)
tree98741ead587e990137e9ee7c9213d210e9b0f224 /mail/horde4-ingo
parentde68a058bfd96eec3e7101d045e39163958bbb96 (diff)
downloadports-4c395e97edebc723608cf203afa07bdbc8ba854d.tar.gz
ports-4c395e97edebc723608cf203afa07bdbc8ba854d.zip
Notes
Diffstat (limited to 'mail/horde4-ingo')
-rw-r--r--mail/horde4-ingo/Makefile94
-rw-r--r--mail/horde4-ingo/distinfo2
-rw-r--r--mail/horde4-ingo/files/httpd.conf.ingo31
-rw-r--r--mail/horde4-ingo/files/pkg-message.in11
-rw-r--r--mail/horde4-ingo/pkg-deinstall27
-rw-r--r--mail/horde4-ingo/pkg-descr7
-rw-r--r--mail/horde4-ingo/pkg-plist156
7 files changed, 328 insertions, 0 deletions
diff --git a/mail/horde4-ingo/Makefile b/mail/horde4-ingo/Makefile
new file mode 100644
index 000000000000..826a13134246
--- /dev/null
+++ b/mail/horde4-ingo/Makefile
@@ -0,0 +1,94 @@
+# Ports collection makefile for: Ingo
+# Date created: Dec 3, 2004
+# Whom: Thierry Thomas (<thierry@pompo.net>)
+#
+# $FreeBSD$
+#
+
+PORTNAME= ingo
+PORTVERSION= 1.0
+CATEGORIES= mail www
+MASTER_SITES= ftp://ftp.horde.org/pub/ingo/ \
+ ftp://ftp.planetmirror.com/pub/horde/ingo/ \
+ ftp://ftp.au.horde.org/pub/horde/ingo/ \
+ ftp://ftp.be.horde.org/ingo/ \
+ ftp://ftp.es.horde.org/pub/ingo/ \
+ ftp://ftp.it.horde.org/pub/mirror/horde.org/ingo/ \
+ ftp://ftp.nl.horde.org/mirror/horde-ftp/pub/ingo/ \
+ ftp://ftp.uk.horde.org/mirrors/ftp.horde.org/pub/ingo/ \
+ http://ftp.horde.org/pub/ingo/
+DISTNAME= ${PORTNAME}-h3-${PORTVERSION}
+
+MAINTAINER= thierry@FreeBSD.org
+COMMENT= Horde's email-filter management application
+
+#-----------------------------------------------------------------------
+# You may define this option:
+#
+# - WITH_SIEVE : if you run timsieved (with Cyrus).
+#
+#-----------------------------------------------------------------------
+
+RUN_DEPENDS+= ${LOCALBASE}/www/horde/rpc.php:${PORTSDIR}/www/horde
+
+NO_BUILD= yes
+USE_PHP= imap
+USE_REINPLACE= yes
+
+PLIST_SUB= INGODIR=${LINGODIR}
+PKGMESSAGE= ${WRKDIR}/pkg-message
+
+DOCS= LICENSE README docs/CHANGES docs/CREDITS docs/INSTALL \
+ docs/RELEASE_NOTES docs/TODO
+CONFFILE= backends.php fields.php prefs.php
+SUB_DIRS= config lib locale po scripts templates themes
+
+LHORDEDIR?= www/horde
+LINGODIR= ${LHORDEDIR}/ingo
+PEARDIR?= ${LOCALBASE}/share/pear
+
+INGODIR= ${PREFIX}/${LINGODIR}
+CONFDIR= ${INGODIR}/config
+
+HORDE_INC= ${LOCALBASE}/etc/horde
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_SIEVE) || exists(${LOCALBASE}/cyrus/bin/timsieved)
+RUN_DEPENDS+= ${PEARDIR}/Net/Sieve.php:${PORTSDIR}/net/pear-Net_Sieve
+.endif
+
+pre-configure:
+ @${SED} -e "s:/home/httpd/html/horde/ingo:${INGODIR}:g" \
+ ${FILESDIR}/httpd.conf.ingo >${WRKDIR}/httpd.conf.ingo
+
+do-install:
+ @${MKDIR} ${INGODIR}
+.for REP in ${SUB_DIRS}
+ @${CP} -Rp ${WRKSRC}/${REP} ${INGODIR}
+.endfor
+ @${CP} -p ${WRKSRC}/*.php ${INGODIR}
+.for FILE in ${CONFFILE}
+ @if [ ! -f ${CONFDIR}/${FILE} ]; then \
+ ${CP} ${CONFDIR}/${FILE}.dist ${CONFDIR}/${FILE} ; \
+ fi
+.endfor
+ @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${INGODIR}
+ @${CHMOD} -R o-rwx ${CONFDIR}
+ @${INSTALL_DATA} ${WRKDIR}/httpd.conf.ingo ${HORDE_INC}
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for FILE in ${DOCS}
+ @${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
+.endfor
+ @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
+.endif
+
+post-install:
+ @${SED} -e "s:%%INGODIR%%:${INGODIR}:g;s:%%DOCSDIR%%:${DOCSDIR}:g" \
+ < ${FILESDIR}/pkg-message.in > ${PKGMESSAGE}
+ @${ECHO_MSG}
+ @${CAT} ${PKGMESSAGE}
+ @${ECHO_MSG}
+
+.include <bsd.port.post.mk>
diff --git a/mail/horde4-ingo/distinfo b/mail/horde4-ingo/distinfo
new file mode 100644
index 000000000000..40e8dfa1ec20
--- /dev/null
+++ b/mail/horde4-ingo/distinfo
@@ -0,0 +1,2 @@
+MD5 (ingo-h3-1.0.tar.gz) = 708c21f80e7e677386b0bfd965e24d85
+SIZE (ingo-h3-1.0.tar.gz) = 733180
diff --git a/mail/horde4-ingo/files/httpd.conf.ingo b/mail/horde4-ingo/files/httpd.conf.ingo
new file mode 100644
index 000000000000..d07046cdd18c
--- /dev/null
+++ b/mail/horde4-ingo/files/httpd.conf.ingo
@@ -0,0 +1,31 @@
+# This is included in Apache's httpd.conf for Ingo
+#
+# For security, don't serve pages from the Ingo configuration and
+# library directories.
+#
+<Directory "/home/httpd/html/horde/ingo/config">
+ order deny,allow
+ deny from all
+</Directory>
+<Directory "/home/httpd/html/horde/ingo/lib">
+ order deny,allow
+ deny from all
+</Directory>
+<Directory "/home/httpd/html/horde/ingo/locale">
+ order deny,allow
+ deny from all
+</Directory>
+<Directory "/home/httpd/html/horde/ingo/po">
+ order deny,allow
+ deny from all
+</Directory>
+<Directory "/home/httpd/html/horde/ingo/scripts">
+ order deny,allow
+ deny from all
+</Directory>
+<Directory "/home/httpd/html/horde/ingo/templates">
+ order deny,allow
+ deny from all
+</Directory>
+# End of Ingo configuration ================
+
diff --git a/mail/horde4-ingo/files/pkg-message.in b/mail/horde4-ingo/files/pkg-message.in
new file mode 100644
index 000000000000..fba684f58b9d
--- /dev/null
+++ b/mail/horde4-ingo/files/pkg-message.in
@@ -0,0 +1,11 @@
+************************************************************************
+Ingo has been installed in %%INGODIR%% with your blank
+configuration files.
+
+Horde must be configured; if not, see `pkg_info -D -x horde'.
+
+Finally, you must login to Horde as a Horde Administrator to finish the
+configuration.
+
+To protect your configuration files, you have to restart Apache.
+************************************************************************
diff --git a/mail/horde4-ingo/pkg-deinstall b/mail/horde4-ingo/pkg-deinstall
new file mode 100644
index 000000000000..a3a597d448a6
--- /dev/null
+++ b/mail/horde4-ingo/pkg-deinstall
@@ -0,0 +1,27 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# Backup Ingo config files, if needed.
+
+if [ x$2 != xDEINSTALL ]; then
+ exit
+fi
+
+if [ -z "${PACKAGE_BUILDING}" ]; then
+ for cf in `ls ${PKG_PREFIX}/www/horde/ingo/config/*php`; do
+ diff -bBqw $cf $cf.dist >/dev/null 2>&1
+ case $? in
+ 0) # original config file, will be deleted by pkg-plist
+ ;;
+ 1) # config file has been updated, must be backuped
+ cp -p $cf $cf.previous
+ echo "===> Backing-up..."
+ echo "---> $cf has been saved ***"
+ echo "---> as $cf.previous ***"
+ ;;
+ *) # not found?
+ ;;
+ esac
+ done
+fi
diff --git a/mail/horde4-ingo/pkg-descr b/mail/horde4-ingo/pkg-descr
new file mode 100644
index 000000000000..382bea7a8f2d
--- /dev/null
+++ b/mail/horde4-ingo/pkg-descr
@@ -0,0 +1,7 @@
+Ingo is an email-filter management application.
+
+It is fully internationalized, integrated with Horde and the IMP Webmail
+client, and supports both server-side (Sieve, procmail) and client-side
+(IMAP) rule creation.
+
+WWW: http://horde.org/ingo/
diff --git a/mail/horde4-ingo/pkg-plist b/mail/horde4-ingo/pkg-plist
new file mode 100644
index 000000000000..6b72cc37cf5e
--- /dev/null
+++ b/mail/horde4-ingo/pkg-plist
@@ -0,0 +1,156 @@
+etc/horde/httpd.conf.ingo
+%%PORTDOCS%%%%DOCSDIR%%/CHANGES
+%%PORTDOCS%%%%DOCSDIR%%/LICENSE
+%%PORTDOCS%%%%DOCSDIR%%/CREDITS
+%%PORTDOCS%%%%DOCSDIR%%/INSTALL
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/RELEASE_NOTES
+%%PORTDOCS%%%%DOCSDIR%%/TODO
+%%INGODIR%%/blacklist.php
+%%INGODIR%%/config/.htaccess
+%%INGODIR%%/config/backends.php
+%%INGODIR%%/config/backends.php.dist
+%%INGODIR%%/config/conf.xml
+%%INGODIR%%/config/fields.php
+%%INGODIR%%/config/fields.php.dist
+%%INGODIR%%/config/prefs.php
+%%INGODIR%%/config/prefs.php.dist
+%%INGODIR%%/filters.php
+%%INGODIR%%/forward.php
+%%INGODIR%%/index.php
+%%INGODIR%%/lib/Driver.php
+%%INGODIR%%/lib/Driver/null.php
+%%INGODIR%%/lib/Driver/timsieved.php
+%%INGODIR%%/lib/Driver/vfs.php
+%%INGODIR%%/lib/Ingo.php
+%%INGODIR%%/lib/Script.php
+%%INGODIR%%/lib/Script/imap.php
+%%INGODIR%%/lib/Script/procmail.php
+%%INGODIR%%/lib/Script/sieve.php
+%%INGODIR%%/lib/Session.php
+%%INGODIR%%/lib/Storage.php
+%%INGODIR%%/lib/Storage/prefs.php
+%%INGODIR%%/lib/api.php
+%%INGODIR%%/lib/base.php
+%%INGODIR%%/lib/version.php
+%%INGODIR%%/locale/cs_CZ/LC_MESSAGES/ingo.mo
+%%INGODIR%%/locale/de_DE/LC_MESSAGES/ingo.mo
+%%INGODIR%%/locale/de_DE/help.xml
+%%INGODIR%%/locale/en_US/help.xml
+%%INGODIR%%/locale/es_ES/LC_MESSAGES/ingo.mo
+%%INGODIR%%/locale/es_ES/help.xml
+%%INGODIR%%/locale/fi_FI/LC_MESSAGES/ingo.mo
+%%INGODIR%%/locale/fr_FR/LC_MESSAGES/ingo.mo
+%%INGODIR%%/locale/hu_HU/LC_MESSAGES/ingo.mo
+%%INGODIR%%/locale/it_IT/LC_MESSAGES/ingo.mo
+%%INGODIR%%/locale/lt_LT/LC_MESSAGES/ingo.mo
+%%INGODIR%%/locale/lv_LV/help.xml
+%%INGODIR%%/locale/nl_NL/LC_MESSAGES/ingo.mo
+%%INGODIR%%/locale/pl_PL/LC_MESSAGES/ingo.mo
+%%INGODIR%%/locale/pt_BR/LC_MESSAGES/ingo.mo
+%%INGODIR%%/locale/ro_RO/LC_MESSAGES/ingo.mo
+%%INGODIR%%/locale/sv_SE/LC_MESSAGES/ingo.mo
+%%INGODIR%%/locale/zh_TW/LC_MESSAGES/ingo.mo
+%%INGODIR%%/po/README
+%%INGODIR%%/po/cs_CZ.po
+%%INGODIR%%/po/de_DE.po
+%%INGODIR%%/po/es_ES.po
+%%INGODIR%%/po/fi_FI.po
+%%INGODIR%%/po/fr_FR.po
+%%INGODIR%%/po/hu_HU.po
+%%INGODIR%%/po/ingo.pot
+%%INGODIR%%/po/it_IT.po
+%%INGODIR%%/po/lt_LT.po
+%%INGODIR%%/po/nl_NL.po
+%%INGODIR%%/po/pl_PL.po
+%%INGODIR%%/po/pt_BR.po
+%%INGODIR%%/po/ro_RO.po
+%%INGODIR%%/po/sv_SE.po
+%%INGODIR%%/po/zh_TW.po
+%%INGODIR%%/rule.php
+%%INGODIR%%/script.php
+%%INGODIR%%/scripts/.htaccess
+%%INGODIR%%/scripts/convert_imp_filters.php
+%%INGODIR%%/templates/blacklist/blacklist.inc
+%%INGODIR%%/templates/common-header.inc
+%%INGODIR%%/templates/filters/filter-none.inc
+%%INGODIR%%/templates/filters/filter.html
+%%INGODIR%%/templates/filters/footer.inc
+%%INGODIR%%/templates/filters/header.inc
+%%INGODIR%%/templates/filters/settings.inc
+%%INGODIR%%/templates/forward/forward.inc
+%%INGODIR%%/templates/javascript/new_folder.js
+%%INGODIR%%/templates/menu.inc
+%%INGODIR%%/templates/rule/filter.inc
+%%INGODIR%%/templates/rule/footer.inc
+%%INGODIR%%/templates/rule/header.inc
+%%INGODIR%%/templates/script/activate.inc
+%%INGODIR%%/templates/script/footer.inc
+%%INGODIR%%/templates/script/header.inc
+%%INGODIR%%/templates/script/script.inc
+%%INGODIR%%/templates/vacation/vacation.inc
+%%INGODIR%%/templates/whitelist/whitelist.inc
+%%INGODIR%%/test.php
+%%INGODIR%%/themes/graphics/blacklist.png
+%%INGODIR%%/themes/graphics/copy.png
+%%INGODIR%%/themes/graphics/disable.png
+%%INGODIR%%/themes/graphics/enable.png
+%%INGODIR%%/themes/graphics/favicon.ico
+%%INGODIR%%/themes/graphics/forward.png
+%%INGODIR%%/themes/graphics/ingo.png
+%%INGODIR%%/themes/graphics/script.png
+%%INGODIR%%/themes/graphics/vacation.png
+%%INGODIR%%/themes/graphics/whitelist.png
+%%INGODIR%%/vacation.php
+%%INGODIR%%/whitelist.php
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@dirrm %%INGODIR%%/themes/graphics
+@dirrm %%INGODIR%%/themes
+@dirrm %%INGODIR%%/templates/whitelist
+@dirrm %%INGODIR%%/templates/vacation
+@dirrm %%INGODIR%%/templates/script
+@dirrm %%INGODIR%%/templates/rule
+@dirrm %%INGODIR%%/templates/javascript
+@dirrm %%INGODIR%%/templates/forward
+@dirrm %%INGODIR%%/templates/filters
+@dirrm %%INGODIR%%/templates/blacklist
+@dirrm %%INGODIR%%/templates
+@dirrm %%INGODIR%%/scripts
+@dirrm %%INGODIR%%/po
+@dirrm %%INGODIR%%/locale/zh_TW/LC_MESSAGES
+@dirrm %%INGODIR%%/locale/zh_TW
+@dirrm %%INGODIR%%/locale/sv_SE/LC_MESSAGES
+@dirrm %%INGODIR%%/locale/sv_SE
+@dirrm %%INGODIR%%/locale/ro_RO/LC_MESSAGES
+@dirrm %%INGODIR%%/locale/ro_RO
+@dirrm %%INGODIR%%/locale/pt_BR/LC_MESSAGES
+@dirrm %%INGODIR%%/locale/pt_BR
+@dirrm %%INGODIR%%/locale/pl_PL/LC_MESSAGES
+@dirrm %%INGODIR%%/locale/pl_PL
+@dirrm %%INGODIR%%/locale/nl_NL/LC_MESSAGES
+@dirrm %%INGODIR%%/locale/nl_NL
+@dirrm %%INGODIR%%/locale/lv_LV
+@dirrm %%INGODIR%%/locale/lt_LT/LC_MESSAGES
+@dirrm %%INGODIR%%/locale/lt_LT
+@dirrm %%INGODIR%%/locale/it_IT/LC_MESSAGES
+@dirrm %%INGODIR%%/locale/it_IT
+@dirrm %%INGODIR%%/locale/hu_HU/LC_MESSAGES
+@dirrm %%INGODIR%%/locale/hu_HU
+@dirrm %%INGODIR%%/locale/fr_FR/LC_MESSAGES
+@dirrm %%INGODIR%%/locale/fr_FR
+@dirrm %%INGODIR%%/locale/fi_FI/LC_MESSAGES
+@dirrm %%INGODIR%%/locale/fi_FI
+@dirrm %%INGODIR%%/locale/es_ES/LC_MESSAGES
+@dirrm %%INGODIR%%/locale/es_ES
+@dirrm %%INGODIR%%/locale/en_US
+@dirrm %%INGODIR%%/locale/de_DE/LC_MESSAGES
+@dirrm %%INGODIR%%/locale/de_DE
+@dirrm %%INGODIR%%/locale/cs_CZ/LC_MESSAGES
+@dirrm %%INGODIR%%/locale/cs_CZ
+@dirrm %%INGODIR%%/locale
+@dirrm %%INGODIR%%/lib/Storage
+@dirrm %%INGODIR%%/lib/Script
+@dirrm %%INGODIR%%/lib/Driver
+@dirrm %%INGODIR%%/lib
+@unexec rmdir %D/%%INGODIR%%/config 2>/dev/null || true
+@unexec rmdir %D/%%INGODIR%% 2>/dev/null || true