From owner-freebsd-ports@FreeBSD.ORG Sat May 3 10:18:35 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7FB9B37B401 for ; Sat, 3 May 2003 10:18:35 -0700 (PDT) Received: from vectors.cx (manifold.vectors.cx [66.180.241.86]) by mx1.FreeBSD.org (Postfix) with ESMTP id F119143F85 for ; Sat, 3 May 2003 10:18:34 -0700 (PDT) (envelope-from monkey@vectors.cx) Received: from vectors.cx (ef6b92f3693eb4605c37547225699364@localhost [127.0.0.1]) by vectors.cx (8.12.8/8.12.8) with ESMTP id h43HJfef055430; Sat, 3 May 2003 10:19:41 -0700 (PDT) (envelope-from monkey@vectors.cx) Received: (from monkey@localhost) by vectors.cx (8.12.9/8.12.9/Submit) id h43HJfYG055429; Sat, 3 May 2003 10:19:41 -0700 (PDT) Date: Sat, 3 May 2003 10:19:41 -0700 From: Adam Weinberger To: Sue Blake , freebsd-ports@freebsd.org Message-ID: <20030503171941.GJ25227@vectors.cx> References: <20030504023546.A381@welearn.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; x-action=pgp-signed Content-Disposition: inline In-Reply-To: <20030504023546.A381@welearn.com.au> X-Editor: Vim 6.1 http://www.vim.org X-Mailer: Mutt 1.5 http://www.mutt.org X-PGP-Key: http://www.vectors.cx/pgp.key.txt X-URL: http://www.vectors.cx User-Agent: Mutt/1.5.4i Subject: Re: PREFIX in pkg-install (cricket-1.0.4.p1) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 May 2003 17:18:35 -0000 -----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-----