ports/175632: russian/wordpress update to 3.5.1
Mihail Timofeev
miha_hard at mail.ru
Sun Jan 27 15:30:02 UTC 2013
>Number: 175632
>Category: ports
>Synopsis: russian/wordpress update to 3.5.1
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Sun Jan 27 15:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Mihail Timofeev
>Release: FreeBSD 9.1-STABLE
>Organization:
>Environment:
>Description:
Update to 3.5.1
includes the patch from ports/175525:
- Change tarball
- fix OptionNG
- fix install permission
Added file(s):
- files/pkg-install.in
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
diff -ruN wordpress.bak/Makefile wordpress/Makefile
--- wordpress.bak/Makefile 2013-01-27 21:32:58.000000000 +0700
+++ wordpress/Makefile 2013-01-27 21:49:40.000000000 +0700
@@ -1,28 +1,32 @@
# Created by: Mihail Timofeev <9267096 at gmail.com>
# $FreeBSD: ports/russian/wordpress/Makefile,v 1.7 2012/12/16 19:34:15 svnexp Exp $
-PORTNAME= wordpress
-PORTVERSION= 3.5
-CATEGORIES= russian www
-MASTER_SITES= http://ru.wordpress.org/
-DISTNAME= ${PORTNAME}-${PORTVERSION}-ru_RU
+PORTNAME= wordpress
+PORTVERSION= 3.5.1
+CATEGORIES= russian www
+MASTER_SITES= http://ru.wordpress.org/
+DISTNAME= ${PORTNAME}-${PORTVERSION}-ru_RU
+MAINTAINER= 9267096 at gmail.com
-MAINTAINER= 9267096 at gmail.com
-COMMENT= State-of-the-art semantic personal publishing platform
+COMMENT= A state-of-the-art semantic personal publishing platform
LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/license.txt
CONFLICTS_INSTALL= wordpress-3.* de-wordpress-3.* ja-wordpress-3.*
NO_BUILD= yes
-USE_ZIP= yes
USE_PHP= curl gd mysql pcre tokenizer xml zip
WANT_PHP_WEB= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
+SUB_FILES= pkg-message pkg-install
+SUB_LIST= CHGRP="${CHGRP}" CHOWN="${CHOWN}" CHMOD="${CHMOD}"\
+ FIND="${FIND}" WWWGRP="${WWWGRP}" WWWOWN="${WWWOWN}"
PLIST= ${WRKDIR}/pkg-plist
-PORTDOCS= readme.html
-SUB_FILES= pkg-message
+PORTDOCS= license.txt readme.html
+
+OPTIONS_DEFINE= DOCS
pre-everything::
@${ECHO_CMD} "If you want to upgrade, you must read upgrade document."
@@ -36,15 +40,18 @@
if [ ! -f ${WRKSRC}/wp-config-sample.php ]; then ${CP} \
${WRKSRC}/wp-config.php.sample ${WRKSRC}/wp-config.php; fi
+.include <bsd.port.options.mk>
+
do-install:
${INSTALL} -d -g ${WWWGRP} -m 755 -o ${WWWOWN} ${WWWDIR}/
${CP} -R ${WRKSRC}/ ${WWWDIR}/
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}/
cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
.endif
post-install:
+ @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
diff -ruN wordpress.bak/distinfo wordpress/distinfo
--- wordpress.bak/distinfo 2013-01-27 21:32:58.000000000 +0700
+++ wordpress/distinfo 2013-01-27 22:01:49.000000000 +0700
@@ -1,2 +1,2 @@
-SHA256 (wordpress-3.5-ru_RU.zip) = 850d56fee6cdd45c765d627d41df7c8b318470bebbb7b07a722ee7eb4d53cf21
-SIZE (wordpress-3.5-ru_RU.zip) = 6664495
+SHA256 (wordpress-3.5.1-ru_RU.tar.gz) = 4e233d270fbadcaa9ab68e8fe26df7864b03194e5f6dd4a9860d7d872628b4c7
+SIZE (wordpress-3.5.1-ru_RU.tar.gz) = 6185231
diff -ruN wordpress.bak/files/pkg-install.in wordpress/files/pkg-install.in
--- wordpress.bak/files/pkg-install.in 1970-01-01 07:00:00.000000000 +0700
+++ wordpress/files/pkg-install.in 2013-01-27 21:52:04.000000000 +0700
@@ -0,0 +1,12 @@
+#!/bin/sh
+case $2 in
+ PRE-INSTALL)
+ ;;
+ POST-INSTALL)
+ %%CHOWN%% -R %%WWWOWN%% %%WWWDIR%%/wp-content
+ %%FIND%% %%WWWDIR%% -type d -print | xargs %%CHGRP%% %%WWWGRP%%
+ %%FIND%% %%WWWDIR%% -type d -print | xargs %%CHMOD%% g+w
+ ;;
+ *)
+ ;;
+esac
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list