diff options
author | wen <wen@FreeBSD.org> | 2010-03-16 07:14:57 +0000 |
---|---|---|
committer | wen <wen@FreeBSD.org> | 2010-03-16 07:14:57 +0000 |
commit | 3fd4be9c7b2eb46f180d338c0316345704b0c6ed (patch) | |
tree | 0ffc79712b513face27277ca6f42eac314100008 /chinese | |
parent | a94bfc2dca74336f172e7314145b4cdc525393d5 (diff) | |
download | FreeBSD-ports-3fd4be9c7b2eb46f180d338c0316345704b0c6ed.zip FreeBSD-ports-3fd4be9c7b2eb46f180d338c0316345704b0c6ed.tar.gz |
WordPress is a state-of-the-art semantic personal publishing platform
with a focus on aesthetics, web standards, and usability.
More simply, Wordpress is what you use when you want to work
with your blogging software, not fight it.
WWW: http://cn.wordpress.org/
PR: ports/144370
Submitted by: Joe Horn <joehorn@gmail.com>
Diffstat (limited to 'chinese')
-rw-r--r-- | chinese/Makefile | 1 | ||||
-rw-r--r-- | chinese/wordpress-zh_CN/Makefile | 67 | ||||
-rw-r--r-- | chinese/wordpress-zh_CN/distinfo | 3 | ||||
-rw-r--r-- | chinese/wordpress-zh_CN/files/pkg-message.in | 15 | ||||
-rw-r--r-- | chinese/wordpress-zh_CN/pkg-descr | 7 |
5 files changed, 93 insertions, 0 deletions
diff --git a/chinese/Makefile b/chinese/Makefile index 3e8cceb..58e9839 100644 --- a/chinese/Makefile +++ b/chinese/Makefile @@ -137,6 +137,7 @@ SUBDIR += vflib SUBDIR += wangttf SUBDIR += wenju + SUBDIR += wordpress-zh_CN SUBDIR += xemacs21 SUBDIR += xmms SUBDIR += xpdf diff --git a/chinese/wordpress-zh_CN/Makefile b/chinese/wordpress-zh_CN/Makefile new file mode 100644 index 0000000..052201d --- /dev/null +++ b/chinese/wordpress-zh_CN/Makefile @@ -0,0 +1,67 @@ +# New ports collection makefile for: wordpress-zh_CN +# Date created: 2010-03-01 +# Whom: Joe Horn <joehorn@gmail.com> +# +# $FreeBSD$ +# + +PORTNAME= wordpress +PORTVERSION= 2.9.2 +CATEGORIES= chinese www +MASTER_SITES= http://cn.wordpress.org/ +PKGNAMESUFFIX= -zh_CN +DISTNAME= wordpress-${PORTVERSION}-zh_CN + +MAINTAINER= joehorn@gmail.com +COMMENT= A state-of-the-art semantic personal publishing platform + +WRKSRC= ${WRKDIR}/${PORTNAME} + +USE_PHP= mysql pcre xml gd tokenizer +NO_BUILD= YES +WANT_PHP_WEB= YES + +WORDPRESS= www/wordpress-zh_CN +WWWDIR= ${PREFIX}/${WORDPRESS} + +PLIST_SUB+= WORDPRESS=${WORDPRESS} +PLIST= ${WRKDIR}/pkg-plist + +PORTDOCS= license.txt readme.html + +SUB_FILES+= pkg-message +SUB_LISTS+= WWWDIR=${WWWDIR} + +pre-everything:: + @${ECHO_CMD} "If you want to upgrade, you must read upgrade document." + @${ECHO_CMD} "" + @sleep 1 + +pre-install: + cd ${WRKSRC} && ${FIND} -s * -type f | \ + ${SED} -e 's|^|${WORDPRESS}/|' > ${PLIST} \ + && ${FIND} -d * -type d | \ + ${SED} -e 's|^|@dirrm ${WORDPRESS}/|' >> ${PLIST} \ + && ${ECHO_CMD} @dirrm ${WORDPRESS} >> ${PLIST} + if [ ! -f ${WRKSRC}/wp-config-sample.php ]; then ${CP} \ + ${WRKSRC}/wp-config.php.sample ${WRKSRC}/wp-config.php; fi + +do-install: + @${MKDIR} ${WWWDIR} + @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR} + @${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' \ + >> ${TMPPLIST} + @${CHMOD} -R 755 ${WWWDIR} + @${ECHO_CMD} '@exec ${CHMOD} -R 755 ${WWWDIR}' >> ${TMPPLIST} + ${CP} -R ${WRKSRC}/ ${WWWDIR} +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +.for i in ${PORTDOCS} + ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/${i} +.endfor +.endif + +post-install: + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> diff --git a/chinese/wordpress-zh_CN/distinfo b/chinese/wordpress-zh_CN/distinfo new file mode 100644 index 0000000..340f39e --- /dev/null +++ b/chinese/wordpress-zh_CN/distinfo @@ -0,0 +1,3 @@ +MD5 (wordpress-2.9.2-zh_CN.tar.gz) = 7c2069bcdf92f3a4a287e6699a063b1c +SHA256 (wordpress-2.9.2-zh_CN.tar.gz) = 6a33f9117178faa63d43ed558c4a475ab2cdb10881bde54466565353d965030a +SIZE (wordpress-2.9.2-zh_CN.tar.gz) = 2475651 diff --git a/chinese/wordpress-zh_CN/files/pkg-message.in b/chinese/wordpress-zh_CN/files/pkg-message.in new file mode 100644 index 0000000..e40a28e --- /dev/null +++ b/chinese/wordpress-zh_CN/files/pkg-message.in @@ -0,0 +1,15 @@ +************************************************************************************* +Please read following note for installation steps before the first use of WordPress. + +1. Copy wp-config-sample.php to wp-config.php + in %%WWWDIR%% . + +2. Modify it to fit your MySQL. + +3. Modify your web server configuration. + + +If you are upgrading from prior version, please browse this URL : + + http://[WORDPRESS_URL]/wp-admin/upgrade.php + diff --git a/chinese/wordpress-zh_CN/pkg-descr b/chinese/wordpress-zh_CN/pkg-descr new file mode 100644 index 0000000..656bfdc --- /dev/null +++ b/chinese/wordpress-zh_CN/pkg-descr @@ -0,0 +1,7 @@ +WordPress is a state-of-the-art semantic personal publishing platform +with a focus on aesthetics, web standards, and usability. + +More simply, Wordpress is what you use when you want to work +with your blogging software, not fight it. + +WWW: http://cn.wordpress.org/ |