Date: Sat, 3 May 2003 10:19:41 -0700 From: Adam Weinberger <adamw@freebsd.org> To: Sue Blake <sue@welearn.com.au>, freebsd-ports@freebsd.org Subject: Re: PREFIX in pkg-install (cricket-1.0.4.p1) Message-ID: <20030503171941.GJ25227@vectors.cx> In-Reply-To: <20030504023546.A381@welearn.com.au> References: <20030504023546.A381@welearn.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 >> (05.03.2003 @ 0935 PST): Sue Blake said, in 1.1K: << > When I installed net/cricket-1.0.4.p1 the cricket user was added > with the home directory /cricket which seemed a little odd. > > My cricket port is a couple of months old, but of the same vintage > as the one on the ports web site. > My ports tree is not in good order so I could have a problem at my end, > but it made me curious about the use of PREFIX. > > In pkg-install the pw useradd command uses -d "${PREFIX}/cricket" > > Grepping other pkg-install files, I see that PREFIX is set before > it is used, e.g. > > ../cvsupit/pkg-install: PREFIX=/usr/local > > ../jabber/pkg-install: etcdir=${PREFIX:-$PKG_PREFIX}/etc > > ../nrpe/pkg-install:PKG_PREFIX=${PKG_PREFIX:=/usr/local} > ../nrpe/pkg-install: /usr/sbin/pw useradd ${user} -g ${group} -h - -d ${PKG_PREFIX}/var/nagios \ > > > Is it necessary, or helpful, to add something similar for cricket? >> end of "PREFIX in pkg-install (cricket-1.0.4.p1)" from Sue Blake << Very true. I've patched it in the Makefile. Thanks! # Adam - -- Adam Weinberger vectors.cx >> adam@vectors.cx FreeBSD.org << adamw@FreeBSD.ORG #vim:set ts=8: 8-char tabs prevent tooth decay. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+s/oto8KM2ULHQ/0RApJSAJ9RHTwi7hyePPGe5xvAn847zLEOvwCgxsKM ujAn4otgCtL49ao2LTHd/J8= =Abas -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030503171941.GJ25227>