mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
6d440a7e3d
from other bulletin boards into the forum package it is today. Therefore, it is a professional and efficient discussion board, developed by an active team of developers. The MyBB history has been recorded and is available for the interested to read. You can also read more about the MyBB team and why they develop MyBB in their spare time. We also like to highlight the most active and contributing fansites of the MyBB community. WWW: http://mybboard.net/
43 lines
1.2 KiB
Makefile
43 lines
1.2 KiB
Makefile
# New ports collection makefile for: www/mybb
|
|
# Date created: 2008-09-15
|
|
# Whom: Martin Wilke <miwi@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= mybb
|
|
PORTVERSION= 1.4.4
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://www.mybboard.net/download/latest/
|
|
DISTNAME= ${PORTNAME}_1404
|
|
|
|
MAINTAINER= miwi@FreeBSD.org
|
|
COMMENT= A PHP-based bulletin board / discussion forum system
|
|
|
|
NO_BUILD= yes
|
|
USE_ZIP= yes
|
|
USE_PHP= xsl mysql iconv gd xml
|
|
USE_MYSQL= yes
|
|
WRKSRC= ${WRKDIR}/Upload/
|
|
SUB_FILES= pkg-message
|
|
WWWDIR?= ${PREFIX}/www/${PORTNAME}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
do-install:
|
|
@${MKDIR} ${WWWDIR}
|
|
${CP} -R ${WRKSRC}/ ${WWWDIR}
|
|
${TOUCH} ${WWWDIR}/inc/config.php
|
|
@${CHOWN} ${WWWOWN} ${WWWDIR}/inc/config.php
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
create-plist:
|
|
@${FIND} -s ${WRKSRC}/${file} -not -type d \
|
|
| ${SED} -e 's,^${WRKSRC},%%WWWDIR%%,' > ${PLIST}
|
|
@${ECHO_CMD} '@exec touch %D/%%WWWDIR%%/inc/config.php;chown ${WWWOWN} %D/%%WWWDIR%%/inc/config.php' >> ${PLIST}
|
|
@${ECHO_CMD} '@unexec if [ ! -s %D/%%WWWDIR%%/inc/config.php ];then rm -f %D/%%WWWDIR%%/inc/config.php;fi' >> ${PLIST}
|
|
@${FIND} -ds ${WRKSRC}/${file} -type d \
|
|
| ${SED} -e 's,^${WRKSRC},@dirrm %%WWWDIR%%,' >> ${PLIST}
|
|
|
|
.include <bsd.port.post.mk>
|