Bug 57234 - [maintainer]Fix pkg permission and master_sites problem in jakarta-tomcat5
Summary: [maintainer]Fix pkg permission and master_sites problem in jakarta-tomcat5
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-26 06:00 UTC by Kang Liu
Modified: 2003-09-26 06:56 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (1.86 KB, patch)
2003-09-26 06:00 UTC, Kang Liu
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kang Liu 2003-09-26 06:00:22 UTC
1.As Angelo Turetta said in freebsd-ports, when use pkg_add to install jakarta-tomcatX, the permission of directory is not correct.
2 when use portlint checking jakarta-tomcat5, it said I should add a "/" in the end of MASTER_SITES

Fix: In my patch:
1. Add "/" to the end of MASTER_SITES
2. Add "chown" into pkg-plist to slove pkg_add permission problem.
3. Dump PORTREVISION
How-To-Repeat: 1.make package and pkg_add it. see stdout.log for details.
2. run portlint
Comment 1 Kang Liu 2003-09-26 06:04:42 UTC
There is a small mistake in the patch for pkg-plist
Here is patch for pkg-plist again:

Index: pkg-plist
===================================================================
RCS file: /home/ncvs/ports/www/jakarta-tomcat5/pkg-plist,v
retrieving revision 1.3
diff -u -r1.3 pkg-plist
--- pkg-plist	25 Sep 2003 08:59:31 -0000	1.3
+++ pkg-plist	26 Sep 2003 05:07:05 -0000
@@ -1684,6 +1684,8 @@
 %%T%%/webapps/tomcat-docs/ssl-howto.html
 %%T%%/webapps/tomcat-docs/status.html
 @exec mkdir %D/%%T%%/work || true
+@exec mkdir %D/%%T%%/common/classes ||true
+@exec chown -R %%WWWOWN%%:%%WWWGRP%% %D/%%T%%/
 @dirrm %%T%%/work
 @dirrm %%T%%/webapps/tomcat-docs/servletapi/resources
 @dirrm %%T%%/webapps/tomcat-docs/servletapi/javax/servlet/http/class-use
Comment 2 Daichi GOTO freebsd_committer freebsd_triage 2003-09-26 06:55:42 UTC
State Changed
From-To: open->closed

Committed. Thanks!