ad28e88e85
PR: ports/175292 Submitted by: Guillaume Bibaut <yom@iaelu.net> Also, change the WWW and MASTER_SITE to match the project's new domain name. The above PR notes some difficulty fetching the distfile, perhaps eliminating the extra redirect will help there.
66 lines
1.9 KiB
Makefile
66 lines
1.9 KiB
Makefile
# $FreeBSD$
|
|
# Created by: Adam Weinberger <adamw@FreeBSD.org>
|
|
|
|
PORTNAME= baikal
|
|
PORTVERSION= 0.2.4
|
|
PORTREVISION= 2
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://baikal-server.com/get/
|
|
DISTNAME= ${PORTNAME}-regular-${PORTVERSION}
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= adamw@FreeBSD.org
|
|
COMMENT= Lightweight CalDAV/CardDAV server
|
|
|
|
USE_PHP= ctype filter xml pdo_sqlite session mbstring dom
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-regular
|
|
NO_BUILD= yes
|
|
|
|
PLIST_SUB+= CALDB="${WWWDIR}/Specific/db/db.sqlite"
|
|
SUB_LIST+= CALDB="${WWWDIR}/Specific/db/db.sqlite"
|
|
SUB_FILES= pkg-install pkg-message
|
|
|
|
PORTDOCS= *
|
|
PORTEXAMPLES= *
|
|
|
|
.include <bsd.port.options.mk>
|
|
post-patch:
|
|
${FIND} ${WRKSRC} -type f -not -name '*.php' -exec ${CHMOD} ${SHAREMODE} {} \;
|
|
${FIND} ${WRKSRC} -type f -name '*.php' -exec ${CHMOD} ${BINMODE} {} \;
|
|
${FIND} ${WRKSRC} -type d -exec ${CHMOD} 0755 {} \;
|
|
${MV} ${WRKSRC}/Specific/db/db.sqlite \
|
|
${WRKSRC}/Specific/db/db.sqlite-dist
|
|
${CHMOD} 644 ${WRKSRC}/Specific/db/db.sqlite-dist
|
|
# I can't decide whether to include this file or forbid it.
|
|
# ${ECHO_CMD} "platypus" > ${WRKSRC}/Specific/ENABLE_INSTALL
|
|
${RM} ${WRKSRC}/Specific/ENABLE_INSTALL
|
|
${REINPLACE_CMD} -e 's,/var/www/dav.mydomain.com,${WWWDIR},g' \
|
|
${WRKSRC}/Specific/virtualhosts/baikal.*
|
|
|
|
do-install:
|
|
${MKDIR} ${WWWDIR}
|
|
.for DIR in Core html
|
|
cd ${WRKSRC} && ${FIND} ${DIR} | \
|
|
${CPIO} -pdmu -R ${BINOWN}:${BINGRP} --quiet ${WWWDIR}
|
|
.endfor
|
|
cd ${WRKSRC} && ${FIND} Specific -not -path '*/virtualhosts*' | \
|
|
${CPIO} -pdmu -R ${WWWOWN}:${WWWGRP} --quiet ${WWWDIR}
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
${MKDIR} ${DOCSDIR} ${EXAMPLESDIR}
|
|
.for f in INSTALL.md LICENSE.txt README.md TROUBLESHOOTING.md
|
|
${INSTALL_DATA} ${WRKSRC}/$f ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
.for f in apache2 nginx
|
|
${INSTALL_DATA} ${WRKSRC}/Specific/virtualhosts/baikal.$f ${EXAMPLESDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
post-install:
|
|
@${SH} ${PKGINSTALL} POST-INSTALL
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|