Bug 53392

Summary: mail/pyzor installed files permissions incorrect
Product: Ports & Packages Reporter: Andrew J. Caines <A.J.Caines>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: ports
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Andrew J. Caines 2003-06-17 00:40:12 UTC
	The pyzor-0.4.0_1 (mail/pyzor) port installs its single doc with
	read (and, unneccesarily, write) access only to root. It is 600,
	but it should be 444.

	It would be good to install files such as README and ChangeLog as
	docs too.

	Additionally, the pyzor(d) scrips are installed 711, however I
	would expect 555 since they should not be writable and there is no
	need to hide the code from users.

Fix: 

pyzor-0.4.0/INSTALL indicates the need for this permissions
	change. AFAICT the "changing mode of ..." is part of the python
	package
	(${PREFIX}/lib/python2.2/distutils/command/install_scripts.py) and
	relies on pyzor-0.4.0/setup.py, however with my knowledge of
	Python (ie. diddly-squat) and quick insprection, it's not clear
	what change to make or to where, but clearly the mechanism exists.
How-To-Repeat: 	# cd /usr/ports/mail/pyzor ; make && make install
	[snip]
	running install_scripts
	copying build/scripts-2.2/pyzor -> /usr/local/bin
	copying build/scripts-2.2/pyzord -> /usr/local/bin
	changing mode of /usr/local/bin/pyzor to 711
	changing mode of /usr/local/bin/pyzord to 711
	running install_data
	creating /usr/local/share/doc/pyzor
	copying docs/usage.html -> /usr/local/share/doc/pyzor
	===>   Generating temporary packing list
	===>   Registering installation for pyzor-0.4.0_1

	# ls -l 
	-rw-------  1 root  wheel  15560 Sep  7  2002 /usr/local/share/doc/pyzor/usage.html
Comment 1 Tilman Keskinoz freebsd_committer freebsd_triage 2003-07-22 16:58:18 UTC
State Changed
From-To: open->closed

committed, thanks