From owner-freebsd-ports Wed Jul 4 4:28: 5 2001 Delivered-To: freebsd-ports@freebsd.org Received: from pcwin002.win.tue.nl (pcwin002.win.tue.nl [131.155.71.72]) by hub.freebsd.org (Postfix) with ESMTP id 42A4737B403; Wed, 4 Jul 2001 04:27:56 -0700 (PDT) (envelope-from stijn@pcwin002.win.tue.nl) Received: (from stijn@localhost) by pcwin002.win.tue.nl (8.11.4/8.11.4) id f64BRod81239; Wed, 4 Jul 2001 13:27:50 +0200 (CEST) (envelope-from stijn) Date: Wed, 4 Jul 2001 13:27:50 +0200 From: Stijn Hoop To: Cynic Cc: freebsd-ports@freebsd.org, dwcjr@freebsd.org Subject: Re: samba port install failure... general question Message-ID: <20010704132750.B73342@pcwin002.win.tue.nl> References: <5.1.0.14.2.20010704111952.01f655f8@mail.cz> <5.1.0.14.2.20010701231030.020399d0@mail.cz> <5.1.0.14.2.20010704111952.01f655f8@mail.cz> <20010704045442.C11575@leviathan.inethouston.net> <5.1.0.14.2.20010704123024.01f655f8@mail.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <5.1.0.14.2.20010704123024.01f655f8@mail.cz>; from cynic@mail.cz on Wed, Jul 04, 2001 at 12:40:01PM +0200 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, On Wed, Jul 04, 2001 at 12:40:01PM +0200, Cynic wrote: > At 11:54 7/4/2001, David W. Chapman Jr. wrote the following: > -------------------------------------------------------------- > >> I don't understand why this is so. The ports stuff requires one to be > >> logged in as root anyway, so why should it be designed so that one cannot > >> install a port where they want? > > > >It does, just not anywhere they want in /usr/local/somewhere > > I guess this was meant to make sure a port install doesn't > screw up other software, which is a Good Thing(TM). But I can't > see what harm could be done by creating a dir under PREFIX wich > is below /usr/local itself. Is this really by design? Eh? I really don't see why this shouldn't work - in fact, I just compiled & installed samba just the way you described it: /usr/ports/net/samba# make clean && make PREFIX=/usr/local/samba install however you absolutely need to specify the PREFIX during both the build and the install stage - if you do the following: /usr/ports/net/samba# make [...lots of compiling snipped...] /usr/ports/net/samba# make PREFIX=/usr/local/samba install it will *not* work because the port has been configured to use /usr/local already. And vice versa if you specify it at build time but not at install time. Here's my proof that it works: [stijn@pcwin002] <~> head /var/db/pkg/samba-2.0.10/+CONTENTS @name samba-2.0.10 @cwd /usr/local/samba @comment ORIGIN:net/samba man/man1/nmblookup.1.gz And indeed, I do have /usr/local/samba/man/man1/nmblookup.1.gz. I haven't tested it to the point of running it, however I don't see any reason why this wouldn't work. Regards, --Stijn -- "I'm not under the alkafluence of inkahol that some thinkle peep I am. It's just the drunker I sit here the longer I get." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message