aboutsummaryrefslogtreecommitdiff
path: root/chinese
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2014-04-26 18:16:34 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2014-04-26 18:16:34 +0000
commit9ba0d068fedb9e82509bf22051431e92c44a8e2d (patch)
tree2808c0e22580c4928b4e6b16d977e8f84731ade6 /chinese
parentd25745fe4f0fb2ab0bef9182d04da6636a1516cd (diff)
downloadports-9ba0d068fedb9e82509bf22051431e92c44a8e2d.tar.gz
ports-9ba0d068fedb9e82509bf22051431e92c44a8e2d.zip
Notes
Diffstat (limited to 'chinese')
-rw-r--r--chinese/wordpress-zh_CN/Makefile34
-rw-r--r--chinese/wordpress-zh_CN/distinfo4
2 files changed, 15 insertions, 23 deletions
diff --git a/chinese/wordpress-zh_CN/Makefile b/chinese/wordpress-zh_CN/Makefile
index a5378bd136f1..44b635471d49 100644
--- a/chinese/wordpress-zh_CN/Makefile
+++ b/chinese/wordpress-zh_CN/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= wordpress
-PORTVERSION= 3.8.1
+PORTVERSION= 3.9
CATEGORIES= chinese www
MASTER_SITES= http://cn.wordpress.org/ \
http://mirror.joehorn.idv.tw/wordpress/
@@ -27,8 +27,7 @@ PORTDOCS= readme.html
OPTIONS_DEFINE= DOCS
-SUB_FILES+= pkg-message
-SUB_LISTS+= WWWDIR=${WWWDIR}
+SUB_FILES= pkg-message
pre-everything::
@${ECHO_CMD} "If you want to upgrade, you must read upgrade document."
@@ -36,27 +35,20 @@ pre-everything::
@sleep 1
pre-install:
- cd ${WRKSRC} && ${FIND} -s * -type f | \
- ${SED} -e 's|^|${WWWDIR:S|${PREFIX}/||}/|' > ${PLIST} \
- && ${FIND} -d * -type d | \
- ${SED} -e 's|^|@dirrm ${WWWDIR:S|${PREFIX}/||}/|' >> ${PLIST} \
- && ${ECHO_CMD} @dirrm ${WWWDIR:S|${PREFIX}/||} >> ${PLIST}
+ ${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
-.include <bsd.port.options.mk>
-
do-install:
- @${MKDIR} ${STAGEDIR}${WWWDIR}
- @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}
- @${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' \
- >> ${TMPPLIST}
- @${CHMOD} -R 755 ${STAGEDIR}${WWWDIR}
- @${ECHO_CMD} '@exec ${CHMOD} -R 755 ${WWWDIR}' >> ${TMPPLIST}
- ${CP} -R ${WRKSRC}/ ${STAGEDIR}${WWWDIR}
- @${MKDIR} ${STAGEDIR}${DOCSDIR}
-.for i in ${PORTDOCS}
- ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}/${i}
-.endfor
+ ${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>
diff --git a/chinese/wordpress-zh_CN/distinfo b/chinese/wordpress-zh_CN/distinfo
index 71fa222ef2e4..5f9335175def 100644
--- a/chinese/wordpress-zh_CN/distinfo
+++ b/chinese/wordpress-zh_CN/distinfo
@@ -1,2 +1,2 @@
-SHA256 (wordpress-3.8.1-zh_CN.tar.gz) = b46c2a11379391d9e80c6bc2ab4b629d9ec912c5a97f6fc8cb26193654b8fe2a
-SIZE (wordpress-3.8.1-zh_CN.tar.gz) = 6283476
+SHA256 (wordpress-3.9-zh_CN.tar.gz) = 1f46c95726ea03c7bb1fe1fefeae3d4f7869d3598dec4698885fd1bb46ac9041
+SIZE (wordpress-3.9-zh_CN.tar.gz) = 6332779