diff --git a/chinese/phpbb-tw/Makefile b/chinese/phpbb-tw/Makefile index 21418257f8d9..65d63ba46133 100644 --- a/chinese/phpbb-tw/Makefile +++ b/chinese/phpbb-tw/Makefile @@ -1,95 +1,98 @@ PORTNAME= phpbb PORTVERSION= 2.0.23 CATEGORIES= chinese www MASTER_SITES= LOCAL/chinsan/php/ \ http://freebsd.ee.ccu.edu.tw/ PKGNAMESUFFIX= -tw DISTNAME= phpBB-tw-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= The Traditional Chinese version of phpBB WWW= https://www.phpbb.com/ LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/docs/COPYING +DEPRECATED= Last upstream was released in 2008 use chinese/phpbb3 +EXPIRATION_DATE= 2024-02-29 + RUN_DEPENDS= ${LOCALBASE}/share/pear/System.php:devel/pear@${PHP_FLAVOR} CONFLICTS_INSTALL= phpbb phpbb3 zh-phpbb3-tw # share/doc/phpbb/AUTHORS share/doc/phpbb/CHANGELOG.html USES= dos2unix php IGNORE_WITH_PHP= 82 83 # Get HOSTNAME .if exists(/sbin/sysctl) HOSTNAME!= /sbin/sysctl -n kern.hostname .else HOSTNAME!= /usr/sbin/sysctl -n kern.hostname .endif # 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 PHPBB_URL?= phpBB2 # # End of user-configurable variables. # Set/override/append to variables from bsd.port.mk: # WRKSRC= ${WRKDIR}/phpBB2 NO_BUILD= yes NO_ARCH= yes SUB_FILES= pkg-message SUB_LIST= PHPBB_URL="${PHPBB_URL}" \ PHPBBDIR="${PHPBBDIR}" \ HOSTNAME="${HOSTNAME}" \ DELETEFILES="${EXCEPTFILES}" PHPBB_VER= ${PORTVERSION:S/.//g:S/.//g} PLIST_SUB+= PHPBBDIR=${PHPBBDIR} WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} PLIST_SUB+= PHPBB_VER=${PHPBB_VER} # Set custom variables: # PHPBBDIR= ${WWWDOCROOT}/${PHPBB_URL} PKGOPTS= ${FILESDIR}/pkg-opts EXCEPTFILES= ${STAGEDIR}${PREFIX}/${PHPBBDIR}/install/install.php \ ${STAGEDIR}${PREFIX}/${PHPBBDIR}/install/upgrade.php \ ${STAGEDIR}${PREFIX}/${PHPBBDIR}/install/update_to_latest.php OPTIONS_DEFINE= DOCS 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 post-patch: @ ${REINPLACE_CMD} -e "s#\.\./templates#/${PHPBB_URL}/templates#" \ ${WRKSRC}/docs/*.html @${RM} `${FIND} ${WRKSRC} -name '*.orig'` do-install: @ ${MKDIR} -m 0775 ${STAGEDIR}${PREFIX}/${PHPBBDIR} @ cd ${WRKSRC} && ${FIND} * \( -name config.php \ ${EXCEPTFILES:S/^/-o -name /} \ -o -name docs -a -prune -o -name contrib -a -prune \) -o -print \ | ${TAR} cTf - - | ${TAR} xUCf ${STAGEDIR}${PREFIX}/${PHPBBDIR} - @ ${TOUCH} ${STAGEDIR}${PREFIX}/${PHPBBDIR}/config.php @ ${MKDIR} ${STAGEDIR}${DATADIR}/contrib @ cd ${WRKSRC} && ${INSTALL_DATA} ${EXCEPTFILES} ${STAGEDIR}${DATADIR} @ cd ${WRKSRC}/contrib && ${INSTALL_DATA} * ${STAGEDIR}${DATADIR}/contrib # @ cd ${DATADIR} && ${INSTALL} -c -o ${WWWOWN} -g ${WWWGRP} \ # ${EXCEPTFILES} ${PREFIX}/${PHPBBDIR} @ ${MKDIR} ${STAGEDIR}${DOCSDIR} @ cd ${WRKSRC}/docs && ${FIND} * -type f -maxdepth 0 \! -name \*.bak \ \! -name COPYING -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR} \; .include diff --git a/www/phpbb/Makefile b/www/phpbb/Makefile index 7f810f1931cb..1621f25565e7 100644 --- a/www/phpbb/Makefile +++ b/www/phpbb/Makefile @@ -1,83 +1,86 @@ PORTNAME= phpbb PORTVERSION= 2.0.23 CATEGORIES= www MASTER_SITES= SF/${PORTNAME}/phpBB%202/phpBB%20v${PORTVERSION} DISTNAME= phpBB-${PORTVERSION} MAINTAINER= liukang@cn.freebsd.org COMMENT= PHP-based bulletin board / discussion forum system WWW= https://www.phpbb.com/ LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/docs/COPYING +DEPRECATED= Last upstream was released in 2008 use www/phpbb3 +EXPIRATION_DATE= 2024-02-29 + RUN_DEPENDS= ${LOCALBASE}/share/pear/System.php:devel/pear@${PHP_FLAVOR} CONFLICTS= phpbb-tw USES= cpe tar:bzip2 php IGNORE_WITH_PHP= 82 83 # 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?= phpBB2 # # End of user-configurable variables. # Set/override/append to variables from bsd.port.mk: # WRKSRC= ${WRKDIR}/phpBB2 NO_BUILD= yes NO_ARCH= yes SUB_FILES= pkg-message SUB_LIST= PHPBBURL="${PHPBBURL}" \ PHPBBDIR="${PHPBBDIR}" \ DELETEFILES="${EXCEPTFILES:S,${STAGEDIR},,g}" PHPBB_VER= ${PORTVERSION:S/.//g:S/.//g} PLIST_SUB+= PHPBBDIR=${PHPBBDIR} WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} PLIST_SUB+= PHPBB_VER=${PHPBB_VER} # Set custom variables: # PHPBBDIR= ${WWWDOCROOT}/${PHPBBURL} PKGOPTS= ${FILESDIR}/pkg-opts EXCEPTFILES= ${STAGEDIR}${PREFIX}/${PHPBBDIR}/install/install.php \ ${STAGEDIR}${PREFIX}/${PHPBBDIR}/install/upgrade.php \ ${STAGEDIR}${PREFIX}/${PHPBBDIR}/install/update_to_latest.php OPTIONS_DEFINE= DOCS 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 post-patch: @ ${REINPLACE_CMD} -e "s#\.\./templates#/${PHPBBURL}/templates#" \ ${WRKSRC}/docs/*.html @${FIND} ${WRKSRC} -name '*.orig' -or -name '*.bak' -delete do-install: @${MKDIR} -m 0775 ${STAGEDIR}${PREFIX}/${PHPBBDIR} @cd ${WRKSRC} && ${FIND} * \( -name config.php \ ${EXCEPTFILES:S/^/-o -name /} \ -o -name docs -a -prune -o -name contrib -a -prune \) -o -print \ | ${TAR} cTf - - | ${TAR} xUCf ${STAGEDIR}${PREFIX}/${PHPBBDIR} - @${INSTALL_DATA} ${WRKSRC}/config.php ${STAGEDIR}${PREFIX}/${PHPBBDIR}/config.php.example @${MKDIR} ${STAGEDIR}${DATADIR}/contrib @cd ${WRKSRC} && ${INSTALL_DATA} ${EXCEPTFILES} ${STAGEDIR}${DATADIR} @cd ${WRKSRC}/contrib && ${INSTALL_DATA} * ${STAGEDIR}${DATADIR}/contrib @${MKDIR} ${STAGEDIR}${DOCSDIR} @cd ${WRKSRC}/docs && ${FIND} * -type f -maxdepth 0 \ \! -name COPYING -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR} \; .include