Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Jul 1998 10:58:27 +0200 (MET DST)
From:      martin@eunet.cz
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/7194: problem in xinetd-2.2.1 port 
Message-ID:  <199807070858.KAA28148@woody.eunet.cz>

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

>Number:         7194
>Category:       ports
>Synopsis:       man pages being installed with wrong owner and permissions
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul  7 02:00:00 PDT 1998
>Last-Modified:
>Originator:     Martin Machacek
>Organization:
Internet CZ
>Release:        FreeBSD 3.0-CURRENT i386
>Environment:

Excerpt from the xinetd port top level Makefile:

# New ports collection makefile for:    xinetd
# Version required:     2.2.1
# Date created:         28 June 1996
# Whom:                 markm
#
# $Id: Makefile,v 1.4 1997/12/04 03:40:06 vanilla Exp $
#

>Description:

Man pages (xinetd.1, xinetd.conf.5 and xinetd.log.5) are being installed
with wrong owner a permissions. Currently man pages are being installed
with owner root group bin mode 0640 which makes them basically unusable
since on "normal" system almost nobody is in the bin group. Correct
owner should be bin and mode 0444.

>How-To-Repeat:

Do make install in the top level directory of the above mentioned
port.

>Fix:
	
Add folowing patch to the port's patches directory:


*** xinetd/Makefile.orig	Tue Jul  7 10:18:34 1998
--- xinetd/Makefile	Tue Jul  7 10:22:38 1998
***************
*** 133,138 ****
--- 133,139 ----
  FMODE		= -m 640		# mode for anything but executables
  INSTALL_PROGRAM	= install -c -s
  INSTALL_DATA	= install -c
+ INSTALL_MAN	= install -c -o bin -g bin -m 0444
  
  LINT_FLAGS	= -hbux
  PAGER		= less
***************
*** 183,194 ****
  
  install.man:
  	if test "$(MANPROGDIR)" ; then \
! 		$(INSTALL_DATA) $(FMODE) $(MANPROGFILE) $(MANPROGDIR)/$(MANPROGPAGE) ;\
  	fi
  	if test "$(MANDATADIR)" ; then \
  		for i in $(MANDATANAMES) ; do \
  			name=$(PROGRAM).$$i ; \
! 			$(INSTALL_DATA) $(FMODE) $$name.man $(MANDATADIR)/$$name.$(MANDATASECTION);\
  		done ;\
  	fi
  
--- 184,195 ----
  
  install.man:
  	if test "$(MANPROGDIR)" ; then \
! 		$(INSTALL_MAN) $(MANPROGFILE) $(MANPROGDIR)/$(MANPROGPAGE) ;\
  	fi
  	if test "$(MANDATADIR)" ; then \
  		for i in $(MANDATANAMES) ; do \
  			name=$(PROGRAM).$$i ; \
! 			$(INSTALL_MAN) $$name.man $(MANDATADIR)/$$name.$(MANDATASECTION);\
  		done ;\
  	fi
  

>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807070858.KAA28148>