freebsd-ports/www/davical/Makefile
Jason Helfman 07a5b42283 - Update to 1.0.2
PR:	ports/164646
Submitted by:	jgh (me)
Approved by:	maintainer
2012-02-12 21:54:27 +00:00

53 lines
1.6 KiB
Makefile

# New ports collection makefile for: davical
# Date created: Tue May 13 09:59:22 EST 2008
# Whom: Maurice Castro <maurice@castro.aus.net>
#
# $FreeBSD$
#
PORTNAME= davical
PORTVERSION= 1.0.2
CATEGORIES?= www
MASTER_SITES= http://debian.mcmillan.net.nz/packages/davical/ \
SF/rscds/${PORTNAME}/${PORTVERSION}
DISTNAME= davical-${PORTVERSION}
MAINTAINER= maurice@castro.aus.net
COMMENT= A simple CalDAV server using a postgres backend
RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI \
${SITE_PERL}/YAML.pm:${PORTSDIR}/textproc/p5-YAML \
${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg \
${LOCALBASE}/bin/pwgen:${PORTSDIR}/sysutils/pwgen \
php-libawl>=0.51:${PORTSDIR}/devel/php-libawl
NO_BUILD= yes
USE_PGSQL= yes
USE_PHP= gettext iconv pcre pdo pdo_pgsql pgsql xml
SUB_FILES= pkg-message httpd-davical.conf
do-install:
.for dirs in htdocs inc config
${MKDIR} ${WWWDIR}/${dirs}
.endfor
cd ${WRKSRC}/htdocs && ${COPYTREE_SHARE} . ${WWWDIR}/htdocs
cd ${WRKSRC}/inc && ${COPYTREE_SHARE} . ${WWWDIR}/inc "! -name *.in"
${CP} -pv ${WRKSRC}/config/example-config.php ${WWWDIR}/config/
post-install:
.if !defined(NOPORTDOCS)
.for docdirs in config docs scripts dba
${MKDIR} ${DOCSDIR}/${docdirs}
cd ${WRKSRC}/${docdirs} && ${COPYTREE_SHARE} . ${DOCSDIR}/${docdirs}
.endfor
${CP} -pv ${WRKDIR}/httpd-davical.conf ${DOCSDIR}
${CP} -pv ${WRKSRC}/README ${DOCSDIR}
${CP} -pv ${WRKSRC}/INSTALL ${DOCSDIR}
${CHMOD} a+x ${DOCSDIR}/dba/update-davical-database
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>