2012-12-16 19:24:53 +00:00
|
|
|
# Created by: Joe Horn <joehorn@gmail.com>
|
2010-03-16 07:14:57 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= wordpress
|
2019-01-21 09:57:32 +00:00
|
|
|
DISTVERSION= 5.0.3
|
2015-06-28 08:56:39 +00:00
|
|
|
DISTVERSIONSUFFIX= -zh_CN
|
2010-03-16 07:14:57 +00:00
|
|
|
CATEGORIES= chinese www
|
2015-10-01 15:55:11 +00:00
|
|
|
MASTER_SITES= http://cn.wordpress.org/
|
2010-03-16 07:14:57 +00:00
|
|
|
PKGNAMESUFFIX= -zh_CN
|
|
|
|
|
2017-05-16 13:37:51 +00:00
|
|
|
MAINTAINER= joneum@FreeBSD.org
|
2012-12-16 19:24:53 +00:00
|
|
|
COMMENT= State-of-the-art semantic personal publishing platform
|
2010-03-16 07:14:57 +00:00
|
|
|
|
2016-01-12 16:20:31 +00:00
|
|
|
LICENSE= GPLv2+
|
2015-12-05 09:42:30 +00:00
|
|
|
LICENSE_FILE= ${WRKSRC}/license.txt
|
2010-08-19 16:17:26 +00:00
|
|
|
|
2010-03-16 07:14:57 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
2016-08-15 11:09:24 +00:00
|
|
|
USES= php:web
|
2015-12-24 15:40:39 +00:00
|
|
|
USE_PHP= curl gd mysqli pcre tokenizer xml zip
|
2015-08-31 13:32:37 +00:00
|
|
|
NO_ARCH= yes
|
2012-12-16 19:24:53 +00:00
|
|
|
NO_BUILD= yes
|
2010-03-16 07:14:57 +00:00
|
|
|
|
|
|
|
PLIST= ${WRKDIR}/pkg-plist
|
2010-08-19 16:17:26 +00:00
|
|
|
WWWDIR= ${PREFIX}/www/${PORTNAME}${PKGNAMESUFFIX}
|
2010-03-16 07:14:57 +00:00
|
|
|
|
2012-12-16 19:24:53 +00:00
|
|
|
PORTDOCS= readme.html
|
2010-03-16 07:14:57 +00:00
|
|
|
|
2012-06-30 13:14:12 +00:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2014-04-26 18:16:34 +00:00
|
|
|
SUB_FILES= pkg-message
|
2010-03-16 07:14:57 +00:00
|
|
|
|
|
|
|
pre-everything::
|
|
|
|
@${ECHO_CMD} "If you want to upgrade, you must read upgrade document."
|
|
|
|
@${ECHO_CMD} ""
|
2018-04-25 22:00:04 +00:00
|
|
|
. if !(defined(PACKAGE_BUILDING) || defined(BATCH))
|
2010-03-16 07:14:57 +00:00
|
|
|
@sleep 1
|
2018-04-25 22:00:04 +00:00
|
|
|
. endif
|
2010-03-16 07:14:57 +00:00
|
|
|
|
|
|
|
pre-install:
|
2014-04-26 18:16:34 +00:00
|
|
|
${ECHO_CMD} '@owner www' > ${PLIST}
|
|
|
|
${ECHO_CMD} '@group www' >> ${PLIST}
|
|
|
|
cd ${WRKSRC}/ && ${FIND} -s * -type f | ${SED} -e 's|^|%%WWWDIR%%/|' >> ${PLIST}
|
|
|
|
${ECHO_CMD} '@owner' >> ${PLIST}
|
|
|
|
${ECHO_CMD} '@group' >> ${PLIST}
|
2010-03-16 07:14:57 +00:00
|
|
|
if [ ! -f ${WRKSRC}/wp-config-sample.php ]; then ${CP} \
|
|
|
|
${WRKSRC}/wp-config.php.sample ${WRKSRC}/wp-config.php; fi
|
|
|
|
|
|
|
|
do-install:
|
2015-12-05 09:42:30 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${WWWDIR}/
|
2014-04-26 18:16:34 +00:00
|
|
|
${CP} -R ${WRKSRC}/ ${STAGEDIR}${WWWDIR}/
|
2016-12-01 11:18:03 +00:00
|
|
|
${FIND} ${STAGEDIR}${WWWDIR}/ -type d -exec ${CHMOD} g+w {} \;
|
2015-12-05 09:42:30 +00:00
|
|
|
|
|
|
|
do-install-DOCS-on:
|
2014-04-26 18:16:34 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}/
|
|
|
|
cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
|
2010-03-16 07:14:57 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|