Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Aug 2007 13:46:36 +0300 (EEST)
From:      Tomas Verbaitis <tomasv@megalogika.lt>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        tomasv@megalogika.lt
Subject:   ports/115463: [PATCH] www/tomcat: fix port installation/upgrade process
Message-ID:  <20070813104637.01543416D@pilvas.lan>
Resent-Message-ID: <200708131050.l7DAo17E045967@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         115463
>Category:       ports
>Synopsis:       [PATCH] www/tomcat: fix port installation/upgrade process
>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:   Mon Aug 13 10:50:01 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Tomas Verbaitis
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
Megalogika Ltd
>Environment:
System: FreeBSD pilvas.lan 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Thu Aug  9 16:11:03 EEST
>Description:

- Set ownership $TOMCAT_HOME/webapps directory to $TOMCAT_USER:$TOMCAT_GROUP [1]

- While upgrading www/tomcat55 port, if there any directories with spaces in
their names within $TOMCAT_HOME/webapps or $TOMCAT_HOME/work directories,
setting up permissions fail. Rewrite the "Fixing permissions" loop. [2]

Submitted by:
    Gabor Tjong A Hung <g.v.tjongahung@gmail.com> [1]
    Alexey Rubtsov <arubtsov@swsoft.com> [2]

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- tomcat-5.5.23_2.patch begins here ---
diff -u -ruN --exclude=CVS /usr/ports/www/tomcat/Makefile /usr/home/tomasv/ports/www/tomcat55/Makefile
--- /usr/ports/www/tomcat/Makefile	2007-05-22 15:40:52.000000000 +0300
+++ /usr/home/tomasv/ports/www/tomcat55/Makefile	2007-08-13 13:38:42.000000000 +0300
@@ -7,7 +7,7 @@
 
 PORTNAME=	tomcat
 PORTVERSION=	5.5.23
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	www java
 MASTER_SITES=	${MASTER_SITE_APACHE}
 MASTER_SITE_SUBDIR=	tomcat/tomcat-5/v${PORTVERSION}/bin
@@ -129,10 +129,13 @@
 
 	@${ECHO_MSG} -n ">> Fixing ownership settings..."
 	@${CHOWN} -R ${TOMCAT_USER}:${TOMCAT_GROUP} ${APP_HOME}/conf ${APP_HOME}/logs \
-		${APP_HOME}/temp ${APP_HOME}/work
+		${APP_HOME}/temp ${APP_HOME}/work ${APP_HOME}/webapps
 	@${ECHO_MSG} " [ DONE ]"
 
 	@${ECHO_MSG} -n ">> Fixing permissions..."
+	@${FIND} ${APP_HOME} -type d | while read a; do\
+		${CHMOD} 755 "$$a"; \
+	done
 	@${CHMOD} 755 `${FIND} ${APP_HOME} -type d`
 	@${ECHO_MSG} " [ DONE ]"
 
--- tomcat-5.5.23_2.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?20070813104637.01543416D>