pkgsrc/www/davical/Makefile
wiz 55a7bcebff Update to 1.0.2:
1.0.2:
Bug Fixes

    Fix bug in scheduling on POST request.
    Fix permissions on user create via external auth.
    Add a default min_age for external binds.

Other Changes

    Prevent external binds from being created/updated if curl is missing.
    Add check to setup page to test whether curl is installed.
    Allow for silly programs that send content-type XML with a GET request.
    Support use of HTTP_AUTHORIZATION in addition to AUTHORIZATION cgi.
    Handle VCARD adr/tel/email which have multiple types.
    Set the default URL to the default calendar name rather than /home/
    Enable the file upload for addressbook collections.
    Handle addressbook import along with calendar import.
    Write UID and REV property n VCARD if they are missing.
    Update translations to current transifex translations.

1.0.1:
Bug Fixes

    Fix missing braces the /tools.php script.

Other Changes

    Update translations to current transifex translations.

1.0.0:
Functionality Enhancements

    Handle DELETE scheduling actions.

Bug Fixes

    Handle bound resources correctly in sync-collection report.
    When creating an external bind don't consider local host as external
    Fix logic error in hide_TODO setting.
    Make hide_alarm work on bound resources.
    Correct bug in sync-collection report response.
    Fix BIT24 casting for the LDAP driver.
    Fix for MOVE into a bound location.
    Correctly calculate the next alarm time.
    Make sync-collection handle new format for sync token.
    Don't allow a / in the UID to infect the path on import.
    Fix propfind depth:1 on bind to external url
    Correct handling of empty CardDAV:address-data element in request.
    Fix handling of active flag for general external authentication mechanisms.
    Fix LDAP user creation where memcached support is off.
    Fix handling of numeric usernames.

Other Changes

    Catch missing-xml in request separately from invalid-xml.
    Add the "CardDAV" word into DAViCal's description.
    Improve expand performance by only doing expansion if we know we need it.
    Use supplied content_type even on zero-length requests.
    Strip URL-unfriendly characters from UID before using it as URL segment.
    Slightly more helpful 403 response.
    Remove password from LDAP log messages.
    Tooltips for schedule-deliver and schedule-send.
    Current localisations from Transifex.
    Update e-mail address to current one, mention wiki.
    Force output buffers to be flushed, if they're turned on.
    Update refresh-alarms script to newer style initialisation.
    Update website to reflect new default calendar name.
    Rationalise confidential event rewriting.
    Add the $c->hide_alarms functionality into DAVResource class.
    Allow LDAP sync to work if the date is reasonable and no 'format_updated' is set.
    We don't need to test for the PostgreSQL non-PDO drivers now.
    Switch out deprecated LDAP mappings before we use them anywhere.
    Add test for PHP filter module and wiki links for each test.
    External bind changes, added a clean up button, urls now show for external collections and added a few strings for translation
2012-01-28 15:50:01 +00:00

128 lines
4.1 KiB
Makefile

# $NetBSD: Makefile,v 1.12 2012/01/28 15:50:01 wiz Exp $
#
DISTNAME= davical-${DAVICAL_VERSION}
DAVICAL_VERSION=1.0.2
CATEGORIES= www
MASTER_SITES= http://debian.mcmillan.net.nz/packages/davical/
MAINTAINER= jym@NetBSD.org
HOMEPAGE= http://www.davical.org/
COMMENT= Simple CalDAV server using a PostgreSQL backend
LICENSE= gnu-gpl-v2 AND gnu-gpl-v3
PKG_DESTDIR_SUPPORT= user-destdir
DAVICALDIR= ${PREFIX}/share/davical
EGDIR= ${PREFIX}/share/examples/davical
DOCDIR= ${PREFIX}/share/doc/davical
BUILD_DEFS= APACHE_USER APACHE_GROUP PGUSER PGGROUP
# davical_dba account
DAVICAL_USER?= ${PGUSER}
DAVICAL_GROUP?= ${PGGROUP}
USE_TOOLS= pax msgfmt perl:build
PAXDIRS= htdocs inc dba po scripts
INSTALLATION_DIRS= ${DOCDIR} ${EGDIR}/config
.include "../../lang/php/phpversion.mk"
DEPENDS+= ${APACHE_PKG_PREFIX}-${PHP_PKG_PREFIX}>=5.2:../../www/ap-php
DEPENDS+= ${PHP_PKG_PREFIX}-pgsql>=4.3.1:../../databases/php-pgsql
DEPENDS+= ${PHP_PKG_PREFIX}-pdo_pgsql>=${PHP_BASE_VERS}:../../databases/php-pdo_pgsql
DEPENDS+= ${PHP_PKG_PREFIX}-libawl>=0.51:../../devel/php-libawl
DEPENDS+= p5-YAML>=0.71:../../textproc/p5-YAML
DEPENDS+= pwgen>=2.06:../../sysutils/pwgen
DEPENDS+= postgresql${PGSQL_VERSION}-client-[0-9]*:../../databases/postgresql${PGSQL_VERSION}-client
PKG_SYSCONFSUBDIR= davical
MESSAGE_SUBST+= DAVICALDIR=${DAVICALDIR:Q} DOCDIR=${DOCDIR:Q}
MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR:Q}
MESSAGE_SUBST+= HOMEPAGE=${HOMEPAGE:Q}
CONF_FILES= ${EGDIR}/davical.conf \
${PKG_SYSCONFDIR}/davical.conf
CONF_FILES_PERMS+= ${EGDIR}/config/example-administration.yml \
${PKG_SYSCONFDIR}/administration.yml \
${DAVICAL_USER} ${DAVICAL_GROUP} 0600
CONF_FILES_PERMS+= ${EGDIR}/config/example-config.php \
${PKG_SYSCONFDIR}/config.php \
${APACHE_USER} ${APACHE_GROUP} 0640
REPLACE_PERL= dba/update-davical-database
REPLACE_INTERPRETER+= php
REPLACE.php.old= .*php
REPLACE.php.new= ${PREFIX}/bin/php
REPLACE_FILES.php= scripts/cron-sync-ldap.php
REPLACE_FILES.php+= scripts/sync-remote-caldav.php
REPLACE_FILES.php+= scripts/refresh-alarms.php
REPLACE_FILES.php+= scripts/tz-update.php
SUBST_CLASSES+= conf-path
SUBST_STAGE.conf-path= pre-configure
SUBST_FILES.conf-path= inc/always.php.in dba/update-davical-database
SUBST_FILES.conf-path+= inc/davical_configuration_missing.php
SUBST_SED.conf-path+= -e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g"
SUBST_MESSAGE.conf-path=Fixing configuration path.
# See ../../devel/php-libawl/Makefile.common for the LIBAWLDIR value
SUBST_CLASSES+= inc-path
SUBST_STAGE.inc-path= pre-configure
SUBST_FILES.inc-path= davical.conf inc/always.php.in
SUBST_FILES.inc-path+= scripts/po/rebuild-translations.sh
SUBST_FILES.inc-path+= dba/create-database.sh
SUBST_SED.inc-path+= -e "s|@LIBAWLPATH@|${PREFIX}/${LIBAWLDIR}|g"
SUBST_MESSAGE.inc-path= Fixing AWL include path.
SUBST_CLASSES+= examples
SUBST_STAGE.examples= pre-configure
SUBST_FILES.examples= dba/create-database.sh
SUBST_SED.examples+= -e "s|@EGDIRCONFIG@|${EGDIR}/config|g"
SUBST_MESSAGE.examples= Fixing config examples path.
SUBST_CLASSES+= files
SUBST_STAGE.files= pre-configure
SUBST_FILES.files= davical.conf
SUBST_SED.files+= -e "s|@DAVICALDIR@|${DAVICALDIR}|g"
SUBST_MESSAGE.files= Fixing DAViCal configuration file for Apache.
post-extract:
${CP} ${FILESDIR}/davical.conf ${WRKSRC}/davical.conf
pre-install:
${FIND} ${WRKSRC} -name "*.orig" -print | ${XARGS} ${RM} -f
${FIND} ${WRKSRC}/po -name "*~" -print | ${XARGS} ${RM} -f
do-install:
${INSTALL_DATA} ${WRKSRC}/davical.conf \
${DESTDIR}${EGDIR}/davical.conf
cd ${WRKSRC}/docs && pax -rwpam . ${DESTDIR}${DOCDIR}
. for f in COPYING CREDITS ChangeLog INSTALL README TODO VERSION
cd ${WRKSRC} && \
${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${DOCDIR}
. endfor
. for d in ${PAXDIRS}
${INSTALL_DATA_DIR} ${DESTDIR}${DAVICALDIR}/${d}
cd ${WRKSRC}/${d} && pax -rwpam . ${DESTDIR}${DAVICALDIR}/${d}
. endfor
cd ${WRKSRC}/config && for f in *; do \
${INSTALL_DATA} $$f ${DESTDIR}${EGDIR}/config/$$f; \
done
.include "../../mk/pgsql.buildlink3.mk"
.include "../../devel/php-libawl/Makefile.common"
.include "../../mk/apache.mk"
.include "../../mk/bsd.pkg.mk"