pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/davical Add davical.
details: https://anonhg.NetBSD.org/pkgsrc/rev/edd8165640ae
branches: trunk
changeset: 575817:edd8165640ae
user: jym <jym%pkgsrc.org@localhost>
date: Sun May 23 21:36:30 2010 +0000
description:
Add davical.
DAViCal is a server for calendar sharing. It is an implementation of the
CalDAV protocol which is designed for storing calendaring resources (in
iCalendar format) on a remote shared server.
DAViCal supports basic delegation of read/write access among calendar users,
multiple users (or clients) reading and writing the same calendar entries over
time, and scheduling of meetings with free/busy time displayed.
An increasing number of calendar clients support the maintenance of shared
remote calendars through CalDAV, including Evolution, Mulberry, Chandler,
Mozilla Calendar (Sunbird/Lightning), and various other closed-source
products such as Apple's iCal and iPhone.
diffstat:
www/davical/DESCR | 12 +
www/davical/MESSAGE | 63 +++++++
www/davical/Makefile | 130 +++++++++++++++
www/davical/PLIST | 346 +++++++++++++++++++++++++++++++++++++++++
www/davical/distinfo | 10 +
www/davical/files/davical.conf | 24 ++
www/davical/patches/patch-aa | 22 ++
www/davical/patches/patch-ab | 29 +++
www/davical/patches/patch-ac | 13 +
www/davical/patches/patch-ad | 13 +
www/davical/patches/patch-ae | 13 +
11 files changed, 675 insertions(+), 0 deletions(-)
diffs (truncated from 719 to 300 lines):
diff -r e06b1eac1041 -r edd8165640ae www/davical/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/davical/DESCR Sun May 23 21:36:30 2010 +0000
@@ -0,0 +1,12 @@
+DAViCal is a server for calendar sharing. It is an implementation of the
+CalDAV protocol which is designed for storing calendaring resources (in
+iCalendar format) on a remote shared server.
+
+DAViCal supports basic delegation of read/write access among calendar users,
+multiple users (or clients) reading and writing the same calendar entries over
+time, and scheduling of meetings with free/busy time displayed.
+
+An increasing number of calendar clients support the maintenance of shared
+remote calendars through CalDAV, including Evolution, Mulberry, Chandler,
+Mozilla Calendar (Sunbird/Lightning), and various other closed-source
+products such as Apple's iCal and iPhone.
diff -r e06b1eac1041 -r edd8165640ae www/davical/MESSAGE
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/davical/MESSAGE Sun May 23 21:36:30 2010 +0000
@@ -0,0 +1,63 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2010/05/23 21:36:30 jym Exp $
+
+For pkgsrc installations, DAViCal's package is installed in non-default
+locations:
+
+ Document root: ${DAVICALDIR}/htdocs
+ Configuration file: ${PKG_SYSCONFDIR}/config.php
+
+To complete the installation of DAViCal, follow these steps:
+
+1. Create DAViCal's app (application) and dba (database admin) acounts:
+
+ $ su pgsql
+ $ createuser -D -R -S --pwprompt davical_app
+ <enter davical_app passwd>
+ $ createuser -D -R -S --pwprompt davical_dba
+ <enter davical_dba passwd>
+
+2. Edit pg_hba.conf file to add the davical_dba and davical_app users
+
+ local davical davical_app md5
+ local davical davical_dba md5
+
+ then restart pgsql.
+
+3. Create DAViCal's database
+
+ su pgsql ${DAVICALDIR}/dba/create-database.sh
+
+ The script will output the password of 'admin' account for DAViCal.
+ Keep it in mind, it will be used at step 6.
+
+4. Adapt DAViCal configuration file to your setup:
+
+ ${PKG_SYSCONFDIR}/config.php
+
+ Look for 'pg_connect', 'system_name', 'admin_email', and 'default_locale'.
+
+5. You will need to make DAViCal accessible through your HTTP server.
+ If you are running Apache and ap-php, you can use the following file:
+
+ ${PKG_SYSCONFDIR}/davical.conf
+
+ and add an Include directive directly within Apache configuration:
+
+ Include ${PKG_SYSCONFDIR}/davical.conf
+
+ then restart Apache.
+
+6. You should now be able to access DAViCal through the URL configured
+ within DAViCal's configuration file. At login page, enter the following
+ credentials:
+
+ Login: admin
+ Password: <the one obtained in step 3.>
+
+ Validate, then follow the steps to create user accounts. See DAViCal
+ online documentation for further information:
+
+ http://www.davical.org/
+
+===========================================================================
diff -r e06b1eac1041 -r edd8165640ae www/davical/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/davical/Makefile Sun May 23 21:36:30 2010 +0000
@@ -0,0 +1,130 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/05/23 21:36:30 jym Exp $
+#
+
+DISTNAME= davical-${DAVICAL_VERSION}
+DAVICAL_VERSION=0.9.9
+CATEGORIES= www
+MASTER_SITES= http://debian.mcmillan.net.nz/packages/davical/
+
+MAINTAINER= jym%NetBSD.org@localhost
+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
+
+DAVICAL_USER?= ${APACHE_USER}
+DAVICAL_GROUP?= ${APACHE_GROUP}
+
+USE_TOOLS= pax msgfmt perl:build
+
+PAXDIRS= htdocs inc dba po scripts
+
+INSTALLATION_DIRS= ${DOCDIR} ${EGDIR}/config
+
+.include "../../lang/php/phpversion.mk"
+
+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.42:../../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
+PKG_SYSCONFDIR_PERMS= ${DAVICAL_USER} ${DAVICAL_GROUP} 0700
+
+MESSAGE_SUBST+= DAVICALDIR=${DAVICALDIR:Q} DOCDIR=${DOCDIR:Q}
+MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR:Q}
+
+CONF_FILES= ${EGDIR}/davical.conf \
+ ${PKG_SYSCONFDIR}/davical.conf
+
+CONF_FILES+= ${EGDIR}/config/example-administration.yml \
+ ${PKG_SYSCONFDIR}/administration.yml
+
+CONF_FILES_PERMS+= ${EGDIR}/config/example-config.php \
+ ${PKG_SYSCONFDIR}/config.php \
+ ${DAVICAL_USER} ${DAVICAL_GROUP} 0640
+
+REPLACE_INTERPRETER+= perl
+REPLACE.perl.old= .*/bin/perl
+REPLACE.perl.new= ${PREFIX}/bin/perl
+REPLACE_FILES.perl= scripts/po/extract.pl
+
+REPLACE_INTERPRETER+= php
+REPLACE.php.old= .*/bin/php
+REPLACE.php.new= ${PREFIX}/bin/php
+REPLACE_FILES.php= scripts/sync-remote-caldav.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}
+. endfor
+
+. for d in ${PAXDIRS}
+ 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"
diff -r e06b1eac1041 -r edd8165640ae www/davical/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/davical/PLIST Sun May 23 21:36:30 2010 +0000
@@ -0,0 +1,346 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2010/05/23 21:36:30 jym Exp $
+share/davical/dba/appuser_permissions.txt
+share/davical/dba/base-data.sql
+share/davical/dba/better_perms.sql
+share/davical/dba/caldav_functions.sql
+share/davical/dba/create-database.sh
+share/davical/dba/davical.sql
+share/davical/dba/patches/1.1.10.sql
+share/davical/dba/patches/1.1.11.sql
+share/davical/dba/patches/1.1.11a.sql
+share/davical/dba/patches/1.1.12.sql
+share/davical/dba/patches/1.1.12a.sql
+share/davical/dba/patches/1.1.2.sql
+share/davical/dba/patches/1.1.3.sql
+share/davical/dba/patches/1.1.4.sql
+share/davical/dba/patches/1.1.5.sql
+share/davical/dba/patches/1.1.6.sql
+share/davical/dba/patches/1.1.7.sql
+share/davical/dba/patches/1.1.8.sql
+share/davical/dba/patches/1.1.9.sql
+share/davical/dba/patches/1.2.1.sql
+share/davical/dba/patches/1.2.1a.sql
+share/davical/dba/patches/1.2.1b.sql
+share/davical/dba/patches/1.2.2.sql
+share/davical/dba/patches/1.2.3.sql
+share/davical/dba/patches/1.2.3a.sql
+share/davical/dba/patches/1.2.4.sql
+share/davical/dba/patches/1.2.5.sql
+share/davical/dba/patches/1.2.6.sql
+share/davical/dba/patches/1.2.7.sql
+share/davical/dba/patches/1.2.8.sql
+share/davical/dba/rrule_functions-8.1.sql
+share/davical/dba/rrule_functions.sql
+share/davical/dba/rrule_tests.sql
+share/davical/dba/sample-data.sql
+share/davical/dba/supported_locales.sql
+share/davical/dba/update-davical-database
+share/davical/dba/views/dav_principal.sql
+share/davical/dba/windows/awl-tables.sql
+share/davical/dba/windows/create-database.bat
+share/davical/dba/windows/rscds.sql
+share/davical/dba/windows/schema-management.sql
+share/davical/htdocs/.htaccess
+share/davical/htdocs/admin.php
+share/davical/htdocs/always.php
+share/davical/htdocs/caldav.php
+share/davical/htdocs/css/browse.css
+share/davical/htdocs/css/edit.css
+share/davical/htdocs/davical.css
+share/davical/htdocs/freebusy.php
+share/davical/htdocs/help.php
+share/davical/htdocs/images/down.gif
+share/davical/htdocs/images/up.gif
+share/davical/htdocs/index.php
+share/davical/htdocs/js/browse.js
+share/davical/htdocs/public.php
+share/davical/htdocs/setup.php
+share/davical/htdocs/tools.php
+share/davical/htdocs/upgrade.php
+share/davical/inc/AwlDBDialect.php
+share/davical/inc/AwlDatabase.php
+share/davical/inc/AwlQuery.php
+share/davical/inc/CalDAVPrincipal.php
+share/davical/inc/CalDAVRequest.php
+share/davical/inc/DAVResource.php
+share/davical/inc/DAViCalSession.php
+share/davical/inc/HTTPAuthSession.php
+share/davical/inc/PublicSession.php
+share/davical/inc/RRule-v2.php
+share/davical/inc/RRule.php
+share/davical/inc/always.php.in
+share/davical/inc/auth-functions.php
+share/davical/inc/caldav-ACL.php
+share/davical/inc/caldav-DELETE.php
+share/davical/inc/caldav-GET.php
+share/davical/inc/caldav-LOCK.php
+share/davical/inc/caldav-MKCOL.php
+share/davical/inc/caldav-MOVE.php
+share/davical/inc/caldav-OPTIONS.php
Home |
Main Index |
Thread Index |
Old Index