aboutsummaryrefslogtreecommitdiffstats
path: root/www/chems/Makefile
blob: 37af4edf8120befeb6f11b086ac855f61bd0e471 (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
# Created by: Martin Wilke <miwi@FreeBSD.org>
# $FreeBSD$

PORTNAME=   chems
DISTVERSION=    0x04
CATEGORIES= www
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/0x04

MAINTAINER= miwi@FreeBSD.org
COMMENT=    The geekest content helper management system

NO_BUILD=   yes
USE_ZIP=    yes
USE_PHP=    xml iconv gd
SUB_FILES=  pkg-message
WWWDIR?=    ${PREFIX}/www/${PORTNAME}

do-install:
    @${MKDIR} ${STAGEDIR}${WWWDIR}
    ${CP} -R ${WRKSRC}/ ${STAGEDIR}${WWWDIR}
    ${TOUCH} ${STAGEDIR}${WWWDIR}/usr/config.php
    @${CHOWN} ${WWWOWN} ${STAGEDIR}${WWWDIR}/usr/config.php

create-plist:
    @${FIND} -s ${WRKSRC}/${file} -not -type d \
        | ${SED} -e 's,^${WRKSRC},%%WWWDIR%%,' > ${PLIST}
    @${ECHO_CMD} '@exec touch %D/%%WWWDIR%%/usr/config.php;chown ${WWWOWN} %D/%%WWWDIR%%/usr/config.php' >> ${PLIST}
    @${ECHO_CMD} '@unexec if [ ! -s %D/%%WWWDIR%%/usr/config.php ];then rm -f %D/%%WWWDIR%%/usr/config.php;fi' >> ${PLIST}
    @${FIND} -ds ${WRKSRC}/${file} -type d \
    | ${SED} -e 's,^${WRKSRC},@dirrm %%WWWDIR%%,' >> ${PLIST}

.include <bsd.port.mk>