2008-01-03 01:23:05 +01:00
|
|
|
# New ports collection makefile for: phpbb3
|
|
|
|
# Date created: 20 Dec 2007
|
2007-06-06 11:41:11 +02:00
|
|
|
# Whom: Zhen REN <bg1tpt@gmail.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= phpbb
|
2011-07-14 08:42:03 +02:00
|
|
|
PORTVERSION= 3.0.9
|
2011-08-08 15:32:50 +02:00
|
|
|
PORTREVISION= 1
|
2007-06-06 11:41:11 +02:00
|
|
|
CATEGORIES= www
|
2010-03-15 03:22:39 +01:00
|
|
|
MASTER_SITES= http://www.phpbb.com/files/release/ \
|
|
|
|
http://d10xg45o6p6dbl.cloudfront.net/projects/p/phpbb/
|
2010-11-23 10:43:37 +01:00
|
|
|
DISTNAME= phpBB-${PORTVERSION}
|
2007-06-06 11:41:11 +02:00
|
|
|
|
2010-04-26 06:56:16 +02:00
|
|
|
MAINTAINER= appleboy.tw@gmail.com
|
2007-06-06 11:41:11 +02:00
|
|
|
COMMENT= A PHP-based bulletin board / discussion forum system
|
|
|
|
|
2011-08-08 15:32:50 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2008-01-07 20:25:00 +01:00
|
|
|
CONFLICTS= phpbb-tw-[0-9]* phpbb-devel-[0-9]* \
|
|
|
|
phpbb-[0-2]*
|
2007-06-06 11:41:11 +02:00
|
|
|
|
|
|
|
USE_BZIP2= yes
|
2011-08-08 15:32:50 +02:00
|
|
|
USE_PHP= yes
|
2007-06-06 11:41:11 +02:00
|
|
|
|
2011-07-14 08:42:03 +02:00
|
|
|
# The phpBB3 port supports a number of variables that may be tweaked at build
|
2007-06-06 11:41:11 +02:00
|
|
|
# time. Perform a "make options" to see more information on these variables.
|
|
|
|
#
|
|
|
|
WWWDOCROOT?= www
|
|
|
|
PHPBBURL?= phpBB3
|
|
|
|
#
|
|
|
|
# End of user-configurable variables.
|
|
|
|
|
2008-01-03 01:23:05 +01:00
|
|
|
LATEST_LINK?= phpbb3
|
2007-06-06 11:41:11 +02:00
|
|
|
WRKSRC= ${WRKDIR}/phpBB3
|
|
|
|
NO_BUILD= yes
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
SUB_LIST= PHPBBURL="${PHPBBURL}" \
|
2007-12-25 10:13:19 +01:00
|
|
|
PHPBBDIR="${PHPBBDIR}"
|
2007-06-06 11:41:11 +02:00
|
|
|
|
|
|
|
PLIST_SUB+= PHPBBDIR=${PHPBBDIR} WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
|
|
|
|
|
|
|
|
# Set custom variables:
|
|
|
|
#
|
|
|
|
PHPBBDIR= ${WWWDOCROOT}/${PHPBBURL}
|
|
|
|
PKGOPTS= ${FILESDIR}/pkg-opts
|
2010-11-23 10:43:37 +01:00
|
|
|
PORTDOCS= *
|
2007-06-06 11:41:11 +02:00
|
|
|
|
|
|
|
options:
|
|
|
|
@ ${ECHO_MSG} "===> Build options for ${PKGNAME}:"
|
|
|
|
@ ${CAT} ${PKGOPTS}
|
|
|
|
|
|
|
|
pre-everything::
|
|
|
|
.if !defined(BATCH)
|
|
|
|
@ ${TEST} -r ${PKGOPTS} && \
|
|
|
|
(${ECHO_MSG} '-------------------------------------------------------------------------'; \
|
|
|
|
${ECHO_MSG} 'Perform a "make options" to see a list of available installation options.'; \
|
|
|
|
${ECHO_MSG} '-------------------------------------------------------------------------')
|
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
2007-07-20 14:34:22 +02:00
|
|
|
@ cd ${WRKSRC} && ${COPYTREE_SHARE} . ${PREFIX}/${PHPBBDIR} "! -name config.php"
|
|
|
|
@ [ -f ${PREFIX}/${PHPBBDIR}/config.php ] || ${TOUCH} ${PREFIX}/${PHPBBDIR}/config.php
|
2007-06-06 11:41:11 +02:00
|
|
|
@ ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${PHPBBDIR}
|
2007-12-25 10:13:19 +01:00
|
|
|
@ ${CHMOD} -R 0755 ${PREFIX}/${PHPBBDIR}
|
|
|
|
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \
|
|
|
|
${PHPBBDIR:S|^${PREFIX}/|%D/|}' >> ${TMPPLIST}
|
2007-06-06 11:41:11 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@ ${MKDIR} ${DOCSDIR}
|
2007-07-20 14:34:22 +02:00
|
|
|
@ cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${DOCSDIR}
|
2007-06-06 11:41:11 +02:00
|
|
|
|
|
|
|
.if !defined(BATCH)
|
|
|
|
@ ${CAT} ${PKGMESSAGE}
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|