The Horde Application Framework is a modular, general-purpose web application

framework written in PHP.  It provides an extensive array of classes that are
targeted at the common problems and tasks involved in developing modern web
applications.

This is the 3.x branch of the framework.
This commit is contained in:
adrianp 2005-01-16 21:10:16 +00:00
parent 2d475004aa
commit 6730cf6ae6
7 changed files with 1791 additions and 0 deletions

4
www/horde3/DESCR Normal file
View file

@ -0,0 +1,4 @@
The Horde Application Framework is a modular, general-purpose web application
framework written in PHP. It provides an extensive array of classes that are
targeted at the common problems and tasks involved in developing modern web
applications.

27
www/horde3/MESSAGE Normal file
View file

@ -0,0 +1,27 @@
===========================================================================
$NetBSD: MESSAGE,v 1.1.1.1 2005/01/16 21:10:16 adrianp Exp $
Please refer to the file:
${PREFIX}/share/doc/horde/INSTALL
to setup Horde to access its user preferences store properly. The short
summary is to run the appropriate scripts in:
${HORDEDIR}/scripts/db
to setup the horde preferences store. Horde is setup by default to access
MySQL. It's recommended that you change the password of the 'horde' user used
to connect to the horde database.
You will also need to make Horde accessible through your HTTP server. If
you are running Apache and ap-php, then you can add the following line
to httpd.conf:
Include ${PKG_SYSCONFDIR}/horde.conf
to make Horde accessible through:
http://www.domain.com/horde/
===========================================================================

106
www/horde3/Makefile Normal file
View file

@ -0,0 +1,106 @@
# $NetBSD: Makefile,v 1.1.1.1 2005/01/16 21:10:17 adrianp Exp $
DISTNAME= horde-3.0.2
CATEGORIES= www
MASTER_SITES= ftp://ftp.horde.org/pub/horde/tarballs/
MAINTAINER= adrianp@NetBSD.org
HOMEPAGE= http://www.horde.org/
COMMENT= PHP application framework
CONFLICTS+= horde-2.*
DEPENDS+= php-gettext>=4.3.3:../../devel/php-gettext
DEPENDS+= php-mcrypt>=4.3.3:../../security/php-mcrypt
DEPENDS+= php-iconv>=4.3.3:../../converters/php-iconv
DEPENDS+= php-gd>=4.3.3:../../graphics/php-gd
DEPENDS+= pear-Log-[0-9]*:../../sysutils/pear-Log
DEPENDS+= pear-Mail_Mime-[0-9]*:../../mail/pear-Mail_Mime
DEPENDS+= ap-php>=4.3.3:../../www/ap-php
DEPENDS+= php-domxml>=4.3.3:../../textproc/php4-domxml
DEPENDS+= php-zlib>=4.3.3:../../archivers/php-zlib
.include "../../mk/bsd.prefs.mk"
DOCDIR= ${PREFIX}/share/doc/horde
EGDIR= ${PREFIX}/share/examples/horde
HORDEDIR= ${PREFIX}/share/horde
PAXDIRS= js lib locale po scripts services templates themes util admin
SENDMAIL?= /usr/sbin/sendmail
USE_BUILDLINK3= YES
PKG_SYSCONFSUBDIR?= httpd
USE_PKGINSTALL= YES
MESSAGE_SUBST+= HORDEDIR=${HORDEDIR}
CONF_FILES+= ${EGDIR}/horde.conf ${PKG_SYSCONFDIR}/horde.conf
CONF_FILES_PERMS+= ${HORDEDIR}/config/conf.php.dist \
${HORDEDIR}/config/conf.php \
${APACHE_USER} ${ROOT_GROUP} 0640
SUPPORT_FILES_PERMS+= ${HORDEDIR}/config/conf.xml.dist \
${HORDEDIR}/config/conf.xml \
${APACHE_USER} ${ROOT_GROUP} 0440
SUPPORT_FILES_PERMS+= ${HORDEDIR}/config/mime_drivers.php.dist \
${HORDEDIR}/config/mime_drivers.php \
${APACHE_USER} ${ROOT_GROUP} 0440
SUPPORT_FILES_PERMS+= ${HORDEDIR}/config/motd.php.dist \
${HORDEDIR}/config/motd.php \
${APACHE_USER} ${ROOT_GROUP} 0440
SUPPORT_FILES_PERMS+= ${HORDEDIR}/config/nls.php.dist \
${HORDEDIR}/config/nls.php \
${APACHE_USER} ${ROOT_GROUP} 0440
SUPPORT_FILES_PERMS+= ${HORDEDIR}/config/prefs.php.dist \
${HORDEDIR}/config/prefs.php \
${APACHE_USER} ${ROOT_GROUP} 0440
SUPPORT_FILES_PERMS+= ${HORDEDIR}/config/registry.php.dist \
${HORDEDIR}/config/registry.php \
${APACHE_USER} ${ROOT_GROUP} 0440
SUPPORT_FILES_PERMS+= ${HORDEDIR}/config/hooks.php.dist \
${HORDEDIR}/config/hooks.php \
${APACHE_USER} ${ROOT_GROUP} 0000
SPECIAL_PERMS+= ${HORDEDIR}/config ${APACHE_USER} ${ROOT_GROUP} 0750
SUBST_CLASSES= files
SUBST_STAGE.files= post-build
SUBST_FILES.files= horde.conf.dist config/conf.xml config/conf.xml.dist \
scripts/set_perms.sh
SUBST_SED.files= -e "s|@HORDEDIR@|${HORDEDIR}|g" \
-e "s|/usr/lib/sendmail|${SENDMAIL}|g" \
-e "s|/bin/sh|${SH}|g"
SUBST_MESSAGE.files= "Fixing configuration files."
.include "options.mk"
.include "../../mk/apache.mk"
do-build:
@${CP} ${FILESDIR}/horde.conf.dist ${WRKSRC}/horde.conf.dist
@${CP} ${WRKSRC}/config/conf.xml ${WRKSRC}/config/conf.xml.dist
@${FIND} ${WRKSRC} -name .htaccess -print | ${XARGS} ${RM} -f
@${CHMOD} 0750 ${WRKSRC}/scripts/set_perms.sh
do-install:
${INSTALL_DATA_DIR} ${DOCDIR}
${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_DATA_DIR} ${HORDEDIR}
${INSTALL_DATA_DIR} ${HORDEDIR}/config
${INSTALL_DATA} ${WRKSRC}/horde.conf.dist ${EGDIR}/horde.conf
${INSTALL_DATA} ${WRKSRC}/COPYING ${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCDIR}
. for d in ${PAXDIRS}
${INSTALL_DATA_DIR} ${HORDEDIR}/${d}
. endfor
. undef d
. for d in ${PAXDIRS}
cd ${WRKSRC}/${d} && ${PAX} -rw . ${HORDEDIR}/${d}
. endfor
. undef d
${INSTALL_DATA} ${WRKSRC}/config/*.dist ${HORDEDIR}/config
${INSTALL_DATA} ${WRKSRC}/*.php ${HORDEDIR}
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${HORDEDIR}
${CHMOD} -R a-w ${HORDEDIR}
.include "../../mk/bsd.pkg.mk"

1546
www/horde3/PLIST Normal file

File diff suppressed because it is too large Load diff

4
www/horde3/distinfo Normal file
View file

@ -0,0 +1,4 @@
$NetBSD: distinfo,v 1.1.1.1 2005/01/16 21:10:17 adrianp Exp $
SHA1 (horde-3.0.2.tar.gz) = 5856c33fe0b22ec5c077382c9d4851af20cc0363
Size (horde-3.0.2.tar.gz) = 3114659 bytes

View file

@ -0,0 +1,55 @@
# $NetBSD: horde.conf.dist,v 1.1.1.1 2005/01/16 21:10:17 adrianp Exp $
#
# Horde configuration file fragment for Apache
<IfModule mod_alias.c>
Alias /horde/ "@HORDEDIR@/"
</IfModule>
<Directory "@HORDEDIR@">
DirectoryIndex index.php
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
<IfModule mod_php4.c>
php_flag magic_quotes_gpc Off
php_flag track_vars On
</IfModule>
</Directory>
#
# For security, don't serve pages from the Horde configuration and library
# directories.
#
<Directory "@HORDEDIR@/config">
Order deny,allow
Deny from all
</Directory>
<Directory "@HORDEDIR@/docs">
Order deny,allow
Deny from all
</Directory>
<Directory "@HORDEDIR@/lib">
Order deny,allow
Deny from all
</Directory>
<Directory "@HORDEDIR@/locale">
Order deny,allow
Deny from all
</Directory>
<Directory "@HORDEDIR@/po">
Order deny,allow
Deny from all
</Directory>
<Directory "@HORDEDIR@/scripts">
Order deny,allow
Deny from all
</Directory>
<Directory "@HORDEDIR@/templates">
Order deny,allow
Deny from all
</Directory>
<Directory "@HORDEDIR@/util">
Order deny,allow
Deny from all
</Directory>

49
www/horde3/options.mk Normal file
View file

@ -0,0 +1,49 @@
# $NetBSD: options.mk,v 1.1.1.1 2005/01/16 21:10:16 adrianp Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.horde
PKG_SUPPORTED_OPTIONS= ldap postgresql73 postgresql74 mysql
.if !defined(PKG_OPTIONS.horde)
PKG_DEFAULT_OPTIONS+= mysql
.endif
.include "../../mk/bsd.options.mk"
###
### Can't support both versions of PostgreSQL
###
.if !empty(PKG_OPTIONS:Mpostgresql73) && !empty(PKG_OPTIONS:Mpostgresql74)
PKG_FAIL_REASON+= "PostgreSQL 7.3 and 7.4 cannot both be compiled in." \
"Please change ${PKG_OPTIONS_VAR} to one or the other."
.endif
###
### Use OpenLDAP for storing user details
###
.if !empty(PKG_OPTIONS:Mldap)
. include "../../databases/openldap/buildlink3.mk"
DEPENDS+= php-ldap>=4.3.3:../../databases/php-ldap
.endif
###
### Use PostgreSQL v7.3 for storing user details
###
.if !empty(PKG_OPTIONS:Mpostgresql73)
. include "../../databases/postgresql73-lib/buildlink3.mk"
DEPENDS+= php-pgsql>=4.3.3:../../databases/php-pgsql
.endif
###
### Use PostgreSQL v7.4 for storing user details
###
.if !empty(PKG_OPTIONS:Mpostgresql74)
. include "../../databases/postgresql74-lib/buildlink3.mk"
DEPENDS+= php-pgsql>=4.3.3:../../databases/php-pgsql
.endif
###
### Use MySQL for storing user details
###
.if !empty(PKG_OPTIONS:Mmysql)
. include "../../mk/mysql.buildlink3.mk"
DEPENDS+= php-mysql>=4.3.3:../../databases/php-mysql
.endif