From owner-freebsd-current Thu Aug 24 6:41:56 2000 Delivered-To: freebsd-current@freebsd.org Received: from guru.mired.org (zoom2-101.telepath.com [216.14.2.101]) by hub.freebsd.org (Postfix) with SMTP id 80F4D37B43C for ; Thu, 24 Aug 2000 06:41:52 -0700 (PDT) Received: (qmail 14365 invoked by uid 100); 24 Aug 2000 13:41:50 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14757.9758.636019.42099@guru.mired.org> Date: Thu, 24 Aug 2000 08:41:50 -0500 (CDT) To: asami@FreeBSD.ORG (Satoshi - Ports Wraith - Asami) Cc: Kris Kennaway , "Jacques A. Vidrine" , current@FreeBSD.ORG Subject: Re: People running with LOCALBASE set to something other than /usr/local? In-Reply-To: References: X-Mailer: VM 6.72 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Satoshi - Ports Wraith - Asami writes: > * From: Kris Kennaway > * On Wed, 23 Aug 2000, Mike Meyer wrote: > * > How does it decide whether or not a package conforms? > * Probably by looking for files which get installed in /usr/local or > * /usr/X11R6 instead of ${LOCALBASE} or ${X11BASE} :-) > Actually, it's easier than that -- just do a "make package". If files > go to anyplace else than ${PREFIX}, pkg_create will fail. :) > However, note that you need to move LOCALBASE and X11BASE for *all* > ports, not one. (For instance, you can't expect an emacs-lisp package > to install correctly if you just try to move it while emacs is still > in /usr/local.) Set LOCALBASE and X11BASE in /etc/make.conf and > rebuild everything, including X. There's a test that's almost that simple that works even if you haven't moved PREFIX for all ports. Since the pkg +CONTENTS list is derived from PREFIX and the PLIST, "make install" followed by "make deinstall" will complain about not being able to delete files that weren't installed in the proper place.