Date: Mon, 08 Oct 2012 17:04:44 +0900 From: Takefu <takefu@airport.fm> To: freebsd-gnats-submit@FreeBSD.org Cc: ychsiao@ychsiao.org Subject: ports/172477: [UPDATE] www/wordpress: Trim the headers Message-ID: <5072891C.2000509@airport.fm> Resent-Message-ID: <201210080810.q988AAWg002902@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 172477 >Category: ports >Synopsis: [UPDATE] www/wordpress: Trim the headers >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Oct 08 08:10:09 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Takefu >Release: FreeBSD 8.2-RELEASE-p10 amd64 >Organization: FOX Amateur Radio Club >Environment: >Description: - fix Trim the headers - mod fileowner change - add LICENSE_FILE close pr #168258 Port maintainer (ychsiao@ychsiao.org) is cc'd. >How-To-Repeat: >Fix: --- wordpress.patch begins here --- diff -ruN /usr/ports/www/wordpress/Makefile www/wordpress/Makefile --- /usr/ports/www/wordpress/Makefile 2012-09-08 05:25:41.000000000 +0900 +++ www/wordpress/Makefile 2012-10-08 16:30:05.000000000 +0900 @@ -1,9 +1,5 @@ -# New ports collection makefile for: wordpress -# Date created: 2004-07-29 -# Whom: Elvis Chiang <elvis@sslab.cs.ccu.edu.tw> -# +# Created by: Elvis Chiang <elvis@sslab.cs.ccu.edu.tw> # $FreeBSD: ports/www/wordpress/Makefile,v 1.79 2012/09/07 20:25:41 swills Exp $ -# PORTNAME= wordpress PORTVERSION= 3.4.2 @@ -14,6 +10,9 @@ MAINTAINER= ychsiao@ychsiao.org COMMENT= A state-of-the-art semantic personal publishing platform +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/license.txt + CONFLICTS_INSTALL= de-wordpress-3.* ja-wordpress-3.* ru-wordpress-3.* NO_BUILD= yes @@ -21,11 +20,12 @@ 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= license.txt readme.html -OPTIONS_DEFINE= DOCS - pre-everything:: @${ECHO_CMD} "If you want to upgrade, you must read upgrade document." @${ECHO_CMD} "" @@ -49,6 +49,7 @@ .endif post-install: + @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL @${CAT} ${PKGMESSAGE} .include <bsd.port.mk> diff -ruN /usr/ports/www/wordpress/files/pkg-install.in www/wordpress/files/pkg-install.in --- /usr/ports/www/wordpress/files/pkg-install.in 1970-01-01 09:00:00.000000000 +0900 +++ www/wordpress/files/pkg-install.in 2012-05-23 22:33:52.000000000 +0900 @@ -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 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 2012-05-23 22:33:52.000000000 +0900 @@ -0,0 +1,6 @@ + **** 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/www/wordpress/pkg-message www/wordpress/pkg-message --- /usr/ports/www/wordpress/pkg-message 2010-12-02 19:46:37.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 --- wordpress.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5072891C.2000509>