aboutsummaryrefslogtreecommitdiffstats
path: root/devel/websvn/Makefile
blob: 599a9a4480d8f4b90fd73927b5d482d9d6379600 (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
42
43
# New ports collection makefile for:    websvn
# Date created:             11 May 2004
# Whom:                 Yuan-Chung Hsiao (ychsiao@ychsiao.idv.tw)
#
# $FreeBSD$
#

PORTNAME=   websvn
PORTVERSION=    2.0
CATEGORIES= devel www
MASTER_SITES=   http://websvn.tigris.org/files/documents/1380/39378/

MAINTAINER= ychsiao@ychsiao.org
COMMENT=    Subversion repository web frontend

USE_PHP=    iconv pcre xml
NO_BUILD=   yes

WEBSVNDIR?= www/data/websvn
PLIST=      ${WRKDIR}/pkg-plist

SUB_FILES=  pkg-message
SUB_LIST+=  WEBSVNDIR="${WEBSVNDIR}"

pre-install:
    @cd ${WRKSRC} && ${RMDIR} temp www
    @cd ${WRKSRC} && ${FIND} -s * -type f | \
        ${SED} -e 's|^|${WEBSVNDIR}/|' > ${PLIST} \
        && ${FIND} -d * -type d | \
        ${SED} -e 's|^|@dirrm ${WEBSVNDIR}/|' >> ${PLIST} \
        && ${ECHO_CMD} @dirrm ${WEBSVNDIR} >> ${PLIST} \
        && ${ECHO_CMD} @dirrmtry www/data >> ${PLIST}

do-install:
    ${MKDIR} ${PREFIX}/${WEBSVNDIR}
    ${CP} -R ${WRKSRC}/* ${PREFIX}/${WEBSVNDIR}
    ${CHOWN} -R www:www ${PREFIX}/${WEBSVNDIR}
    ${FIND} ${PREFIX}/${WEBSVNDIR} -type f | ${XARGS} ${CHMOD} 644

post-install:
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>