From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Sep 26 00:30:24 2003 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0FA3016A4B3 for ; Fri, 26 Sep 2003 00:30:24 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 588094403F for ; Fri, 26 Sep 2003 00:30:20 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h8Q7UKFY033477 for ; Fri, 26 Sep 2003 00:30:20 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h8Q7UKL2033476; Fri, 26 Sep 2003 00:30:20 -0700 (PDT) (envelope-from gnats) Resent-Date: Fri, 26 Sep 2003 00:30:20 -0700 (PDT) Resent-Message-Id: <200309260730.h8Q7UKL2033476@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, "Kang Liu" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C9CE116A4B3 for ; Fri, 26 Sep 2003 00:26:21 -0700 (PDT) Received: from bjpu.edu.cn (egw.bjpu.edu.cn [202.112.78.77]) by mx1.FreeBSD.org (Postfix) with ESMTP id 00F3243FDD for ; Fri, 26 Sep 2003 00:26:19 -0700 (PDT) (envelope-from liukang@bjpu.edu.cn) Received: (eyou gateway send program); Fri, 26 Sep 2003 15:29:28 +0800 Received: from unknown (HELO lkatschool) (unknown@202.112.78.224) by 202.112.78.77 with ; Fri, 26 Sep 2003 15:29:28 +0800 Message-Id: <001101c383ff$03518880$e04e70ca@lkatschool> Date: Fri, 26 Sep 2003 15:22:58 +0800 From: "Kang Liu" To: cc: 'Ernst de Haan' Subject: ports/57235: Fix pkg_add permission problem in tomcatX X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Sep 2003 07:30:24 -0000 >Number: 57235 >Category: ports >Synopsis: Fix pkg_add permission problem in tomcatX >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Sep 26 00:30:19 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Kang Liu >Release: FreeBSD 4.9-PRERELEASE i386 >Organization: Beijing University of Technology >Environment: System: FreeBSD ftp.bjpu.edu.cn 4.9-PRERELEASE FreeBSD 4.9-PRERELEASE #55: Sat Sep 20 02:49:38 CST 2003 delphij@ftp.bjpu.edu.cn:/usr/obj/usr/src/sys/FTP i386 >Description: As Angelo Turetta said in freebsd-ports, when use pkg_add to install jakarta-tomcatX, the permission of directory is not correct. >How-To-Repeat: use pkg_add install tomcat3,4,41 see stdout.log for details. >Fix: Index: Makefile =================================================================== RCS file: /home/ncvs/ports/www/jakarta-tomcat41/Makefile,v retrieving revision 1.48 diff -u -r1.48 Makefile --- Makefile 11 Aug 2003 11:00:04 -0000 1.48 +++ Makefile 26 Sep 2003 06:57:03 -0000 @@ -7,6 +7,7 @@ PORTNAME= jakarta-tomcat PORTVERSION= 4.1.27 +PORTREVISION= 1 CATEGORIES= www java MASTER_SITES= http://www.apache.org/dist/jakarta/tomcat-4/binaries/ \ ${MASTER_SITE_LOCAL} @@ -24,7 +25,6 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} APP_HOME?= ${PREFIX}/${PKGBASE}${PORTVERSION:R} LOG_DIR= ${APP_HOME}/logs -PLIST_SUB+= T=${APP_HOME:S/^${PREFIX}\///} APP_TITLE= Jakarta Tomcat APP_SHORTNAME= tomcat${MAJOR_VER:S/.//} CONTROL_SCRIPT_NAME= ${APP_SHORTNAME}ctl @@ -51,6 +51,7 @@ ${WRKSRC}/conf/server.xml JAR_FILE= bin/bootstrap.jar WRKDIR?= ${WRKDIRPREFIX}${.CURDIR}/work +PLIST_SUB+= T=${APP_HOME:S/^${PREFIX}\///} WWWOWN=${USER} WWWGRP=${GROUP} .include Index: pkg-plist =================================================================== RCS file: /home/ncvs/ports/www/jakarta-tomcat41/pkg-plist,v retrieving revision 1.21 diff -u -r1.21 pkg-plist --- pkg-plist 11 Aug 2003 11:00:04 -0000 1.21 +++ pkg-plist 26 Sep 2003 06:57:19 -0000 @@ -1441,6 +1441,7 @@ %%T%%/webapps/webdav/index.html %%T%%/webapps/webdav/tomcat-power.gif %%T%%/webapps/webdav/tomcat.gif +@exec chown -R %%WWWOWN%%:%%WWWGRP%% %D/%%T%%/ @dirrm share/nls/en_US.US-ASCII @dirrm share/nls/POSIX @dirrm %%T%%/work Index: Makefile =================================================================== RCS file: /home/ncvs/ports/www/jakarta-tomcat4/Makefile,v retrieving revision 1.44 diff -u -r1.44 Makefile --- Makefile 7 Mar 2003 06:12:39 -0000 1.44 +++ Makefile 26 Sep 2003 06:59:06 -0000 @@ -7,6 +7,7 @@ PORTNAME= jakarta-tomcat PORTVERSION= 4.0.6 +PORTREVISION= 1 CATEGORIES= www java MASTER_SITES= http://jakarta.apache.org/builds/jakarta-tomcat-${PORTVERSION:R}/release/v${PORTVERSION}/bin/ \ http://www.metaverse.nl/~ernst/ \ @@ -23,7 +24,6 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} APP_HOME?= ${PREFIX}/${PKGBASE}${PORTVERSION:R} LOG_DIR= ${APP_HOME}/logs -PLIST_SUB+= T=${APP_HOME:S/^${PREFIX}\///} APP_TITLE= Jakarta Tomcat APP_SHORTNAME= tomcat${MAJOR_VER} CONTROL_SCRIPT_NAME= ${APP_SHORTNAME}ctl @@ -50,6 +50,7 @@ ${WRKSRC}/conf/server.xml JAR_FILE= bin/bootstrap.jar WRKDIR?= ${WRKDIRPREFIX}${.CURDIR}/work +PLIST_SUB+= T=${APP_HOME:S/^${PREFIX}\///} WWWOWN=${USER} WWWGRP=${GROUP} .include Index: pkg-plist =================================================================== RCS file: /home/ncvs/ports/www/jakarta-tomcat4/pkg-plist,v retrieving revision 1.18 diff -u -r1.18 pkg-plist --- pkg-plist 10 Oct 2002 22:51:09 -0000 1.18 +++ pkg-plist 26 Sep 2003 06:59:35 -0000 @@ -960,6 +960,7 @@ %%T%%/RELEASE-NOTES-4.0.2.txt %%T%%/RELEASE-NOTES-4.0.2-B2.txt man/man1/tomcat4ctl.1 +@exec chown -R %%WWWOWN%%:%%WWWGRP%% %D/%%T%%/ @dirrm %%T%%/logs @dirrm %%T%%/webapps/tomcat-docs/appdev/sample/src/mypackage @dirrm %%T%%/webapps/tomcat-docs/appdev/sample/src Index: Makefile =================================================================== RCS file: /home/ncvs/ports/www/jakarta-tomcat3/Makefile,v retrieving revision 1.38 diff -u -r1.38 Makefile --- Makefile 7 Mar 2003 06:12:39 -0000 1.38 +++ Makefile 26 Sep 2003 07:16:58 -0000 @@ -7,7 +7,7 @@ PORTNAME= jakarta-tomcat PORTVERSION= 3.3.1 -PORTREVISION= 16 +PORTREVISION= 17 CATEGORIES= www java MASTER_SITES= http://jakarta.apache.org/builds/jakarta-tomcat/release/v${PORTVERSION}/bin/ \ http://www.metaverse.nl/~ernst/ \ @@ -24,7 +24,6 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} APP_HOME?= ${PREFIX}/${PKGBASE}${PORTVERSION:R} LOG_DIR= ${APP_HOME}/logs -PLIST_SUB+= T=${APP_HOME:S/^${PREFIX}\///} APP_TITLE= Jakarta Tomcat APP_SHORTNAME= tomcat${MAJOR_VER} CONTROL_SCRIPT_NAME= ${APP_SHORTNAME}ctl @@ -48,6 +47,7 @@ ${WRKSRC}/conf/server.xml JAR_FILE= lib/tomcat.jar WRKDIR?= ${WRKDIRPREFIX}${.CURDIR}/work +PLIST_SUB+= T=${APP_HOME:S/^${PREFIX}\///} WWWOWN=${USER} WWWGRP=${GROUP} .include Index: pkg-plist =================================================================== RCS file: /home/ncvs/ports/www/jakarta-tomcat3/pkg-plist,v retrieving revision 1.14 diff -u -r1.14 pkg-plist --- pkg-plist 15 Apr 2002 21:57:02 -0000 1.14 +++ pkg-plist 26 Sep 2003 07:17:01 -0000 @@ -175,6 +175,7 @@ %%T%%/webapps/admin.war %%T%%/webapps/examples.war man/man1/tomcat3ctl.1 +@exec chown -R %%WWWOWN%%:%%WWWGRP%% %D/%%T%%/ @dirrm %%T%%/logs @dirrm %%T%%/doc/images @dirrm %%T%%/doc/appdev/sample/lib >Release-Note: >Audit-Trail: >Unformatted: