mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-08 06:48:28 +00:00
ac7f76f906
The @sample keyword got used here but it didn't work because the extension was php.sample instead of conf.sample. Fix it with @unexec and @exec tricks. By the way, the previous commit to this port and the one that should have provided this @sample fix is: PR: 191456
63 lines
1.5 KiB
Makefile
63 lines
1.5 KiB
Makefile
# Created by: Zhen REN <bg1tpt@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= phpbb
|
|
PORTVERSION= 3.0.12
|
|
PORTREVISION= 1
|
|
CATEGORIES= www
|
|
MASTER_SITES= https://www.phpbb.com/files/release/
|
|
PKGNAMESUFFIX= 3
|
|
DISTNAME= phpBB-${PORTVERSION}
|
|
|
|
MAINTAINER= coco@executive-computing.de
|
|
COMMENT= PHP-based bulletin board / discussion forum system
|
|
|
|
LICENSE= GPLv2
|
|
|
|
CONFLICTS= phpbb-tw-[0-9]* phpbb-devel-[0-9]* \
|
|
phpbb-[0-2]*
|
|
|
|
USES= tar:bzip2
|
|
USE_PHP= yes
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
WWWDOCROOT?= www
|
|
PHPBBURL?= phpBB3
|
|
|
|
WRKSRC= ${WRKDIR}/phpBB3
|
|
NO_BUILD= yes
|
|
SUB_FILES= pkg-message
|
|
SUB_LIST= PHPBBURL="${PHPBBURL}" \
|
|
PHPBBDIR="${PHPBBDIR}"
|
|
|
|
PLIST_SUB+= PHPBBDIR=${PHPBBDIR} WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
|
|
|
|
PHPBBDIR= ${WWWDOCROOT}/${PHPBBURL}
|
|
PKGOPTS= ${FILESDIR}/pkg-opts
|
|
PORTDOCS= *
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
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:
|
|
. if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
|
|
. endif
|
|
${MV} ${WRKSRC}/config.php ${WRKSRC}/config.php.sample
|
|
cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${PHPBBDIR}
|
|
|
|
.include <bsd.port.mk>
|