Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Aug 1999 17:58:01 +0200 (CEST)
From:      Anton Berezin <tobez@plab.ku.dk>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/13030: Many ports use ``chown'' rather than ``/usr/sbin/chown'' in their Makefiles
Message-ID:  <199908081558.RAA99239@lion.plab.ku.dk>

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

>Number:         13030
>Category:       ports
>Synopsis:       Many ports use ``chown'' rather than ``/usr/sbin/chown'' in their Makefiles
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug  8 09:10:00 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Anton Berezin
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
The Protein Laboratory, University of Copenhagen
>Environment:

Port tree cvsup'ed today

>Description:

[I've put ``high'' into priority section because the patch touches lots
of files and it can become outdated very quickly]

Many Makefiles in the ports collection use chown command as is.  This
basically means that if the person who installs such port has not added
/usr/sbin to her PATH, the ports will not be installed.  Though this is
very easy to fix for the installer, it seems that it is appropriate to
fix it in the ports collection instead.

There are currently 20 ports that use ``/usr/bin/chown'', and 68 ports
that use just ``chown''.

>How-To-Repeat:

E.g.,

$ cd /usr/ports/shells/tcsh; PATH=/bin:/usr/bin make install

>Fix:

Unfortunately, bsd.port.mk does not provide the CHOWN variable, like it
does with LN, CP etc.

There are two ways to fix this.  The first is to introduce CHOWN into
bsd.port.mk, and change all ports which use chown, either as ``chown'',
or as ``/usr/sbin/chown'' (20+68=88 ports).

The second way (I've put a patch here for this) is to change 68
``chown'' ports to match their well-behaved ``/usr/sbin/chown'' friends.

One more suggestion could be to add check for chown to portlint. :-)

You decide. :-)

Cheers,
Anton.


--- cad/magic/Makefile.orig	Tue Dec  1 18:52:00 1998
+++ cad/magic/Makefile	Sun Aug  8 17:35:59 1999
@@ -27,32 +27,32 @@
 
 post-install:
 	@chmod ${BINMODE} ${PREFIX}/bin/spice2sim
-	@chown ${BINOWN}.${BINGRP} ${PREFIX}/bin/spice2sim
+	@/usr/sbin/chown ${BINOWN}.${BINGRP} ${PREFIX}/bin/spice2sim
 .for f in ${BINS}
 	@chmod ${BINMODE} ${PREFIX}/bin/$f
-	@chown ${BINOWN}.${BINGRP} ${PREFIX}/bin/$f
+	@/usr/sbin/chown ${BINOWN}.${BINGRP} ${PREFIX}/bin/$f
 	@strip ${PREFIX}/bin/$f
 .endfor
 .for f in ${MAN1}
 	@chmod ${MANMODE} ${PREFIX}/man/man1/$f
-	@chown ${MANOWN}.${MANGRP} ${PREFIX}/man/man1/$f
+	@/usr/sbin/chown ${MANOWN}.${MANGRP} ${PREFIX}/man/man1/$f
 .endfor
 .for f in ${MAN3}
 	@chmod ${MANMODE} ${PREFIX}/man/man3/$f
-	@chown ${MANOWN}.${MANGRP} ${PREFIX}/man/man3/$f
+	@/usr/sbin/chown ${MANOWN}.${MANGRP} ${PREFIX}/man/man3/$f
 .endfor
 .for f in ${MAN5}
 	@chmod ${MANMODE} ${PREFIX}/man/man5/$f
-	@chown ${MANOWN}.${MANGRP} ${PREFIX}/man/man5/$f
+	@/usr/sbin/chown ${MANOWN}.${MANGRP} ${PREFIX}/man/man5/$f
 .endfor
 .for f in ${MAN8}
 	@chmod ${MANMODE} ${PREFIX}/man/man8/$f
-	@chown ${MANOWN}.${MANGRP} ${PREFIX}/man/man8/$f
+	@/usr/sbin/chown ${MANOWN}.${MANGRP} ${PREFIX}/man/man8/$f
 .endfor
 	@chmod -R a+rX,go-w ${PREFIX}/lib/magic
-	@chown -R ${SHAREOWN}.${SHAREGRP} ${PREFIX}/lib/magic
+	@/usr/sbin/chown -R ${SHAREOWN}.${SHAREGRP} ${PREFIX}/lib/magic
 	@chmod ${SHAREMODE} ${PREFIX}/lib/mpack.h ${PREFIX}/lib/libmpack.a
-	@chown ${SHAREOWN}.${SHAREGRP} ${PREFIX}/lib/mpack.h		\
+	@/usr/sbin/chown ${SHAREOWN}.${SHAREGRP} ${PREFIX}/lib/mpack.h		\
 	  ${PREFIX}/lib/libmpack.a
 
 .include <bsd.port.mk>
--- cad/sis/Makefile.orig	Tue Dec  1 18:52:00 1998
+++ cad/sis/Makefile	Sun Aug  8 17:35:59 1999
@@ -57,7 +57,7 @@
 	${INSTALL_DATA} ${WRKSRC}/SIS_paper.ps ${PREFIX}/lib/sis
 	${INSTALL_DATA} ${WRKSRC}/RELEASE-NOTES-1.2 ${PREFIX}/lib/sis
 	${GZIP_CMD} ${PREFIX}/lib/sis/SIS_paper.ps
-	chown -R bin:bin ${PREFIX}/lib/sis
+	/usr/sbin/chown -R bin:bin ${PREFIX}/lib/sis
 .endif
 
 .include <bsd.port.mk>
--- comms/hylafax/Makefile.orig	Sat May 15 17:36:25 1999
+++ comms/hylafax/Makefile	Sun Aug  8 17:35:59 1999
@@ -56,7 +56,7 @@
 		${PREFIX}/bin/faxrm ${PREFIX}/bin/faxalter
 
 post-install:
-	chown uucp ${SUID_EXES}
+	/usr/sbin/chown uucp ${SUID_EXES}
 	chmod 4555 ${SUID_EXES}
 	@if [ ! -f ${PREFIX}/etc/rc.d/hylafax.sh.sample ]; then	\
 		${CP} ${FILESDIR}/hylafax.sh.sample ${PREFIX}/etc/rc.d;	\
--- databases/postgresql/Makefile.orig	Wed Jul 28 17:25:59 1999
+++ databases/postgresql/Makefile	Sun Aug  8 17:35:59 1999
@@ -159,14 +159,14 @@
 		${ECHO} "#export TZ" \
 			>> ${PREFIX}/pgsql/.profile; \
 	fi
-	@ chown -R pgsql:pgsql ${PREFIX}/pgsql
+	@ /usr/sbin/chown -R pgsql:pgsql ${PREFIX}/pgsql
 	@ ${ECHO} 'Initializing PostgreSQL Databases - this may take a few minutes...'
 	@ ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/pgsql/lib
 	@ su -l pgsql -c 'PATH=${PREFIX}/pgsql/bin:${PATH} ${PREFIX}/pgsql/bin/initdb --pglib=${PREFIX}/pgsql/lib --pgdata=${PREFIX}/pgsql/data'
 	@ ${SED} -e "s=!!PREFIX!!=${PREFIX}=g" < ${FILESDIR}/pgsql.sh.tmpl \
 		> ${PREFIX}/etc/rc.d/pgsql.sh
 	@ chmod 554 ${PREFIX}/etc/rc.d/pgsql.sh
-	@ chown root.pgsql ${PREFIX}/etc/rc.d/pgsql.sh
+	@ /usr/sbin/chown root.pgsql ${PREFIX}/etc/rc.d/pgsql.sh
 	@ ${INSTALL_DATA} ${FILESDIR}/post-install-notes ${PREFIX}/pgsql
 
 .if defined(USE_TCL)
--- databases/py-PyGreSQL/Makefile.orig	Sun May 30 18:17:48 1999
+++ databases/py-PyGreSQL/Makefile	Sun Aug  8 17:36:00 1999
@@ -22,7 +22,7 @@
 MAKE_ENV=		PYTHON=${PREFIX}/bin/python \
 			LN="${LN}" SETENV="${SETENV}" MKDIR="${MKDIR}"
 
-CHOWN?=			chown
+CHOWN?=			/usr/sbin/chown
 CHMOD?=			chmod
 
 pre-build:
--- editors/mule-common/Makefile.orig	Fri Jul  2 12:06:55 1999
+++ editors/mule-common/Makefile	Sun Aug  8 17:36:00 1999
@@ -156,7 +156,7 @@
 		${ECHO} "fi" >> ${STARTUP_SCRIPT} ; \
 		${ECHO} "chmod 1777 /var/run/emacs/lock${lockdir}" >> ${STARTUP_SCRIPT} ; \
 		chmod 755 ${STARTUP_SCRIPT} ;				\
-		chown bin.bin ${STARTUP_SCRIPT};			\
+		/usr/sbin/chown bin.bin ${STARTUP_SCRIPT};			\
 	fi
 
 post-package:
--- games/crossfire/Makefile.orig	Sun Jan 31 22:15:29 1999
+++ games/crossfire/Makefile	Sun Aug  8 17:36:00 1999
@@ -69,9 +69,9 @@
 	@chmod 664 ${CFDIR}/lib/forbid
 	@touch ${CFDIR}/lib/players/.keep_me
 	@touch ${CFDIR}/lib/unique-items/.keep_me
-	@chown -R games.games ${CFDIR}
+	@/usr/sbin/chown -R games.games ${CFDIR}
 	@chmod 0664 ${CFDIR}/lib/highscore
-	@chown games.games ${PREFIX}/bin/crossfire
+	@/usr/sbin/chown games.games ${PREFIX}/bin/crossfire
 	@chmod 6555 ${PREFIX}/bin/crossfire
 	${ECHO} "Note: to start crossfire in clientmode"
 	${ECHO} "	crossfire -xpm"
--- games/inform/Makefile.orig	Mon May 24 18:32:21 1999
+++ games/inform/Makefile	Sun Aug  8 17:36:00 1999
@@ -50,17 +50,17 @@
 		verblibm
 	@${MV} ${PREFIX}/share/inform/${file} ${PREFIX}/share/inform/${file}.h
 	@ chmod ${SHAREMODE} ${PREFIX}/share/inform/${file}.h
-	@ chown ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/inform/${file}.h
+	@ /usr/sbin/chown ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/inform/${file}.h
 .endfor
 	@${LN} -fs Verblib.h ${PREFIX}/share/inform/VerbLib.h
-	@ chown ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/inform/VerbLib.h
+	@ /usr/sbin/chown ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/inform/VerbLib.h
 .if !defined(NOPORTDOCS)
 	@ (umask 222 && unzip -qq -o -d ${PREFIX}/share/doc \
 		${DISTDIR}/${DIST_SUBDIR}/designers_manual_html.zip)
 	@${MKDIR} ${PREFIX}/share/doc/inform
 	@${MV} ${PREFIX}/share/doc/dman/* ${PREFIX}/share/doc/inform
 	@${RMDIR} ${PREFIX}/share/doc/dman
-	@ chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/doc/inform
+	@ /usr/sbin/chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/doc/inform
 .endif
 
 .include <bsd.port.mk>
--- games/maelstrom/Makefile.orig	Sun Sep 20 12:46:06 1998
+++ games/maelstrom/Makefile	Sun Aug  8 17:36:00 1999
@@ -29,7 +29,7 @@
 	@ ${INSTALL_DATA} ${WRKSRC}/Maelstrom\ ${file} ${PREFIX}/share/Maelstrom
 .endfor
 	@ ${INSTALL_DATA} ${WRKSRC}/Maelstrom-Scores ${PREFIX}/share/Maelstrom
-	@ chown games:games ${PREFIX}/share/Maelstrom/Maelstrom-Scores
+	@ /usr/sbin/chown games:games ${PREFIX}/share/Maelstrom/Maelstrom-Scores
 	@ chmod 666 ${PREFIX}/share/Maelstrom/Maelstrom-Scores
 	@ ${MKDIR} ${PREFIX}/share/Maelstrom/Images
 	@ ${INSTALL_DATA} ${WRKSRC}/Images/*n ${PREFIX}/share/Maelstrom/Images
--- games/mangband/Makefile.orig	Fri Jan  1 04:14:08 1999
+++ games/mangband/Makefile	Sun Aug  8 17:36:00 1999
@@ -25,7 +25,7 @@
 	cd ${WRKSRC}/../lib; cp -R -p * ${MALIB}; \
 	   cd ${MALIB}; \
 	   touch file/wizards.txt; \
-	   chmod 750 *; chown -R games.games *; \
+	   chmod 750 *; /usr/sbin/chown -R games.games *; \
 	   chmod 755 user;
 	cd ${WRKSRC}; \
 	   ${INSTALL_PROGRAM} -o games -g games -m 4550 \
--- games/nethack-qt/Makefile.orig	Sun May 30 18:18:09 1999
+++ games/nethack-qt/Makefile	Sun Aug  8 17:36:00 1999
@@ -54,7 +54,7 @@
 	${CP} ${WRKSRC}/doc/Guidebook.txt ${PREFIX}/share/doc/nethack
 .endif
 	@ cd ${PREFIX}/lib/nethackdir; tar xzf ${DISTDIR}/${QT_SOUND}
-	@ cd ${PREFIX}/lib/nethackdir; chown games.games *.au .nethackrc
+	@ cd ${PREFIX}/lib/nethackdir; /usr/sbin/chown games.games *.au .nethackrc
 	@ cd ${PREFIX}/lib/nethackdir; chmod 444 *.au .nethackrc
 	@ ${ECHO}  "-----------------------"
 	@ ${ECHO}  "post-installation hints
--- games/omega/Makefile.orig	Mon Jul  5 05:05:57 1999
+++ games/omega/Makefile	Sun Aug  8 17:36:00 1999
@@ -20,7 +20,7 @@
 do-install:
 	@ ${INSTALL_PROGRAM} ${WRKSRC}/omega ${PREFIX}/bin
 	@ ${INSTALL_MAN} ${WRKSRC}/docs/omega.6 ${PREFIX}/man/man6
-	@ chown games:games ${PREFIX}/bin/omega
+	@ /usr/sbin/chown games:games ${PREFIX}/bin/omega
 	@ chmod 4711 ${PREFIX}/bin/omega
 	@ ${MKDIR} ${PREFIX}/share/omega
 	@ ${INSTALL_DATA} ${WRKSRC}/lib/* ${PREFIX}/share/omega
@@ -28,7 +28,7 @@
 	@ chmod 0600 ${PREFIX}/share/omega/omega.hi
 	@ chmod 0600 ${PREFIX}/share/omega/omega.log
 	@ ${CP} ${PREFIX}/share/omega/omega.hi ${PREFIX}/share/omega/omegahi.bak
-	@ chown -R games:games ${PREFIX}/share/omega
+	@ /usr/sbin/chown -R games:games ${PREFIX}/share/omega
 
 post-install:
 .if !defined(NOPORTDOCS)
--- games/sokoban/Makefile.orig	Wed Jul  2 09:13:50 1997
+++ games/sokoban/Makefile	Sun Aug  8 17:36:00 1999
@@ -19,17 +19,17 @@
 
 do-install:
 	@ ${INSTALL_PROGRAM} ${WRKSRC}/sokoban ${PREFIX}/bin/sokoban
-	@ chown games:bin ${PREFIX}/bin/sokoban
+	@ /usr/sbin/chown games:bin ${PREFIX}/bin/sokoban
 	@ chmod 4555 ${PREFIX}/bin/sokoban
 	@ ${MKDIR} ${PREFIX}/share/sokoban
-	@ chown games:bin ${PREFIX}/share/sokoban
+	@ /usr/sbin/chown games:bin ${PREFIX}/share/sokoban
 	@ ${MKDIR} ${PREFIX}/share/sokoban/screens
-	@ chown games:bin ${PREFIX}/share/sokoban/screens
+	@ /usr/sbin/chown games:bin ${PREFIX}/share/sokoban/screens
 	@ ${INSTALL_DATA} ${WRKSRC}/screens/* ${PREFIX}/share/sokoban/screens
 	@ if [ ! -f ${PREFIX}/share/sokoban/highscore ]; then \
 		dd if=/dev/zero of=${PREFIX}/share/sokoban/highscore bs=1 count=2; \
 	  fi
-	@ chown games:bin ${PREFIX}/share/sokoban/highscore
+	@ /usr/sbin/chown games:bin ${PREFIX}/share/sokoban/highscore
 	@ chmod 0600 ${PREFIX}/share/sokoban/highscore
 
 .include <bsd.port.mk>
--- games/sol/Makefile.orig	Sat May  1 04:02:40 1999
+++ games/sol/Makefile	Sun Aug  8 17:36:00 1999
@@ -31,8 +31,8 @@
 	@ ${MKDIR} ${PREFIX}/share/doc/sol
 	@ ${INSTALL_DATA} ${WRKSRC}/CREDITS ${PREFIX}/share/doc/sol
 	@ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/sol
-	@ chown games:games ${PREFIX}/bin/sol
-	@ chown games:games ${PREFIX}/share/sol/sol.score
+	@ /usr/sbin/chown games:games ${PREFIX}/bin/sol
+	@ /usr/sbin/chown games:games ${PREFIX}/share/sol/sol.score
 	@ chmod 6755 ${PREFIX}/bin/sol
 	@ chmod 770 ${PREFIX}/share/sol
 	@ chmod 660 ${PREFIX}/share/sol/sol.score
--- games/xpat2/Makefile.orig	Wed Jun  9 14:54:05 1999
+++ games/xpat2/Makefile	Sun Aug  8 17:36:00 1999
@@ -20,7 +20,7 @@
 
 post-install:
 	${TOUCH} $(PREFIX)/lib/X11/xpat/xpat.log
-	chown root.games $(PREFIX)/lib/X11/xpat/xpat.log $(PREFIX)/bin/xpat2
+	/usr/sbin/chown root.games $(PREFIX)/lib/X11/xpat/xpat.log $(PREFIX)/bin/xpat2
 	chmod 2555 $(PREFIX)/bin/xpat2
 	chmod 664 $(PREFIX)/lib/X11/xpat/xpat.log
 
--- games/xtet42/Makefile.orig	Mon Apr 19 06:21:27 1999
+++ games/xtet42/Makefile	Sun Aug  8 17:36:00 1999
@@ -20,7 +20,7 @@
 
 do-install:
 	${MKDIR} ${PREFIX}/lib/X11/xtet42
-	@chown games:games ${PREFIX}/lib/X11/xtet42
+	@/usr/sbin/chown games:games ${PREFIX}/lib/X11/xtet42
 	@chmod 775 ${PREFIX}/lib/X11/xtet42
 	${INSTALL} -c -m 2755 -g games ${WRKSRC}/xtet42 ${PREFIX}/bin
 	${INSTALL} -c -m 664  -g games ${WRKSRC}/xtet42.hiscore ${PREFIX}/lib/X11/xtet42/.xtet42.hiscore
--- graphics/hobbes-icons-xpm/Makefile.orig	Sun May 30 18:18:24 1999
+++ graphics/hobbes-icons-xpm/Makefile	Sun Aug  8 17:36:00 1999
@@ -24,7 +24,7 @@
 do-install:
 	${MKDIR} ${LIBDIR}
 	${CP} -R ${WRKSRC}/* ${LIBDIR}
-	chown -R ${BINOWN}:${BINGRP} ${LIBDIR}
+	/usr/sbin/chown -R ${BINOWN}:${BINGRP} ${LIBDIR}
 	-${RM} ${LIBDIR}/README
 	-${RM} ${LIBDIR}/readem.shar
 
--- graphics/urt/Makefile.orig	Sun Feb  7 17:36:19 1999
+++ graphics/urt/Makefile	Sun Aug  8 17:36:00 1999
@@ -68,7 +68,7 @@
 	${RM} -rf doc; \
 	cd ${PREFIX}/share/examples/urt; \
 	${TAR} xf $(DISTDIR)/urt-img.tar; \
-	chown -R root:wheel . ; \
+	/usr/sbin/chown -R root:wheel . ; \
 	find . -type d -exec chmod 775 '{}' \; ; \
 	find . -type f -exec chmod 664 '{}' \;
 .endif
--- japanese/Canna/Makefile.orig	Sun Jan 17 14:45:24 1999
+++ japanese/Canna/Makefile	Sun Aug  8 17:36:00 1999
@@ -43,7 +43,7 @@
 
 pre-install:
 	${MKDIR} /var/run/canna
-	chown bin.bin /var/run/canna
+	/usr/sbin/chown bin.bin /var/run/canna
 
 post-install:
 .if ${PORTOBJFORMAT} == "aout"
--- japanese/Wnn/Makefile.orig	Mon May  3 17:17:26 1999
+++ japanese/Wnn/Makefile	Sun Aug  8 17:36:00 1999
@@ -158,7 +158,7 @@
 	${MKDIR} ${PORT_DOCDIR}
 	@(cd ${DOC_FROM}; tar cvf - manual manual.en | \
 		(cd ${PORT_DOCDIR}; tar xf -))
-	@chown -R bin.bin ${PORT_DOCDIR}
+	@/usr/sbin/chown -R bin.bin ${PORT_DOCDIR}
 .endif
 .endif
 ### for the shared libray
--- japanese/edict/Makefile.orig	Mon Jul 19 10:15:37 1999
+++ japanese/edict/Makefile	Sun Aug  8 17:36:00 1999
@@ -110,7 +110,7 @@
 			cd ${DATADIR} ; \
 			${ECHO} ${PREFIX}/bin/xjdxgen $$instfile ; \
 			${PREFIX}/bin/xjdxgen $$instfile ; \
-			chown ${SHAREOWN}.${SHAREGRP} $$instfile $$instfile.xjdx; \
+			/usr/sbin/chown ${SHAREOWN}.${SHAREGRP} $$instfile $$instfile.xjdx; \
 			chmod ${SHAREMODE} $$instfile $$instfile.xjdx ; \
 		) ; \
 	done
@@ -141,7 +141,7 @@
 	@${ECHO} dicfile 4jwords >> ${DATADIR}/.xjdicrc
 	# @${ECHO} dicfile concrete.doc >> ${DATADIR}/.xjdicrc
 	# @${ECHO} dicfile lingdic >> ${DATADIR}/.xjdicrc
-	@chown ${SHAREOWN}.${SHAREGRP} ${DATADIR}/.xjdicrc
+	@/usr/sbin/chown ${SHAREOWN}.${SHAREGRP} ${DATADIR}/.xjdicrc
 	@chmod ${SHAREMODE} ${DATADIR}/.xjdicrc
 	${INSTALL_MAN} ${WRKSRC}/xjdic.1 ${PREFIX}/man/man1
 .if !defined(NOPORTDOCS)
--- japanese/elvis/Makefile.orig	Wed Sep 23 11:08:19 1998
+++ japanese/elvis/Makefile	Sun Aug  8 17:36:00 1999
@@ -49,7 +49,7 @@
 			>> ${STARTUP_SCRIPT};				\
 		echo 'fi' >> ${STARTUP_SCRIPT};				\
 		chmod 755 ${STARTUP_SCRIPT};				\
-		chown bin.bin ${STARTUP_SCRIPT};                        \
+		/usr/sbin/chown bin.bin ${STARTUP_SCRIPT};                        \
 	fi
 
 .include <bsd.port.mk>
--- japanese/lynx-current/Makefile.orig	Mon May 24 18:32:45 1999
+++ japanese/lynx-current/Makefile	Sun Aug  8 17:36:00 1999
@@ -27,9 +27,9 @@
 	@${INSTALL_DATA} ${WRKSRC}/lynx.cfg ${PREFIX}/etc/lynx.cfg.sample
 .if !defined(NOPORTDOCS)
 	@(cd ${WRKSRC} ; make install-doc)
-	@chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/doc/lynx
+	@/usr/sbin/chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/doc/lynx
 	@${INSTALL_DATA} ${WRKSRC}/lynx.cfg ${PREFIX}/share/doc/lynx/samples/
 .endif
-	@chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/lib/lynx_help
+	@/usr/sbin/chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/lib/lynx_help
 
 .include <bsd.port.mk>
--- japanese/lynx/Makefile.orig	Tue Jul  6 13:23:15 1999
+++ japanese/lynx/Makefile	Sun Aug  8 17:36:00 1999
@@ -39,8 +39,8 @@
 post-install:
 .if !defined(NOPORTDOCS)
 	@(cd ${WRKSRC} ; make install-doc)
-	@chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/${L_DOCDIR}
+	@/usr/sbin/chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/${L_DOCDIR}
 .endif
-	@chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/${L_HELPDIR}
+	@/usr/sbin/chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/${L_HELPDIR}
 
 .include <bsd.port.mk>
--- japanese/paledit/Makefile.orig	Thu Mar  4 13:10:42 1999
+++ japanese/paledit/Makefile	Sun Aug  8 17:36:00 1999
@@ -18,6 +18,6 @@
 
 post-install:
 	@chmod 2754 ${PREFIX}/sbin/paledit
-	@chown root:dialer ${PREFIX}/sbin/paledit
+	@/usr/sbin/chown root:dialer ${PREFIX}/sbin/paledit
 
 .include <bsd.port.mk>
--- japanese/pgp.language/Makefile.orig	Mon May  3 17:17:49 1999
+++ japanese/pgp.language/Makefile	Sun Aug  8 17:36:00 1999
@@ -32,7 +32,7 @@
 do-install:
 	-[ -d ${PGPLIB} ] || { \
 		${MKDIR} ${PGPLIB} ; \
-		chown bin.bin ${PGPLIB} ; \
+		/usr/sbin/chown bin.bin ${PGPLIB} ; \
 		chmod 555 ${PGPLIB} ; }
 	-[ -f ${PGPLIB}/language.txt ] && \
 		${MV} ${PGPLIB}/language.txt ${PGPLIB}/language.txt.bak
--- japanese/postgresql/Makefile.orig	Tue Apr 20 18:47:48 1999
+++ japanese/postgresql/Makefile	Sun Aug  8 17:36:00 1999
@@ -146,14 +146,14 @@
 		${ECHO} "#export TZ" \
 			>> ${PREFIX}/${INSTALL_DIR}/.profile; \
 	fi
-	@ chown -R ${PGSQL_UID}:${PGSQL_GID} ${PREFIX}/${INSTALL_DIR}
+	@ /usr/sbin/chown -R ${PGSQL_UID}:${PGSQL_GID} ${PREFIX}/${INSTALL_DIR}
 	@ ${ECHO} 'Initializing PostgreSQL Databases - this may take a few minutes...'
 	@ ${LDCONFIG} -m ${PREFIX}/${INSTALL_DIR}/lib
 	@ /usr/bin/su -l ${PGSQL_UID} -c '${PREFIX}/${INSTALL_DIR}/bin/initdb --pglib=${PREFIX}/${INSTALL_DIR}/lib --pgdata=${PREFIX}/${INSTALL_DIR}/data'
 	@ ${SED} "s=!!PG_PATH!!=${PREFIX}/${INSTALL_DIR}=g ; s=!!PGSQL_UID!!=${PGSQL_UID}=g" \
 		< ${FILESDIR}/pgsql.sh.tmpl > ${PREFIX}/etc/rc.d/pgsql.sh
 	@ chmod 554 ${PREFIX}/etc/rc.d/pgsql.sh
-	@ chown root.${PGSQL_GID} ${PREFIX}/etc/rc.d/pgsql.sh
+	@ /usr/sbin/chown root.${PGSQL_GID} ${PREFIX}/etc/rc.d/pgsql.sh
 	@ ${INSTALL_DATA} ${FILESDIR}/post-install-notes ${PREFIX}/${INSTALL_DIR}
 .if !defined(NOPORTDOCS)
 	${MKDIR} ${PREFIX}/share/doc/${INSTALL_DIR}
--- japanese/sj3/Makefile.orig	Tue Dec  1 18:54:28 1998
+++ japanese/sj3/Makefile	Sun Aug  8 17:36:00 1999
@@ -37,7 +37,7 @@
 		${ECHO} '     $$sj3' >> ${STARTUP_SCRIPT} ;		\
 		${ECHO} "fi" >> ${STARTUP_SCRIPT} ;			\
 		chmod 755 ${STARTUP_SCRIPT} ;				\
-		chown bin.bin ${STARTUP_SCRIPT};			\
+		/usr/sbin/chown bin.bin ${STARTUP_SCRIPT};			\
 	fi
 	${SETENV} PKG_PREFIX=${PREFIX} \
 		${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
--- java/jdk-tutorial/Makefile.orig	Wed Jun 30 21:10:51 1999
+++ java/jdk-tutorial/Makefile	Sun Aug  8 17:36:00 1999
@@ -23,7 +23,7 @@
 .include <bsd.port.pre.mk>
 
 post-extract:
-	(cd ${WRKSRC} && chown -R root.wheel *)
+	(cd ${WRKSRC} && /usr/sbin/chown -R root.wheel *)
 
 do-install:
 	${MKDIR} ${PREFIX}/jdk${VERSION}/docs/books/tutorial
--- java/jfc/Makefile.orig	Wed Jun 30 21:10:52 1999
+++ java/jfc/Makefile	Sun Aug  8 17:36:00 1999
@@ -35,6 +35,6 @@
 	${MKDIR} ${PREFIX}/${JFCSUBDIR}
 	(cd ${WRKSRC} && tar -c -f - .) \
 		| (cd ${PREFIX}/${JFCSUBDIR} && tar fx -)
-	chown -R ${SHAREOWN}.${SHAREGRP} ${PREFIX}/${JFCSUBDIR}
+	/usr/sbin/chown -R ${SHAREOWN}.${SHAREGRP} ${PREFIX}/${JFCSUBDIR}
 
 .include <bsd.port.mk>
--- korean/pgp.language/Makefile.orig	Wed Jul 28 17:26:59 1999
+++ korean/pgp.language/Makefile	Sun Aug  8 17:36:00 1999
@@ -35,7 +35,7 @@
 do-install:
 	-[ -d ${PGPLIB} ] || { \
 		${MKDIR} ${PGPLIB} ; \
-		chown bin.bin ${PGPLIB} ; \
+		/usr/sbin/chown bin.bin ${PGPLIB} ; \
 		chmod 555 ${PGPLIB} ; }
 	-[ -f ${PGPLIB}/language.txt ] && \
 		${MV} ${PGPLIB}/language.txt ${PGPLIB}/language.txt.bak
--- lang/TenDRA/Makefile.orig	Thu Jul  8 15:06:45 1999
+++ lang/TenDRA/Makefile	Sun Aug  8 17:36:01 1999
@@ -59,18 +59,18 @@
 	cd ${WRKSRC} && \
 	./INSTALL.install -tcc -strip)
 	@(cd ${PREFIX}/bin && \
-	chown ${BINOWN}:${BINGRP} tcc tchk tspec && \
+	/usr/sbin/chown ${BINOWN}:${BINGRP} tcc tchk tspec && \
 	chmod ${BINMODE} tcc tchk tspec)
 	@(cd ${PREFIX} && \
-	chown -R ${BINOWN}:${BINGRP} lib/TenDRA && \
+	/usr/sbin/chown -R ${BINOWN}:${BINGRP} lib/TenDRA && \
 	find -X lib/TenDRA -type d | xargs chmod 755 && \
 	${GREP} '^lib/' ${TMPPLIST} | xargs chmod ${SHAREMODE} && \
 	${GREP} '/bin/' ${TMPPLIST} | xargs chmod ${BINMODE})
 	@(cd ${PREFIX}/man/man1 && \
-	chown ${MANOWN}:${MANGRP} ${MAN1} && \
+	/usr/sbin/chown ${MANOWN}:${MANGRP} ${MAN1} && \
 	chmod ${MANMODE} ${MAN1})
 	@(cd ${PREFIX}/man/man5 && \
-	chown ${MANOWN}:${MANGRP} ${MAN5} && \
+	/usr/sbin/chown ${MANOWN}:${MANGRP} ${MAN5} && \
 	chmod ${MANMODE} ${MAN5})
 
 .include <bsd.port.mk>
--- lang/gnat/Makefile.orig	Fri Jul  2 12:07:28 1999
+++ lang/gnat/Makefile	Sun Aug  8 17:36:01 1999
@@ -186,7 +186,7 @@
 		strip $$prog ; \
 	    fi \
 	done)
-	@(chown -R bin:bin ${PREFIX}/lib/gcc-lib/${GNUHOST}/${GCC_VERSION})
+	@(/usr/sbin/chown -R bin:bin ${PREFIX}/lib/gcc-lib/${GNUHOST}/${GCC_VERSION})
 	@(${ECHO} "-----------------------------------------------------------" )
 	@(${ECHO} "" )
 	@(${ECHO} "For information about using the tasking library please read" )
--- lang/hugs/Makefile.orig	Mon Sep  7 17:38:47 1998
+++ lang/hugs/Makefile	Sun Aug  8 17:36:01 1999
@@ -35,14 +35,14 @@
 	# fix owner/permissions
 	find ${PREFIX}/share/hugs -type d | xargs chmod 755
 	find ${PREFIX}/share/hugs -type f | xargs chmod ${SHAREMODE}
-	find ${PREFIX}/share/hugs         | xargs chown ${SHAREOWN}.${SHAREGRP}
+	find ${PREFIX}/share/hugs         | xargs /usr/sbin/chown ${SHAREOWN}.${SHAREGRP}
 .if !defined(NOPORTDOCS)
 	${INSTALL_DIR} ${PREFIX}/share/doc/hugs
 	${CP} -R ${HUGS_DOC}/* ${PREFIX}/share/doc/hugs
 	# fix owner/permissions
 	find ${PREFIX}/share/doc/hugs -type d | xargs chmod 755
 	find ${PREFIX}/share/doc/hugs -type f | xargs chmod ${SHAREMODE}
-	find ${PREFIX}/share/doc/hugs         | xargs chown ${SHAREOWN}.${SHAREGRP}
+	find ${PREFIX}/share/doc/hugs         | xargs /usr/sbin/chown ${SHAREOWN}.${SHAREGRP}
 .endif
 
 .include <bsd.port.mk>
--- lang/modula-3-lib/Makefile.orig	Sun Jan 31 22:16:11 1999
+++ lang/modula-3-lib/Makefile	Sun Aug  8 17:36:01 1999
@@ -140,7 +140,7 @@
 		cpio -dump -R ${BINOWN}.${BINGRP} ${PREFIX}
 	@cd ${PREFIX}; \
 	    grep '^lib/m3/' ${PLIST}.real | xargs chmod go=u-w; \
-	    find -X lib/m3 -type d | xargs chown ${BINOWN}.${BINGRP}; \
+	    find -X lib/m3 -type d | xargs /usr/sbin/chown ${BINOWN}.${BINGRP}; \
 	    find -X lib/m3 -type d | xargs chmod 755
 	@echo "Installing copyright notice"
 	@if [ ! -d ${PREFIX}/share/modula-3-lib ]; then \
--- lang/modula-3-socks/Makefile.orig	Tue Nov 12 03:18:42 1996
+++ lang/modula-3-socks/Makefile	Sun Aug  8 17:36:01 1999
@@ -39,7 +39,7 @@
 	@cd ${PREFIX}/lib; \
 	    test -d m3/FreeBSD2 || { \
 		${MKDIR} m3/FreeBSD2; \
-		chown ${BINOWN}.${BINGRP} m3 m3/FreeBSD2; \
+		/usr/sbin/chown ${BINOWN}.${BINGRP} m3 m3/FreeBSD2; \
 	    }
 
 post-install:
--- lang/modula-3/Makefile.orig	Mon Jul 19 10:15:53 1999
+++ lang/modula-3/Makefile	Sun Aug  8 17:36:01 1999
@@ -101,10 +101,10 @@
 	@echo "Fixing file permissions"
 	@cd ${PREFIX}; \
 	    sed -e "/^@/d" -e "s/\.gz$$//" ${PLIST}.real |\
-		xargs chown ${BINOWN}.${BINGRP}; \
+		xargs /usr/sbin/chown ${BINOWN}.${BINGRP}; \
 	    sed -e "/^@/d" -e "s/\.gz$$//" ${PLIST}.real |\
 		xargs chmod go=u-w; \
-	    find -X lib/m3 -type d | xargs chown ${BINOWN}.${BINGRP}; \
+	    find -X lib/m3 -type d | xargs /usr/sbin/chown ${BINOWN}.${BINGRP}; \
 	    find -X lib/m3 -type d | xargs chmod 755
 	@echo "Running ldconfig"
 	@${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib/m3/FreeBSD2
--- mail/smtpd/Makefile.orig	Sat Jul  4 01:30:14 1998
+++ mail/smtpd/Makefile	Sun Aug  8 17:36:01 1999
@@ -30,15 +30,15 @@
 
 	@${ECHO} "Creating spool directories..."
 	@${MKDIR} ${SPOOLBASE}
-	@chown root.uucp ${SPOOLBASE}
+	@/usr/sbin/chown root.uucp ${SPOOLBASE}
 	@chmod 0710 ${SPOOLBASE}
 
 	@${MKDIR} ${SPOOLBASE}/mqueue
-	@chown uucp.uucp ${SPOOLBASE}/mqueue
+	@/usr/sbin/chown uucp.uucp ${SPOOLBASE}/mqueue
 	@chmod 0700 ${SPOOLBASE}/mqueue
 
 	@${MKDIR} ${SPOOLBASE}/etc
-	@chown root.uucp ${SPOOLBASE}/etc
+	@/usr/sbin/chown root.uucp ${SPOOLBASE}/etc
 	@chmod 0710 ${SPOOLBASE}/etc
 .if !defined(BATCH)
 	@${CP} -p /etc/resolv.conf ${SPOOLBASE}/etc
@@ -61,7 +61,7 @@
 		< ${FILESDIR}/smtpd.sh		\
 		> ${PREFIX}/etc/rc.d/smtpd.sh
 	@chmod 0700 ${PREFIX}/etc/rc.d/smtpd.sh
-	@chown 0.0 ${PREFIX}/etc/rc.d/smtpd.sh
+	@/usr/sbin/chown 0.0 ${PREFIX}/etc/rc.d/smtpd.sh
 
 	@${ECHO} "Done!"
 
--- misc/rc5des/Makefile.orig	Tue Jul  6 13:23:45 1999
+++ misc/rc5des/Makefile	Sun Aug  8 17:36:01 1999
@@ -68,7 +68,7 @@
 	install -c -m 644 -o ${CLIENTUID} -g ${CLIENTGID} ${FILESDIR}/INFO ${BINDIR}
 	install -c -m 644 -o ${CLIENTUID} -g ${CLIENTGID} ${WRKSRC}/rc5des.txt ${BINDIR}
 
-	chown ${CLIENTUID}:${CLIENTGID} ${BINDIR}
+	/usr/sbin/chown ${CLIENTUID}:${CLIENTGID} ${BINDIR}
 	chmod 775 ${BINDIR}
 
 	if [ ! -f ${BINDIR}/rc5des.sh ]; then \
--- misc/xgas/Makefile.orig	Fri Jan 15 11:37:19 1999
+++ misc/xgas/Makefile	Sun Aug  8 17:36:01 1999
@@ -18,6 +18,6 @@
 
 post-install:
 	@chmod 755 ${PREFIX}/bin/xgas
-	@chown bin.bin ${PREFIX}/bin/xgas
+	@/usr/sbin/chown bin.bin ${PREFIX}/bin/xgas
 
 .include <bsd.port.mk>
--- net/arpwatch/Makefile.orig	Mon Sep  7 17:40:22 1998
+++ net/arpwatch/Makefile	Sun Aug  8 17:36:01 1999
@@ -24,7 +24,7 @@
 	if [ ! -d ${PREFIX}/arpwatch ]; then				\
 		${MKDIR} ${PREFIX}/arpwatch;				\
 		chmod 775 ${PREFIX}/arpwatch;				\
-		chown root.operator ${PREFIX}/arpwatch;			\
+		/usr/sbin/chown root.operator ${PREFIX}/arpwatch;			\
 	fi
 	${TOUCH} ${PREFIX}/arpwatch/arp.dat
 	chmod 644 ${PREFIX}/arpwatch/arp.dat
--- net/ascend-radius/Makefile.orig	Wed Jan  6 10:19:04 1999
+++ net/ascend-radius/Makefile	Sun Aug  8 17:36:01 1999
@@ -48,13 +48,13 @@
 		${INSTALL_DATA} ${DISTDIR}/980618.pdf ${PREFIX}/share/doc/ascend-radius
 .endif
 		@ ${MKDIR} ${PREFIX}/etc/raddb
-		@ chown root.wheel ${PREFIX}/etc/raddb
+		@ /usr/sbin/chown root.wheel ${PREFIX}/etc/raddb
 		@ chmod 700 ${PREFIX}/etc/raddb
 		for file in clients.example dictionary users.example; do \
 			${INSTALL} -c -o root -g wheel -m 0400 ${WRKDIR}/${WRKPREFIX}/raddb/$$file ${PREFIX}/etc/raddb; \
 		done
 		@ ${MKDIR} /var/log/radacct
-		@ chown root.wheel /var/log/radacct
+		@ /usr/sbin/chown root.wheel /var/log/radacct
 		@ chmod 700 /var/log/radacct
 
 .include <bsd.port.mk>
--- net/licq/Makefile.orig	Mon May  3 17:18:41 1999
+++ net/licq/Makefile	Sun Aug  8 17:36:01 1999
@@ -28,6 +28,6 @@
 	@${CP} ${WRKSRC}/contrib/licq.* ${WRKSRC}/contrib/viewurl* \
 	 ${PREFIX}/share/licq
 	@chmod 555 ${PREFIX}/share/licq/*
-	@chown bin.bin ${PREFIX}/share/licq/*
+	@/usr/sbin/chown bin.bin ${PREFIX}/share/licq/*
 
 .include <bsd.port.mk>
--- net/pmf/Makefile.orig	Wed Jun  9 14:55:24 1999
+++ net/pmf/Makefile	Sun Aug  8 17:36:01 1999
@@ -21,7 +21,7 @@
 	@-mv ${WRKSRC}/../doc/pmf.doc ${WRKSRC}/../system_dir
 	@tar -C ${WRKSRC}/../system_dir -cf - . \
 		| tar -C ${PREFIX}/lib/pmf -xf -
-	@chown -R bin.bin ${PREFIX}/lib/pmf
+	@/usr/sbin/chown -R bin.bin ${PREFIX}/lib/pmf
 	@chmod -R a-w ${PREFIX}/lib/pmf
 
 .include <bsd.port.mk>
--- net/radiusd-cistron/Makefile.orig	Sun Aug  1 14:53:33 1999
+++ net/radiusd-cistron/Makefile	Sun Aug  8 17:36:01 1999
@@ -71,6 +71,6 @@
 	@${SED} -e "s=!!PREFIX!!=${PREFIX}=g" ${FILESDIR}/radiusd.sh.tmpl \
 		> ${PREFIX}/etc/rc.d/radiusd.sh
 	@chmod 555 ${PREFIX}/etc/rc.d/radiusd.sh
-	@chown root.wheel ${PREFIX}/etc/rc.d/radiusd.sh
+	@/usr/sbin/chown root.wheel ${PREFIX}/etc/rc.d/radiusd.sh
 
 .include <bsd.port.mk>
--- net/samba/Makefile.orig	Wed Jul 28 17:27:28 1999
+++ net/samba/Makefile	Sun Aug  8 17:36:01 1999
@@ -67,7 +67,7 @@
 	${INSTALL_SCRIPT} ${WRKDIR}/${DISTNAME}/source/script/mksmbpasswd.sh ${PREFIX}/bin/make_smbpasswd
 	if [ ! -d ${SAMBA_PRIVATE} ] ; then				\
 		${MKDIR} ${SAMBA_PRIVATE} ;				\
-		chown root.wheel ${SAMBA_PRIVATE} ;			\
+		/usr/sbin/chown root.wheel ${SAMBA_PRIVATE} ;			\
 	fi
 	chmod 700 ${SAMBA_PRIVATE}
 	if [ ! -f ${SAMBA_PRIVATE}/smbpasswd ] ; then			\
@@ -75,7 +75,7 @@
 		chmod 600 ${SAMBA_PRIVATE}/smbpasswd ;			\
 	fi
 	chmod 500 ${SAMBA_PRIVATE}
-	chown root.wheel ${PREFIX}/bin/smbpasswd
+	/usr/sbin/chown root.wheel ${PREFIX}/bin/smbpasswd
 	chmod 111 ${PREFIX}/bin/smbpasswd
 
 .if !defined(NOPORTDOCS)
--- net/vnc/Makefile.orig	Fri Feb 19 17:20:15 1999
+++ net/vnc/Makefile	Sun Aug  8 17:36:01 1999
@@ -41,7 +41,7 @@
 # The documentation comes with bogus ownerships; this is a little leaky security-wise
 	${MKDIR} ${PREFIX}/share/doc/vnc
 	tar -C ${PREFIX}/share/doc/vnc -xzf ${DISTDIR}/vnc-3.3.2_doc.tgz
-	chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/doc/vnc
+	/usr/sbin/chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/doc/vnc
 # Go install Java classes
 	${MKDIR} ${PREFIX}/share/vnc
 	${CP} -R ${WRKSRC}/classes ${PREFIX}/share/vnc
--- net/wide-dhcp/Makefile.orig	Wed Jul 14 15:17:04 1999
+++ net/wide-dhcp/Makefile	Sun Aug  8 17:36:01 1999
@@ -59,7 +59,7 @@
 			>> ${STARTUP_SCRIPT};				\
 		${ECHO} 'fi' >> ${STARTUP_SCRIPT};				\
 		chmod 755 ${STARTUP_SCRIPT};				\
-		chown bin.bin ${STARTUP_SCRIPT};                        \
+		/usr/sbin/chown bin.bin ${STARTUP_SCRIPT};                        \
 	fi
 	@if [ ! -c /dev/bpf1 ]; then \
 	    ${ECHO} "**********************************************************";\
--- news/cnews/Makefile.orig	Wed Jun 16 17:49:39 1999
+++ news/cnews/Makefile	Sun Aug  8 17:36:01 1999
@@ -57,16 +57,16 @@
 	${INSTALL_DATA} ${WRKSRC}/libcnews.a ${PREFIX}/lib
 	${MKDIR} ${NEWSSPOOL} ${NEWSBIN} ${NEWSLIB}
 	-ln -s ${NEWSSPOOL} /var/news
-	chown news.news ${NEWSSPOOL} ${NEWSLIB}
-	chown bin.bin ${NEWSBIN}
+	/usr/sbin/chown news.news ${NEWSSPOOL} ${NEWSLIB}
+	/usr/sbin/chown bin.bin ${NEWSBIN}
 	${INSTALL_SCRIPT} ${WRKSRC}/${PGPVERIFY} ${NEWSBIN}/pgpverify
 	cd ${WRKSRC}; ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} install
 	cd ${WRKSRC}; ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} setup
 	cd ${WRKSRC}; ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ui readpostcheck
 .for f in checknews cnewsdo inews injnews postnews readnews
-	chown bin.bin ${PREFIX}/bin/$f
+	/usr/sbin/chown bin.bin ${PREFIX}/bin/$f
 .endfor
-	chown news.news ${NEWSBIN}/input/newsspool
+	/usr/sbin/chown news.news ${NEWSBIN}/input/newsspool
 	chmod 6755 ${NEWSBIN}/input/newsspool
 .for i in ${MAN1}
 	${INSTALL_MAN} ${WRKSRC}/man/${i} ${PREFIX}/man/man1
--- news/inn-stable/Makefile.orig	Wed Jul 28 17:27:34 1999
+++ news/inn-stable/Makefile	Sun Aug  8 17:36:01 1999
@@ -97,21 +97,21 @@
 
 post-install:
 	${MKDIR} -m 0775 ${NEWSSPOOL}/articles
-	chown news.news ${NEWSSPOOL}/articles
+	/usr/sbin/chown news.news ${NEWSSPOOL}/articles
 	${MKDIR} -m 0775 ${NEWSSPOOL}/cycbuffs
-	chown news.news ${NEWSSPOOL}/cycbuffs
+	/usr/sbin/chown news.news ${NEWSSPOOL}/cycbuffs
 	${MKDIR} -m 0775 ${NEWSSPOOL}/incoming/bad
-	chown news.news ${NEWSSPOOL}/incoming/bad
+	/usr/sbin/chown news.news ${NEWSSPOOL}/incoming/bad
 	${MKDIR} -m 0775 ${NEWSSPOOL}/innfeed
-	chown news.news ${NEWSSPOOL}/innfeed
+	/usr/sbin/chown news.news ${NEWSSPOOL}/innfeed
 	${MKDIR} -m 0775 ${NEWSSPOOL}/outgoing
-	chown news.news ${NEWSSPOOL}/outgoing
+	/usr/sbin/chown news.news ${NEWSSPOOL}/outgoing
 	${MKDIR} -m 0775 ${NEWSSPOOL}/overview
-	chown news.news ${NEWSSPOOL}/overview
+	/usr/sbin/chown news.news ${NEWSSPOOL}/overview
 	${MKDIR} -m 0775 ${NEWSSPOOL}/tmp
-	chown news.news ${NEWSSPOOL}/tmp
+	/usr/sbin/chown news.news ${NEWSSPOOL}/tmp
 	${MKDIR} -m 0775 ${NEWSSPOOL}/uniover
-	chown news.news ${NEWSSPOOL}/uniover
+	/usr/sbin/chown news.news ${NEWSSPOOL}/uniover
 	${SED} <${FILESDIR}/innd.sh >${PREFIX}/etc/rc.d/innd.sh \
 		s+!!PREFIX!!+${PREFIX}+g && chmod +x ${PREFIX}/etc/rc.d/innd.sh
 	# make rnews work when getting news via uucp !
--- russian/X.language/Makefile.orig	Mon Sep  7 17:41:26 1998
+++ russian/X.language/Makefile	Sun Aug  8 17:36:01 1999
@@ -47,7 +47,7 @@
 #       ${INSTALL_DATA} ${FILESDIR}/xmodmap ${XLIB}/xinit/.Xmodmap
 	if [ ! -d ${XLIB}/nls ] ; then \
 		mkdir ${XLIB}/nls; \
-		chown ${BINOWN}.${BINGRP} ${XLIB}/nls; \
+		/usr/sbin/chown ${BINOWN}.${BINGRP} ${XLIB}/nls; \
 		chmod 755 ${XLIB}/nls; \
 	fi
 	if [ ! -f ${XLIB}/nls/ru_SU.KOI8-R ] ; then \
--- security/krb5/Makefile.orig	Wed Jun  9 14:55:40 1999
+++ security/krb5/Makefile	Sun Aug  8 17:36:01 1999
@@ -107,7 +107,7 @@
 			install.html krb425_toc.html
 SETUID_EXE=		bin/ksu bin/v4rcp
 
-CHOWN?=		chown
+CHOWN?=		/usr/sbin/chown
 SUPERUSER?=	root
 
 .include <bsd.port.pre.mk>
--- security/pgp/Makefile.orig	Sat May 15 17:42:41 1999
+++ security/pgp/Makefile	Sun Aug  8 17:36:01 1999
@@ -27,7 +27,7 @@
 	cd ${WRKSRC}/../doc; \
 		  install -c -o bin -g bin -m 444 pgp.1 ${PREFIX}/man/man1
 	-mkdir -p ${PGPLIB}
-	chown bin.bin ${PGPLIB}
+	/usr/sbin/chown bin.bin ${PGPLIB}
 	chmod 555 ${PGPLIB}
 	cd ${WRKSRC}/..; \
 	    install -c -o bin -g bin -m 444 pgp.hlp \
--- shells/tcsh/Makefile.orig	Sun Nov  8 15:23:36 1998
+++ shells/tcsh/Makefile	Sun Aug  8 17:36:01 1999
@@ -20,8 +20,8 @@
 MAN1=		tcsh.1
 
 post-install:
-	chown bin.bin ${PREFIX}/bin/tcsh
-	chown bin.bin ${PREFIX}/man/man1/tcsh.1
+	/usr/sbin/chown bin.bin ${PREFIX}/bin/tcsh
+	/usr/sbin/chown bin.bin ${PREFIX}/man/man1/tcsh.1
 	cd ${WRKSRC}; ${INSTALL_DATA} tcsh.C.cat ${PREFIX}/share/nls/C/tcsh.cat
 	cd ${WRKSRC}; ${INSTALL_DATA} tcsh.french.cat ${PREFIX}/share/nls/fr_FR.ISO_8859-1/tcsh.cat
 	${LN} -sf ${PREFIX}/share/nls/fr_FR.ISO_8859-1/tcsh.cat ${PREFIX}/share/nls/fr_BE.ISO_8859-1/tcsh.cat
--- textproc/html/Makefile.orig	Fri Feb 12 15:25:20 1999
+++ textproc/html/Makefile	Sun Aug  8 17:36:01 1999
@@ -25,6 +25,6 @@
 do-install:
 	@zcat ${DISTDIR}/${DISTFILES} |(cd ${INSTDIR}; pax -r)
 	@chmod ${SHAREMODE} `find ${INSTDIR} -type f`
-	@chown -R ${SHAREOWN}.${SHAREGRP} ${INSTDIR}
+	@/usr/sbin/chown -R ${SHAREOWN}.${SHAREGRP} ${INSTDIR}
 
 .include <bsd.port.mk>
--- textproc/linuxdoc/Makefile.orig	Fri Feb 12 15:25:20 1999
+++ textproc/linuxdoc/Makefile	Sun Aug  8 17:36:01 1999
@@ -28,6 +28,6 @@
 do-install:
 	@zcat ${DISTDIR}/${DISTFILES} |(cd ${INSTDIR}; pax -r)
 	@chmod ${SHAREMODE} ${INSTDIR}/*
-	@chown -R ${SHAREOWN}.${SHAREGRP} ${INSTDIR}
+	@/usr/sbin/chown -R ${SHAREOWN}.${SHAREGRP} ${INSTDIR}
 
 .include <bsd.port.mk>
--- www/grail/Makefile.orig	Sun May 30 18:19:51 1999
+++ www/grail/Makefile	Sun Aug  8 17:36:01 1999
@@ -25,7 +25,7 @@
 DIRS_CMD=		${CAT} ${PLIST} | ${GREP} '^@dirrm' | ${SED} 's,@dirrm ,,'
 FILES_CMD=		${CAT} ${PLIST} | ${GREP} -v '^@' | ${SED} 's,${GRAILSUBDIR}/,,'
 
-CHOWN?=chown
+CHOWN?=/usr/sbin/chown
 CHMOD?=chmod
 FIND?=find
 PYTHON?=python
--- www/linux-netscape4/Makefile.orig	Wed Jul 28 17:27:57 1999
+++ www/linux-netscape4/Makefile	Sun Aug  8 17:36:02 1999
@@ -35,7 +35,7 @@
 	    ${INSTALL_DATA} ${FILESDIR}/mailcap ${NDIR}; \
 	fi
 	${RM} -rf ${NDIR}/nls ${NDIR}/movemail-src ${NDIR}/XKeysymDB
-	chown -R ${BINOWN}.${BINGRP} ${NDIR}
+	/usr/sbin/chown -R ${BINOWN}.${BINGRP} ${NDIR}
 
 post-install:
 	@${CAT} ${PKGDIR}/DESCR
--- www/lynx-current/Makefile.orig	Sun Aug  8 15:16:15 1999
+++ www/lynx-current/Makefile	Sun Aug  8 17:36:02 1999
@@ -29,8 +29,8 @@
 L_HELP=         ${PREFIX}/share/lynx_help
 
 post-install:
-	chown -R ${SHAREOWN}:${SHAREGRP} ${L_DOC}
-	chown -R ${SHAREOWN}:${SHAREGRP} ${L_HELP}
-	chown ${SHAREOWN}:${SHAREGRP} ${L_LIB}/lynx.cfg
+	/usr/sbin/chown -R ${SHAREOWN}:${SHAREGRP} ${L_DOC}
+	/usr/sbin/chown -R ${SHAREOWN}:${SHAREGRP} ${L_HELP}
+	/usr/sbin/chown ${SHAREOWN}:${SHAREGRP} ${L_LIB}/lynx.cfg
 
 .include <bsd.port.mk>
--- www/lynx-ssl/Makefile.orig	Wed Jun 16 17:50:05 1999
+++ www/lynx-ssl/Makefile	Sun Aug  8 17:36:02 1999
@@ -38,7 +38,7 @@
 WRKSRC=		${WRKDIR}/lynx2-8-2
 
 post-install:
-	chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/lib/lynx_help
-	chown ${SHAREOWN}:${SHAREGRP} ${PREFIX}/etc/lynx.cfg
+	/usr/sbin/chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/lib/lynx_help
+	/usr/sbin/chown ${SHAREOWN}:${SHAREGRP} ${PREFIX}/etc/lynx.cfg
 
 .include <bsd.port.mk>
--- www/lynx/Makefile.orig	Sun Jun 27 11:33:09 1999
+++ www/lynx/Makefile	Sun Aug  8 17:36:02 1999
@@ -27,7 +27,7 @@
 L_HELP=         ${PREFIX}/share/lynx_help
 
 post-install:
-	chown -R ${SHAREOWN}:${SHAREGRP} ${L_HELP}
-	chown ${SHAREOWN}:${SHAREGRP} ${L_LIB}/lynx.cfg
+	/usr/sbin/chown -R ${SHAREOWN}:${SHAREGRP} ${L_HELP}
+	/usr/sbin/chown ${SHAREOWN}:${SHAREGRP} ${L_LIB}/lynx.cfg
 
 .include <bsd.port.mk>
--- www/netscape4-communicator.us/Makefile.orig	Wed Jul 28 17:27:57 1999
+++ www/netscape4-communicator.us/Makefile	Sun Aug  8 17:36:02 1999
@@ -68,7 +68,7 @@
 	${RM} -rf ${NDIR}/netscape-dynMotif
 	${RM} -rf ${NDIR}/libnullplugin-dynMotif.so
 	${RM} -rf ${NDIR}/movemail-src
-	chown -R ${BINOWN}.${BINGRP} ${NDIR}
+	/usr/sbin/chown -R ${BINOWN}.${BINGRP} ${NDIR}
 
 post-install:
 	@${CAT} ${PKGDIR}/DESCR
--- www/netscape4-communicator/Makefile.orig	Mon Jul 19 10:16:40 1999
+++ www/netscape4-communicator/Makefile	Sun Aug  8 17:36:02 1999
@@ -94,7 +94,7 @@
 		(${ECHO} yes ; ${ECHO} no ; ${ECHO} no) \
 		| ./Fortify.sh ${NDIR}/${BROWSER}-${BROWSER_VER}.bin
 .endif
-	chown -R root:wheel ${NDIR}
+	/usr/sbin/chown -R root:wheel ${NDIR}
 
 post-install:
 	${CAT} ${PKGDIR}/DESCR
--- www/netscape45-communicator.us/Makefile.orig	Sun Feb  7 17:36:58 1999
+++ www/netscape45-communicator.us/Makefile	Sun Aug  8 17:36:02 1999
@@ -78,7 +78,7 @@
 	${RM} -rf ${NDIR}/netscape-dynMotif
 	${RM} -rf ${NDIR}/libnullplugin-dynMotif.so
 	${RM} -rf ${NDIR}/movemail-src
-	chown -R ${BINOWN}.${BINGRP} ${NDIR}
+	/usr/sbin/chown -R ${BINOWN}.${BINGRP} ${NDIR}
 
 post-install:
 	@${CAT} ${PKGDIR}/DESCR
--- www/py-HTMLgen/Makefile.orig	Sun May 30 18:19:53 1999
+++ www/py-HTMLgen/Makefile	Sun Aug  8 17:36:02 1999
@@ -22,7 +22,7 @@
 
 DOCDIR=			${PREFIX}/share/doc/HTMLgen
 CHMOD?=			chmod
-CHOWN?=			chown
+CHOWN?=			/usr/sbin/chown
 FIND?=			find
 
 pre-install:
--- x11/eterm/Makefile.orig	Sun May 30 18:20:00 1999
+++ x11/eterm/Makefile	Sun Aug  8 17:36:02 1999
@@ -32,7 +32,7 @@
 .endif
 
 post-install:
-	chown root.wheel ${PREFIX}/bin/Eterm
+	/usr/sbin/chown root.wheel ${PREFIX}/bin/Eterm
 	chmod 4755 ${PREFIX}/bin/Eterm
 	${INSTALL_SCRIPT} ${WRKSRC}/doc/colortest.sh ${PREFIX}/share/Eterm
 .ifndef NOPORTDOCS
--- x11/xfedor/Makefile.orig	Sun Sep 20 12:48:27 1998
+++ x11/xfedor/Makefile	Sun Aug  8 17:36:02 1999
@@ -27,7 +27,7 @@
 	cd ${WRKSRC}; \
 	${INSTALL_PROGRAM} xfedor ${PREFIX}/bin
 	-mkdir -p ${XFHELP}
-	chown ${SHAREOWN}.${SHAREGRP} ${XFHELP}
+	/usr/sbin/chown ${SHAREOWN}.${SHAREGRP} ${XFHELP}
 	chmod 755 ${XFHELP}
 	cd ${WRKSRC}/help; \
 	${INSTALL_DATA} * ${XFHELP}
--- x11/xmold/Makefile.orig	Fri Jan 15 11:38:02 1999
+++ x11/xmold/Makefile	Sun Aug  8 17:36:02 1999
@@ -19,6 +19,6 @@
 	@mkdir -p ${PREFIX}/bin
 	@install -c -s ${WRKSRC}/xmold ${PREFIX}/bin
 	@chmod 755 ${PREFIX}/bin/xmold
-	@chown bin.bin ${PREFIX}/bin/xmold
+	@/usr/sbin/chown bin.bin ${PREFIX}/bin/xmold
 
 .include <bsd.port.mk>


>Release-Note:
>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?199908081558.RAA99239>