mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
39 lines
942 B
Makefile
39 lines
942 B
Makefile
# Created by: Sylvio Cesar <sylvio@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= lionwiki
|
|
PORTVERSION= 3.2.7
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://lionwiki.0o.cz/download/${PORTVERSION}/
|
|
|
|
MAINTAINER= sylvio@FreeBSD.org
|
|
COMMENT= Minimalis wiki, extensible, templatable and file based
|
|
|
|
USE_PHP= session ctype
|
|
|
|
#NO_WRKSUBDIR= yes
|
|
NO_BUILD= yes
|
|
ROOTFILES= config.php index.php
|
|
ROOTDIRS= lang plugins templates var
|
|
SUB_FILES= pkg-message
|
|
|
|
NO_STAGE= yes
|
|
post-patch:
|
|
(cd ${WRKSRC} && ${MV} config.php config.php.sample)
|
|
|
|
do-install:
|
|
${MKDIR} ${WWWDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/config.php.sample ${WWWDIR}/
|
|
if [ ! -f ${WWWDIR}/config.php ]; then \
|
|
${CP} -p ${WWWDIR}/config.php.sample ${WWWDIR}/config.php; \
|
|
fi
|
|
${INSTALL_DATA} ${WRKSRC}/index.php ${WWWDIR}/
|
|
.for dirs in ${ROOTDIRS}
|
|
(cd ${WRKSRC} && ${COPYTREE_SHARE} ${dirs} ${WWWDIR}/ )
|
|
.endfor
|
|
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
|
|
|
|
post-install:
|
|
${CAT} ${PKGMESSAGE}
|
|
.include <bsd.port.mk>
|