2018-02-21 13:26:45 +01:00
|
|
|
# $NetBSD: Makefile,v 1.83 2018/02/21 12:26:45 wiz Exp $
|
2001-02-12 16:26:04 +01:00
|
|
|
|
2012-02-23 11:34:07 +01:00
|
|
|
DISTNAME= horde-3.3.13
|
2017-04-05 14:33:47 +02:00
|
|
|
PKGREVISION= 4
|
2001-02-12 16:26:04 +01:00
|
|
|
CATEGORIES= www
|
2017-01-19 19:52:01 +01:00
|
|
|
MASTER_SITES= http://ftp.horde.org/pub/horde/
|
|
|
|
MASTER_SITES+= ftp://ftp.horde.org/pub/horde/
|
2001-02-12 16:26:04 +01:00
|
|
|
|
2009-07-17 20:00:13 +02:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2017-08-16 22:21:03 +02:00
|
|
|
HOMEPAGE= https://www.horde.org/
|
2001-02-17 18:21:28 +01:00
|
|
|
COMMENT= PHP application framework
|
2012-02-23 11:34:07 +01:00
|
|
|
LICENSE= gnu-lgpl-v2
|
2001-02-12 16:26:04 +01:00
|
|
|
|
2016-12-01 15:48:02 +01:00
|
|
|
CONFLICTS+= horde-2.*
|
2006-06-16 11:23:21 +02:00
|
|
|
|
2018-02-21 13:26:45 +01:00
|
|
|
PHP_VERSIONS_ACCEPTED= 56 # php-mysql, default-on option
|
|
|
|
|
2006-06-02 20:27:54 +02:00
|
|
|
.include "../../lang/php/phpversion.mk"
|
|
|
|
|
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-gettext>=4.3.3:../../devel/php-gettext
|
2006-06-16 11:23:21 +02:00
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-mcrypt>=4.3.3:../../security/php-mcrypt
|
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-iconv>=4.3.3:../../converters/php-iconv
|
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-gd>=4.3.3:../../graphics/php-gd
|
2006-06-02 20:27:54 +02:00
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-pear-Log-[0-9]*:../../sysutils/pear-Log
|
2006-06-16 11:23:21 +02:00
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-pear-Mail_Mime-[0-9]*:../../mail/pear-Mail_Mime
|
2006-06-02 20:27:54 +02:00
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-pear-DB-[0-9]*:../../databases/pear-DB
|
2006-06-16 11:23:21 +02:00
|
|
|
DEPENDS+= ${APACHE_PKG_PREFIX}-${PHP_PKG_PREFIX}>=4.3.3:../../www/ap-php
|
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-zlib>=4.3.3:../../archivers/php-zlib
|
2008-07-08 23:14:18 +02:00
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-pear-Console_Table-[0-9]*:../../textproc/pear-Console_Table
|
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-pear-File_Find-[0-9]*:../../textproc/pear-File_Find
|
2009-01-04 14:47:42 +01:00
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-pear-HTTP_Request-[0-9]*:../../www/pear-HTTP_Request
|
2001-02-12 16:26:04 +01:00
|
|
|
|
2008-05-26 04:13:14 +02:00
|
|
|
USE_TOOLS+= pax
|
|
|
|
|
2006-06-16 11:23:21 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2005-05-15 23:39:07 +02:00
|
|
|
|
2001-02-12 16:26:04 +01:00
|
|
|
DOCDIR= ${PREFIX}/share/doc/horde
|
2001-04-30 07:53:29 +02:00
|
|
|
EGDIR= ${PREFIX}/share/examples/horde
|
2001-02-12 16:26:04 +01:00
|
|
|
HORDEDIR= ${PREFIX}/share/horde
|
Update to 3.3
----
v3.3
----
[jan] Fix synchronization issues with Blackberry clients (bug 6949).
[mms] Fix setting the horde user when using application authentication with
realms (bug 6749).
[jan] Fix user name conversion with user hooks in the permissions interfaces
(bug 6371).
[jan] Provide all settings for the read server in split SQL configuration
(Request #7024).
[jan] Improve HTML to text filter.
[mjr] Hierarchical SQL Share driver now correctly removes all children when
removing a share (Bug: 7347).
[mjr] Fix an issue with various date/time fields in horde form that was causing
erroneous validation errors.
[cjh] Sign parameters to go.php with an HMAC based on a new secret key
configuration value, to prevent using go.php as an open referrer.
[cjh] Make logout tokens only valid for a configurable length of time.
--------
v3.3-RC1
--------
[mms] Fix garbage collection handling on SQL session handler backends.
[mjr] Change MDB2 sequence names to 'id' in SQL share driver (bug 7240).
[cjh] When a URL is supplied for pass-through after logging in, go to that URL
in mobile browsers instead of going to the mobile portal (bug 6332).
[mms] Memcache session handler no longer writes data with a lifetime.
[cjh] Add DIMP to the horde LDAP OIDs and hordePerson objectclass (bug 7243).
[mms] Update FCKeditor to v2.6.3.
[jan] Use global mailer configuration when sending alarm emails
(adrieder@sbox.tugraz.at, bug 7058).
[jan] Reset background colors when resetting the category form (bug 7226).
[jan] Improve Funambol contacts support (Requests #7099, #7100).
[jan] Correctly parse GEO tags in vCard 2.1 data (bug 6563).
[jan] Remove Horde portal link from application menus (bug 7221).
[cjh] Create a driver for signups, allowing backends other than DataTree
(Duck <duck@obala.net>, Request #7161).
[jan] Fix displaying images with the image form field.
[mjr] Fix issue with hierarchical SQL share driver that caused permissons to
erroneously be denied when the share contained group permissions and was
instantiated by a listShares call.
[mjr] Fix issue with hierarchical SQL share driver that caused any child shares
to be orphaned when the parent share was moved in the hierarchy.
[mjr] Fix issue with SQL share drivers that was causing permission checks to
fail under certain conditions by no longer explicitly storing owner
permissions in the Perms backend.
[cjh] Fix overwriting a variable in the tableset_html VarRenderer
(Paul Roy <proy@corom.ca>, bug 7120).
[mms] Fix MIME encoding when using the ISO-2022-JP charset (bug 1621).
[jan] Fix SQL Share driver not using the correct database when using different
databases in Horde applications (bug 6997).
[cjh] Fix SQL portability in Share_sql driver (bug 7084).
[jan] Fix synchronizing large amounts of data split across several SyncML
messages.
[jan] Add Basque translation (Euskal Herriko Unibertsitatea EHU/UPV
<xabier.arrieta@ehu.es>).
[cjh] Fix Horde_Lock::getLockInfo (duck@obala.net, Bub #7046).
[cjh] Fix SQL portability in Group_sql driver (bug 7075).
[jan] Fix PAM authentication driver, but also mark it as deprecated (bug 6982).
[mjr] Fix issue with native SQL Share driver that caused filtering shares by
attributes to fail.
[jan] Fix synchronization of event alarms with Funambol clients (bug 7003).
[jan] Correctly detect Funambol clients on Blackberry devices (bug 6995).
[mjr] Remove all user application permissions and group memberships from storage
when removing the user from the system (Bug: 6999)
[cjh] Call the postauthenticate hook in Auth::setAuth(), and allow the
postauthenticate hook to cause setAuth() to fail. Allows postauthenticate
to fire on any event, including transparent authentication, that could
result in a user being successfully logged in.
[jan] Improve attribute support and charset conversion in vCard viewer.
[jan] Show photos in vCard object if provided with an URL.
[mjr] Remove permissions from storage also when removing a share.
[jan] Add Horde_Form fields for string arrays and PGP and S/MIME keys.
[jan] Only show Add Permission icons in permissions interface where adding
them is possible.
[mjr] Fix issue in Horde_Image that was causing erratic results when cropping
images.
[jan] Fix validation of phone fields marked as required (bug 6948).
[mms] Fix quoting periods in display part of e-mail address (bug 6899).
[mms] Fix error checking when parsing an undisclosed recipients mail header
and using an older version of PEAR::Mail (bug 6930).
[jan] Return to portal after editing or deleting blocks directly from there.
2008-10-12 14:00:52 +02:00
|
|
|
PAXDIRS= js lib locale po scripts services templates themes util admin \
|
|
|
|
rpc
|
2006-06-16 11:23:21 +02:00
|
|
|
SENDMAIL?= /usr/sbin/sendmail
|
2007-07-04 22:54:31 +02:00
|
|
|
PKG_USERS_VARS+=APACHE_USER
|
2001-02-12 16:26:04 +01:00
|
|
|
|
2006-06-16 11:23:21 +02:00
|
|
|
PKG_SYSCONFSUBDIR?= httpd
|
2010-11-10 13:46:53 +01:00
|
|
|
MESSAGE_SUBST+= HORDEDIR=${HORDEDIR}
|
2001-02-12 16:26:04 +01:00
|
|
|
|
2007-11-15 23:11:36 +01:00
|
|
|
REPLACE_INTERPRETER+= php
|
|
|
|
REPLACE.php.old= .*/bin/php
|
|
|
|
REPLACE.php.new= ${PREFIX}/bin/php
|
|
|
|
REPLACE_FILES.php= po/translation.php \
|
|
|
|
scripts/upgrades/migrate_user_categories.php \
|
Horde version 3.2 is a major upgrade in the 3.x release series, including these
enhancements:
* Stable synchronization support through integrated SyncML server.
* A new Alarm system that can send email alarms, generate popup or inline
notifications, and play sounds for events in any Horde application.
* Support for separate read and write databases, and improved useability
when the database is unavailable.
* Improved performance, through caching and native SQL drivers for shares,
groups, and permissions; faster DataTree queries, and smarter use of
session data.
* The administrator can disable users' ability to change permissions on
their Shares.
* Two slick new themes, Tango Blue and Silver Surfer.
* WCAG 1.0 Priority 2/Section 508 accessibility guidelines compliance.
* Full Kolab webclient support.
* Improved JavaScript code including more caching, JSON support, new
spell checking and color picking widgets, replacing htmlarea with xinha,
and dynamic portal updates.
* Help is now searchable and has a tree view for easy organization and
exploration of help topics.
* Wider memcache support and easier memcache configuration, including
connection pooling and multiple memcache servers.
* A more complete WebDAV server.
* "Drop-in" configuration support for applications through
config/registry.d/.
* Many additional hooks, for performing actions on preference value
changes, and after loading an application.
* and much, much more.
2008-05-26 14:52:51 +02:00
|
|
|
scripts/upgrades/move_history_out_of_datatree.php \
|
|
|
|
scripts/alarms.php \
|
|
|
|
scripts/import_squirrelmail_prefs.php \
|
|
|
|
scripts/upgrades/convert_datatree_groups_to_sql.php \
|
2008-12-16 00:05:14 +01:00
|
|
|
scripts/upgrades/convert_datatree_perms_to_sql.php \
|
|
|
|
scripts/import_squirrelmail_file_prefs.php \
|
|
|
|
scripts/import_squirrelmail_sql_prefs.php
|
2007-11-15 23:11:36 +01:00
|
|
|
|
2006-06-16 11:23:21 +02:00
|
|
|
CONF_FILES+= ${EGDIR}/horde.conf ${PKG_SYSCONFDIR}/horde.conf
|
2010-02-16 17:08:59 +01:00
|
|
|
OWN_DIRS_PERMS+= ${HORDEDIR}/config \
|
2016-05-17 12:32:06 +02:00
|
|
|
${APACHE_USER} ${REAL_ROOT_GROUP} 0750
|
2010-02-16 17:08:59 +01:00
|
|
|
CONF_FILES_PERMS+= ${EGDIR}/config/conf.php \
|
2006-06-16 11:23:21 +02:00
|
|
|
${HORDEDIR}/config/conf.php \
|
2016-05-17 12:32:06 +02:00
|
|
|
${APACHE_USER} ${REAL_ROOT_GROUP} 0640
|
2010-02-16 17:08:59 +01:00
|
|
|
CONF_FILES_PERMS+= ${EGDIR}/config/conf.xml \
|
2006-06-16 11:23:21 +02:00
|
|
|
${HORDEDIR}/config/conf.xml \
|
2016-05-17 12:32:06 +02:00
|
|
|
${APACHE_USER} ${REAL_ROOT_GROUP} 0440
|
2010-02-16 17:08:59 +01:00
|
|
|
CONF_FILES_PERMS+= ${EGDIR}/config/mime_drivers.php \
|
2006-06-16 11:23:21 +02:00
|
|
|
${HORDEDIR}/config/mime_drivers.php \
|
2016-05-17 12:32:06 +02:00
|
|
|
${APACHE_USER} ${REAL_ROOT_GROUP} 0440
|
2010-02-16 17:08:59 +01:00
|
|
|
CONF_FILES_PERMS+= ${EGDIR}/config/motd.php \
|
2006-06-16 11:23:21 +02:00
|
|
|
${HORDEDIR}/config/motd.php \
|
2016-05-17 12:32:06 +02:00
|
|
|
${APACHE_USER} ${REAL_ROOT_GROUP} 0440
|
2010-02-16 17:08:59 +01:00
|
|
|
CONF_FILES_PERMS+= ${EGDIR}/config/nls.php \
|
2006-06-16 11:23:21 +02:00
|
|
|
${HORDEDIR}/config/nls.php \
|
2016-05-17 12:32:06 +02:00
|
|
|
${APACHE_USER} ${REAL_ROOT_GROUP} 0440
|
2010-02-16 17:08:59 +01:00
|
|
|
CONF_FILES_PERMS+= ${EGDIR}/config/prefs.php \
|
2006-06-16 11:23:21 +02:00
|
|
|
${HORDEDIR}/config/prefs.php \
|
2016-05-17 12:32:06 +02:00
|
|
|
${APACHE_USER} ${REAL_ROOT_GROUP} 0440
|
2010-02-16 17:08:59 +01:00
|
|
|
CONF_FILES_PERMS+= ${EGDIR}/config/registry.php \
|
2006-06-16 11:23:21 +02:00
|
|
|
${HORDEDIR}/config/registry.php \
|
2016-05-17 12:32:06 +02:00
|
|
|
${APACHE_USER} ${REAL_ROOT_GROUP} 0440
|
2010-02-16 17:08:59 +01:00
|
|
|
CONF_FILES_PERMS+= ${EGDIR}/config/hooks.php \
|
2006-06-16 11:23:21 +02:00
|
|
|
${HORDEDIR}/config/hooks.php \
|
2016-05-17 12:32:06 +02:00
|
|
|
${APACHE_USER} ${REAL_ROOT_GROUP} 0440
|
2001-04-30 07:53:29 +02:00
|
|
|
|
2006-06-16 11:23:21 +02:00
|
|
|
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"
|
|
|
|
SUBST_SED.files+= -e "s|/usr/lib/sendmail|${SENDMAIL}|g"
|
|
|
|
SUBST_SED.files+= -e "s|/bin/sh|${SH}|g"
|
|
|
|
SUBST_MESSAGE.files= Fixing configuration files.
|
|
|
|
|
|
|
|
.include "options.mk"
|
|
|
|
.include "../../mk/apache.mk"
|
2001-02-12 16:26:04 +01:00
|
|
|
|
2006-06-16 11:23:21 +02:00
|
|
|
do-build:
|
|
|
|
${RM} ${WRKSRC}/lib/Horde/Auth/login.php.orig
|
|
|
|
${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
|
2001-02-12 16:26:04 +01:00
|
|
|
|
2010-02-16 17:08:59 +01:00
|
|
|
INSTALLATION_DIRS+= ${DOCDIR} ${EGDIR}/config ${HORDEDIR}/config
|
2010-02-15 18:52:01 +01:00
|
|
|
|
2001-02-12 16:26:04 +01:00
|
|
|
do-install:
|
2010-02-15 18:52:01 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/horde.conf.dist ${DESTDIR}${EGDIR}/horde.conf
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/COPYING ${DESTDIR}${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/* ${DESTDIR}${DOCDIR}
|
2010-11-10 13:46:53 +01:00
|
|
|
.for d in ${PAXDIRS}
|
2010-02-15 18:52:01 +01:00
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${HORDEDIR}/${d}
|
2010-11-10 13:46:53 +01:00
|
|
|
.endfor
|
|
|
|
.for d in ${PAXDIRS}
|
2010-02-15 18:52:01 +01:00
|
|
|
cd ${WRKSRC}/${d} && pax -rwpam . ${DESTDIR}${HORDEDIR}/${d}
|
2010-11-10 13:46:53 +01:00
|
|
|
.endfor
|
2010-02-16 17:08:59 +01:00
|
|
|
cd ${WRKSRC}/config && for f in *.dist; do \
|
|
|
|
${INSTALL_DATA} $$f ${DESTDIR}${EGDIR}/config/$${f%.dist}; \
|
|
|
|
done
|
2010-02-15 18:52:01 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.php ${DESTDIR}${HORDEDIR}
|
|
|
|
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DESTDIR}${HORDEDIR}
|
|
|
|
${FIND} ${DESTDIR}${HORDEDIR} -type d -print | ${XARGS} ${CHMOD} ${PKGDIRMODE}
|
|
|
|
${FIND} ${DESTDIR}${HORDEDIR} -type f -print | ${XARGS} ${CHMOD} ${SHAREMODE}
|
2001-02-12 16:26:04 +01:00
|
|
|
|
2012-04-14 18:25:11 +02:00
|
|
|
.include "../../mk/apache.mk"
|
2001-02-12 16:26:04 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|