View | Details | Raw Unified | Return to bug 144271 | Differences between
and this patch

Collapse All | Expand All

(-)davical/Makefile (-4 / +11 lines)
Lines 6-27 Link Here
6
#
6
#
7
7
8
PORTNAME=	davical
8
PORTNAME=	davical
9
PORTVERSION=	0.9.7.6
9
PORTVERSION=	0.9.8.1
10
CATEGORIES?=	www
10
CATEGORIES?=	www
11
MASTER_SITES=	SF/rscds/${PORTNAME}/${PORTVERSION}
11
MASTER_SITES=	http://debian.mcmillan.net.nz/packages/davical/ \
12
		SF/rscds/${PORTNAME}/${PORTVERSION}
12
DISTNAME=	davical-${PORTVERSION}
13
DISTNAME=	davical-${PORTVERSION}
13
14
14
MAINTAINER=	maurice@castro.aus.net
15
MAINTAINER=	maurice@castro.aus.net
15
COMMENT=	A simple CalDAV server using a postgres backend
16
COMMENT=	A simple CalDAV server using a postgres backend
16
17
17
RUN_DEPENDS=	${LOCALBASE}/include/php/ext/pgsql:${PORTSDIR}/databases/php5-pgsql \
18
RUN_DEPENDS=	${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash \
19
		${LOCALBASE}/include/php/ext/pgsql:${PORTSDIR}/databases/php5-pgsql \
20
		${LOCALBASE}/lib/php/${PHP_EXT_DIR}/pdo.so:${PORTSDIR}/databases/php5-pdo \
21
		${LOCALBASE}/lib/php/${PHP_EXT_DIR}/pdo_pgsql.so:${PORTSDIR}/databases/php5-pdo_pgsql \
18
		${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI \
22
		${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI \
19
		${SITE_PERL}/YAML.pm:${PORTSDIR}/textproc/p5-YAML \
23
		${SITE_PERL}/YAML.pm:${PORTSDIR}/textproc/p5-YAML \
20
		${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg \
24
		${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg \
21
		${LOCALBASE}/bin/pwgen:${PORTSDIR}/sysutils/pwgen \
25
		${LOCALBASE}/bin/pwgen:${PORTSDIR}/sysutils/pwgen \
22
		php-libawl>=0.37:${PORTSDIR}/devel/php-libawl
26
		php-libawl>=0.40:${PORTSDIR}/devel/php-libawl \
27
		postgresql-client>=8.2:${PORTSDIR}/databases/postgresql${PGSQL_VER}-client
23
28
24
NO_BUILD=	yes
29
NO_BUILD=	yes
30
USE_PGSQL=	yes
25
31
26
USE_PHP=	gettext pcre xml iconv
32
USE_PHP=	gettext pcre xml iconv
27
33
Lines 30-35 Link Here
30
36
31
post-patch:
37
post-patch:
32
	${RM} ${WRKSRC}/inc/always.php.orig
38
	${RM} ${WRKSRC}/inc/always.php.orig
39
	${RM} ${WRKSRC}/dba/create-database.sh.orig
33
40
34
do-install:
41
do-install:
35
	${MKDIR} ${WWWDIR} ${WWWDIR}/htdocs ${WWWDIR}/inc ${WWWDIR}/config
42
	${MKDIR} ${WWWDIR} ${WWWDIR}/htdocs ${WWWDIR}/inc ${WWWDIR}/config
(-)davical/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (davical-0.9.7.6.tar.gz) = b03aed88995e373891bfbf01daba6110
1
MD5 (davical-0.9.8.1.tar.gz) = 91f54cc7000c35e46d2c4645e20abda9
2
SHA256 (davical-0.9.7.6.tar.gz) = 6b2519c60cc76cc4c31771ac42381d0e7c4c2cd2620872e4932ce1cd0ef8d72f
2
SHA256 (davical-0.9.8.1.tar.gz) = 2b02df5d22027f93377a8823f61e262879a5f92a0355b7331576fe3f6e0a10db
3
SIZE (davical-0.9.7.6.tar.gz) = 1753860
3
SIZE (davical-0.9.8.1.tar.gz) = 1847934
(-)davical/files/pkg-message.in (-24 / +10 lines)
Lines 1-32 Link Here
1
To complete the installation of DAViCal:
1
To complete the installation of DAViCal:
2
2
3
1. Create the database user:
3
1. Create DAViCal's database
4
4
5
	createuser -U pgsql -S --no-createdb --no-createrole general
5
       su pgsql %%DOCSDIR%%/dba/create-database.sh
6
6
7
2. Create DAViCal's database
7
2. Edit pg_hba.conf file to add the davical_app user close to the
8
top of the accounts
8
9
9
	su pgsql %%DOCSDIR%%/dba/create-database.sh
10
	local   davical     davical_app   trust
10
11
11
3. Fix permissions
12
3. Copy and edit your config file
12
13
13
	psql -U pgsql davical -c "grant all on \
14
       cp %%WWWDIR%%/config/example-config.php %%WWWDIR%%/config/config.php
14
	awl_db_revision, caldav_data, calendar_item, collection, \
15
	dav_resource, dav_resource_type, freebusy_ticket, \
16
	group_member, locks, principal, principal_type, privilege, \
17
	property, relationship, relationship_type, role_member, \
18
	roles, session, supported_locales, time_zone, tmp_password, \
19
	usr, usr_setting, dav_id_seq, dav_resource_type_resource_type_id_seq, \
20
	principal_principal_id_seq, principal_type_principal_type_id_seq, \
21
	relationship_type_rt_id_seq, roles_role_no_seq, \
22
	session_session_id_seq, usr_user_no_seq \
23
	to general;"
24
15
25
	psql -U pgsql davical -c "grant all on database davical to general;"
16
4. Enable in apache by copying the httpd-davical.conf from the
26
17
documentation directory to the Apache Include directory and restart
27
4. Copy and edit your config file 
18
Apache.
28
29
	cp %%WWWDIR%%/config/example-config.php %%WWWDIR%%/config/config.php
30
31
5. Enable in apache by copying the httpd-davical.conf from the
32
documentation directory to the Apache Include directory and restart Apache. 

Return to bug 144271