ports/155744: [PATCH] www/wordpress: language slave ports

Takefu takefu at airport.fm
Mon Mar 21 09:50:02 UTC 2011


>Number:         155744
>Category:       ports
>Synopsis:       [PATCH] www/wordpress: language slave ports
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 21 09:50:00 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Takefu
>Release:        FreeBSD 8.2 amd64
>Organization:
FOX Amateur Radio Club
>Environment:
>Description:
- Update 3.1 in german
- New ports in japanese

Port maintainer (ychsiao at ychsiao.org,joehorn at gmail.com,miwi at FreeBSD.org) is cc'd.

>How-To-Repeat:
>Fix:

--- wordpress-3.1.patch begins here ---
diff -ruN /usr/ports/www/wordpress/Makefile www/wordpress/Makefile
--- /usr/ports/www/wordpress/Makefile	2011-03-03 10:54:25.000000000 +0900
+++ www/wordpress/Makefile	2011-03-21 16:21:49.000000000 +0900
@@ -7,20 +7,29 @@

 PORTNAME=	wordpress
 PORTVERSION=	3.1
-PORTEPOCH=	1
-CATEGORIES=	www
-MASTER_SITES=	http://wordpress.org/
+PORTEPOCH?=	1
+CATEGORIES?=	www
+MASTER_SITES?=	http://wordpress.org/

-MAINTAINER=	ychsiao at ychsiao.org
+MAINTAINER?=	ychsiao at ychsiao.org
 COMMENT=	A state-of-the-art semantic personal publishing platform

+CONFLICTS?=	zh-wordpress-zh_CN-[3].* zh-wordpress-zh_TW-[3].* \
+		de-wordpress-de_DE-[3].* ja-wordpress-ja-[3].*
+
 NO_BUILD=	yes
 USE_PHP=	gd mysql pcre tokenizer xml zip
 WANT_PHP_WEB=	yes
+LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/license.txt
 WRKSRC=		${WRKDIR}/${PORTNAME}

 PLIST=		${WRKDIR}/pkg-plist
-PORTDOCS=	license.txt readme.html
+WWWDIR=		${PREFIX}/www/${PORTNAME}${PKGNAMESUFFIX}
+PORTDOCS=	readme.html
+
+SUB_FILES+=	pkg-message
+SUB_LISTS+=	WWWDIR=${WWWDIR}

 pre-everything::
 	@${ECHO_CMD} "If you want to upgrade, you must read upgrade document."
diff -ruN /usr/ports/www/wordpress/distinfo www/wordpress/distinfo
--- /usr/ports/www/wordpress/distinfo	2011-03-03 10:54:25.000000000 +0900
+++ www/wordpress/distinfo	2011-03-21 15:31:47.000000000 +0900
@@ -1,2 +1,10 @@
 SHA256 (wordpress-3.1.tar.gz) = 297dbd014f3688b6d57329eb2988cb906fbdb1fadea33768d4584f9cbf090794
 SIZE (wordpress-3.1.tar.gz) = 2762471
+SHA256 (wordpress-3.1-zh_TW.tar.gz) = d429f86ad39d0a669bd0f26b473cad4a8ec753e8b0c1e6fbf36f713a9c5aace0
+SIZE (wordpress-3.1-zh_TW.tar.gz) = 3092115
+SHA256 (wordpress-3.1-zh_CN.tar.gz) = 47e15a0f17b27fba3e81d6f08cec5097e3bee9f831b7d7b5f5386edcbaf6f521
+SIZE (wordpress-3.1-zh_CN.tar.gz) = 3108906
+SHA256 (wordpress-3.1-ja.tar.gz) = 27d507052d46d2ceb033a8206d21f4c4aa080c2c8ac6a6d2ba75553c75f5c438
+SIZE (wordpress-3.1-ja.tar.gz) = 3143180
+SHA256 (wordpress-3.1-de_DE.tar.gz) = 37f7f10216c91fb8b28023520e1cff42df389135e3a9084ff51267675ebbc4b7
+SIZE (wordpress-3.1-de_DE.tar.gz) = 3133155
diff -ruN /usr/ports/www/wordpress/files/pkg-message.in www/wordpress/files/pkg-message.in
--- /usr/ports/www/wordpress/files/pkg-message.in	1970-01-01 09:00:00.000000000 +0900
+++ www/wordpress/files/pkg-message.in	2010-07-21 16:53:06.000000000 +0900
@@ -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 -ruN /usr/ports/www/wordpress/pkg-message www/wordpress/pkg-message
--- /usr/ports/www/wordpress/pkg-message	2010-12-06 08:42:36.000000000 +0900
+++ www/wordpress/pkg-message	1970-01-01 09:00:00.000000000 +0900
@@ -1,6 +0,0 @@
-                  **** NOTE ****
-Before the first use of WordPress, copy wp-config-sample.php to wp-config.php
-in ${WWWDIR} and modify it to fit your MySQL.
-Maybe you need 'mysqladmin create wordpress' first.
-If you are upgrading from 1.x or 2.x to 3.x, please run
-http://your.site/wordpress/wp-admin/upgrade.php to upgrade to WordPress 3.x
diff -ruN /usr/ports/chinese/wordpress-zh_CN/Makefile chinese/wordpress-zh_CN/Makefile
--- /usr/ports/chinese/wordpress-zh_CN/Makefile	2011-03-18 07:52:25.000000000 +0900
+++ chinese/wordpress-zh_CN/Makefile	2011-03-21 16:24:35.000000000 +0900
@@ -6,62 +6,17 @@
 #

 PORTNAME=	wordpress
-PORTVERSION=	3.1
+PORTEPOCH=	0
 CATEGORIES=	chinese www
-MASTER_SITES=	http://cn.wordpress.org/ \
-		http://mirror.joehorn.idv.tw/wordpress/
 PKGNAMESUFFIX=	-zh_CN
 DISTNAME=	${PORTNAME}-${PORTVERSION}${PKGNAMESUFFIX}

 MAINTAINER=	joehorn at gmail.com
 COMMENT=	A state-of-the-art semantic personal publishing platform

-LICENSE=	GPLv2
+MASTER_SITES=	http://cn.wordpress.org/
+MASTERDIR=	${.CURDIR}/../../www/${PORTNAME}
+CONFLICTS=	wordpress-[3].* zh-wordpress-zh_TW-[3].* \
+		de-wordpress-de_DE-[3].* ja-wordpress-ja-[3].*

-WRKSRC=		${WRKDIR}/${PORTNAME}
-
-USE_PHP=	mysql pcre xml gd tokenizer
-NO_BUILD=	YES
-WANT_PHP_WEB=	YES
-
-PLIST=		${WRKDIR}/pkg-plist
-WWWDIR=		${PREFIX}/www/${PORTNAME}${PKGNAMESUFFIX}
-
-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|^|${WWWDIR:S|${PREFIX}/||}/|' > ${PLIST} \
-		&& ${FIND} -d * -type d | \
-		${SED} -e 's|^|@dirrm ${WWWDIR:S|${PREFIX}/||}/|' >> ${PLIST} \
-		&& ${ECHO_CMD} @dirrm ${WWWDIR:S|${PREFIX}/||} >> ${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>
+.include "${MASTERDIR}/Makefile"
diff -ruN /usr/ports/chinese/wordpress-zh_CN/distinfo chinese/wordpress-zh_CN/distinfo
--- /usr/ports/chinese/wordpress-zh_CN/distinfo	2011-03-18 07:52:25.000000000 +0900
+++ chinese/wordpress-zh_CN/distinfo	1970-01-01 09:00:00.000000000 +0900
@@ -1,2 +0,0 @@
-SHA256 (wordpress-3.1-zh_CN.tar.gz) = 47e15a0f17b27fba3e81d6f08cec5097e3bee9f831b7d7b5f5386edcbaf6f521
-SIZE (wordpress-3.1-zh_CN.tar.gz) = 3108906
diff -ruN /usr/ports/chinese/wordpress-zh_CN/files/pkg-message.in chinese/wordpress-zh_CN/files/pkg-message.in
--- /usr/ports/chinese/wordpress-zh_CN/files/pkg-message.in	2010-07-21 16:53:06.000000000 +0900
+++ chinese/wordpress-zh_CN/files/pkg-message.in	1970-01-01 09:00:00.000000000 +0900
@@ -1,15 +0,0 @@
-*************************************************************************************
-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 -ruN /usr/ports/chinese/wordpress-zh_CN/pkg-descr chinese/wordpress-zh_CN/pkg-descr
--- /usr/ports/chinese/wordpress-zh_CN/pkg-descr	2010-07-21 16:53:06.000000000 +0900
+++ chinese/wordpress-zh_CN/pkg-descr	2011-03-21 15:45:44.000000000 +0900
@@ -1,7 +1,7 @@
-WordPress is a state-of-the-art semantic personal publishing platform
-with a focus on aesthetics, web standards, and usability.
+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.
+with your blogging software, not fight it.

 WWW:	http://cn.wordpress.org/
diff -ruN /usr/ports/chinese/wordpress-zh_TW/Makefile chinese/wordpress-zh_TW/Makefile
--- /usr/ports/chinese/wordpress-zh_TW/Makefile	2011-03-18 07:52:25.000000000 +0900
+++ chinese/wordpress-zh_TW/Makefile	2011-03-21 16:24:57.000000000 +0900
@@ -6,62 +6,17 @@
 #

 PORTNAME=	wordpress
-PORTVERSION=	3.1
+PORTEPOCH=	0
 CATEGORIES=	chinese www
-MASTER_SITES=	http://tw.wordpress.org/ \
-		http://mirror.joehorn.idv.tw/wordpress/
 PKGNAMESUFFIX=	-zh_TW
 DISTNAME=	${PORTNAME}-${PORTVERSION}${PKGNAMESUFFIX}

 MAINTAINER=	joehorn at gmail.com
 COMMENT=	A state-of-the-art semantic personal publishing platform

-LICENSE=	GPLv2
+MASTER_SITES=	http://tw.wordpress.org/
+MASTERDIR=	${.CURDIR}/../../www/${PORTNAME}
+CONFLICTS=	wordpress-[3].* zh-wordpress-zh_CN-[3].* \
+		de-wordpress-de_DE-[3].* ja-wordpress-ja-[3].*

-WRKSRC=		${WRKDIR}/${PORTNAME}
-
-USE_PHP=	mysql pcre xml gd tokenizer
-NO_BUILD=	YES
-WANT_PHP_WEB=	YES
-
-PLIST=		${WRKDIR}/pkg-plist
-WWWDIR=		${PREFIX}/www/${PORTNAME}${PKGNAMESUFFIX}
-
-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|^|${WWWDIR:S|${PREFIX}/||}/|' > ${PLIST} \
-		&& ${FIND} -d * -type d | \
-		${SED} -e 's|^|@dirrm ${WWWDIR:S|${PREFIX}/||}/|' >> ${PLIST} \
-		&& ${ECHO_CMD} @dirrm ${WWWDIR:S|${PREFIX}/||} >> ${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>
+.include "${MASTERDIR}/Makefile"
diff -ruN /usr/ports/chinese/wordpress-zh_TW/distinfo chinese/wordpress-zh_TW/distinfo
--- /usr/ports/chinese/wordpress-zh_TW/distinfo	2011-03-18 07:52:25.000000000 +0900
+++ chinese/wordpress-zh_TW/distinfo	1970-01-01 09:00:00.000000000 +0900
@@ -1,2 +0,0 @@
-SHA256 (wordpress-3.1-zh_TW.tar.gz) = 15ea7be8bf45f5995b072ef8455a7cdf7fa084b8b29371b9085af672040ad5c5
-SIZE (wordpress-3.1-zh_TW.tar.gz) = 3105286
diff -ruN /usr/ports/chinese/wordpress-zh_TW/files/pkg-message.in chinese/wordpress-zh_TW/files/pkg-message.in
--- /usr/ports/chinese/wordpress-zh_TW/files/pkg-message.in	2010-07-21 16:53:06.000000000 +0900
+++ chinese/wordpress-zh_TW/files/pkg-message.in	1970-01-01 09:00:00.000000000 +0900
@@ -1,15 +0,0 @@
-*************************************************************************************
-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 -ruN /usr/ports/chinese/wordpress-zh_TW/pkg-descr chinese/wordpress-zh_TW/pkg-descr
--- /usr/ports/chinese/wordpress-zh_TW/pkg-descr	2010-07-21 16:53:06.000000000 +0900
+++ chinese/wordpress-zh_TW/pkg-descr	2011-03-21 15:45:54.000000000 +0900
@@ -1,7 +1,7 @@
-WordPress is a state-of-the-art semantic personal publishing platform
-with a focus on aesthetics, web standards, and usability.
+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.
+with your blogging software, not fight it.

 WWW:	http://tw.wordpress.org/
diff -ruN /usr/ports/german/wordpress/Makefile german/wordpress/Makefile
--- /usr/ports/german/wordpress/Makefile	2011-02-11 13:45:00.000000000 +0900
+++ german/wordpress/Makefile	2011-03-21 16:25:20.000000000 +0900
@@ -7,44 +7,17 @@
 #

 PORTNAME=	wordpress
-PORTVERSION=	3.0.5
+PORTEPOCH=	0
 CATEGORIES=	german www
-MASTER_SITES=	http://freebsd.unixfreunde.de/sources/
-DISTNAME=	wordpress_305-de
+PKGNAMESUFFIX=	-de_DE
+DISTNAME=	${PORTNAME}-${PORTVERSION}${PKGNAMESUFFIX}

 MAINTAINER=	miwi at FreeBSD.org
 COMMENT=	A state-of-the-art semantic personal publishing platform

-USE_ZIP=	yes
-NO_BUILD=	yes
-USE_PHP=	gd mysql pcre tokenizer xml zip
-WANT_PHP_WEB=	yes
-WRKSRC=		${WRKDIR}/${PORTNAME}
+MASTER_SITES=	http://de.wordpress.org/
+MASTERDIR=	${.CURDIR}/../../www/${PORTNAME}
+CONFLICTS=	wordpress-[3].* zh-wordpress-zh_CN-[3].* \
+		zh-wordpress-zh_TW-[3].* ja-wordpress-ja-[3].*

-PLIST=		${WRKDIR}/pkg-plist
-PORTDOCS=	license.txt readme.html
-
-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|^|%%WWWDIR%%/|'; \
-		${FIND} -d . -type d | ${SED} -e 's|^\.|@dirrm %%WWWDIR%%|') > ${PLIST}
-	if [ ! -f ${WRKSRC}/wp-config-sample.php ]; then ${CP} \
-		${WRKSRC}/wp-config.php.sample ${WRKSRC}/wp-config.php; fi
-
-do-install:
-	${INSTALL} -d -g ${WWWGRP} -m 755 -o ${WWWOWN} ${WWWDIR}/
-	${CP} -R ${WRKSRC}/ ${WWWDIR}/
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}/
-	cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
-.endif
-
-post-install:
-	@${CAT} ${PKGMESSAGE}
-
-.include <bsd.port.mk>
+.include "${MASTERDIR}/Makefile"
diff -ruN /usr/ports/german/wordpress/distinfo german/wordpress/distinfo
--- /usr/ports/german/wordpress/distinfo	2011-02-11 13:45:00.000000000 +0900
+++ german/wordpress/distinfo	1970-01-01 09:00:00.000000000 +0900
@@ -1,2 +0,0 @@
-SHA256 (wordpress_305-de.zip) = a5ad7db5d0a12c9097b357162db6d5cd3914192400b7002a1ff67b18b3009f1e
-SIZE (wordpress_305-de.zip) = 3320012
diff -ruN /usr/ports/german/wordpress/pkg-descr german/wordpress/pkg-descr
--- /usr/ports/german/wordpress/pkg-descr	2011-01-05 09:35:01.000000000 +0900
+++ german/wordpress/pkg-descr	2011-03-21 14:18:27.000000000 +0900
@@ -4,4 +4,4 @@
 More simply, Wordpress is what you use when you want to work
 with your blogging software, not fight it.

-WWW:	http://wordpress-deutschland.org/
+WWW:	http://de.wordpress.org/
diff -ruN /usr/ports/german/wordpress/pkg-message german/wordpress/pkg-message
--- /usr/ports/german/wordpress/pkg-message	2011-01-05 09:35:01.000000000 +0900
+++ german/wordpress/pkg-message	1970-01-01 09:00:00.000000000 +0900
@@ -1,6 +0,0 @@
-                  **** NOTE ****
-Before the first use of WordPress, copy wp-config-sample.php to wp-config.php
-in ${WWWDIR} and modify it to fit your MySQL.
-Maybe you need 'mysqladmin create wordpress' first.
-If you are upgrading from 1.x or 2.x to 3.x, please run
-http://your.site/wordpress/wp-admin/upgrade.php to upgrade to WordPress 3.x
diff -ruN /usr/ports/japanese/wordpress/Makefile japanese/wordpress/Makefile
--- /usr/ports/japanese/wordpress/Makefile	1970-01-01 09:00:00.000000000 +0900
+++ japanese/wordpress/Makefile	2011-03-21 16:18:53.000000000 +0900
@@ -0,0 +1,22 @@
+# New ports collection makefile for:	wordpress-ja
+# Date created:		2011-03-21
+# Whom:			Takefu
+#
+# $FreeBSD$
+#
+
+PORTNAME=	wordpress
+PORTEPOCH=	0
+CATEGORIES=	japanese www
+PKGNAMESUFFIX=	-ja
+DISTNAME=	${PORTNAME}-${PORTVERSION}${PKGNAMESUFFIX}
+
+MAINTAINER=	takefu at airport.fm
+COMMENT=	A state-of-the-art semantic personal publishing platform
+
+MASTER_SITES=	http://ja.wordpress.org/
+MASTERDIR=	${.CURDIR}/../../www/${PORTNAME}
+CONFLICTS=	wordpress-[3].* zh-wordpress-zh_CN-[3].* \
+		zh-wordpress-zh_TW-[3].* de-wordpress-de_DE-[3].*
+
+.include "${MASTERDIR}/Makefile"
diff -ruN /usr/ports/japanese/wordpress/pkg-descr japanese/wordpress/pkg-descr
--- /usr/ports/japanese/wordpress/pkg-descr	1970-01-01 09:00:00.000000000 +0900
+++ japanese/wordpress/pkg-descr	2011-03-21 15:46:11.000000000 +0900
@@ -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://ja.wordpress.org/
--- wordpress-3.1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list