Upgrade to 3.0.

Horde Version 3 differs from the 2.x releases in many ways, including
the following:
	* Full support for groups and arbitrary permissions.
	* Completely rewritten, fully RFC-compliant MIME system with many
	  new MIME viewers.
	* Many i18n improvements, including full charset support for the whole
	  framework.
	* User customizable portal page.
	* Theme support.
	* Global personal categories and category colors.
	* Access (shortcut) keys.
	* Dynamically updating tree menu for applications, including Mozilla
	  sidebar support.
	* XML-based application configuration through a graphical user interface.
	* Forms creation and validation API.
	* Template engine.
	* Crypt API with support for PGP/GPG and S/MIME.
	* XML-RPC and SOAP server and client, experimental SyncML support.
	* Improved notification system.
	* Many new APIs like Compress, Image, PDF, History, iCalendar, SyncML,
	  CLI, Version control, NLS, Timer, and SVG.
	* and many more...

This is a resurrection of the previous www/horde, upgraded from www/horde2.

PR:		ports/75434
Submitted by:	/me
This commit is contained in:
Thierry Thomas 2004-12-26 10:22:58 +00:00
parent 799d98ac2d
commit de68a058bf
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=125195
33 changed files with 7080 additions and 0 deletions

343
www/horde-base/Makefile Normal file
View file

@ -0,0 +1,343 @@
# Ports collection makefile for: horde2
# Date created: Sun Oct 07, 2001
# Whom: Thierry Thomas (<thierry@thomas.as>)
#
# $FreeBSD$
#
PORTNAME= horde
PORTVERSION= 3.0
CATEGORIES= www
MASTER_SITES= ftp://ftp.horde.org/pub/horde/ \
ftp://ftp.planetmirror.com/pub/horde/horde/ \
ftp://ftp.au.horde.org/pub/horde/horde/ \
ftp://ftp.be.horde.org/horde/ \
ftp://ftp.es.horde.org/pub/horde/ \
ftp://ftp.it.horde.org/pub/mirror/horde.org/horde/ \
ftp://ftp.nl.horde.org/mirror/horde-ftp/pub/horde/ \
ftp://ftp.uk.horde.org/mirrors/ftp.horde.org/pub/horde/ \
http://ftp.horde.org/pub/horde/
.if defined(WITH_PHP5)
PKGNAMESUFFIX= -php5
.endif
MAINTAINER= thierry@FreeBSD.org
COMMENT= A common code-base used by Horde applications, written in PHP
#----------------------------------------------------------------------------
# You may define these options:
#
# - WITH_APACHE2: if you run Apache2.
#
# - WITH_PHP5: if you run PHP5 (you could use www/horde-php5).
#
# - WITHOUT_SUPPORTED_DB: if you run a database not in the ports tree.
#
# - WITHOUT_MYSQL: this port is built with MySQL by default
# but you might choose any other database
# supported by PHP (e.g. WITH_POSTGRESQL).
#
# - WITHOUT_IMAP: this port uses IMAP as a default authentication
# backend; use this knob if for
# example you only need Chora.
#
# - WITHOUT_LDAP: if you do not need OpenLDAP.
#
# - WITHOUT_FTP: if you do not need the VFS FTP driver.
#
# - WITHOUT_MCAL: if you don't plan to install Kronolith.
#
# - WITH_IMSP: use IMSP as a preferences backend.
#
# - WITHOUT_FILEINFO: use native code to perform MIME magic lookups.
#
# - WITHOUT_GD: don't perform manipulations on image data with gd.
#
# - WITHOUT_ZLIB: don't compress pages and don't handle zip or gz data.
#
# - WITH_MAGICK: use ImageMagick to perform these image manipulations.
#
# - WITHOUT_ICONV: remove support for UTF-8 character sets.
# - WITHOUT_MBSTRING:
#
# - WITHOUT_WV if your users never receive MS-Word docs;
#
# - WITHOUT_XL if your users never receive MS-Excel sheets
# (or .ppt presentations);
#
# - WITHOUT_GEOIP don't activate MaxMind GeoIP Hostname to Country lookup.
#
# - WITHOUT_SW don't use the weather.com block on the portal page.
#
# - WITHOUT_WEBCPP: don't highlight sources with webcpp.
#
# - WITH_SRCHIGH: highlight sources with source-highlight.
#
# - WITH_ENSCRIPT: highlight sources with enscript.
#
# - WITH_RPM: handle RPM packages.
#
# - WITH_DEB: handle Debian packages.
#
#----------------------------------------------------------------------------
RUN_DEPENDS+= ${PEARDIR}/Date.php:${PORTSDIR}/devel/pear-Date \
${PEARDIR}/Log.php:${PORTSDIR}/sysutils/pear-Log \
${PEARDIR}/Mail/mime.php:${PORTSDIR}/mail/pear-Mail_Mime \
${PEARDIR}/DB.php:${PORTSDIR}/databases/pear-DB \
${PEARDIR}/File.php:${PORTSDIR}/sysutils/pear-File \
${PEARDIR}/Net/SMTP.php:${PORTSDIR}/net/pear-Net_SMTP
CONFLICTS= horde-2.*
NO_BUILD= yes
USE_PHP= ctype gettext session
WANT_PHP_MOD= yes
USE_REINPLACE= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
.if !defined(WITHOUT_FILEINFO)
USE_PHP+= fileinfo
.endif
.if !defined(WITHOUT_FTP)
USE_PHP+= ftp
.endif
.if !defined(WITHOUT_GD)
USE_PHP+= gd
.endif
.if !defined(WITHOUT_ICONV)
USE_PHP+= iconv
.endif
.if !defined(WITHOUT_IMAP)
USE_PHP+= imap
.endif
.if !defined(WITHOUT_LDAP)
USE_PHP+= ldap
.endif
.if !defined(WITHOUT_MBSTRING)
USE_PHP+= mbstring
.endif
.if !defined(NOCRYPT)
USE_PHP+= mcrypt
.endif
.if !defined(WITHOUT_SUPPORTED_DB)
. if !defined(WITHOUT_MYSQL)
USE_PHP+= mysql
. endif
. if defined(WITH_POSTGRESQL)
USE_PHP+= pgsql
. endif
.endif
.if !defined(WITHOUT_ZLIB)
USE_PHP+= zlib
.endif
.if defined(WITH_MAGICK)
RUN_DEPENDS+= convert:${PORTSDIR}/graphics/ImageMagick
.endif
.if defined(WITH_IMSP)
RUN_DEPENDS+= imspd:${PORTSDIR}/databases/cyrus-imspd
.endif
.if !defined(WITHOUT_X11)
. if !defined(WITHOUT_WV)
RUN_DEPENDS+= ${LOCALBASE}/bin/wvHtml:${PORTSDIR}/textproc/wv
. endif
. if !defined(WITHOUT_XL)
RUN_DEPENDS+= ${LOCALBASE}/bin/xlhtml:${PORTSDIR}/textproc/xlhtml
. endif
.endif
.if !defined(WITHOUT_WEBCPP)
RUN_DEPENDS+= webcpp:${PORTSDIR}/textproc/webcpp
.endif
.if exists(${LOCALBASE}/bin/source-highlight)
WITH_SRCHIGH= yes
.endif
.if defined(WITH_SRCHIGH)
RUN_DEPENDS+= source-highlight:${PORTSDIR}/textproc/source-highlight
.endif
.if exists(${LOCALBASE}/bin/enscript)
WITH_ENSCRIPT= yes
.endif
.if defined(WITH_ENSCRIPT)
. if defined(A4)
RUN_DEPENDS+= enscript:${PORTSDIR}/print/enscript-a4
. elif defined(DJ)
RUN_DEPENDS+= enscript:${PORTSDIR}/print/enscript-letterdj
. else
RUN_DEPENDS+= enscript:${PORTSDIR}/print/enscript-letter
. endif
.endif
.if exists(${LOCALBASE}/bin/rpm)
WITH_RPM= yes
.endif
.if defined(WITH_RPM)
RUN_DEPENDS+= rpm:${PORTSDIR}/archivers/rpm4
.endif
.if exists(${LOCALBASE}/bin/dpkg)
WITH_DEB= yes
.endif
.if defined(WITH_DEB)
RUN_DEPENDS+= dpkg:${PORTSDIR}/archivers/dpkg
.endif
.if !defined(WITHOUT_SW)
RUN_DEPENDS+= ${PEARDIR}/Services/Weather.php:${PORTSDIR}/misc/pear-Services_Weather
.endif
.if !defined(WITHOUT_GEOIP)
RUN_DEPENDS+= ${LOCALBASE}/share/GeoIP/GeoIP.dat:${PORTSDIR}/net/GeoIP
.endif
REINPLACE_ARGS= -i.beforeHorde
DOCS= COPYING README docs/CHANGES docs/CODING_STANDARDS \
docs/CONTRIBUTING docs/CREDITS docs/HACKING docs/INSTALL \
docs/PERFORMANCE docs/RELEASE docs/RELEASE_NOTES docs/SECURITY \
docs/TODO docs/TRANSLATIONS docs/UPGRADING
CONFFILE= conf.php mime_drivers.php motd.php nls.php prefs.php registry.php
SUB_DIRS= admin config js lib locale po scripts services templates themes util
LHORDEDIR?= www/horde
LHORDESBIN?= sbin
PLIST_SUB= HORDEDIR=${LHORDEDIR} HORDESBIN=${LHORDESBIN}
HORDEDIR= ${PREFIX}/${LHORDEDIR}
HORDESBIN= ${PREFIX}/${LHORDESBIN}
CONFDIR= ${HORDEDIR}/config
APACHE_CONF= ${APACHE_CNFDIR}/httpd.conf
PEARDIR?= ${LOCALBASE}/share/pear
.if defined(WITH_APACHE2)
APACHE_CNFDIR= ${LOCALBASE}/etc/apache2
.else
APACHE_CNFDIR= ${LOCALBASE}/etc/apache
.endif
HORDE_INC= ${PREFIX}/etc/horde
LOG_FILE?= /var/log/horde.log
.if defined(WITH_PHP5)
USE_PHP+= dom
.else
USE_PHP+= domxml
. if !defined(WITHOUT_MCAL)
USE_PHP+= mcal
. endif
.endif
.include <bsd.port.pre.mk> # Required to test PHP_VER
pre-configure:
@${RM} ${WRKSRC}/po/translation.php.orig \
${WRKSRC}/config/conf.xml.orig \
${WRKSRC}/scripts/sql/README.orig \
${WRKSRC}/config/mime_drivers.php.dist.orig
@${SED} -e "s:/home/httpd/html/horde:${HORDEDIR}:" \
-e "s:php_value auto_prepend_file:# php_value auto_prepend_file:" \
-e "s:/home/httpd/phplib:${PEARDIR}:" \
${FILESDIR}/httpd.conf.horde > ${WRKDIR}/httpd.conf.horde
.if ${PHP_VER} == 5
@${REINPLACE_CMD} -e "s:mod_php4.c:mod_php5.c:" ${WRKDIR}/httpd.conf.horde
.endif
@${REINPLACE_CMD} -e "s:%%LOCALBASE%%:${LOCALBASE}:" ${WRKSRC}/config/mime_drivers.php.dist
.if !defined(WITHOUT_X11)
. if !defined(WITHOUT_WV)
@${REINPLACE_CMD} -e "s://UNCOMMENTIFWV::" ${WRKSRC}/config/mime_drivers.php.dist
. endif
. if !defined(WITHOUT_XL)
@${REINPLACE_CMD} -e "s://UNCOMMENTIFXL::" ${WRKSRC}/config/mime_drivers.php.dist
. endif
.endif
.if !defined(WITHOUT_WEBCPP)
@${REINPLACE_CMD} -e "s://UNCOMMENTIFWCPP::" ${WRKSRC}/config/mime_drivers.php.dist
.endif
.if defined(WITH_SRCHIGH)
@${REINPLACE_CMD} -e "s://UNCOMMENTIFSRCHIGH::" ${WRKSRC}/config/mime_drivers.php.dist
.endif
.if defined(WITH_ENSCRIPT)
@${REINPLACE_CMD} -e "s://UNCOMMENTIFES::" ${WRKSRC}/config/mime_drivers.php.dist
.endif
.if defined(WITH_RPM)
@${REINPLACE_CMD} -e "s://UNCOMMENTIFRPM::" ${WRKSRC}/config/mime_drivers.php.dist
.endif
.if defined(WITH_DEB)
@${REINPLACE_CMD} -e "s://UNCOMMENTIFDEB::" ${WRKSRC}/config/mime_drivers.php.dist
.endif
.if !defined(WITHOUT_GEOIP)
@${REINPLACE_CMD} -e "s:GeoIP lookup will not be performed.\"/>:GeoIP lookup will not be performed.\">${LOCALBASE}/share/GeoIP/GeoIP.dat</configstring>:" \
${WRKSRC}/config/conf.xml
.endif
@${REINPLACE_CMD} -e "s:/tmp/horde.log:${LOG_FILE}:" ${WRKSRC}/config/conf.xml
@${REINPLACE_CMD} -e "s:/etc/mpasswd:${LOCALBASE}/etc/mpasswd:g" \
${WRKSRC}/lib/Horde/Auth/mcal.php
@${REINPLACE_CMD} -e "s:/usr/local/apache/htdocs:${PREFIX}/www:g" \
${WRKSRC}/docs/INSTALL
@${RM} ${WRKSRC}/lib/Horde/Auth/mcal.php.beforeHorde \
${WRKSRC}/config/conf.xml.beforeHorde \
${WRKSRC}/config/mime_drivers.php.dist.beforeHorde \
${WRKSRC}/docs/INSTALL.beforeHorde
pre-install:
.if !defined(WITHOUT_SUPPORTED_DB)
@if ! php -m | ${GREP} -q -e "mysql" ; then \
if ! php -m | ${GREP} -q -e "pgsql" ; then \
if ! php -m | ${GREP} -q -e "sybase" ; then \
${ECHO_MSG} "" ; \
${ECHO_MSG} "Please configure PHP with a database support." ; \
${ECHO_MSG} "MySQL, PostgreSQL and Sybase (CTLIB or DBLIB)" ; \
${ECHO_MSG} "can be used with PHP AND Horde." ; \
${ECHO_MSG} "" ; \
${ECHO_MSG} "(If everything will run on this machine, do not" ; \
${ECHO_MSG} " forget to install the database server-side!)" ; \
${ECHO_MSG} "" ; \
${FALSE} ; \
fi ; \
fi ; \
fi
.endif
do-install:
@${MKDIR} ${HORDEDIR}
.for REP in ${SUB_DIRS}
@${CP} -Rp ${WRKSRC}/${REP} ${HORDEDIR}
.endfor
@${CP} -p ${WRKSRC}/*.php ${HORDEDIR}
.for FILE in ${CONFFILE}
@if [ ! -f ${CONFDIR}/${FILE} ]; then \
${CP} ${CONFDIR}/${FILE}.dist ${CONFDIR}/${FILE} ; \
fi
.endfor
@${CP} ${WRKSRC}/scripts/set_perms.sh ${HORDESBIN}/horde_set_perms.sh
@${CHMOD} u+x ${HORDESBIN}/horde_set_perms.sh
@${MKDIR} ${HORDE_INC}
@${INSTALL_DATA} ${WRKDIR}/httpd.conf.horde ${HORDE_INC}
@(if [ -f ${APACHE_CONF} ] ; then \
${ECHO_MSG} "===> Updating ${APACHE_CONF}..." ; \
${ECHO_CMD} "# Horde's include directory" >> ${APACHE_CONF} ; \
${ECHO_CMD} "Include ${HORDE_INC}" >> ${APACHE_CONF} ; \
fi)
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${HORDEDIR}
@${CHMOD} -R o-rwx ${CONFDIR}
@${TOUCH} ${LOG_FILE}
@${CHOWN} ${WWWOWN}:${WWWGRP} ${LOG_FILE}
.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:%%HORDEDIR%%:${HORDEDIR}:g;s:%%APACHE_CONF%%:${APACHE_CONF}:g" \
-e "s:%%HORDESBIN%%:${HORDESBIN}:;s:%%DOCSDIR%%:${DOCSDIR}:" \
${FILESDIR}/pkg-message.in > ${PKGMESSAGE}
@${ECHO_MSG}
@${CAT} ${PKGMESSAGE}
@${ECHO_MSG}
.include <bsd.port.post.mk>

2
www/horde-base/distinfo Normal file
View file

@ -0,0 +1,2 @@
MD5 (horde-3.0.tar.gz) = afe2a76062169cf5cd2cc5a3001fcc6a
SIZE (horde-3.0.tar.gz) = 3113591

View file

@ -0,0 +1,57 @@
# This is included in Apache's httpd.conf for Horde
<Directory /home/httpd/html/horde>
Options Indexes FollowSymLinks
AllowOverride None
order allow,deny
allow from all
<IfModule mod_php4.c>
php_value include_path '/home/httpd/phplib:.'
php_flag register_globals On
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_value memory_limit 16M
</IfModule>
</Directory>
<IfModule mod_alias.c>
Alias /horde/ "/home/httpd/html/horde/"
</IfModule>
#
# For security, don't serve pages from the Horde configuration and library
# directories.
#
#<Directory "/home/httpd/html/horde/admin">
# Order deny,allow
# Deny from all
#</Directory>
<Directory "/home/httpd/html/horde/config">
Order deny,allow
Deny from all
</Directory>
<Directory "/home/httpd/html/horde/lib">
Order deny,allow
Deny from all
</Directory>
<Directory "/home/httpd/html/horde/locale">
Order deny,allow
Deny from all
</Directory>
<Directory "/home/httpd/html/horde/po">
Order deny,allow
Deny from all
</Directory>
<Directory "/home/httpd/html/horde/scripts">
Order deny,allow
Deny from all
</Directory>
<Directory "/home/httpd/html/horde/templates">
Order deny,allow
Deny from all
</Directory>
<Directory "/home/httpd/html/horde/util">
Order deny,allow
Deny from all
</Directory>
# End of Horde configuration ================

View file

@ -0,0 +1,20 @@
--- config/conf.xml.orig Fri Nov 5 10:54:09 2004
+++ config/conf.xml Sat Nov 27 23:20:31 2004
@@ -276,7 +276,7 @@
<case name="login" desc="Login (su) authentication">
<configsection name="params">
- <configstring name="location" desc="Location of the su binary">/bin/su</configstring>
+ <configstring name="location" desc="Location of the su binary">/usr/bin/su</configstring>
</configsection>
</case>
@@ -932,7 +932,7 @@
<configsection name="params">
<configstring name="sendmail_path" required="false" desc="The location
of the sendmail binary on the filesystem
- [/usr/sbin/sendmail]">/usr/lib/sendmail</configstring>
+ [/usr/sbin/sendmail]">/usr/sbin/sendmail</configstring>
<configstring name="sendmail_args" required="false" desc="Any extra
parameters to pass to the sendmail or sendmail wrapper
binary">-oi</configstring>

View file

@ -0,0 +1,250 @@
--- config/mime_drivers.php.dist.orig Fri Nov 19 03:40:31 2004
+++ config/mime_drivers.php.dist Thu Nov 25 21:58:43 2004
@@ -37,10 +37,20 @@
* zip Zip files
*/
$mime_drivers_map['horde']['registered'] = array(
- 'css', 'deb', 'enriched', 'enscript', 'html', 'images', 'msword', 'msexcel',
- 'mspowerpoint', 'ooo', 'pdf', 'php', 'plain', 'rar', 'report',
- 'richtext', 'rpm', 'security', 'simple', 'srchighlite', 'tgz', 'tnef',
- 'vcard', 'webcpp', 'zip');
+ 'css'
+//UNCOMMENTIFDEB , 'deb'
+ , 'enriched'
+//UNCOMMENTIFES , 'enscript'
+ , 'html', 'images'
+//UNCOMMENTIFWV , 'msword'
+//UNCOMMENTIFXL , 'msexcel', 'mspowerpoint'
+ , 'ooo', 'pdf', 'php', 'plain', 'rar', 'report', 'richtext'
+//UNCOMMENTIFRPM , 'rpm'
+ , 'security', 'simple'
+//UNCOMMENTIFSRCHIGH , 'srchighlite'
+ , 'tgz', 'tnef', 'vcard'
+//UNCOMMENTIFWCPP , 'webcpp'
+ , 'zip');
/**
@@ -161,66 +171,66 @@
* Web C Plus Plus driver settings
* http://webcpp.sourceforge.net/
*/
-$mime_drivers['horde']['webcpp']['location'] = 'C:\Program Files\Jeffrey Bakker\webcpp\webcpp.exe';
-$mime_drivers['horde']['webcpp']['inline'] = true;
-$mime_drivers['horde']['webcpp']['handles'] = array(
- 'text/xml', 'text/sgml', 'application/xml',
- 'application/x-sh', 'application/x-javascript', 'application/x-tcl',
- 'x-extension/asm', 'application/x-asp', 'x-extension/bas',
- 'x-extension/cs', 'text/x-csrc', 'x-extension/rc',
- 'text/x-c++src', 'text/x-c++src', 'text/x-c++src',
- 'text/x-chdr', 'x-extension/bat', 'text/x-fortran',
- 'x-extension/f77', 'x-extension/f90', 'x-extension/for',
- 'x-extension/ftn', 'text/x-java', 'application/x-javascript',
- 'text/sgml', 'text/xml', 'text/x-pascal',
- 'application/x-cgi', 'application/x-perl', 'application/x-python',
- 'text/x-sql', 'text/x-tcl',
- 'application/x-shellscript', 'x-extension/vhd', 'x-extension/vhdl');
-$mime_drivers['horde']['webcpp']['icons'] = array(
- 'default' => 'text.png',
- 'text/xml' => 'xml.png',
- 'text/x-csrc' => 'source-c.png',
- 'text/x-chdr' => 'source-h.png',
- 'text/x-java' => 'source-java.png',
- 'application/x-javascript' => 'script-js.png');
+//UNCOMMENTIFWCPP$mime_drivers['horde']['webcpp']['location'] = '%%LOCALBASE%%/bin/webcpp';
+//UNCOMMENTIFWCPP$mime_drivers['horde']['webcpp']['inline'] = true;
+//UNCOMMENTIFWCPP$mime_drivers['horde']['webcpp']['handles'] = array(
+//UNCOMMENTIFWCPP 'text/xml', 'text/sgml', 'application/xml',
+//UNCOMMENTIFWCPP 'application/x-sh', 'application/x-javascript', 'application/x-tcl',
+//UNCOMMENTIFWCPP 'x-extension/asm', 'application/x-asp', 'x-extension/bas',
+//UNCOMMENTIFWCPP 'x-extension/cs', 'text/x-csrc', 'x-extension/rc',
+//UNCOMMENTIFWCPP 'text/x-c++src', 'text/x-c++src', 'text/x-c++src',
+//UNCOMMENTIFWCPP 'text/x-chdr', 'x-extension/bat', 'text/x-fortran',
+//UNCOMMENTIFWCPP 'x-extension/f77', 'x-extension/f90', 'x-extension/for',
+//UNCOMMENTIFWCPP 'x-extension/ftn', 'text/x-java', 'application/x-javascript',
+//UNCOMMENTIFWCPP 'text/sgml', 'text/xml', 'text/x-pascal',
+//UNCOMMENTIFWCPP 'application/x-cgi', 'application/x-perl', 'application/x-python',
+//UNCOMMENTIFWCPP 'text/x-sql', 'text/x-tcl',
+//UNCOMMENTIFWCPP 'application/x-shellscript', 'x-extension/vhd', 'x-extension/vhdl');
+//UNCOMMENTIFWCPP$mime_drivers['horde']['webcpp']['icons'] = array(
+//UNCOMMENTIFWCPP 'default' => 'text.png',
+//UNCOMMENTIFWCPP 'text/xml' => 'xml.png',
+//UNCOMMENTIFWCPP 'text/x-csrc' => 'source-c.png',
+//UNCOMMENTIFWCPP 'text/x-chdr' => 'source-h.png',
+//UNCOMMENTIFWCPP 'text/x-java' => 'source-java.png',
+//UNCOMMENTIFWCPP 'application/x-javascript' => 'script-js.png');
/**
* Source-Highlight driver settings
* http://www.gnu.org/software/src-highlite/
*/
-$mime_drivers['horde']['srchighlite']['location'] = 'C:\Program Files\src-highlite\bin\source-highlight.exe';
-$mime_drivers['horde']['srchighlite']['inline'] = true;
-$mime_drivers['horde']['srchighlite']['handles'] = array(
- 'text/x-csrc', 'text/x-c++src', 'text/x-java',
- 'application/x-perl', 'application/x-python', 'text/x-c++src',
- 'text/cpp');
-$mime_drivers['horde']['srchighlite']['icons'] = array(
- 'default' => 'text.png',
- 'text/x-csrc' => 'source-c.png',
- 'text/x-c++src' => 'source-c.png',
- 'text/cpp' => 'source-c.png',
- 'text/x-java' => 'source-java.png');
+//UNCOMMENTIFSRCHIGH$mime_drivers['horde']['srchighlite']['location'] = '%%LOCALBASE%%/bin/source-highlight';
+//UNCOMMENTIFSRCHIGH$mime_drivers['horde']['srchighlite']['inline'] = true;
+//UNCOMMENTIFSRCHIGH$mime_drivers['horde']['srchighlite']['handles'] = array(
+//UNCOMMENTIFSRCHIGH 'text/x-csrc', 'text/x-c++src', 'text/x-java',
+//UNCOMMENTIFSRCHIGH 'application/x-perl', 'application/x-python', 'text/x-c++src',
+//UNCOMMENTIFSRCHIGH 'text/cpp');
+//UNCOMMENTIFSRCHIGH$mime_drivers['horde']['srchighlite']['icons'] = array(
+//UNCOMMENTIFSRCHIGH 'default' => 'text.png',
+//UNCOMMENTIFSRCHIGH 'text/x-csrc' => 'source-c.png',
+//UNCOMMENTIFSRCHIGH 'text/x-c++src' => 'source-c.png',
+//UNCOMMENTIFSRCHIGH 'text/cpp' => 'source-c.png',
+//UNCOMMENTIFSRCHIGH 'text/x-java' => 'source-java.png');
/**
* GNU Enscript driver settings
*/
-$mime_drivers['horde']['enscript']['location'] = '/usr/bin/enscript';
-$mime_drivers['horde']['enscript']['inline'] = true;
-$mime_drivers['horde']['enscript']['handles'] = array(
- 'application/x-shellscript', 'application/x-javascript',
- 'application/x-perl', 'application/xml', 'text/xml',
- 'text/diff', 'text/x-diff', 'text/x-patch', 'text/x-csrc',
- 'x-extension/cs', 'text/x-java', 'text/x-chdr', 'text/x-c++src',
- 'text/x-c++hdr', 'x-extension/vhd', 'x-extension/vhdl', 'text/x-sql',
- 'x-extension/vb', 'x-extension/vba', 'text/x-emacs-lisp');
-$mime_drivers['horde']['enscript']['icons'] = array(
- 'default' => 'text.png',
- 'text/xml' => 'xml.png',
- 'application/xml' => 'xml.png',
- 'text/x-csrc' => 'source-c.png',
- 'text/x-chdr' => 'source-h.png',
- 'text/x-java' => 'source-java.png',
- 'application/x-javascript' => 'script-js.png');
+//UNCOMMENTIFES$mime_drivers['horde']['enscript']['location'] = '%%LOCALBASE%%//bin/enscript';
+//UNCOMMENTIFES$mime_drivers['horde']['enscript']['inline'] = true;
+//UNCOMMENTIFES$mime_drivers['horde']['enscript']['handles'] = array(
+//UNCOMMENTIFES 'application/x-shellscript', 'application/x-javascript',
+//UNCOMMENTIFES 'application/x-perl', 'application/xml', 'text/xml',
+//UNCOMMENTIFES 'text/diff', 'text/x-diff', 'text/x-patch', 'text/x-csrc',
+//UNCOMMENTIFES 'x-extension/cs', 'text/x-java', 'text/x-chdr', 'text/x-c++src',
+//UNCOMMENTIFES 'text/x-c++hdr', 'x-extension/vhd', 'x-extension/vhdl', 'text/x-sql',
+//UNCOMMENTIFES 'x-extension/vb', 'x-extension/vba', 'text/x-emacs-lisp');
+//UNCOMMENTIFES$mime_drivers['horde']['enscript']['icons'] = array(
+//UNCOMMENTIFES 'default' => 'text.png',
+//UNCOMMENTIFES 'text/xml' => 'xml.png',
+//UNCOMMENTIFES 'application/xml' => 'xml.png',
+//UNCOMMENTIFES 'text/x-csrc' => 'source-c.png',
+//UNCOMMENTIFES 'text/x-chdr' => 'source-h.png',
+//UNCOMMENTIFES 'text/x-java' => 'source-java.png',
+//UNCOMMENTIFES 'application/x-javascript' => 'script-js.png');
/**
@@ -272,14 +282,14 @@
* The 'location' entry should point to the 'wvHtml' program, NOT the
* 'wvWare' program.
*/
-$mime_drivers['horde']['msword']['location'] = '/usr/bin/wvHtml';
-$mime_drivers['horde']['msword']['inline'] = false;
-$mime_drivers['horde']['msword']['handles'] = array(
- 'application/msword',
- 'application/rtf',
- 'text/rtf');
-$mime_drivers['horde']['msword']['icons'] = array(
- 'default' => 'msword.png');
+//UNCOMMENTIFWV$mime_drivers['horde']['msword']['location'] = '%%LOCALBASE%%/bin/wvHtml';
+//UNCOMMENTIFWV$mime_drivers['horde']['msword']['inline'] = false;
+//UNCOMMENTIFWV$mime_drivers['horde']['msword']['handles'] = array(
+//UNCOMMENTIFWV 'application/msword',
+//UNCOMMENTIFWV 'application/rtf',
+//UNCOMMENTIFWV 'text/rtf');
+//UNCOMMENTIFWV$mime_drivers['horde']['msword']['icons'] = array(
+//UNCOMMENTIFWV 'default' => 'msword.png');
/**
@@ -287,14 +297,14 @@
* This driver requires xlhtml to be installed.
* xlhtml homepage: http://chicago.sourceforge.net/xlhtml/
*/
-$mime_drivers['horde']['msexcel']['location'] = '/usr/local/bin/xlhtml';
-$mime_drivers['horde']['msexcel']['inline'] = false;
-$mime_drivers['horde']['msexcel']['handles'] = array(
- 'application/vnd.ms-excel',
- 'application/msexcel',
- 'application/x-msexcel');
-$mime_drivers['horde']['msexcel']['icons'] = array(
- 'default' => 'msexcel.png');
+//UNCOMMENTIFXL$mime_drivers['horde']['msexcel']['location'] = '%%LOCALBASE%%/bin/xlhtml';
+//UNCOMMENTIFXL$mime_drivers['horde']['msexcel']['inline'] = false;
+//UNCOMMENTIFXL$mime_drivers['horde']['msexcel']['handles'] = array(
+//UNCOMMENTIFXL 'application/vnd.ms-excel',
+//UNCOMMENTIFXL 'application/msexcel',
+//UNCOMMENTIFXL 'application/x-msexcel');
+//UNCOMMENTIFXL$mime_drivers['horde']['msexcel']['icons'] = array(
+//UNCOMMENTIFXL 'default' => 'msexcel.png');
/**
@@ -302,13 +312,13 @@
* This driver requires ppthtml, included with xlhtml, to be installed.
* xlhtml homepage: http://chicago.sourceforge.net/xlhtml/
*/
-$mime_drivers['horde']['mspowerpoint']['location'] = '/usr/local/bin/ppthtml';
-$mime_drivers['horde']['mspowerpoint']['inline'] = false;
-$mime_drivers['horde']['mspowerpoint']['handles'] = array(
- 'application/vnd.ms-powerpoint',
- 'application/mspowerpoint');
-$mime_drivers['horde']['mspowerpoint']['icons'] = array(
- 'default' => 'mspowerpoint.png');
+//UNCOMMENTIFXL$mime_drivers['horde']['mspowerpoint']['location'] = '%%LOCALBASE%%/bin/ppthtml';
+//UNCOMMENTIFXL$mime_drivers['horde']['mspowerpoint']['inline'] = false;
+//UNCOMMENTIFXL$mime_drivers['horde']['mspowerpoint']['handles'] = array(
+//UNCOMMENTIFXL 'application/vnd.ms-powerpoint',
+//UNCOMMENTIFXL 'application/mspowerpoint');
+//UNCOMMENTIFXL$mime_drivers['horde']['mspowerpoint']['icons'] = array(
+//UNCOMMENTIFXL 'default' => 'mspowerpoint.png');
/**
@@ -324,24 +334,24 @@
/**
* RPM driver settings
*/
-$mime_drivers['horde']['rpm']['location'] = '/usr/bin/rpm';
-$mime_drivers['horde']['rpm']['inline'] = false;
-$mime_drivers['horde']['rpm']['handles'] = array(
- 'application/x-rpm');
-$mime_drivers['horde']['rpm']['icons'] = array(
- 'default' => 'rpm.png');
+//UNCOMMENTIFRPM$mime_drivers['horde']['rpm']['location'] = '%%LOCALBASE%%/bin/rpm';
+//UNCOMMENTIFRPM$mime_drivers['horde']['rpm']['inline'] = false;
+//UNCOMMENTIFRPM$mime_drivers['horde']['rpm']['handles'] = array(
+//UNCOMMENTIFRPM 'application/x-rpm');
+//UNCOMMENTIFRPM$mime_drivers['horde']['rpm']['icons'] = array(
+//UNCOMMENTIFRPM 'default' => 'rpm.png');
/**
* Debian package driver settings
*/
-$mime_drivers['horde']['deb']['location'] = '/usr/bin/dpkg';
-$mime_drivers['horde']['deb']['inline'] = false;
-$mime_drivers['horde']['deb']['handles'] = array(
- 'application/x-deb',
- 'application/x-debian-package');
-$mime_drivers['horde']['deb']['icons'] = array(
- 'default' => 'deb.png');
+//UNCOMMENTIFDEB$mime_drivers['horde']['deb']['location'] = '%%LOCALBASE%%/bin/dpkg';
+//UNCOMMENTIFDEB$mime_drivers['horde']['deb']['inline'] = false;
+//UNCOMMENTIFDEB$mime_drivers['horde']['deb']['handles'] = array(
+//UNCOMMENTIFDEB 'application/x-deb',
+//UNCOMMENTIFDEB 'application/x-debian-package');
+//UNCOMMENTIFDEB$mime_drivers['horde']['deb']['icons'] = array(
+//UNCOMMENTIFDEB 'default' => 'deb.png');
/**

View file

@ -0,0 +1,8 @@
--- po/translation.php.orig Tue Jan 21 16:05:36 2003
+++ po/translation.php Wed Jan 29 23:00:27 2003
@@ -1,4 +1,4 @@
-#!/usr/bin/php -q
+#!/usr/local/bin/php -q
<?php
/**
* Translation helper application for the Horde framework.

View file

@ -0,0 +1,11 @@
--- scripts/sql/README.orig Sat Sep 25 21:55:35 2004
+++ scripts/sql/README Mon Nov 22 13:19:52 2004
@@ -77,7 +77,7 @@
PostgreSQL
~~~~~~~~~~
-# su - postgres (or whatever your database runs as... usually postgres)
+# su - pgsql (or whatever your database runs as... usually pgsql)
$ psql -d template1 -f create.pgsql.sql
This script will create a "horde" database and a "horde" user. You

View file

@ -0,0 +1,36 @@
************************************************************************
Horde has been installed in %%HORDEDIR%% with your blank
configuration files.
If you want Horde to access a database, you have to run the
appropriate scripts located in %%HORDEDIR%%/scripts/sql.
It is recommended that you change the password of the 'hordemgr'
user used to connect to the horde database.
Horde is setup by default to access MySQL.
WARNING! if you are upgrading from Horde v. 2.2.x, you have to alter your
******** database schemas. Please read the doc UPGRADING.
You can now access Horde without a password at <http://localhost/horde/>,
and you will be logged in as an administrator. You should first configure
a real authentication backend. Click on "Setup" in the "Administration"
menu and configure Horde. Start in the "Authentication" tab.
See the doc in %%DOCSDIR%% for details.
(tip: if you plan to install IMP, just keep "Automatic authentication as
a certain user", add your login to be treated as administrator, and once
IMP will be installed, switch to "Let a Horde application handle auth").
Select a log driver; if you keep 'file', do not forget to add a line
in /etc/newsyslog.conf.
Then select and configure a preferences driver.
Your %%APACHE_CONF%% has been updated,
you have to restart Apache.
When everything is OK, you should be able to access Horde from
<http://localhost/horde/>.
(If <http://localhost/horde/> does not run, but
<http://localhost/horde/index.php> is OK, then you have
to define index.php as a DirectoryIndex in %%APACHE_CONF%%.)
There is a testing script at <http://localhost/horde/test.php>.
************************************************************************

View file

@ -0,0 +1,43 @@
#!/bin/sh
#
# $FreeBSD$
#
# Try to restore httpd.conf when deinstalling Horde
if [ x$2 != xDEINSTALL ]; then
exit
fi
if [ -d ${PKG_PREFIX}/etc/apache ] ; then
APACHEDIR=${PKG_PREFIX}/etc/apache
elif [ -d ${PKG_PREFIX}/etc/apache2 ] ; then
APACHEDIR=${PKG_PREFIX}/etc/apache2
fi
if [ -f ${APACHEDIR}/httpd.conf.beforeHorde ] ; then
echo "Restoring httpd.conf..."
cp ${APACHEDIR}/httpd.conf ${APACHEDIR}/httpd.conf.deinstHorde
sed -i.tmp -e "s:Include ${PKG_PREFIX}/etc/horde:# Include ${PKG_PREFIX}/etc/horde:g" \
${APACHEDIR}/httpd.conf
rm ${APACHEDIR}/httpd.conf.tmp
fi
# Backup Horde config files, if needed.
if [ -z "${PACKAGE_BUILDING}" ]; then
for cf in `ls ${PKG_PREFIX}/www/horde/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

6
www/horde-base/pkg-descr Normal file
View file

@ -0,0 +1,6 @@
Horde is a framework used by several applications written in PHP.
Horde is used by these ports: mail/imp, mail/turba, devel/chora,
deskutils/kronolith, deskutils/nag, mail/ingo and deskutils/mnemo.
WWW: http://www.horde.org/

1584
www/horde-base/pkg-plist Normal file

File diff suppressed because it is too large Load diff

343
www/horde/Makefile Normal file
View file

@ -0,0 +1,343 @@
# Ports collection makefile for: horde2
# Date created: Sun Oct 07, 2001
# Whom: Thierry Thomas (<thierry@thomas.as>)
#
# $FreeBSD$
#
PORTNAME= horde
PORTVERSION= 3.0
CATEGORIES= www
MASTER_SITES= ftp://ftp.horde.org/pub/horde/ \
ftp://ftp.planetmirror.com/pub/horde/horde/ \
ftp://ftp.au.horde.org/pub/horde/horde/ \
ftp://ftp.be.horde.org/horde/ \
ftp://ftp.es.horde.org/pub/horde/ \
ftp://ftp.it.horde.org/pub/mirror/horde.org/horde/ \
ftp://ftp.nl.horde.org/mirror/horde-ftp/pub/horde/ \
ftp://ftp.uk.horde.org/mirrors/ftp.horde.org/pub/horde/ \
http://ftp.horde.org/pub/horde/
.if defined(WITH_PHP5)
PKGNAMESUFFIX= -php5
.endif
MAINTAINER= thierry@FreeBSD.org
COMMENT= A common code-base used by Horde applications, written in PHP
#----------------------------------------------------------------------------
# You may define these options:
#
# - WITH_APACHE2: if you run Apache2.
#
# - WITH_PHP5: if you run PHP5 (you could use www/horde-php5).
#
# - WITHOUT_SUPPORTED_DB: if you run a database not in the ports tree.
#
# - WITHOUT_MYSQL: this port is built with MySQL by default
# but you might choose any other database
# supported by PHP (e.g. WITH_POSTGRESQL).
#
# - WITHOUT_IMAP: this port uses IMAP as a default authentication
# backend; use this knob if for
# example you only need Chora.
#
# - WITHOUT_LDAP: if you do not need OpenLDAP.
#
# - WITHOUT_FTP: if you do not need the VFS FTP driver.
#
# - WITHOUT_MCAL: if you don't plan to install Kronolith.
#
# - WITH_IMSP: use IMSP as a preferences backend.
#
# - WITHOUT_FILEINFO: use native code to perform MIME magic lookups.
#
# - WITHOUT_GD: don't perform manipulations on image data with gd.
#
# - WITHOUT_ZLIB: don't compress pages and don't handle zip or gz data.
#
# - WITH_MAGICK: use ImageMagick to perform these image manipulations.
#
# - WITHOUT_ICONV: remove support for UTF-8 character sets.
# - WITHOUT_MBSTRING:
#
# - WITHOUT_WV if your users never receive MS-Word docs;
#
# - WITHOUT_XL if your users never receive MS-Excel sheets
# (or .ppt presentations);
#
# - WITHOUT_GEOIP don't activate MaxMind GeoIP Hostname to Country lookup.
#
# - WITHOUT_SW don't use the weather.com block on the portal page.
#
# - WITHOUT_WEBCPP: don't highlight sources with webcpp.
#
# - WITH_SRCHIGH: highlight sources with source-highlight.
#
# - WITH_ENSCRIPT: highlight sources with enscript.
#
# - WITH_RPM: handle RPM packages.
#
# - WITH_DEB: handle Debian packages.
#
#----------------------------------------------------------------------------
RUN_DEPENDS+= ${PEARDIR}/Date.php:${PORTSDIR}/devel/pear-Date \
${PEARDIR}/Log.php:${PORTSDIR}/sysutils/pear-Log \
${PEARDIR}/Mail/mime.php:${PORTSDIR}/mail/pear-Mail_Mime \
${PEARDIR}/DB.php:${PORTSDIR}/databases/pear-DB \
${PEARDIR}/File.php:${PORTSDIR}/sysutils/pear-File \
${PEARDIR}/Net/SMTP.php:${PORTSDIR}/net/pear-Net_SMTP
CONFLICTS= horde-2.*
NO_BUILD= yes
USE_PHP= ctype gettext session
WANT_PHP_MOD= yes
USE_REINPLACE= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
.if !defined(WITHOUT_FILEINFO)
USE_PHP+= fileinfo
.endif
.if !defined(WITHOUT_FTP)
USE_PHP+= ftp
.endif
.if !defined(WITHOUT_GD)
USE_PHP+= gd
.endif
.if !defined(WITHOUT_ICONV)
USE_PHP+= iconv
.endif
.if !defined(WITHOUT_IMAP)
USE_PHP+= imap
.endif
.if !defined(WITHOUT_LDAP)
USE_PHP+= ldap
.endif
.if !defined(WITHOUT_MBSTRING)
USE_PHP+= mbstring
.endif
.if !defined(NOCRYPT)
USE_PHP+= mcrypt
.endif
.if !defined(WITHOUT_SUPPORTED_DB)
. if !defined(WITHOUT_MYSQL)
USE_PHP+= mysql
. endif
. if defined(WITH_POSTGRESQL)
USE_PHP+= pgsql
. endif
.endif
.if !defined(WITHOUT_ZLIB)
USE_PHP+= zlib
.endif
.if defined(WITH_MAGICK)
RUN_DEPENDS+= convert:${PORTSDIR}/graphics/ImageMagick
.endif
.if defined(WITH_IMSP)
RUN_DEPENDS+= imspd:${PORTSDIR}/databases/cyrus-imspd
.endif
.if !defined(WITHOUT_X11)
. if !defined(WITHOUT_WV)
RUN_DEPENDS+= ${LOCALBASE}/bin/wvHtml:${PORTSDIR}/textproc/wv
. endif
. if !defined(WITHOUT_XL)
RUN_DEPENDS+= ${LOCALBASE}/bin/xlhtml:${PORTSDIR}/textproc/xlhtml
. endif
.endif
.if !defined(WITHOUT_WEBCPP)
RUN_DEPENDS+= webcpp:${PORTSDIR}/textproc/webcpp
.endif
.if exists(${LOCALBASE}/bin/source-highlight)
WITH_SRCHIGH= yes
.endif
.if defined(WITH_SRCHIGH)
RUN_DEPENDS+= source-highlight:${PORTSDIR}/textproc/source-highlight
.endif
.if exists(${LOCALBASE}/bin/enscript)
WITH_ENSCRIPT= yes
.endif
.if defined(WITH_ENSCRIPT)
. if defined(A4)
RUN_DEPENDS+= enscript:${PORTSDIR}/print/enscript-a4
. elif defined(DJ)
RUN_DEPENDS+= enscript:${PORTSDIR}/print/enscript-letterdj
. else
RUN_DEPENDS+= enscript:${PORTSDIR}/print/enscript-letter
. endif
.endif
.if exists(${LOCALBASE}/bin/rpm)
WITH_RPM= yes
.endif
.if defined(WITH_RPM)
RUN_DEPENDS+= rpm:${PORTSDIR}/archivers/rpm4
.endif
.if exists(${LOCALBASE}/bin/dpkg)
WITH_DEB= yes
.endif
.if defined(WITH_DEB)
RUN_DEPENDS+= dpkg:${PORTSDIR}/archivers/dpkg
.endif
.if !defined(WITHOUT_SW)
RUN_DEPENDS+= ${PEARDIR}/Services/Weather.php:${PORTSDIR}/misc/pear-Services_Weather
.endif
.if !defined(WITHOUT_GEOIP)
RUN_DEPENDS+= ${LOCALBASE}/share/GeoIP/GeoIP.dat:${PORTSDIR}/net/GeoIP
.endif
REINPLACE_ARGS= -i.beforeHorde
DOCS= COPYING README docs/CHANGES docs/CODING_STANDARDS \
docs/CONTRIBUTING docs/CREDITS docs/HACKING docs/INSTALL \
docs/PERFORMANCE docs/RELEASE docs/RELEASE_NOTES docs/SECURITY \
docs/TODO docs/TRANSLATIONS docs/UPGRADING
CONFFILE= conf.php mime_drivers.php motd.php nls.php prefs.php registry.php
SUB_DIRS= admin config js lib locale po scripts services templates themes util
LHORDEDIR?= www/horde
LHORDESBIN?= sbin
PLIST_SUB= HORDEDIR=${LHORDEDIR} HORDESBIN=${LHORDESBIN}
HORDEDIR= ${PREFIX}/${LHORDEDIR}
HORDESBIN= ${PREFIX}/${LHORDESBIN}
CONFDIR= ${HORDEDIR}/config
APACHE_CONF= ${APACHE_CNFDIR}/httpd.conf
PEARDIR?= ${LOCALBASE}/share/pear
.if defined(WITH_APACHE2)
APACHE_CNFDIR= ${LOCALBASE}/etc/apache2
.else
APACHE_CNFDIR= ${LOCALBASE}/etc/apache
.endif
HORDE_INC= ${PREFIX}/etc/horde
LOG_FILE?= /var/log/horde.log
.if defined(WITH_PHP5)
USE_PHP+= dom
.else
USE_PHP+= domxml
. if !defined(WITHOUT_MCAL)
USE_PHP+= mcal
. endif
.endif
.include <bsd.port.pre.mk> # Required to test PHP_VER
pre-configure:
@${RM} ${WRKSRC}/po/translation.php.orig \
${WRKSRC}/config/conf.xml.orig \
${WRKSRC}/scripts/sql/README.orig \
${WRKSRC}/config/mime_drivers.php.dist.orig
@${SED} -e "s:/home/httpd/html/horde:${HORDEDIR}:" \
-e "s:php_value auto_prepend_file:# php_value auto_prepend_file:" \
-e "s:/home/httpd/phplib:${PEARDIR}:" \
${FILESDIR}/httpd.conf.horde > ${WRKDIR}/httpd.conf.horde
.if ${PHP_VER} == 5
@${REINPLACE_CMD} -e "s:mod_php4.c:mod_php5.c:" ${WRKDIR}/httpd.conf.horde
.endif
@${REINPLACE_CMD} -e "s:%%LOCALBASE%%:${LOCALBASE}:" ${WRKSRC}/config/mime_drivers.php.dist
.if !defined(WITHOUT_X11)
. if !defined(WITHOUT_WV)
@${REINPLACE_CMD} -e "s://UNCOMMENTIFWV::" ${WRKSRC}/config/mime_drivers.php.dist
. endif
. if !defined(WITHOUT_XL)
@${REINPLACE_CMD} -e "s://UNCOMMENTIFXL::" ${WRKSRC}/config/mime_drivers.php.dist
. endif
.endif
.if !defined(WITHOUT_WEBCPP)
@${REINPLACE_CMD} -e "s://UNCOMMENTIFWCPP::" ${WRKSRC}/config/mime_drivers.php.dist
.endif
.if defined(WITH_SRCHIGH)
@${REINPLACE_CMD} -e "s://UNCOMMENTIFSRCHIGH::" ${WRKSRC}/config/mime_drivers.php.dist
.endif
.if defined(WITH_ENSCRIPT)
@${REINPLACE_CMD} -e "s://UNCOMMENTIFES::" ${WRKSRC}/config/mime_drivers.php.dist
.endif
.if defined(WITH_RPM)
@${REINPLACE_CMD} -e "s://UNCOMMENTIFRPM::" ${WRKSRC}/config/mime_drivers.php.dist
.endif
.if defined(WITH_DEB)
@${REINPLACE_CMD} -e "s://UNCOMMENTIFDEB::" ${WRKSRC}/config/mime_drivers.php.dist
.endif
.if !defined(WITHOUT_GEOIP)
@${REINPLACE_CMD} -e "s:GeoIP lookup will not be performed.\"/>:GeoIP lookup will not be performed.\">${LOCALBASE}/share/GeoIP/GeoIP.dat</configstring>:" \
${WRKSRC}/config/conf.xml
.endif
@${REINPLACE_CMD} -e "s:/tmp/horde.log:${LOG_FILE}:" ${WRKSRC}/config/conf.xml
@${REINPLACE_CMD} -e "s:/etc/mpasswd:${LOCALBASE}/etc/mpasswd:g" \
${WRKSRC}/lib/Horde/Auth/mcal.php
@${REINPLACE_CMD} -e "s:/usr/local/apache/htdocs:${PREFIX}/www:g" \
${WRKSRC}/docs/INSTALL
@${RM} ${WRKSRC}/lib/Horde/Auth/mcal.php.beforeHorde \
${WRKSRC}/config/conf.xml.beforeHorde \
${WRKSRC}/config/mime_drivers.php.dist.beforeHorde \
${WRKSRC}/docs/INSTALL.beforeHorde
pre-install:
.if !defined(WITHOUT_SUPPORTED_DB)
@if ! php -m | ${GREP} -q -e "mysql" ; then \
if ! php -m | ${GREP} -q -e "pgsql" ; then \
if ! php -m | ${GREP} -q -e "sybase" ; then \
${ECHO_MSG} "" ; \
${ECHO_MSG} "Please configure PHP with a database support." ; \
${ECHO_MSG} "MySQL, PostgreSQL and Sybase (CTLIB or DBLIB)" ; \
${ECHO_MSG} "can be used with PHP AND Horde." ; \
${ECHO_MSG} "" ; \
${ECHO_MSG} "(If everything will run on this machine, do not" ; \
${ECHO_MSG} " forget to install the database server-side!)" ; \
${ECHO_MSG} "" ; \
${FALSE} ; \
fi ; \
fi ; \
fi
.endif
do-install:
@${MKDIR} ${HORDEDIR}
.for REP in ${SUB_DIRS}
@${CP} -Rp ${WRKSRC}/${REP} ${HORDEDIR}
.endfor
@${CP} -p ${WRKSRC}/*.php ${HORDEDIR}
.for FILE in ${CONFFILE}
@if [ ! -f ${CONFDIR}/${FILE} ]; then \
${CP} ${CONFDIR}/${FILE}.dist ${CONFDIR}/${FILE} ; \
fi
.endfor
@${CP} ${WRKSRC}/scripts/set_perms.sh ${HORDESBIN}/horde_set_perms.sh
@${CHMOD} u+x ${HORDESBIN}/horde_set_perms.sh
@${MKDIR} ${HORDE_INC}
@${INSTALL_DATA} ${WRKDIR}/httpd.conf.horde ${HORDE_INC}
@(if [ -f ${APACHE_CONF} ] ; then \
${ECHO_MSG} "===> Updating ${APACHE_CONF}..." ; \
${ECHO_CMD} "# Horde's include directory" >> ${APACHE_CONF} ; \
${ECHO_CMD} "Include ${HORDE_INC}" >> ${APACHE_CONF} ; \
fi)
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${HORDEDIR}
@${CHMOD} -R o-rwx ${CONFDIR}
@${TOUCH} ${LOG_FILE}
@${CHOWN} ${WWWOWN}:${WWWGRP} ${LOG_FILE}
.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:%%HORDEDIR%%:${HORDEDIR}:g;s:%%APACHE_CONF%%:${APACHE_CONF}:g" \
-e "s:%%HORDESBIN%%:${HORDESBIN}:;s:%%DOCSDIR%%:${DOCSDIR}:" \
${FILESDIR}/pkg-message.in > ${PKGMESSAGE}
@${ECHO_MSG}
@${CAT} ${PKGMESSAGE}
@${ECHO_MSG}
.include <bsd.port.post.mk>

2
www/horde/distinfo Normal file
View file

@ -0,0 +1,2 @@
MD5 (horde-3.0.tar.gz) = afe2a76062169cf5cd2cc5a3001fcc6a
SIZE (horde-3.0.tar.gz) = 3113591

View file

@ -0,0 +1,57 @@
# This is included in Apache's httpd.conf for Horde
<Directory /home/httpd/html/horde>
Options Indexes FollowSymLinks
AllowOverride None
order allow,deny
allow from all
<IfModule mod_php4.c>
php_value include_path '/home/httpd/phplib:.'
php_flag register_globals On
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_value memory_limit 16M
</IfModule>
</Directory>
<IfModule mod_alias.c>
Alias /horde/ "/home/httpd/html/horde/"
</IfModule>
#
# For security, don't serve pages from the Horde configuration and library
# directories.
#
#<Directory "/home/httpd/html/horde/admin">
# Order deny,allow
# Deny from all
#</Directory>
<Directory "/home/httpd/html/horde/config">
Order deny,allow
Deny from all
</Directory>
<Directory "/home/httpd/html/horde/lib">
Order deny,allow
Deny from all
</Directory>
<Directory "/home/httpd/html/horde/locale">
Order deny,allow
Deny from all
</Directory>
<Directory "/home/httpd/html/horde/po">
Order deny,allow
Deny from all
</Directory>
<Directory "/home/httpd/html/horde/scripts">
Order deny,allow
Deny from all
</Directory>
<Directory "/home/httpd/html/horde/templates">
Order deny,allow
Deny from all
</Directory>
<Directory "/home/httpd/html/horde/util">
Order deny,allow
Deny from all
</Directory>
# End of Horde configuration ================

View file

@ -0,0 +1,20 @@
--- config/conf.xml.orig Fri Nov 5 10:54:09 2004
+++ config/conf.xml Sat Nov 27 23:20:31 2004
@@ -276,7 +276,7 @@
<case name="login" desc="Login (su) authentication">
<configsection name="params">
- <configstring name="location" desc="Location of the su binary">/bin/su</configstring>
+ <configstring name="location" desc="Location of the su binary">/usr/bin/su</configstring>
</configsection>
</case>
@@ -932,7 +932,7 @@
<configsection name="params">
<configstring name="sendmail_path" required="false" desc="The location
of the sendmail binary on the filesystem
- [/usr/sbin/sendmail]">/usr/lib/sendmail</configstring>
+ [/usr/sbin/sendmail]">/usr/sbin/sendmail</configstring>
<configstring name="sendmail_args" required="false" desc="Any extra
parameters to pass to the sendmail or sendmail wrapper
binary">-oi</configstring>

View file

@ -0,0 +1,250 @@
--- config/mime_drivers.php.dist.orig Fri Nov 19 03:40:31 2004
+++ config/mime_drivers.php.dist Thu Nov 25 21:58:43 2004
@@ -37,10 +37,20 @@
* zip Zip files
*/
$mime_drivers_map['horde']['registered'] = array(
- 'css', 'deb', 'enriched', 'enscript', 'html', 'images', 'msword', 'msexcel',
- 'mspowerpoint', 'ooo', 'pdf', 'php', 'plain', 'rar', 'report',
- 'richtext', 'rpm', 'security', 'simple', 'srchighlite', 'tgz', 'tnef',
- 'vcard', 'webcpp', 'zip');
+ 'css'
+//UNCOMMENTIFDEB , 'deb'
+ , 'enriched'
+//UNCOMMENTIFES , 'enscript'
+ , 'html', 'images'
+//UNCOMMENTIFWV , 'msword'
+//UNCOMMENTIFXL , 'msexcel', 'mspowerpoint'
+ , 'ooo', 'pdf', 'php', 'plain', 'rar', 'report', 'richtext'
+//UNCOMMENTIFRPM , 'rpm'
+ , 'security', 'simple'
+//UNCOMMENTIFSRCHIGH , 'srchighlite'
+ , 'tgz', 'tnef', 'vcard'
+//UNCOMMENTIFWCPP , 'webcpp'
+ , 'zip');
/**
@@ -161,66 +171,66 @@
* Web C Plus Plus driver settings
* http://webcpp.sourceforge.net/
*/
-$mime_drivers['horde']['webcpp']['location'] = 'C:\Program Files\Jeffrey Bakker\webcpp\webcpp.exe';
-$mime_drivers['horde']['webcpp']['inline'] = true;
-$mime_drivers['horde']['webcpp']['handles'] = array(
- 'text/xml', 'text/sgml', 'application/xml',
- 'application/x-sh', 'application/x-javascript', 'application/x-tcl',
- 'x-extension/asm', 'application/x-asp', 'x-extension/bas',
- 'x-extension/cs', 'text/x-csrc', 'x-extension/rc',
- 'text/x-c++src', 'text/x-c++src', 'text/x-c++src',
- 'text/x-chdr', 'x-extension/bat', 'text/x-fortran',
- 'x-extension/f77', 'x-extension/f90', 'x-extension/for',
- 'x-extension/ftn', 'text/x-java', 'application/x-javascript',
- 'text/sgml', 'text/xml', 'text/x-pascal',
- 'application/x-cgi', 'application/x-perl', 'application/x-python',
- 'text/x-sql', 'text/x-tcl',
- 'application/x-shellscript', 'x-extension/vhd', 'x-extension/vhdl');
-$mime_drivers['horde']['webcpp']['icons'] = array(
- 'default' => 'text.png',
- 'text/xml' => 'xml.png',
- 'text/x-csrc' => 'source-c.png',
- 'text/x-chdr' => 'source-h.png',
- 'text/x-java' => 'source-java.png',
- 'application/x-javascript' => 'script-js.png');
+//UNCOMMENTIFWCPP$mime_drivers['horde']['webcpp']['location'] = '%%LOCALBASE%%/bin/webcpp';
+//UNCOMMENTIFWCPP$mime_drivers['horde']['webcpp']['inline'] = true;
+//UNCOMMENTIFWCPP$mime_drivers['horde']['webcpp']['handles'] = array(
+//UNCOMMENTIFWCPP 'text/xml', 'text/sgml', 'application/xml',
+//UNCOMMENTIFWCPP 'application/x-sh', 'application/x-javascript', 'application/x-tcl',
+//UNCOMMENTIFWCPP 'x-extension/asm', 'application/x-asp', 'x-extension/bas',
+//UNCOMMENTIFWCPP 'x-extension/cs', 'text/x-csrc', 'x-extension/rc',
+//UNCOMMENTIFWCPP 'text/x-c++src', 'text/x-c++src', 'text/x-c++src',
+//UNCOMMENTIFWCPP 'text/x-chdr', 'x-extension/bat', 'text/x-fortran',
+//UNCOMMENTIFWCPP 'x-extension/f77', 'x-extension/f90', 'x-extension/for',
+//UNCOMMENTIFWCPP 'x-extension/ftn', 'text/x-java', 'application/x-javascript',
+//UNCOMMENTIFWCPP 'text/sgml', 'text/xml', 'text/x-pascal',
+//UNCOMMENTIFWCPP 'application/x-cgi', 'application/x-perl', 'application/x-python',
+//UNCOMMENTIFWCPP 'text/x-sql', 'text/x-tcl',
+//UNCOMMENTIFWCPP 'application/x-shellscript', 'x-extension/vhd', 'x-extension/vhdl');
+//UNCOMMENTIFWCPP$mime_drivers['horde']['webcpp']['icons'] = array(
+//UNCOMMENTIFWCPP 'default' => 'text.png',
+//UNCOMMENTIFWCPP 'text/xml' => 'xml.png',
+//UNCOMMENTIFWCPP 'text/x-csrc' => 'source-c.png',
+//UNCOMMENTIFWCPP 'text/x-chdr' => 'source-h.png',
+//UNCOMMENTIFWCPP 'text/x-java' => 'source-java.png',
+//UNCOMMENTIFWCPP 'application/x-javascript' => 'script-js.png');
/**
* Source-Highlight driver settings
* http://www.gnu.org/software/src-highlite/
*/
-$mime_drivers['horde']['srchighlite']['location'] = 'C:\Program Files\src-highlite\bin\source-highlight.exe';
-$mime_drivers['horde']['srchighlite']['inline'] = true;
-$mime_drivers['horde']['srchighlite']['handles'] = array(
- 'text/x-csrc', 'text/x-c++src', 'text/x-java',
- 'application/x-perl', 'application/x-python', 'text/x-c++src',
- 'text/cpp');
-$mime_drivers['horde']['srchighlite']['icons'] = array(
- 'default' => 'text.png',
- 'text/x-csrc' => 'source-c.png',
- 'text/x-c++src' => 'source-c.png',
- 'text/cpp' => 'source-c.png',
- 'text/x-java' => 'source-java.png');
+//UNCOMMENTIFSRCHIGH$mime_drivers['horde']['srchighlite']['location'] = '%%LOCALBASE%%/bin/source-highlight';
+//UNCOMMENTIFSRCHIGH$mime_drivers['horde']['srchighlite']['inline'] = true;
+//UNCOMMENTIFSRCHIGH$mime_drivers['horde']['srchighlite']['handles'] = array(
+//UNCOMMENTIFSRCHIGH 'text/x-csrc', 'text/x-c++src', 'text/x-java',
+//UNCOMMENTIFSRCHIGH 'application/x-perl', 'application/x-python', 'text/x-c++src',
+//UNCOMMENTIFSRCHIGH 'text/cpp');
+//UNCOMMENTIFSRCHIGH$mime_drivers['horde']['srchighlite']['icons'] = array(
+//UNCOMMENTIFSRCHIGH 'default' => 'text.png',
+//UNCOMMENTIFSRCHIGH 'text/x-csrc' => 'source-c.png',
+//UNCOMMENTIFSRCHIGH 'text/x-c++src' => 'source-c.png',
+//UNCOMMENTIFSRCHIGH 'text/cpp' => 'source-c.png',
+//UNCOMMENTIFSRCHIGH 'text/x-java' => 'source-java.png');
/**
* GNU Enscript driver settings
*/
-$mime_drivers['horde']['enscript']['location'] = '/usr/bin/enscript';
-$mime_drivers['horde']['enscript']['inline'] = true;
-$mime_drivers['horde']['enscript']['handles'] = array(
- 'application/x-shellscript', 'application/x-javascript',
- 'application/x-perl', 'application/xml', 'text/xml',
- 'text/diff', 'text/x-diff', 'text/x-patch', 'text/x-csrc',
- 'x-extension/cs', 'text/x-java', 'text/x-chdr', 'text/x-c++src',
- 'text/x-c++hdr', 'x-extension/vhd', 'x-extension/vhdl', 'text/x-sql',
- 'x-extension/vb', 'x-extension/vba', 'text/x-emacs-lisp');
-$mime_drivers['horde']['enscript']['icons'] = array(
- 'default' => 'text.png',
- 'text/xml' => 'xml.png',
- 'application/xml' => 'xml.png',
- 'text/x-csrc' => 'source-c.png',
- 'text/x-chdr' => 'source-h.png',
- 'text/x-java' => 'source-java.png',
- 'application/x-javascript' => 'script-js.png');
+//UNCOMMENTIFES$mime_drivers['horde']['enscript']['location'] = '%%LOCALBASE%%//bin/enscript';
+//UNCOMMENTIFES$mime_drivers['horde']['enscript']['inline'] = true;
+//UNCOMMENTIFES$mime_drivers['horde']['enscript']['handles'] = array(
+//UNCOMMENTIFES 'application/x-shellscript', 'application/x-javascript',
+//UNCOMMENTIFES 'application/x-perl', 'application/xml', 'text/xml',
+//UNCOMMENTIFES 'text/diff', 'text/x-diff', 'text/x-patch', 'text/x-csrc',
+//UNCOMMENTIFES 'x-extension/cs', 'text/x-java', 'text/x-chdr', 'text/x-c++src',
+//UNCOMMENTIFES 'text/x-c++hdr', 'x-extension/vhd', 'x-extension/vhdl', 'text/x-sql',
+//UNCOMMENTIFES 'x-extension/vb', 'x-extension/vba', 'text/x-emacs-lisp');
+//UNCOMMENTIFES$mime_drivers['horde']['enscript']['icons'] = array(
+//UNCOMMENTIFES 'default' => 'text.png',
+//UNCOMMENTIFES 'text/xml' => 'xml.png',
+//UNCOMMENTIFES 'application/xml' => 'xml.png',
+//UNCOMMENTIFES 'text/x-csrc' => 'source-c.png',
+//UNCOMMENTIFES 'text/x-chdr' => 'source-h.png',
+//UNCOMMENTIFES 'text/x-java' => 'source-java.png',
+//UNCOMMENTIFES 'application/x-javascript' => 'script-js.png');
/**
@@ -272,14 +282,14 @@
* The 'location' entry should point to the 'wvHtml' program, NOT the
* 'wvWare' program.
*/
-$mime_drivers['horde']['msword']['location'] = '/usr/bin/wvHtml';
-$mime_drivers['horde']['msword']['inline'] = false;
-$mime_drivers['horde']['msword']['handles'] = array(
- 'application/msword',
- 'application/rtf',
- 'text/rtf');
-$mime_drivers['horde']['msword']['icons'] = array(
- 'default' => 'msword.png');
+//UNCOMMENTIFWV$mime_drivers['horde']['msword']['location'] = '%%LOCALBASE%%/bin/wvHtml';
+//UNCOMMENTIFWV$mime_drivers['horde']['msword']['inline'] = false;
+//UNCOMMENTIFWV$mime_drivers['horde']['msword']['handles'] = array(
+//UNCOMMENTIFWV 'application/msword',
+//UNCOMMENTIFWV 'application/rtf',
+//UNCOMMENTIFWV 'text/rtf');
+//UNCOMMENTIFWV$mime_drivers['horde']['msword']['icons'] = array(
+//UNCOMMENTIFWV 'default' => 'msword.png');
/**
@@ -287,14 +297,14 @@
* This driver requires xlhtml to be installed.
* xlhtml homepage: http://chicago.sourceforge.net/xlhtml/
*/
-$mime_drivers['horde']['msexcel']['location'] = '/usr/local/bin/xlhtml';
-$mime_drivers['horde']['msexcel']['inline'] = false;
-$mime_drivers['horde']['msexcel']['handles'] = array(
- 'application/vnd.ms-excel',
- 'application/msexcel',
- 'application/x-msexcel');
-$mime_drivers['horde']['msexcel']['icons'] = array(
- 'default' => 'msexcel.png');
+//UNCOMMENTIFXL$mime_drivers['horde']['msexcel']['location'] = '%%LOCALBASE%%/bin/xlhtml';
+//UNCOMMENTIFXL$mime_drivers['horde']['msexcel']['inline'] = false;
+//UNCOMMENTIFXL$mime_drivers['horde']['msexcel']['handles'] = array(
+//UNCOMMENTIFXL 'application/vnd.ms-excel',
+//UNCOMMENTIFXL 'application/msexcel',
+//UNCOMMENTIFXL 'application/x-msexcel');
+//UNCOMMENTIFXL$mime_drivers['horde']['msexcel']['icons'] = array(
+//UNCOMMENTIFXL 'default' => 'msexcel.png');
/**
@@ -302,13 +312,13 @@
* This driver requires ppthtml, included with xlhtml, to be installed.
* xlhtml homepage: http://chicago.sourceforge.net/xlhtml/
*/
-$mime_drivers['horde']['mspowerpoint']['location'] = '/usr/local/bin/ppthtml';
-$mime_drivers['horde']['mspowerpoint']['inline'] = false;
-$mime_drivers['horde']['mspowerpoint']['handles'] = array(
- 'application/vnd.ms-powerpoint',
- 'application/mspowerpoint');
-$mime_drivers['horde']['mspowerpoint']['icons'] = array(
- 'default' => 'mspowerpoint.png');
+//UNCOMMENTIFXL$mime_drivers['horde']['mspowerpoint']['location'] = '%%LOCALBASE%%/bin/ppthtml';
+//UNCOMMENTIFXL$mime_drivers['horde']['mspowerpoint']['inline'] = false;
+//UNCOMMENTIFXL$mime_drivers['horde']['mspowerpoint']['handles'] = array(
+//UNCOMMENTIFXL 'application/vnd.ms-powerpoint',
+//UNCOMMENTIFXL 'application/mspowerpoint');
+//UNCOMMENTIFXL$mime_drivers['horde']['mspowerpoint']['icons'] = array(
+//UNCOMMENTIFXL 'default' => 'mspowerpoint.png');
/**
@@ -324,24 +334,24 @@
/**
* RPM driver settings
*/
-$mime_drivers['horde']['rpm']['location'] = '/usr/bin/rpm';
-$mime_drivers['horde']['rpm']['inline'] = false;
-$mime_drivers['horde']['rpm']['handles'] = array(
- 'application/x-rpm');
-$mime_drivers['horde']['rpm']['icons'] = array(
- 'default' => 'rpm.png');
+//UNCOMMENTIFRPM$mime_drivers['horde']['rpm']['location'] = '%%LOCALBASE%%/bin/rpm';
+//UNCOMMENTIFRPM$mime_drivers['horde']['rpm']['inline'] = false;
+//UNCOMMENTIFRPM$mime_drivers['horde']['rpm']['handles'] = array(
+//UNCOMMENTIFRPM 'application/x-rpm');
+//UNCOMMENTIFRPM$mime_drivers['horde']['rpm']['icons'] = array(
+//UNCOMMENTIFRPM 'default' => 'rpm.png');
/**
* Debian package driver settings
*/
-$mime_drivers['horde']['deb']['location'] = '/usr/bin/dpkg';
-$mime_drivers['horde']['deb']['inline'] = false;
-$mime_drivers['horde']['deb']['handles'] = array(
- 'application/x-deb',
- 'application/x-debian-package');
-$mime_drivers['horde']['deb']['icons'] = array(
- 'default' => 'deb.png');
+//UNCOMMENTIFDEB$mime_drivers['horde']['deb']['location'] = '%%LOCALBASE%%/bin/dpkg';
+//UNCOMMENTIFDEB$mime_drivers['horde']['deb']['inline'] = false;
+//UNCOMMENTIFDEB$mime_drivers['horde']['deb']['handles'] = array(
+//UNCOMMENTIFDEB 'application/x-deb',
+//UNCOMMENTIFDEB 'application/x-debian-package');
+//UNCOMMENTIFDEB$mime_drivers['horde']['deb']['icons'] = array(
+//UNCOMMENTIFDEB 'default' => 'deb.png');
/**

View file

@ -0,0 +1,8 @@
--- po/translation.php.orig Tue Jan 21 16:05:36 2003
+++ po/translation.php Wed Jan 29 23:00:27 2003
@@ -1,4 +1,4 @@
-#!/usr/bin/php -q
+#!/usr/local/bin/php -q
<?php
/**
* Translation helper application for the Horde framework.

View file

@ -0,0 +1,11 @@
--- scripts/sql/README.orig Sat Sep 25 21:55:35 2004
+++ scripts/sql/README Mon Nov 22 13:19:52 2004
@@ -77,7 +77,7 @@
PostgreSQL
~~~~~~~~~~
-# su - postgres (or whatever your database runs as... usually postgres)
+# su - pgsql (or whatever your database runs as... usually pgsql)
$ psql -d template1 -f create.pgsql.sql
This script will create a "horde" database and a "horde" user. You

View file

@ -0,0 +1,36 @@
************************************************************************
Horde has been installed in %%HORDEDIR%% with your blank
configuration files.
If you want Horde to access a database, you have to run the
appropriate scripts located in %%HORDEDIR%%/scripts/sql.
It is recommended that you change the password of the 'hordemgr'
user used to connect to the horde database.
Horde is setup by default to access MySQL.
WARNING! if you are upgrading from Horde v. 2.2.x, you have to alter your
******** database schemas. Please read the doc UPGRADING.
You can now access Horde without a password at <http://localhost/horde/>,
and you will be logged in as an administrator. You should first configure
a real authentication backend. Click on "Setup" in the "Administration"
menu and configure Horde. Start in the "Authentication" tab.
See the doc in %%DOCSDIR%% for details.
(tip: if you plan to install IMP, just keep "Automatic authentication as
a certain user", add your login to be treated as administrator, and once
IMP will be installed, switch to "Let a Horde application handle auth").
Select a log driver; if you keep 'file', do not forget to add a line
in /etc/newsyslog.conf.
Then select and configure a preferences driver.
Your %%APACHE_CONF%% has been updated,
you have to restart Apache.
When everything is OK, you should be able to access Horde from
<http://localhost/horde/>.
(If <http://localhost/horde/> does not run, but
<http://localhost/horde/index.php> is OK, then you have
to define index.php as a DirectoryIndex in %%APACHE_CONF%%.)
There is a testing script at <http://localhost/horde/test.php>.
************************************************************************

43
www/horde/pkg-deinstall Normal file
View file

@ -0,0 +1,43 @@
#!/bin/sh
#
# $FreeBSD$
#
# Try to restore httpd.conf when deinstalling Horde
if [ x$2 != xDEINSTALL ]; then
exit
fi
if [ -d ${PKG_PREFIX}/etc/apache ] ; then
APACHEDIR=${PKG_PREFIX}/etc/apache
elif [ -d ${PKG_PREFIX}/etc/apache2 ] ; then
APACHEDIR=${PKG_PREFIX}/etc/apache2
fi
if [ -f ${APACHEDIR}/httpd.conf.beforeHorde ] ; then
echo "Restoring httpd.conf..."
cp ${APACHEDIR}/httpd.conf ${APACHEDIR}/httpd.conf.deinstHorde
sed -i.tmp -e "s:Include ${PKG_PREFIX}/etc/horde:# Include ${PKG_PREFIX}/etc/horde:g" \
${APACHEDIR}/httpd.conf
rm ${APACHEDIR}/httpd.conf.tmp
fi
# Backup Horde config files, if needed.
if [ -z "${PACKAGE_BUILDING}" ]; then
for cf in `ls ${PKG_PREFIX}/www/horde/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

6
www/horde/pkg-descr Normal file
View file

@ -0,0 +1,6 @@
Horde is a framework used by several applications written in PHP.
Horde is used by these ports: mail/imp, mail/turba, devel/chora,
deskutils/kronolith, deskutils/nag, mail/ingo and deskutils/mnemo.
WWW: http://www.horde.org/

1584
www/horde/pkg-plist Normal file

File diff suppressed because it is too large Load diff

343
www/horde4-base/Makefile Normal file
View file

@ -0,0 +1,343 @@
# Ports collection makefile for: horde2
# Date created: Sun Oct 07, 2001
# Whom: Thierry Thomas (<thierry@thomas.as>)
#
# $FreeBSD$
#
PORTNAME= horde
PORTVERSION= 3.0
CATEGORIES= www
MASTER_SITES= ftp://ftp.horde.org/pub/horde/ \
ftp://ftp.planetmirror.com/pub/horde/horde/ \
ftp://ftp.au.horde.org/pub/horde/horde/ \
ftp://ftp.be.horde.org/horde/ \
ftp://ftp.es.horde.org/pub/horde/ \
ftp://ftp.it.horde.org/pub/mirror/horde.org/horde/ \
ftp://ftp.nl.horde.org/mirror/horde-ftp/pub/horde/ \
ftp://ftp.uk.horde.org/mirrors/ftp.horde.org/pub/horde/ \
http://ftp.horde.org/pub/horde/
.if defined(WITH_PHP5)
PKGNAMESUFFIX= -php5
.endif
MAINTAINER= thierry@FreeBSD.org
COMMENT= A common code-base used by Horde applications, written in PHP
#----------------------------------------------------------------------------
# You may define these options:
#
# - WITH_APACHE2: if you run Apache2.
#
# - WITH_PHP5: if you run PHP5 (you could use www/horde-php5).
#
# - WITHOUT_SUPPORTED_DB: if you run a database not in the ports tree.
#
# - WITHOUT_MYSQL: this port is built with MySQL by default
# but you might choose any other database
# supported by PHP (e.g. WITH_POSTGRESQL).
#
# - WITHOUT_IMAP: this port uses IMAP as a default authentication
# backend; use this knob if for
# example you only need Chora.
#
# - WITHOUT_LDAP: if you do not need OpenLDAP.
#
# - WITHOUT_FTP: if you do not need the VFS FTP driver.
#
# - WITHOUT_MCAL: if you don't plan to install Kronolith.
#
# - WITH_IMSP: use IMSP as a preferences backend.
#
# - WITHOUT_FILEINFO: use native code to perform MIME magic lookups.
#
# - WITHOUT_GD: don't perform manipulations on image data with gd.
#
# - WITHOUT_ZLIB: don't compress pages and don't handle zip or gz data.
#
# - WITH_MAGICK: use ImageMagick to perform these image manipulations.
#
# - WITHOUT_ICONV: remove support for UTF-8 character sets.
# - WITHOUT_MBSTRING:
#
# - WITHOUT_WV if your users never receive MS-Word docs;
#
# - WITHOUT_XL if your users never receive MS-Excel sheets
# (or .ppt presentations);
#
# - WITHOUT_GEOIP don't activate MaxMind GeoIP Hostname to Country lookup.
#
# - WITHOUT_SW don't use the weather.com block on the portal page.
#
# - WITHOUT_WEBCPP: don't highlight sources with webcpp.
#
# - WITH_SRCHIGH: highlight sources with source-highlight.
#
# - WITH_ENSCRIPT: highlight sources with enscript.
#
# - WITH_RPM: handle RPM packages.
#
# - WITH_DEB: handle Debian packages.
#
#----------------------------------------------------------------------------
RUN_DEPENDS+= ${PEARDIR}/Date.php:${PORTSDIR}/devel/pear-Date \
${PEARDIR}/Log.php:${PORTSDIR}/sysutils/pear-Log \
${PEARDIR}/Mail/mime.php:${PORTSDIR}/mail/pear-Mail_Mime \
${PEARDIR}/DB.php:${PORTSDIR}/databases/pear-DB \
${PEARDIR}/File.php:${PORTSDIR}/sysutils/pear-File \
${PEARDIR}/Net/SMTP.php:${PORTSDIR}/net/pear-Net_SMTP
CONFLICTS= horde-2.*
NO_BUILD= yes
USE_PHP= ctype gettext session
WANT_PHP_MOD= yes
USE_REINPLACE= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
.if !defined(WITHOUT_FILEINFO)
USE_PHP+= fileinfo
.endif
.if !defined(WITHOUT_FTP)
USE_PHP+= ftp
.endif
.if !defined(WITHOUT_GD)
USE_PHP+= gd
.endif
.if !defined(WITHOUT_ICONV)
USE_PHP+= iconv
.endif
.if !defined(WITHOUT_IMAP)
USE_PHP+= imap
.endif
.if !defined(WITHOUT_LDAP)
USE_PHP+= ldap
.endif
.if !defined(WITHOUT_MBSTRING)
USE_PHP+= mbstring
.endif
.if !defined(NOCRYPT)
USE_PHP+= mcrypt
.endif
.if !defined(WITHOUT_SUPPORTED_DB)
. if !defined(WITHOUT_MYSQL)
USE_PHP+= mysql
. endif
. if defined(WITH_POSTGRESQL)
USE_PHP+= pgsql
. endif
.endif
.if !defined(WITHOUT_ZLIB)
USE_PHP+= zlib
.endif
.if defined(WITH_MAGICK)
RUN_DEPENDS+= convert:${PORTSDIR}/graphics/ImageMagick
.endif
.if defined(WITH_IMSP)
RUN_DEPENDS+= imspd:${PORTSDIR}/databases/cyrus-imspd
.endif
.if !defined(WITHOUT_X11)
. if !defined(WITHOUT_WV)
RUN_DEPENDS+= ${LOCALBASE}/bin/wvHtml:${PORTSDIR}/textproc/wv
. endif
. if !defined(WITHOUT_XL)
RUN_DEPENDS+= ${LOCALBASE}/bin/xlhtml:${PORTSDIR}/textproc/xlhtml
. endif
.endif
.if !defined(WITHOUT_WEBCPP)
RUN_DEPENDS+= webcpp:${PORTSDIR}/textproc/webcpp
.endif
.if exists(${LOCALBASE}/bin/source-highlight)
WITH_SRCHIGH= yes
.endif
.if defined(WITH_SRCHIGH)
RUN_DEPENDS+= source-highlight:${PORTSDIR}/textproc/source-highlight
.endif
.if exists(${LOCALBASE}/bin/enscript)
WITH_ENSCRIPT= yes
.endif
.if defined(WITH_ENSCRIPT)
. if defined(A4)
RUN_DEPENDS+= enscript:${PORTSDIR}/print/enscript-a4
. elif defined(DJ)
RUN_DEPENDS+= enscript:${PORTSDIR}/print/enscript-letterdj
. else
RUN_DEPENDS+= enscript:${PORTSDIR}/print/enscript-letter
. endif
.endif
.if exists(${LOCALBASE}/bin/rpm)
WITH_RPM= yes
.endif
.if defined(WITH_RPM)
RUN_DEPENDS+= rpm:${PORTSDIR}/archivers/rpm4
.endif
.if exists(${LOCALBASE}/bin/dpkg)
WITH_DEB= yes
.endif
.if defined(WITH_DEB)
RUN_DEPENDS+= dpkg:${PORTSDIR}/archivers/dpkg
.endif
.if !defined(WITHOUT_SW)
RUN_DEPENDS+= ${PEARDIR}/Services/Weather.php:${PORTSDIR}/misc/pear-Services_Weather
.endif
.if !defined(WITHOUT_GEOIP)
RUN_DEPENDS+= ${LOCALBASE}/share/GeoIP/GeoIP.dat:${PORTSDIR}/net/GeoIP
.endif
REINPLACE_ARGS= -i.beforeHorde
DOCS= COPYING README docs/CHANGES docs/CODING_STANDARDS \
docs/CONTRIBUTING docs/CREDITS docs/HACKING docs/INSTALL \
docs/PERFORMANCE docs/RELEASE docs/RELEASE_NOTES docs/SECURITY \
docs/TODO docs/TRANSLATIONS docs/UPGRADING
CONFFILE= conf.php mime_drivers.php motd.php nls.php prefs.php registry.php
SUB_DIRS= admin config js lib locale po scripts services templates themes util
LHORDEDIR?= www/horde
LHORDESBIN?= sbin
PLIST_SUB= HORDEDIR=${LHORDEDIR} HORDESBIN=${LHORDESBIN}
HORDEDIR= ${PREFIX}/${LHORDEDIR}
HORDESBIN= ${PREFIX}/${LHORDESBIN}
CONFDIR= ${HORDEDIR}/config
APACHE_CONF= ${APACHE_CNFDIR}/httpd.conf
PEARDIR?= ${LOCALBASE}/share/pear
.if defined(WITH_APACHE2)
APACHE_CNFDIR= ${LOCALBASE}/etc/apache2
.else
APACHE_CNFDIR= ${LOCALBASE}/etc/apache
.endif
HORDE_INC= ${PREFIX}/etc/horde
LOG_FILE?= /var/log/horde.log
.if defined(WITH_PHP5)
USE_PHP+= dom
.else
USE_PHP+= domxml
. if !defined(WITHOUT_MCAL)
USE_PHP+= mcal
. endif
.endif
.include <bsd.port.pre.mk> # Required to test PHP_VER
pre-configure:
@${RM} ${WRKSRC}/po/translation.php.orig \
${WRKSRC}/config/conf.xml.orig \
${WRKSRC}/scripts/sql/README.orig \
${WRKSRC}/config/mime_drivers.php.dist.orig
@${SED} -e "s:/home/httpd/html/horde:${HORDEDIR}:" \
-e "s:php_value auto_prepend_file:# php_value auto_prepend_file:" \
-e "s:/home/httpd/phplib:${PEARDIR}:" \
${FILESDIR}/httpd.conf.horde > ${WRKDIR}/httpd.conf.horde
.if ${PHP_VER} == 5
@${REINPLACE_CMD} -e "s:mod_php4.c:mod_php5.c:" ${WRKDIR}/httpd.conf.horde
.endif
@${REINPLACE_CMD} -e "s:%%LOCALBASE%%:${LOCALBASE}:" ${WRKSRC}/config/mime_drivers.php.dist
.if !defined(WITHOUT_X11)
. if !defined(WITHOUT_WV)
@${REINPLACE_CMD} -e "s://UNCOMMENTIFWV::" ${WRKSRC}/config/mime_drivers.php.dist
. endif
. if !defined(WITHOUT_XL)
@${REINPLACE_CMD} -e "s://UNCOMMENTIFXL::" ${WRKSRC}/config/mime_drivers.php.dist
. endif
.endif
.if !defined(WITHOUT_WEBCPP)
@${REINPLACE_CMD} -e "s://UNCOMMENTIFWCPP::" ${WRKSRC}/config/mime_drivers.php.dist
.endif
.if defined(WITH_SRCHIGH)
@${REINPLACE_CMD} -e "s://UNCOMMENTIFSRCHIGH::" ${WRKSRC}/config/mime_drivers.php.dist
.endif
.if defined(WITH_ENSCRIPT)
@${REINPLACE_CMD} -e "s://UNCOMMENTIFES::" ${WRKSRC}/config/mime_drivers.php.dist
.endif
.if defined(WITH_RPM)
@${REINPLACE_CMD} -e "s://UNCOMMENTIFRPM::" ${WRKSRC}/config/mime_drivers.php.dist
.endif
.if defined(WITH_DEB)
@${REINPLACE_CMD} -e "s://UNCOMMENTIFDEB::" ${WRKSRC}/config/mime_drivers.php.dist
.endif
.if !defined(WITHOUT_GEOIP)
@${REINPLACE_CMD} -e "s:GeoIP lookup will not be performed.\"/>:GeoIP lookup will not be performed.\">${LOCALBASE}/share/GeoIP/GeoIP.dat</configstring>:" \
${WRKSRC}/config/conf.xml
.endif
@${REINPLACE_CMD} -e "s:/tmp/horde.log:${LOG_FILE}:" ${WRKSRC}/config/conf.xml
@${REINPLACE_CMD} -e "s:/etc/mpasswd:${LOCALBASE}/etc/mpasswd:g" \
${WRKSRC}/lib/Horde/Auth/mcal.php
@${REINPLACE_CMD} -e "s:/usr/local/apache/htdocs:${PREFIX}/www:g" \
${WRKSRC}/docs/INSTALL
@${RM} ${WRKSRC}/lib/Horde/Auth/mcal.php.beforeHorde \
${WRKSRC}/config/conf.xml.beforeHorde \
${WRKSRC}/config/mime_drivers.php.dist.beforeHorde \
${WRKSRC}/docs/INSTALL.beforeHorde
pre-install:
.if !defined(WITHOUT_SUPPORTED_DB)
@if ! php -m | ${GREP} -q -e "mysql" ; then \
if ! php -m | ${GREP} -q -e "pgsql" ; then \
if ! php -m | ${GREP} -q -e "sybase" ; then \
${ECHO_MSG} "" ; \
${ECHO_MSG} "Please configure PHP with a database support." ; \
${ECHO_MSG} "MySQL, PostgreSQL and Sybase (CTLIB or DBLIB)" ; \
${ECHO_MSG} "can be used with PHP AND Horde." ; \
${ECHO_MSG} "" ; \
${ECHO_MSG} "(If everything will run on this machine, do not" ; \
${ECHO_MSG} " forget to install the database server-side!)" ; \
${ECHO_MSG} "" ; \
${FALSE} ; \
fi ; \
fi ; \
fi
.endif
do-install:
@${MKDIR} ${HORDEDIR}
.for REP in ${SUB_DIRS}
@${CP} -Rp ${WRKSRC}/${REP} ${HORDEDIR}
.endfor
@${CP} -p ${WRKSRC}/*.php ${HORDEDIR}
.for FILE in ${CONFFILE}
@if [ ! -f ${CONFDIR}/${FILE} ]; then \
${CP} ${CONFDIR}/${FILE}.dist ${CONFDIR}/${FILE} ; \
fi
.endfor
@${CP} ${WRKSRC}/scripts/set_perms.sh ${HORDESBIN}/horde_set_perms.sh
@${CHMOD} u+x ${HORDESBIN}/horde_set_perms.sh
@${MKDIR} ${HORDE_INC}
@${INSTALL_DATA} ${WRKDIR}/httpd.conf.horde ${HORDE_INC}
@(if [ -f ${APACHE_CONF} ] ; then \
${ECHO_MSG} "===> Updating ${APACHE_CONF}..." ; \
${ECHO_CMD} "# Horde's include directory" >> ${APACHE_CONF} ; \
${ECHO_CMD} "Include ${HORDE_INC}" >> ${APACHE_CONF} ; \
fi)
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${HORDEDIR}
@${CHMOD} -R o-rwx ${CONFDIR}
@${TOUCH} ${LOG_FILE}
@${CHOWN} ${WWWOWN}:${WWWGRP} ${LOG_FILE}
.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:%%HORDEDIR%%:${HORDEDIR}:g;s:%%APACHE_CONF%%:${APACHE_CONF}:g" \
-e "s:%%HORDESBIN%%:${HORDESBIN}:;s:%%DOCSDIR%%:${DOCSDIR}:" \
${FILESDIR}/pkg-message.in > ${PKGMESSAGE}
@${ECHO_MSG}
@${CAT} ${PKGMESSAGE}
@${ECHO_MSG}
.include <bsd.port.post.mk>

2
www/horde4-base/distinfo Normal file
View file

@ -0,0 +1,2 @@
MD5 (horde-3.0.tar.gz) = afe2a76062169cf5cd2cc5a3001fcc6a
SIZE (horde-3.0.tar.gz) = 3113591

View file

@ -0,0 +1,57 @@
# This is included in Apache's httpd.conf for Horde
<Directory /home/httpd/html/horde>
Options Indexes FollowSymLinks
AllowOverride None
order allow,deny
allow from all
<IfModule mod_php4.c>
php_value include_path '/home/httpd/phplib:.'
php_flag register_globals On
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_value memory_limit 16M
</IfModule>
</Directory>
<IfModule mod_alias.c>
Alias /horde/ "/home/httpd/html/horde/"
</IfModule>
#
# For security, don't serve pages from the Horde configuration and library
# directories.
#
#<Directory "/home/httpd/html/horde/admin">
# Order deny,allow
# Deny from all
#</Directory>
<Directory "/home/httpd/html/horde/config">
Order deny,allow
Deny from all
</Directory>
<Directory "/home/httpd/html/horde/lib">
Order deny,allow
Deny from all
</Directory>
<Directory "/home/httpd/html/horde/locale">
Order deny,allow
Deny from all
</Directory>
<Directory "/home/httpd/html/horde/po">
Order deny,allow
Deny from all
</Directory>
<Directory "/home/httpd/html/horde/scripts">
Order deny,allow
Deny from all
</Directory>
<Directory "/home/httpd/html/horde/templates">
Order deny,allow
Deny from all
</Directory>
<Directory "/home/httpd/html/horde/util">
Order deny,allow
Deny from all
</Directory>
# End of Horde configuration ================

View file

@ -0,0 +1,20 @@
--- config/conf.xml.orig Fri Nov 5 10:54:09 2004
+++ config/conf.xml Sat Nov 27 23:20:31 2004
@@ -276,7 +276,7 @@
<case name="login" desc="Login (su) authentication">
<configsection name="params">
- <configstring name="location" desc="Location of the su binary">/bin/su</configstring>
+ <configstring name="location" desc="Location of the su binary">/usr/bin/su</configstring>
</configsection>
</case>
@@ -932,7 +932,7 @@
<configsection name="params">
<configstring name="sendmail_path" required="false" desc="The location
of the sendmail binary on the filesystem
- [/usr/sbin/sendmail]">/usr/lib/sendmail</configstring>
+ [/usr/sbin/sendmail]">/usr/sbin/sendmail</configstring>
<configstring name="sendmail_args" required="false" desc="Any extra
parameters to pass to the sendmail or sendmail wrapper
binary">-oi</configstring>

View file

@ -0,0 +1,250 @@
--- config/mime_drivers.php.dist.orig Fri Nov 19 03:40:31 2004
+++ config/mime_drivers.php.dist Thu Nov 25 21:58:43 2004
@@ -37,10 +37,20 @@
* zip Zip files
*/
$mime_drivers_map['horde']['registered'] = array(
- 'css', 'deb', 'enriched', 'enscript', 'html', 'images', 'msword', 'msexcel',
- 'mspowerpoint', 'ooo', 'pdf', 'php', 'plain', 'rar', 'report',
- 'richtext', 'rpm', 'security', 'simple', 'srchighlite', 'tgz', 'tnef',
- 'vcard', 'webcpp', 'zip');
+ 'css'
+//UNCOMMENTIFDEB , 'deb'
+ , 'enriched'
+//UNCOMMENTIFES , 'enscript'
+ , 'html', 'images'
+//UNCOMMENTIFWV , 'msword'
+//UNCOMMENTIFXL , 'msexcel', 'mspowerpoint'
+ , 'ooo', 'pdf', 'php', 'plain', 'rar', 'report', 'richtext'
+//UNCOMMENTIFRPM , 'rpm'
+ , 'security', 'simple'
+//UNCOMMENTIFSRCHIGH , 'srchighlite'
+ , 'tgz', 'tnef', 'vcard'
+//UNCOMMENTIFWCPP , 'webcpp'
+ , 'zip');
/**
@@ -161,66 +171,66 @@
* Web C Plus Plus driver settings
* http://webcpp.sourceforge.net/
*/
-$mime_drivers['horde']['webcpp']['location'] = 'C:\Program Files\Jeffrey Bakker\webcpp\webcpp.exe';
-$mime_drivers['horde']['webcpp']['inline'] = true;
-$mime_drivers['horde']['webcpp']['handles'] = array(
- 'text/xml', 'text/sgml', 'application/xml',
- 'application/x-sh', 'application/x-javascript', 'application/x-tcl',
- 'x-extension/asm', 'application/x-asp', 'x-extension/bas',
- 'x-extension/cs', 'text/x-csrc', 'x-extension/rc',
- 'text/x-c++src', 'text/x-c++src', 'text/x-c++src',
- 'text/x-chdr', 'x-extension/bat', 'text/x-fortran',
- 'x-extension/f77', 'x-extension/f90', 'x-extension/for',
- 'x-extension/ftn', 'text/x-java', 'application/x-javascript',
- 'text/sgml', 'text/xml', 'text/x-pascal',
- 'application/x-cgi', 'application/x-perl', 'application/x-python',
- 'text/x-sql', 'text/x-tcl',
- 'application/x-shellscript', 'x-extension/vhd', 'x-extension/vhdl');
-$mime_drivers['horde']['webcpp']['icons'] = array(
- 'default' => 'text.png',
- 'text/xml' => 'xml.png',
- 'text/x-csrc' => 'source-c.png',
- 'text/x-chdr' => 'source-h.png',
- 'text/x-java' => 'source-java.png',
- 'application/x-javascript' => 'script-js.png');
+//UNCOMMENTIFWCPP$mime_drivers['horde']['webcpp']['location'] = '%%LOCALBASE%%/bin/webcpp';
+//UNCOMMENTIFWCPP$mime_drivers['horde']['webcpp']['inline'] = true;
+//UNCOMMENTIFWCPP$mime_drivers['horde']['webcpp']['handles'] = array(
+//UNCOMMENTIFWCPP 'text/xml', 'text/sgml', 'application/xml',
+//UNCOMMENTIFWCPP 'application/x-sh', 'application/x-javascript', 'application/x-tcl',
+//UNCOMMENTIFWCPP 'x-extension/asm', 'application/x-asp', 'x-extension/bas',
+//UNCOMMENTIFWCPP 'x-extension/cs', 'text/x-csrc', 'x-extension/rc',
+//UNCOMMENTIFWCPP 'text/x-c++src', 'text/x-c++src', 'text/x-c++src',
+//UNCOMMENTIFWCPP 'text/x-chdr', 'x-extension/bat', 'text/x-fortran',
+//UNCOMMENTIFWCPP 'x-extension/f77', 'x-extension/f90', 'x-extension/for',
+//UNCOMMENTIFWCPP 'x-extension/ftn', 'text/x-java', 'application/x-javascript',
+//UNCOMMENTIFWCPP 'text/sgml', 'text/xml', 'text/x-pascal',
+//UNCOMMENTIFWCPP 'application/x-cgi', 'application/x-perl', 'application/x-python',
+//UNCOMMENTIFWCPP 'text/x-sql', 'text/x-tcl',
+//UNCOMMENTIFWCPP 'application/x-shellscript', 'x-extension/vhd', 'x-extension/vhdl');
+//UNCOMMENTIFWCPP$mime_drivers['horde']['webcpp']['icons'] = array(
+//UNCOMMENTIFWCPP 'default' => 'text.png',
+//UNCOMMENTIFWCPP 'text/xml' => 'xml.png',
+//UNCOMMENTIFWCPP 'text/x-csrc' => 'source-c.png',
+//UNCOMMENTIFWCPP 'text/x-chdr' => 'source-h.png',
+//UNCOMMENTIFWCPP 'text/x-java' => 'source-java.png',
+//UNCOMMENTIFWCPP 'application/x-javascript' => 'script-js.png');
/**
* Source-Highlight driver settings
* http://www.gnu.org/software/src-highlite/
*/
-$mime_drivers['horde']['srchighlite']['location'] = 'C:\Program Files\src-highlite\bin\source-highlight.exe';
-$mime_drivers['horde']['srchighlite']['inline'] = true;
-$mime_drivers['horde']['srchighlite']['handles'] = array(
- 'text/x-csrc', 'text/x-c++src', 'text/x-java',
- 'application/x-perl', 'application/x-python', 'text/x-c++src',
- 'text/cpp');
-$mime_drivers['horde']['srchighlite']['icons'] = array(
- 'default' => 'text.png',
- 'text/x-csrc' => 'source-c.png',
- 'text/x-c++src' => 'source-c.png',
- 'text/cpp' => 'source-c.png',
- 'text/x-java' => 'source-java.png');
+//UNCOMMENTIFSRCHIGH$mime_drivers['horde']['srchighlite']['location'] = '%%LOCALBASE%%/bin/source-highlight';
+//UNCOMMENTIFSRCHIGH$mime_drivers['horde']['srchighlite']['inline'] = true;
+//UNCOMMENTIFSRCHIGH$mime_drivers['horde']['srchighlite']['handles'] = array(
+//UNCOMMENTIFSRCHIGH 'text/x-csrc', 'text/x-c++src', 'text/x-java',
+//UNCOMMENTIFSRCHIGH 'application/x-perl', 'application/x-python', 'text/x-c++src',
+//UNCOMMENTIFSRCHIGH 'text/cpp');
+//UNCOMMENTIFSRCHIGH$mime_drivers['horde']['srchighlite']['icons'] = array(
+//UNCOMMENTIFSRCHIGH 'default' => 'text.png',
+//UNCOMMENTIFSRCHIGH 'text/x-csrc' => 'source-c.png',
+//UNCOMMENTIFSRCHIGH 'text/x-c++src' => 'source-c.png',
+//UNCOMMENTIFSRCHIGH 'text/cpp' => 'source-c.png',
+//UNCOMMENTIFSRCHIGH 'text/x-java' => 'source-java.png');
/**
* GNU Enscript driver settings
*/
-$mime_drivers['horde']['enscript']['location'] = '/usr/bin/enscript';
-$mime_drivers['horde']['enscript']['inline'] = true;
-$mime_drivers['horde']['enscript']['handles'] = array(
- 'application/x-shellscript', 'application/x-javascript',
- 'application/x-perl', 'application/xml', 'text/xml',
- 'text/diff', 'text/x-diff', 'text/x-patch', 'text/x-csrc',
- 'x-extension/cs', 'text/x-java', 'text/x-chdr', 'text/x-c++src',
- 'text/x-c++hdr', 'x-extension/vhd', 'x-extension/vhdl', 'text/x-sql',
- 'x-extension/vb', 'x-extension/vba', 'text/x-emacs-lisp');
-$mime_drivers['horde']['enscript']['icons'] = array(
- 'default' => 'text.png',
- 'text/xml' => 'xml.png',
- 'application/xml' => 'xml.png',
- 'text/x-csrc' => 'source-c.png',
- 'text/x-chdr' => 'source-h.png',
- 'text/x-java' => 'source-java.png',
- 'application/x-javascript' => 'script-js.png');
+//UNCOMMENTIFES$mime_drivers['horde']['enscript']['location'] = '%%LOCALBASE%%//bin/enscript';
+//UNCOMMENTIFES$mime_drivers['horde']['enscript']['inline'] = true;
+//UNCOMMENTIFES$mime_drivers['horde']['enscript']['handles'] = array(
+//UNCOMMENTIFES 'application/x-shellscript', 'application/x-javascript',
+//UNCOMMENTIFES 'application/x-perl', 'application/xml', 'text/xml',
+//UNCOMMENTIFES 'text/diff', 'text/x-diff', 'text/x-patch', 'text/x-csrc',
+//UNCOMMENTIFES 'x-extension/cs', 'text/x-java', 'text/x-chdr', 'text/x-c++src',
+//UNCOMMENTIFES 'text/x-c++hdr', 'x-extension/vhd', 'x-extension/vhdl', 'text/x-sql',
+//UNCOMMENTIFES 'x-extension/vb', 'x-extension/vba', 'text/x-emacs-lisp');
+//UNCOMMENTIFES$mime_drivers['horde']['enscript']['icons'] = array(
+//UNCOMMENTIFES 'default' => 'text.png',
+//UNCOMMENTIFES 'text/xml' => 'xml.png',
+//UNCOMMENTIFES 'application/xml' => 'xml.png',
+//UNCOMMENTIFES 'text/x-csrc' => 'source-c.png',
+//UNCOMMENTIFES 'text/x-chdr' => 'source-h.png',
+//UNCOMMENTIFES 'text/x-java' => 'source-java.png',
+//UNCOMMENTIFES 'application/x-javascript' => 'script-js.png');
/**
@@ -272,14 +282,14 @@
* The 'location' entry should point to the 'wvHtml' program, NOT the
* 'wvWare' program.
*/
-$mime_drivers['horde']['msword']['location'] = '/usr/bin/wvHtml';
-$mime_drivers['horde']['msword']['inline'] = false;
-$mime_drivers['horde']['msword']['handles'] = array(
- 'application/msword',
- 'application/rtf',
- 'text/rtf');
-$mime_drivers['horde']['msword']['icons'] = array(
- 'default' => 'msword.png');
+//UNCOMMENTIFWV$mime_drivers['horde']['msword']['location'] = '%%LOCALBASE%%/bin/wvHtml';
+//UNCOMMENTIFWV$mime_drivers['horde']['msword']['inline'] = false;
+//UNCOMMENTIFWV$mime_drivers['horde']['msword']['handles'] = array(
+//UNCOMMENTIFWV 'application/msword',
+//UNCOMMENTIFWV 'application/rtf',
+//UNCOMMENTIFWV 'text/rtf');
+//UNCOMMENTIFWV$mime_drivers['horde']['msword']['icons'] = array(
+//UNCOMMENTIFWV 'default' => 'msword.png');
/**
@@ -287,14 +297,14 @@
* This driver requires xlhtml to be installed.
* xlhtml homepage: http://chicago.sourceforge.net/xlhtml/
*/
-$mime_drivers['horde']['msexcel']['location'] = '/usr/local/bin/xlhtml';
-$mime_drivers['horde']['msexcel']['inline'] = false;
-$mime_drivers['horde']['msexcel']['handles'] = array(
- 'application/vnd.ms-excel',
- 'application/msexcel',
- 'application/x-msexcel');
-$mime_drivers['horde']['msexcel']['icons'] = array(
- 'default' => 'msexcel.png');
+//UNCOMMENTIFXL$mime_drivers['horde']['msexcel']['location'] = '%%LOCALBASE%%/bin/xlhtml';
+//UNCOMMENTIFXL$mime_drivers['horde']['msexcel']['inline'] = false;
+//UNCOMMENTIFXL$mime_drivers['horde']['msexcel']['handles'] = array(
+//UNCOMMENTIFXL 'application/vnd.ms-excel',
+//UNCOMMENTIFXL 'application/msexcel',
+//UNCOMMENTIFXL 'application/x-msexcel');
+//UNCOMMENTIFXL$mime_drivers['horde']['msexcel']['icons'] = array(
+//UNCOMMENTIFXL 'default' => 'msexcel.png');
/**
@@ -302,13 +312,13 @@
* This driver requires ppthtml, included with xlhtml, to be installed.
* xlhtml homepage: http://chicago.sourceforge.net/xlhtml/
*/
-$mime_drivers['horde']['mspowerpoint']['location'] = '/usr/local/bin/ppthtml';
-$mime_drivers['horde']['mspowerpoint']['inline'] = false;
-$mime_drivers['horde']['mspowerpoint']['handles'] = array(
- 'application/vnd.ms-powerpoint',
- 'application/mspowerpoint');
-$mime_drivers['horde']['mspowerpoint']['icons'] = array(
- 'default' => 'mspowerpoint.png');
+//UNCOMMENTIFXL$mime_drivers['horde']['mspowerpoint']['location'] = '%%LOCALBASE%%/bin/ppthtml';
+//UNCOMMENTIFXL$mime_drivers['horde']['mspowerpoint']['inline'] = false;
+//UNCOMMENTIFXL$mime_drivers['horde']['mspowerpoint']['handles'] = array(
+//UNCOMMENTIFXL 'application/vnd.ms-powerpoint',
+//UNCOMMENTIFXL 'application/mspowerpoint');
+//UNCOMMENTIFXL$mime_drivers['horde']['mspowerpoint']['icons'] = array(
+//UNCOMMENTIFXL 'default' => 'mspowerpoint.png');
/**
@@ -324,24 +334,24 @@
/**
* RPM driver settings
*/
-$mime_drivers['horde']['rpm']['location'] = '/usr/bin/rpm';
-$mime_drivers['horde']['rpm']['inline'] = false;
-$mime_drivers['horde']['rpm']['handles'] = array(
- 'application/x-rpm');
-$mime_drivers['horde']['rpm']['icons'] = array(
- 'default' => 'rpm.png');
+//UNCOMMENTIFRPM$mime_drivers['horde']['rpm']['location'] = '%%LOCALBASE%%/bin/rpm';
+//UNCOMMENTIFRPM$mime_drivers['horde']['rpm']['inline'] = false;
+//UNCOMMENTIFRPM$mime_drivers['horde']['rpm']['handles'] = array(
+//UNCOMMENTIFRPM 'application/x-rpm');
+//UNCOMMENTIFRPM$mime_drivers['horde']['rpm']['icons'] = array(
+//UNCOMMENTIFRPM 'default' => 'rpm.png');
/**
* Debian package driver settings
*/
-$mime_drivers['horde']['deb']['location'] = '/usr/bin/dpkg';
-$mime_drivers['horde']['deb']['inline'] = false;
-$mime_drivers['horde']['deb']['handles'] = array(
- 'application/x-deb',
- 'application/x-debian-package');
-$mime_drivers['horde']['deb']['icons'] = array(
- 'default' => 'deb.png');
+//UNCOMMENTIFDEB$mime_drivers['horde']['deb']['location'] = '%%LOCALBASE%%/bin/dpkg';
+//UNCOMMENTIFDEB$mime_drivers['horde']['deb']['inline'] = false;
+//UNCOMMENTIFDEB$mime_drivers['horde']['deb']['handles'] = array(
+//UNCOMMENTIFDEB 'application/x-deb',
+//UNCOMMENTIFDEB 'application/x-debian-package');
+//UNCOMMENTIFDEB$mime_drivers['horde']['deb']['icons'] = array(
+//UNCOMMENTIFDEB 'default' => 'deb.png');
/**

View file

@ -0,0 +1,8 @@
--- po/translation.php.orig Tue Jan 21 16:05:36 2003
+++ po/translation.php Wed Jan 29 23:00:27 2003
@@ -1,4 +1,4 @@
-#!/usr/bin/php -q
+#!/usr/local/bin/php -q
<?php
/**
* Translation helper application for the Horde framework.

View file

@ -0,0 +1,11 @@
--- scripts/sql/README.orig Sat Sep 25 21:55:35 2004
+++ scripts/sql/README Mon Nov 22 13:19:52 2004
@@ -77,7 +77,7 @@
PostgreSQL
~~~~~~~~~~
-# su - postgres (or whatever your database runs as... usually postgres)
+# su - pgsql (or whatever your database runs as... usually pgsql)
$ psql -d template1 -f create.pgsql.sql
This script will create a "horde" database and a "horde" user. You

View file

@ -0,0 +1,36 @@
************************************************************************
Horde has been installed in %%HORDEDIR%% with your blank
configuration files.
If you want Horde to access a database, you have to run the
appropriate scripts located in %%HORDEDIR%%/scripts/sql.
It is recommended that you change the password of the 'hordemgr'
user used to connect to the horde database.
Horde is setup by default to access MySQL.
WARNING! if you are upgrading from Horde v. 2.2.x, you have to alter your
******** database schemas. Please read the doc UPGRADING.
You can now access Horde without a password at <http://localhost/horde/>,
and you will be logged in as an administrator. You should first configure
a real authentication backend. Click on "Setup" in the "Administration"
menu and configure Horde. Start in the "Authentication" tab.
See the doc in %%DOCSDIR%% for details.
(tip: if you plan to install IMP, just keep "Automatic authentication as
a certain user", add your login to be treated as administrator, and once
IMP will be installed, switch to "Let a Horde application handle auth").
Select a log driver; if you keep 'file', do not forget to add a line
in /etc/newsyslog.conf.
Then select and configure a preferences driver.
Your %%APACHE_CONF%% has been updated,
you have to restart Apache.
When everything is OK, you should be able to access Horde from
<http://localhost/horde/>.
(If <http://localhost/horde/> does not run, but
<http://localhost/horde/index.php> is OK, then you have
to define index.php as a DirectoryIndex in %%APACHE_CONF%%.)
There is a testing script at <http://localhost/horde/test.php>.
************************************************************************

View file

@ -0,0 +1,43 @@
#!/bin/sh
#
# $FreeBSD$
#
# Try to restore httpd.conf when deinstalling Horde
if [ x$2 != xDEINSTALL ]; then
exit
fi
if [ -d ${PKG_PREFIX}/etc/apache ] ; then
APACHEDIR=${PKG_PREFIX}/etc/apache
elif [ -d ${PKG_PREFIX}/etc/apache2 ] ; then
APACHEDIR=${PKG_PREFIX}/etc/apache2
fi
if [ -f ${APACHEDIR}/httpd.conf.beforeHorde ] ; then
echo "Restoring httpd.conf..."
cp ${APACHEDIR}/httpd.conf ${APACHEDIR}/httpd.conf.deinstHorde
sed -i.tmp -e "s:Include ${PKG_PREFIX}/etc/horde:# Include ${PKG_PREFIX}/etc/horde:g" \
${APACHEDIR}/httpd.conf
rm ${APACHEDIR}/httpd.conf.tmp
fi
# Backup Horde config files, if needed.
if [ -z "${PACKAGE_BUILDING}" ]; then
for cf in `ls ${PKG_PREFIX}/www/horde/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

View file

@ -0,0 +1,6 @@
Horde is a framework used by several applications written in PHP.
Horde is used by these ports: mail/imp, mail/turba, devel/chora,
deskutils/kronolith, deskutils/nag, mail/ingo and deskutils/mnemo.
WWW: http://www.horde.org/

1584
www/horde4-base/pkg-plist Normal file

File diff suppressed because it is too large Load diff