From owner-freebsd-questions Mon Nov 30 18:07:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA26656 for freebsd-questions-outgoing; Mon, 30 Nov 1998 18:07:58 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from n4hhe.ampr.org (tnt3-26.HiWAAY.net [208.147.146.26]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA26648; Mon, 30 Nov 1998 18:07:55 -0800 (PST) (envelope-from dkelly@n4hhe.ampr.org) Received: from n4hhe.ampr.org (localhost.ampr.org [127.0.0.1]) by n4hhe.ampr.org (8.9.1/8.9.1) with ESMTP id SAA03832; Mon, 30 Nov 1998 18:51:08 -0600 (CST) (envelope-from dkelly@n4hhe.ampr.org) Message-Id: <199812010051.SAA03832@n4hhe.ampr.org> X-Mailer: exmh version 2.0.2 2/24/98 To: freebsd-questions@FreeBSD.ORG cc: asami@FreeBSD.ORG From: David Kelly Subject: Re: Appropriate Forum for Bug/Upgrade In-reply-to: Message from Ben Smithurst of "Mon, 30 Nov 1998 12:26:26 GMT." <19981130122626.D15989@scientia.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 30 Nov 1998 18:51:08 -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Ben Smithurst writes: > How about something like this: (this message CC'd to asami since he > seems to handle the ports, etc) > > --- bsd.port.mk Sat Nov 28 00:46:21 1998 > +++ bsd.port.mk Mon Nov 30 12:22:03 1998 > @@ -1194,6 +1194,11 @@ > do-fetch: > @${MKDIR} ${_DISTDIR} > @(cd ${_DISTDIR}; \ > + if [ ! -w ${_DISTDIR} ]; then \ > + echo "You don't have write permission to ${_DISTDIR}"; \ > + echo "Try using 'su' to become root and try again"; \ > + exit 1; \ > + fi; \ > for file in ${DISTFILES}; do \ > if [ ! -f $$file -a ! -f `${BASENAME} $$file` ]; then \ > if [ -h $$file -o -h `${BASENAME} $$file` ]; then \ I would delete the line containing, "Try using 'su' to become root and try again", as it implies the use of brute force (root force?) is a valid solution to all ills. This is how I solve the problem: n4hhe: {1027} ls -ld /usr/ports/ /usr/ports/distfiles/ drwxrwxr-x 46 dkelly wheel 1024 Nov 29 22:42 /usr/ports// drwxrwxr-x 8 dkelly wheel 3584 Nov 16 17:32 /usr/ports/distfiles// n4hhe: {1028} -- David Kelly N4HHE, dkelly@nospam.hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message