Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Apr 1999 04:10:03 -0700 (PDT)
From:      asami@FreeBSD.ORG (Satoshi - Ports Wraith - Asami)
To:        freebsd-ports@FreeBSD.org
Subject:   Re: ports/11093: remind user that he needs to be root to install port
Message-ID:  <199904121110.EAA88447@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: asami@FreeBSD.ORG (Satoshi - Ports Wraith - Asami)
To: bfoz@glue.umd.edu
Cc: sue@welearn.com.au, meshko@cs.brandeis.edu,
	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 04:09:11 -0700 (PDT)

  * From: Brandon Fosdick <bfoz@glue.umd.edu>
 
  * I do this all the time too. The documentation needs a little help in this area
  * since it's not explicitly stated that you need to be root. (BTW, I like the
  * handbook's new look) But I also think that a simple check very early on in the
  * make process would help things immensely. At the very least it would help us
  * forgetful types. Just make sure that the error message is very clear, something
  * like, "You forgot to su dummy!". :)
 
 Well, it's not style to yell like that.  How about something like
 this as a start?
 
 ===
 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?199904121110.EAA88447>