43 lines
945 B
Makefile
43 lines
945 B
Makefile
# New ports collection makefile for: xoops
|
|
# Date created: 02/08/2008
|
|
# Whom: Wen heping <wenheping@gmail.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= xoops
|
|
PORTVERSION= 2.5.1
|
|
CATEGORIES= www
|
|
MASTER_SITES= SF/${PORTNAME}/XOOPS%20Core%20%28stable%20releases%29/XOOPS%20${PORTVERSION}
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}a
|
|
|
|
MAINTAINER= wen@FreeBSD.org
|
|
COMMENT= A Dynamic Web CMS
|
|
|
|
USE_PHP= mysql
|
|
|
|
NO_BUILD= yes
|
|
SUB_FILES= pkg-message
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
do-install:
|
|
${MKDIR} ${WWWDIR}
|
|
.for i in checksum.md5 checksum.php
|
|
@cd ${WRKSRC} && ${CP} ${i} ${WWWDIR}/
|
|
.endfor
|
|
.for d in docs extras htdocs
|
|
@cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${WWWDIR}
|
|
.endfor
|
|
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
|
|
@${CHMOD} -R 755 ${WWWDIR}
|
|
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' \
|
|
>> ${TMPPLIST}
|
|
@${ECHO_CMD} '@exec ${CHMOD} -R 755 ${WWWDIR}' \
|
|
>> ${TMPPLIST}
|
|
|
|
post-install:
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|