1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/chinese/wordpress-zh_TW/Makefile
Sunpoet Po-Chuan Hsieh 20eae52a4e - Update to 3.9.1
Changes:	http://tw.wordpress.org/2014/05/09/wordpress-3-9-1/
PR:		ports/189524
Submitted by:	Joe Horn <joehorn@gmail.com> (maintainer)
2014-05-10 17:34:35 +00:00

55 lines
1.5 KiB
Makefile

# Created by: Joe Horn <joehorn@gmail.com>
# $FreeBSD$
PORTNAME= wordpress
PORTVERSION= 3.9.1
CATEGORIES= chinese www
MASTER_SITES= http://tw.wordpress.org/ \
http://mirror.joehorn.idv.tw/wordpress/
PKGNAMESUFFIX= -zh_TW
DISTNAME= ${PORTNAME}-${PORTVERSION}${PKGNAMESUFFIX}
MAINTAINER= joehorn@gmail.com
COMMENT= State-of-the-art semantic personal publishing platform
LICENSE= GPLv2
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_PHP= curl gd mysql pcre tokenizer xml zip
NO_BUILD= yes
WANT_PHP_WEB= yes
PLIST= ${WRKDIR}/pkg-plist
WWWDIR= ${PREFIX}/www/${PORTNAME}${PKGNAMESUFFIX}
PORTDOCS= readme.html
OPTIONS_DEFINE= DOCS
SUB_FILES= pkg-message
pre-everything::
@${ECHO_CMD} "If you want to upgrade, you must read upgrade document."
@${ECHO_CMD} ""
@sleep 1
pre-install:
${ECHO_CMD} '@owner www' > ${PLIST}
${ECHO_CMD} '@group www' >> ${PLIST}
cd ${WRKSRC}/ && ${FIND} -s * -type f | ${SED} -e 's|^|%%WWWDIR%%/|' >> ${PLIST}
cd ${WRKSRC}/ && ${FIND} -d . -type d | ${SED} -e 's|^\.|@dirrm %%WWWDIR%%|' >> ${PLIST}
${ECHO_CMD} '@owner' >> ${PLIST}
${ECHO_CMD} '@group' >> ${PLIST}
if [ ! -f ${WRKSRC}/wp-config-sample.php ]; then ${CP} \
${WRKSRC}/wp-config.php.sample ${WRKSRC}/wp-config.php; fi
do-install:
${INSTALL} -d -m 755 ${STAGEDIR}${WWWDIR}/
${CP} -R ${WRKSRC}/ ${STAGEDIR}${WWWDIR}/
${FIND} ${STAGEDIR}${WWWDIR}/ -type d -exec ${CHMOD} g+w '{}' \;
${MKDIR} ${STAGEDIR}${DOCSDIR}/
cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>