1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00
freebsd-ports/www/davical/Makefile
Yuri Victorovich a40d0b6841 Changed maintainer's e-mail in 6 ports: lbdm@privacychain.ch -> lebarondemerde@privacychain.ch
PR:		226592
Submitted by:	Alexandre C. Guimarães <lbdm@privacychain.ch> (maintainer)
2018-03-14 05:13:01 +00:00

73 lines
2.1 KiB
Makefile

# Created by: Maurice Castro <maurice@castro.aus.net>
# $FreeBSD$
PORTNAME= davical
DISTVERSIONPREFIX= r
DISTVERSION= 1.1.7
CATEGORIES?= www
MAINTAINER= lebarondemerde@privacychain.ch
COMMENT= Simple CalDAV server using a postgres backend
LICENSE= GPLv2 LGPL21
LICENSE_COMB= multi
LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= p5-DBD-Pg>=0:databases/p5-DBD-Pg \
p5-DBI>=0:databases/p5-DBI \
p5-YAML>=0:textproc/p5-YAML \
php-libawl>=0.54:devel/php-libawl \
pwgen:sysutils/pwgen
USES= pgsql php shebangfix
USE_GITLAB= yes
GL_ACCOUNT= davical-project
GL_COMMIT= 05397d635c3f218b850775223aa5dd705da9f91c
USE_PHP= calendar curl gettext iconv pcre pdo pdo_pgsql pgsql xml
SHEBANG_FILES= scripts/sync-remote-caldav.php
SUB_FILES= pkg-message httpd-davical.conf
PORTDOCS= README INSTALL davical_en_user_guide.odt phpdoc.ini \
translation.rst
PORTEXAMPLES= config
NO_ARCH= yes
NO_BUILD= yes
OPTIONS_DEFINE= DOCS EXAMPLES
post-extract:
${FIND} ${WRKSRC} -name .gitignore -delete
do-install:
${MKDIR} ${STAGEDIR}${WWWDIR}/htdocs \
${STAGEDIR}${WWWDIR}/inc \
${STAGEDIR}${WWWDIR}/config \
${STAGEDIR}${DATADIR}
# 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
do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/docs && \
${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/INSTALL ${STAGEDIR}${DOCSDIR}
do-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC} && \
${COPYTREE_SHARE} config ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>