Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Jul 2001 13:27:50 +0200
From:      Stijn Hoop <stijn@win.tue.nl>
To:        Cynic <cynic@mail.cz>
Cc:        freebsd-ports@freebsd.org, dwcjr@freebsd.org
Subject:   Re: samba port install failure... general question
Message-ID:  <20010704132750.B73342@pcwin002.win.tue.nl>
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 %2B0200
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010704132750.B73342>