aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwen <wen@FreeBSD.org>2010-04-09 16:11:48 +0800
committerwen <wen@FreeBSD.org>2010-04-09 16:11:48 +0800
commit7ec315ab1e82019e677c390eb7e1cb2ad154d440 (patch)
treec5dd5bec91b0be5d4b5c5d27fdf7d659174562ae
parenta801553af78ba69c33cff0a8b8357097ab3a41e5 (diff)
downloadfreebsd-ports-gnome-7ec315ab1e82019e677c390eb7e1cb2ad154d440.tar.gz
freebsd-ports-gnome-7ec315ab1e82019e677c390eb7e1cb2ad154d440.tar.zst
freebsd-ports-gnome-7ec315ab1e82019e677c390eb7e1cb2ad154d440.zip
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://tw.wordpress.org/ PR: ports/144369 Submitted by: Joe Horn <joehorn@gmail.com>
-rw-r--r--chinese/Makefile1
-rw-r--r--chinese/wordpress-zh_TW/Makefile67
-rw-r--r--chinese/wordpress-zh_TW/distinfo3
-rw-r--r--chinese/wordpress-zh_TW/files/pkg-message.in15
-rw-r--r--chinese/wordpress-zh_TW/pkg-descr7
5 files changed, 93 insertions, 0 deletions
diff --git a/chinese/Makefile b/chinese/Makefile
index 58e9839aa490..e0c867eeb261 100644
--- a/chinese/Makefile
+++ b/chinese/Makefile
@@ -138,6 +138,7 @@
SUBDIR += wangttf
SUBDIR += wenju
SUBDIR += wordpress-zh_CN
+ SUBDIR += wordpress-zh_TW
SUBDIR += xemacs21
SUBDIR += xmms
SUBDIR += xpdf
diff --git a/chinese/wordpress-zh_TW/Makefile b/chinese/wordpress-zh_TW/Makefile
new file mode 100644
index 000000000000..bb2635d8bac6
--- /dev/null
+++ b/chinese/wordpress-zh_TW/Makefile
@@ -0,0 +1,67 @@
+# New ports collection makefile for: wordpress-zh_TW
+# 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_TW
+DISTNAME= wordpress-${PORTVERSION}-zh_TW
+
+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_TW
+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_TW/distinfo b/chinese/wordpress-zh_TW/distinfo
new file mode 100644
index 000000000000..5aa0eaf9ea78
--- /dev/null
+++ b/chinese/wordpress-zh_TW/distinfo
@@ -0,0 +1,3 @@
+MD5 (wordpress-2.9.2-zh_TW.tar.gz) = 4fc1a68a9833de2571f75fab9f57bf7c
+SHA256 (wordpress-2.9.2-zh_TW.tar.gz) = 628226950efd07417faa282c4b5a54813cd253de25d60a52be393d749be44821
+SIZE (wordpress-2.9.2-zh_TW.tar.gz) = 2445008
diff --git a/chinese/wordpress-zh_TW/files/pkg-message.in b/chinese/wordpress-zh_TW/files/pkg-message.in
new file mode 100644
index 000000000000..e40a28ebbe04
--- /dev/null
+++ b/chinese/wordpress-zh_TW/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_TW/pkg-descr b/chinese/wordpress-zh_TW/pkg-descr
new file mode 100644
index 000000000000..d83d9a2f3e97
--- /dev/null
+++ b/chinese/wordpress-zh_TW/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://tw.wordpress.org/