aboutsummaryrefslogtreecommitdiffstats
path: root/www/lionwiki/Makefile
blob: 69126da8a714034c13991798319f26d37c0e2f24 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# New ports collection makefile for:    lionwiki
# Date created:     2009-10-07
# Whom:         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

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>