[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / www / davical

File: [cvs.NetBSD.org] / pkgsrc / www / davical / Makefile (download)

Revision 1.7, Thu Sep 8 20:58:58 2011 UTC (8 years, 1 month ago) by wiz
Branch: MAIN
Changes since 1.6: +3 -2 lines

Update to 0.9.9.4:

2010-12-28  Andrew McMillan  <andrew@morphoss.com>
	* Release 0.9.9.4

2010-12-27  Andrew McMillan  <andrew@morphoss.com>
	* Refactor PUT functions to set modified/created dates more correctly.

2010-12-27  Leho Kraav  <leho@kraav.com>
	* add et_EE to support locales

2010-12-26  Andrew McMillan  <andrew@morphoss.com>
	* Fix errors in po files pointed out by Transifex uploading.
	* A new AtomFeed class for building an Atom feed.
	* Switch to creating an atom feed, which is a better feed standard.

2010-12-26  Leho Kraav  <leho@kraav.com>
	* A new URL to provide an RSS feed of a calendar's changes.

2010-12-26  Andrew McMillan  <andrew@morphoss.com>
	* Refactored RRule to add support for initialisation from a vProperty.

2010-12-25  Andrew McMillan  <andrew@morphoss.com>
	* Remove all reference to PgQuery
	* Extensive refactoring of principal-edit, plus support for creating tickets.
	* Add support for writing scheduling resources on PUT.
	* Improve support for handling floating time.
	* Add cil for internal issue tracking.

2010-12-08  Andrew McMillan  <andrew@morphoss.com>
	* Cut access with invalid/expired tickets out immediately.

2010-12-07  Andrew McMillan  <andrew@morphoss.com>
	* Handle empty PROPFIND, don't blow up on invalid XML.

2010-11-30  Andrew McMillan  <andrew@morphoss.com>
	* /.well-known/* now returns a 301 redirect, per spec.
	* Use text/vcard for content type in advance of ratification of spec.
	* Properly handle addressbooks in multiget.
	* Hide authorization headers in logging.
	* Update sync-collection REPORT to match -04 of draft.
	* Replace index.php with caldav.php when we find it in our path.

2010-11-27  Andrew McMillan  <andrew@morphoss.com>
	* Be pedantic about checking user is active before we let them in.
	* Specify the SRV record examples with leading _ as they should be.

2010-11-21  Andrew McMillan  <andrew@morphoss.com>
	* Fix SQL for group handling from Michael Braun.
	* Add principal-collection-set to standard responses for DAVResource.
	* Correct typo in POST handling.

2010-11-20  Andrew McMillan  <andrew@morphoss.com>
	* Also update displayname if fullname is changed.

2010-10-02  Daniel Aleksandersen  <daniel@>
	* remove old screenshots
	* updated iPhone client configuration with new screenshots

2010-11-19  Andrew McMillan  <andrew@morphoss.com>
	* Handle stuff like DTSTART;TZID=America/New_York:20101119T231307

2010-11-14  Andrew McMillan  <andrew@morphoss.com>
	* Script to refresh calendar_alarms with next instance time.

2010-11-09  Andrew McMillan  <andrew@morphoss.com>
	* Don't let auth functions create duplicate home calendars.

2010-11-06  Andrew McMillan  <andrew@morphoss.com>
	* Patch for caldav sync from Pierre-Arnaud Poudret.
	* Add ACL to the supported methods.
	* Change regression runner to look for sample data with tests.
	* Correct version number typo.
	* Always grant 'DAV::read' privilege from principal to group members.

2010-11-05  Andrew McMillan  <andrew@morphoss.com>
	* Use expanded time specifiers in format since %Y doesn't work on Windows.
	* Support recursive REPORT query if configured to allow it.

2010-11-04  Andrew McMillan  <andrew@morphoss.com>
	* Add a new WritableCollection object which we will use for PUT.
	* Use text/vcard rather than older text/x-vcard.
	* Support event properties in changed part of sync-response.
	* Rename variable to work around Pg 9.0 reserved name.

2010-11-01  Andrew McMillan  <andrew@morphoss.com>
	* Switch from regular expression which may not work in old/odd PHP.

2010-10-31  Andrew McMillan  <andrew@morphoss.com>
	* Support getlastmodified property in REPORT requests.

2010-10-16  Andrew McMillan  <andrew@morphoss.com>
	* Fix typo in iTIP CANCEL handling.

2010-10-15  Andrew McMillan  <andrew@morphoss.com>
	* Turn on calendar-auto-schedule header if $c->enable_auto_schedule
	* Add various additional checks into /setup.php
	* Add knowledge of desired parallel AWL version to setup.

2010-10-10  Andrew McMillan  <andrew@morphoss.com>
	* Fix various minor CardDAV bugs.
	* Omit the <response> for event outside the time range - when expanded.
	* Fix privilege_to_bits function to set 'all' correctly & work with recent postgres

2010-10-08  Andrew McMillan  <andrew@morphoss.com>
	* Don't supply freebusy for 0-duration events.
	* Another regression test for free/busy catching many events.
	* Add an event with a thoroughly bogus tzid to ensure we cope.
	* Check for some supported stuff very early so we can show it is missing.
	* Better display of bindings.
	* Add postgreSQL 9.0 as a possibility.
	* Fix warning when using basic authentication fallback.
	* Fix handling of iCalendar durations containing negative elements.
	* Handle events which don't have either DTEND *or* DURATION.
	* Rewrite __construct() method of RepeatRuleDateTimeZone to be more robust.

# $NetBSD: Makefile,v 1.7 2011/09/08 20:58:58 wiz Exp $
#

DISTNAME=	davical-${DAVICAL_VERSION}
DAVICAL_VERSION=0.9.9.4
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.45:../../devel/php-libawl
DEPENDS+=	p5-DBD-postgresql>=2.16.1:../../databases/p5-DBD-postgresql
DEPENDS+=	p5-Class-DBI-Pg>=0.09:../../databases/p5-Class-DBI-Pg
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=		scripts/po/extract.pl dba/update-davical-database

REPLACE_INTERPRETER+=	php
REPLACE.php.old=	.*/bin/php
REPLACE.php.new=	${PREFIX}/bin/php
REPLACE_FILES.php=	scripts/sync-remote-caldav.php
REPLACE_FILES.php+=	scripts/refresh-alarms.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"