PREFIX in pkg-install (cricket-1.0.4.p1)

Adam Weinberger adamw at freebsd.org
Sat May 3 10:18:35 PDT 2003


-----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 at vectors.cx
FreeBSD.org	<<	adamw at 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-----


More information about the freebsd-ports mailing list