From owner-freebsd-questions Fri Jun 1 7: 2:13 2001 Delivered-To: freebsd-questions@freebsd.org Received: from k0r3.reflektor.cz (k0r3.reflektor.cz [212.24.129.54]) by hub.freebsd.org (Postfix) with SMTP id 792B637B422 for ; Fri, 1 Jun 2001 07:02:09 -0700 (PDT) (envelope-from cynic@mail.cz) Received: (qmail 5537 invoked by uid 202); 1 Jun 2001 14:02:07 -0000 Received: from unknown (HELO zvahlav.mail.cz) (212.24.143.100) by k0r3.reflektor.cz with SMTP; 1 Jun 2001 14:02:07 -0000 Message-Id: <5.1.0.14.2.20010601124149.00b51160@mail.cz> X-Sender: cynic@mail.cz X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 01 Jun 2001 16:09:51 +0200 To: Mike Meyer From: Cynic Subject: Re: install locations of packages Cc: freebsd-questions@freebsd.org In-Reply-To: <15126.53977.255299.818173@guru.mired.org> References: <85117693@toto.iv> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 18:25 31.5. 2001 -0500, Mike Meyer wrote: >Cynic types: > > Now, $ whereis csh revealed that csh is in /bin/ and > > /usr/share/man/man1/. Since the default prefix for the bash > > package I'm talking about (but that's just an example) is > > /usr/local/, I suppose that if I install the package with > > # pkg_add -p / bash-2.05.tgz, it'll install the man page to > > /man/man1/, right? > >Right. However, it's not guaranteed to work after you do that. To make This would be the case if the binary had hardwired relative paths, right? >sure a package will work where it's installed, you need to build it >from the ports tree with PREFIX set appropriately. To make sure that >dependencies between ports work properly, you need to set LOCALBASE >and leave it set for all port builds. > > > My question is really about maintenance of installed packages, > > not about a specific single one. I'm looking for advice about > > the simplest way of modifying installed packages (which will > > preserve the ability to uninstall packages with pkg_delete(1)). > >To do that, just fix the @cwd's in +CONTENTS, and move the files to >the place where they should be. You shouldn't need to do anything >else. On the other hand, if you've got the package, it's probably >easier to simply delete and reinstall the package with the -p >flag. But again, it may not work if you do that. Good news. Thanks a bunch. cynic@mail.cz ------------- And the eyes of them both were opened and they saw that their files were world readable and writable, so they chmoded 600 their files. - Book of Installation chapt 3 sec 7 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message