ports/147949: [PATCH] www/wordpress: update to 3.0

Joe Horn joehorn at gmail.com
Thu Jun 17 18:40:05 UTC 2010


>Number:         147949
>Category:       ports
>Synopsis:       [PATCH] www/wordpress: update to 3.0
>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:   Thu Jun 17 18:40:04 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Joe Horn
>Release:        FreeBSD 8.0-RELEASE-p2 amd64
>Organization:
Taiwanese User
>Environment:
System: FreeBSD joehorn.idv.tw 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #1: Fri Jan  8 23:08:25 CST
>Description:
- Update to 3.0

Added file(s):
- files/pkg-message.in

Removed file(s):
- pkg-message

Port maintainer (ychsiao at ychsiao.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- wordpress-3.0,1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/www/wordpress/Makefile /home/admin/joehorn/wordpress/Makefile
--- /usr/ports/www/wordpress/Makefile	2010-02-26 17:12:40.000000000 +0800
+++ /home/admin/joehorn/wordpress/Makefile	2010-06-18 02:31:00.000000000 +0800
@@ -6,14 +6,14 @@
 #
 
 PORTNAME=	wordpress
-PORTVERSION=	2.9.2
+PORTVERSION=	3.0
 PORTEPOCH=	1
 CATEGORIES=	www
 MASTER_SITES=	http://wordpress.org/ \
 		ftp://ftp.stu.edu.tw/pub/wordpress/ \
 		ftp://ftp.twaren.net/local-distfiles/wordpress/
 MASTER_SITE_SUBDIR=	cafelog
-DISTNAME=		wordpress-${PORTVERSION:S/.0//}
+DISTNAME=		wordpress-${PORTVERSION}
 
 MAINTAINER=	ychsiao at ychsiao.org
 COMMENT=	A state-of-the-art semantic personal publishing platform
@@ -23,10 +23,11 @@
 USE_PHP=	mysql pcre xml gd tokenizer
 NO_BUILD=	YES
 WANT_PHP_WEB=	YES
-WORDPRESS?=	www/data/wordpress
-PLIST_SUB+=	WORDPRESS=${WORDPRESS}
 PLIST=		${WRKDIR}/pkg-plist
 
+SUB_FILES+=	pkg-message
+SUB_LIST+=	WWWDIR=${WWWDIR}
+
 PORTDOCS=	license.txt readme.html
 
 pre-everything::
@@ -36,19 +37,18 @@
 
 pre-install:
 	cd ${WRKSRC} && ${FIND} -s * -type f | \
-		${SED} -e 's|^|${WORDPRESS}/|' > ${PLIST} \
+		${SED} -e 's|^|${WWWDIR:S|${PREFIX}/||}/|' > ${PLIST} \
 		&& ${FIND} -d * -type d | \
-		${SED} -e 's|^|@dirrm ${WORDPRESS}/|' >> ${PLIST} \
-		&& ${ECHO_CMD} @dirrm ${WORDPRESS} >> ${PLIST} \
-		&& ${ECHO_CMD} @dirrmtry www/data >> ${PLIST}
+		${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} ${PREFIX}/${WORDPRESS}
-	@${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/${WORDPRESS}
-	@${CHMOD} 755 ${PREFIX}/${WORDPRESS}
-	${CP} -R ${WRKSRC}/ ${PREFIX}/${WORDPRESS}
+	-@${MKDIR} ${WWWDIR}
+	@${CHOWN} ${WWWOWN}:${WWWGRP} ${WWWDIR}
+	@${CHMOD} 755 ${WWWDIR}
+	${CP} -R ${WRKSRC}/ ${WWWDIR}
 .if !defined(NOPORTDOCS)
 	@${MKDIR} ${DOCSDIR}
 .for i in ${PORTDOCS}
diff -ruN --exclude=CVS /usr/ports/www/wordpress/distinfo /home/admin/joehorn/wordpress/distinfo
--- /usr/ports/www/wordpress/distinfo	2010-02-26 17:12:40.000000000 +0800
+++ /home/admin/joehorn/wordpress/distinfo	2010-06-18 01:51:27.000000000 +0800
@@ -1,3 +1,3 @@
-MD5 (wordpress-2.9.2.tar.gz) = 6023fe6701476c8152bda5d4c6277c69
-SHA256 (wordpress-2.9.2.tar.gz) = 7342627f4a3dca44886c5aca6834cc88671dbd3aa2760182d2fcb9a330807ce1
-SIZE (wordpress-2.9.2.tar.gz) = 2229832
+MD5 (wordpress-3.0.tar.gz) = cba15b344d53654255394769e4c865af
+SHA256 (wordpress-3.0.tar.gz) = 73414effa3dd10a856b0e8e9a4726e92288fad7e43723106716b72de5f3ed91c
+SIZE (wordpress-3.0.tar.gz) = 2683109
diff -ruN --exclude=CVS /usr/ports/www/wordpress/files/pkg-message.in /home/admin/joehorn/wordpress/files/pkg-message.in
--- /usr/ports/www/wordpress/files/pkg-message.in	1970-01-01 08:00:00.000000000 +0800
+++ /home/admin/joehorn/wordpress/files/pkg-message.in	2010-06-18 02:20:21.000000000 +0800
@@ -0,0 +1,8 @@
+                  **** NOTE ****
+        Before the first use of WordPress, copy wp-config-sample.php to wp-config.php
+        in %%WWWDIR%% .
+        Please modify wp-config.php to fit your MySQL database.
+        ( Maybe you need 'mysqladmin create wordpress' first )
+
+        If you are upgrading WordPress , please remember to run
+        http://your.site/wordpress/wp-admin/upgrade.php with web browser.
diff -ruN --exclude=CVS /usr/ports/www/wordpress/pkg-message /home/admin/joehorn/wordpress/pkg-message
--- /usr/ports/www/wordpress/pkg-message	2008-04-26 22:26:24.000000000 +0800
+++ /home/admin/joehorn/wordpress/pkg-message	1970-01-01 08:00:00.000000000 +0800
@@ -1,7 +0,0 @@
-                  **** NOTE ****
-        Before the first use of WordPress, copy wp-config-sample.php to wp-config.php
-        in ${PREFIX}/${WORDPRESS}
-        And Modify it to fit your MySQL.
-        Maybe you need 'mysqladmin create wordpress' first
-        If you are upgrading from 1.x or 2.0 to 2.x, please run
-        http://your.site/wordpress/wp-admin/upgrade.php to upgrade to WordPress 2.5.1
--- wordpress-3.0,1.patch ends here ---

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



More information about the freebsd-ports-bugs mailing list