1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/www/davical/Makefile
Kurt Jaeger a6e485f349 www/davical: update 1.1.2 -> 1.1.5
- moved MASTER_SITE to gitlab
- Please note that there are long-standing sync issues with KDE
  Korganizer (and Kontact) clients when there are multiple clients
  syncing to the same calendar.
  For example, see https://bugs.kde.org/show_bug.cgi?id=325224

PR:		215847
Changes:	https://gitlab.com/davical-project/davical/blob/master/ChangeLog
Submitted by:	packet@nerdheim.de
2017-02-01 19:59:44 +00:00

70 lines
2.2 KiB
Makefile

# Created by: Maurice Castro <maurice@castro.aus.net>
# $FreeBSD$
PORTNAME= davical
PORTVERSION= 1.1.5
DISTVERSIONPREFIX= r
CATEGORIES?= www
MASTER_SITES= https://gitlab.com/${PORTNAME}-project/${PORTNAME}/repository/archive.tar.gz?ref=${DISTVERSIONPREFIX}${PORTVERSION}&dummy=/
MAINTAINER= ports@FreeBSD.org
COMMENT= Simple CalDAV server using a postgres backend
LICENSE= GPLv2 LGPL21
LICENSE_COMB= multi
LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= p5-DBI>=0:databases/p5-DBI \
p5-YAML>=0:textproc/p5-YAML \
p5-DBD-Pg>=0:databases/p5-DBD-Pg \
${LOCALBASE}/bin/pwgen:sysutils/pwgen \
php-libawl>=0.54:devel/php-libawl
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSIONPREFIX}${PORTVERSION}-7ccc7c449176475891ec50d5524928628df6f8d1
NO_BUILD= yes
USES= shebangfix pgsql php
USE_PHP= gettext iconv pcre pdo pdo_pgsql pgsql xml calendar
SHEBANG_FILES= scripts/sync-remote-caldav.php
SUB_FILES= pkg-message httpd-davical.conf
PORTDOCS= README INSTALL davical_en_user_guide.odt translation.rst \
phpdoc.ini
PORTEXAMPLES= config
OPTIONS_DEFINE= DOCS EXAMPLES
post-extract:
${FIND} ${WRKSRC} -name .gitignore -delete
do-install:
${MKDIR} ${STAGEDIR}${WWWDIR}/htdocs \
${STAGEDIR}${WWWDIR}/inc \
${STAGEDIR}${WWWDIR}/config \
${STAGEDIR}${EXAMPLESDIR} \
${STAGEDIR}${DATADIR} \
${STAGEDIR}${DOCSDIR}
# WWWDIR
(cd ${WRKSRC}/htdocs && \
${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}/htdocs)
(cd ${WRKSRC}/inc && ${COPYTREE_SHARE} . \
${STAGEDIR}${WWWDIR}/inc "! -name always.php.in")
${INSTALL_DATA} ${WRKSRC}/config/example-config.php \
${STAGEDIR}${WWWDIR}/config/config.php.sample
# DATADIR
(cd ${WRKSRC} && ${COPYTREE_SHARE} scripts ${STAGEDIR}${DATADIR})
(cd ${WRKSRC} && ${COPYTREE_SHARE} dba ${STAGEDIR}${DATADIR} \
"! -name update-davical-database")
${INSTALL_DATA} ${WRKDIR}/httpd-davical.conf ${STAGEDIR}${DATADIR}
${INSTALL_SCRIPT} ${WRKSRC}/dba/update-davical-database \
${STAGEDIR}${DATADIR}/dba
# DOCSDIR
(cd ${WRKSRC}/docs && \
${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/INSTALL ${STAGEDIR}${DOCSDIR}
# EXAMPLESDIR
(cd ${WRKSRC} && \
${COPYTREE_SHARE} config ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>