Tweak www/crp version 20031012
[dports.git] / www / crp / Makefile
1 # Created by: Lars Eggert <lars.eggert@gmx.net>
2 # $FreeBSD: www/crp/Makefile 340722 2014-01-22 17:00:46Z mat $
3
4 PORTNAME=       crp
5 PORTVERSION=    20031012
6 CATEGORIES=     www science
7 MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/Oct-12-2003
8 DISTNAME=       CRP
9 EXTRACT_SUFX=   .tgz
10
11 MAINTAINER=     lars.eggert@gmx.net
12 COMMENT=        Automates the process of being the program chair of a conference
13
14 USE_PHP=        yes
15 WANT_PHP_WEB=   yes
16 NO_BUILD=       yes
17
18 SPOOLDIR?=      /var/spool/conference
19
20 PKGMESSAGE=     ${WRKDIR}/pkg-message
21
22 NO_STAGE=       yes
23 post-patch:
24         @${SED} -e 's|%%WWWDIR%%|${WWWDIR}|g; s|%%DISTNAME%%|${DISTNAME}|g' \
25                 ${MASTERDIR}/pkg-message > ${PKGMESSAGE}
26
27 do-install:
28         @${MKDIR} -m 755 ${WWWDIR} ${SPOOLDIR}
29         @${CP} -R ${WRKSRC}/ ${WWWDIR}/
30         @${SED} -e 's#/var/www/html#${WWWDIR}#' \
31           ${WRKSRC}/Code/confHeader.inc > ${WWWDIR}/Code/confHeader.inc
32         @${CHOWN} -R ${WWWOWN}:${WWWGROUP} ${WWWDIR} ${SPOOLDIR}
33         @${CAT} ${PKGMESSAGE}
34
35 .include <bsd.port.mk>