From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Oct 8 08:10:11 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8BCDC1065676 for ; Mon, 8 Oct 2012 08:10:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 632F58FC12 for ; Mon, 8 Oct 2012 08:10:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q988AA3Y002903 for ; Mon, 8 Oct 2012 08:10:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q988AAWg002902; Mon, 8 Oct 2012 08:10:10 GMT (envelope-from gnats) Resent-Date: Mon, 8 Oct 2012 08:10:10 GMT Resent-Message-Id: <201210080810.q988AAWg002902@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, takefu@airport.fm Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0268F106567A for ; Mon, 8 Oct 2012 08:04:48 +0000 (UTC) (envelope-from takefu@airport.fm) Received: from ae-osaka.co.jp (unknown [IPv6:2001:3e0:4ec:a000::1]) by mx1.freebsd.org (Postfix) with ESMTP id 44F898FC12 for ; Mon, 8 Oct 2012 08:04:46 +0000 (UTC) Received: from ae-osaka.co.jp (localhost.ae-osaka.co.jp [127.0.0.1]) by ae-osaka.co.jp (Postfix) with ESMTP id 020EBD3AC03; Mon, 8 Oct 2012 17:04:45 +0900 (JST) Received: from [IPv6:2001:3e0:4ec:a011:a014:16b1:c27d:9542] (unknown [IPv6:2001:3e0:4ec:a011:a014:16b1:c27d:9542]) by ae-osaka.co.jp (Postfix) with ESMTPSA id 7F745D3AC01; Mon, 8 Oct 2012 17:04:44 +0900 (JST) Message-Id: <5072891C.2000509@airport.fm> Date: Mon, 08 Oct 2012 17:04:44 +0900 From: Takefu To: freebsd-gnats-submit@FreeBSD.org Cc: ychsiao@ychsiao.org Subject: ports/172477: [UPDATE] www/wordpress: Trim the headers X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: takefu@airport.fm List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Oct 2012 08:10:11 -0000 >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 -# +# Created by: Elvis Chiang # $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 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: