From owner-freebsd-ports Mon Apr 12 6:22:21 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id D3474150C6 for ; Mon, 12 Apr 1999 06:22:19 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.2/8.9.2) id GAA38023; Mon, 12 Apr 1999 06:20:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Mon, 12 Apr 1999 06:20:03 -0700 (PDT) Message-Id: <199904121320.GAA38023@freefall.freebsd.org> To: freebsd-ports@FreeBSD.org Cc: From: Mikhail Kruk Subject: Re: ports/11093: remind user that he needs to be root to install port Reply-To: Mikhail Kruk Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR ports/11093; it has been noted by GNATS. From: Mikhail Kruk To: Satoshi - Ports Wraith - Asami Cc: bfoz@glue.umd.edu, sue@welearn.com.au, freebsd-gnats-submit@FreeBSD.ORG Subject: Re: ports/11093: remind user that he needs to be root to install port Date: Mon, 12 Apr 1999 09:14:37 -0400 (EDT) > * like, "You forgot to su dummy!". :) > > Well, it's not style to yell like that. How about something like > this as a start? Again, I am for more hard measures Since I can't think of a port which can be installed as user (may be wrong of course) the script may stop or ask for confirmation. The same reason: I type make and forget about that shell for a while, I can easily miss the message. But if I think the message should definitely go in there. -mk > > === > Index: bsd.port.mk > =================================================================== > RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v > retrieving revision 1.309 > diff -u -r1.309 bsd.port.mk > --- bsd.port.mk 1999/04/08 07:13:38 1.309 > +++ bsd.port.mk 1999/04/12 10:54:26 > @@ -1650,6 +1650,8 @@ > ${ECHO_MSG} "Warning: not superuser, can't run mtree."; \ > ${ECHO_MSG} "Become root and try again to ensure correct permissions."; \ > fi > +.else > + ${ECHO_MSG} "Warning: not superuser, you may get some errors during installation."; \ > .endif > .endif > @cd ${.CURDIR} && ${MAKE} ${.MAKEFLAGS} ${.TARGET:S/^real-/pre-/} > === > > (BTW, the ".else" is for the .if defined(NO_MTREE) case.) > > -PW > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message