ports/149778: [MAINTAINER] chinese/wordpress-zh_CN: update to 3.0.1

Joe Horn joehorn at gmail.com
Thu Aug 19 15:20:14 UTC 2010


Sorry,

It's my fault, and here is the correct (and newer) patch file.
Thanks for your help.

2010/8/19 <lwhsu at freebsd.org>

> Synopsis: [MAINTAINER] chinese/wordpress-zh_CN: update to 3.0.1
>
> State-Changed-From-To: open->feedback
> State-Changed-By: lwhsu
> State-Changed-When: Wed Aug 18 22:12:45 UTC 2010
> State-Changed-Why:
> I think there is something wrong in packing list generation:
> http://people.freebsd.org/~lwhsu/zh-wordpress-zh_CN-3.0.1.log<https://people.freebsd.org/%7Elwhsu/zh-wordpress-zh_CN-3.0.1.log>.  Please
> fix it, thanks!
>
> http://www.freebsd.org/cgi/query-pr.cgi?pr=149778<https://www.freebsd.org/cgi/query-pr.cgi?pr=149778>
>
-------------- next part --------------
===> Generating patch
===> Viewing diff with more
diff -ruN --exclude=CVS /usr/ports/chinese/wordpress-zh_CN/Makefile /home/admin/joehorn/wordpress-zh_CN/Makefile
--- /usr/ports/chinese/wordpress-zh_CN/Makefile	2010-03-16 15:14:57.000000000 +0800
+++ /home/admin/joehorn/wordpress-zh_CN/Makefile	2010-08-19 22:48:06.000000000 +0800
@@ -6,26 +6,25 @@
 #
 
 PORTNAME=	wordpress
-PORTVERSION=	2.9.2
+PORTVERSION=	3.0.1
 CATEGORIES=	chinese www
 MASTER_SITES=	http://cn.wordpress.org/
 PKGNAMESUFFIX=	-zh_CN
-DISTNAME=	wordpress-${PORTVERSION}-zh_CN
+DISTNAME=	wordpress-${PORTVERSION}${PKGNAMESUFFIX}
 
 MAINTAINER=	joehorn at gmail.com
 COMMENT=	A state-of-the-art semantic personal publishing platform
 
+LICENSE=	GPLv2
+
 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
+WWWDIR=		${PREFIX}/www/${PORTNAME}${PKGNAMESUFFIX}
 
 PORTDOCS=	license.txt readme.html
 
@@ -39,10 +38,10 @@
 
 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}
+		${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
 
diff -ruN --exclude=CVS /usr/ports/chinese/wordpress-zh_CN/distinfo /home/admin/joehorn/wordpress-zh_CN/distinfo
--- /usr/ports/chinese/wordpress-zh_CN/distinfo	2010-03-16 15:14:57.000000000 +0800
+++ /home/admin/joehorn/wordpress-zh_CN/distinfo	2010-08-19 22:42:42.000000000 +0800
@@ -1,3 +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
+MD5 (wordpress-3.0.1-zh_CN.tar.gz) = 9ea89441f92d25b2858b473e8ce4ac67
+SHA256 (wordpress-3.0.1-zh_CN.tar.gz) = 29e420a30792cf4a5896f1a35fc96ee5ee011306bf24a803c19b561e1b3645db
+SIZE (wordpress-3.0.1-zh_CN.tar.gz) = 2996399
===> Done


More information about the freebsd-ports-bugs mailing list