From owner-freebsd-questions Thu May 31 12:23:40 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 B5DCF37B61B for ; Thu, 31 May 2001 12:23:26 -0700 (PDT) (envelope-from cynic@mail.cz) Received: (qmail 30446 invoked by uid 202); 31 May 2001 19:23:23 -0000 Received: from unknown (HELO zvahlav.mail.cz) (212.24.143.100) by k0r3.reflektor.cz with SMTP; 31 May 2001 19:23:23 -0000 Message-Id: <5.1.0.14.2.20010531210100.00b51d98@mail.cz> X-Sender: cynic@mail.cz X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Thu, 31 May 2001 21:31:00 +0200 To: jmcoopr@webmail.bmi.net From: Cynic Subject: Re: install locations of packages Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: <20010531110341.C23522@johncoop> References: <5.1.0.14.2.20010531195121.00b49db8@mail.cz> <5.1.0.14.2.20010531195121.00b49db8@mail.cz> 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 Hi John, thank you for your reply. However, tcsh isn't important at all. What I was actually asking (sorry for confusing you) was: Is there a way to get a package install to a different location than it is supposed to go? I know about the -p switch, but for example bash-2.05.tgz installs the binary to /usr/local/bin/ and the man page to /usr/local/man/man1/ 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? 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)). I know I should do more RTFM excercises, but I thought someone could share their experience. (Seems like I could either extract such a package with -M and then install it with -S, or recreate it with pkg_create(1), but both options look like too much of overkill to me.) At 11:03 31.5. 2001 -0700, John Merryweather Cooper wrote: >On 2001.05.31 10:54 Cynic wrote: > > Hi there, > > > > I've installed FreeBSD 4.3, and added bash and tcsh (btw, > > /stand/sysinstall didn't mark tcsh as installed though it > > was). These got installed to /usr/local/bin/, but I'd > > rather have them in /bin/. I could just move them, but > > then I won't be able to remove them. I have had a look at > > /var/db/pkg/, and it looks like the locations are hashed > > with MD5. Will it be enough to edit the + with the > > new locations _and_ new hashes, or is the integrity > > checked elsewhere? As I said, I want to be able to remove > > the packages with pkg_delete(1). > > > > Better yet -- where will the man page get installed if I > > install e. g. bash with # pkg_add -p / bash-2.05.tgz ? > > Because normally it goes to /usr/local/bin and > > /usr/local/man/man1/ (hope I have the locations right, no > > freebsd system around here), while I want it in /bin/ and > > /usr/share/man/man1/. I guess I'll have to edit the install > > script, right? > > > > TIA > > > > > > > > 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 > > > > > >Upon reading the documentation for the tcsh port, you'll discover that >all it does is create a symlink to csh (which is really tcsh). Your >hacking is thus unnecessary. > >jmc > >P.S. Please excuse the duplicates (if any). After working just fine >for quite awhile, something screwy has decided to happen with my >sendmail. :) > >jmc > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message 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