d0bb05930a
Sylvio's last commit was 17 months ago, a full 5 months after all of his ports could have been reset per policy. Given the push to complete staging (48 ports are still unstaged, something like 70+ have already been staged by other committers) and given that PRs are automatically assigned but never addressed, it's better just to reset all the ports and PRs so that it's clear to others that these ports are free to maintain. Approved by: portmgr (implicit)
75 lines
2 KiB
Makefile
75 lines
2 KiB
Makefile
# Created by: Zhen REN <bg1tpt@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= phpbb
|
|
PORTVERSION= 3.0.0
|
|
PORTEPOCH= 1
|
|
CATEGORIES= www
|
|
MASTER_SITES= SF/${PORTNAME}/phpBB%203/phpBB%20${PORTVERSION}
|
|
PKGNAMESUFFIX= -devel
|
|
DISTNAME= phpBB-${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= A PHP-based bulletin board / discussion forum system
|
|
|
|
CONFLICTS= phpbb-tw-[0-9]* phpbb-[0-9]* phpbb3-[0-9]
|
|
|
|
USE_BZIP2= yes
|
|
|
|
IGNORE= please use www/phpbb3 instead.
|
|
DEPRECATED= Use www/phpbb3 instead
|
|
EXPIRATION_DATE= 2014-06-22
|
|
|
|
# The phpBB2 port supports a number of variables that may be tweaked at build
|
|
# time. Perform a "make options" to see more information on these variables.
|
|
#
|
|
WWWDOCROOT?= www
|
|
PHPBBURL?= phpBB3
|
|
#
|
|
# End of user-configurable variables.
|
|
|
|
WRKSRC= ${WRKDIR}/phpBB3
|
|
NO_BUILD= yes
|
|
SUB_FILES= pkg-message
|
|
SUB_LIST= PHPBBURL="${PHPBBURL}" \
|
|
PHPBBDIR="${PHPBBDIR}"
|
|
|
|
PLIST_SUB+= PHPBBDIR=${PHPBBDIR} WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
|
|
|
|
NO_STAGE= yes
|
|
# Set custom variables:
|
|
#
|
|
PHPBBDIR= ${WWWDOCROOT}/${PHPBBURL}
|
|
PKGOPTS= ${FILESDIR}/pkg-opts
|
|
|
|
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:
|
|
@ cd ${WRKSRC} && ${COPYTREE_SHARE} . ${PREFIX}/${PHPBBDIR} "! -name config.php"
|
|
@ [ -f ${PREFIX}/${PHPBBDIR}/config.php ] || ${TOUCH} ${PREFIX}/${PHPBBDIR}/config.php
|
|
@ ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${PHPBBDIR}
|
|
@ ${CHMOD} -R 0755 ${PREFIX}/${PHPBBDIR}
|
|
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \
|
|
${PHPBBDIR:S|^${PREFIX}/|%D/|}' >> ${TMPPLIST}
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
@ ${MKDIR} ${DOCSDIR}
|
|
@ cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${DOCSDIR}
|
|
|
|
.if !defined(BATCH)
|
|
@ ${CAT} ${PKGMESSAGE}
|
|
.endif
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|