Date: Mon, 12 Apr 1999 06:20:03 -0700 (PDT) From: Mikhail Kruk <meshko@cs.brandeis.edu> To: freebsd-ports@FreeBSD.org Subject: Re: ports/11093: remind user that he needs to be root to install port Message-ID: <199904121320.GAA38023@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/11093; it has been noted by GNATS. From: Mikhail Kruk <meshko@cs.brandeis.edu> To: Satoshi - Ports Wraith - Asami <asami@FreeBSD.ORG> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199904121320.GAA38023>