Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Apr 2001 11:29:43 -0700
From:      Kent Stewart <kstewart@urx.com>
To:        Alvin Sim <bsd140870@yahoo.co.uk>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Installing port(s) from an NFS server
Message-ID:  <3AD35117.A3EA4562@urx.com>
References:  <1510883389.20010410124052@yahoo.co.uk> <3AD317BB.4D2EB73@i-clue.de> <8531538810.20010411001740@yahoo.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help


Alvin Sim wrote:
> 
> Tuesday, April 10, 2001, 10:24:59 PM, you wrote:
> 
> [snip... snip some...]
> 
> >>    example:
> >>    lets  assume  that i have installed vim on the server and now, i want
> >>    vim on the client as well.
> 
> CS> Assuming your NFS is properly configured:
> CS> client# mount server:/usr/ports /usr/ports
> CS> client# cd /usr/ports/editors/vim
> CS> client# make install
> 
>    this is exactly what i did (minus the make install), yes.
> 
> >>    i   tried (after mounting /usr/ports (server) to /usr/ports (client))
> >>    `make'  in  /usr/ports/editors/vim-lite  but  it seems that `make' is
> >>    making  it on the server which, IMO, should be on the client? i didnt
> >>    try  `make  install' though. i was afraid that it would install (vim)
> >>    again on the server.
> 
> CS> No. You mounted the hard disk from your server. Thus the build will
> CS> execute on your client and install into your client.
> 
>    sorry  but i'm not so clear on what you mean. if you're trying to say
>    that i mounted /usr/ports _from_ the server, no. but if you're saying
>    that  i  mounted  the server from the client as stated in above steps
>    (which i did and think is correct), yes.


I stumbled across the option "make package" recently when I did a "man
ports". It does a make install but it also creates a tarball of the port as
a package. I have a system with an AMD 900 and a system with dual 866
coppermines. They build ports about 3x faster than my slower machines. If
you create the directory /usr/ports/packages and do a make package, you
build the equivalent of what is on the distribution CDs in /cdrom/packages.
You install them on the client computer using pkg_add commands. I nfs
mounted the filesystem containing /usr/port/packages, did a "setenv PACKAGES
"nfs_path/packages/All", and installed kde-2.1 as a package on my slower
machines. I saved many hours of compiling for each system. I had to build a
number of ports before it would finish the upgrades. 

The package files stick around if you end up doing a "make clean" and find
that the port/work directories for a port and all of its dependancies have
disappeared. I eventually solved that problem by creating an alias called
makednc that does a 

make -DNOCLEANDEPENDS clean

Kent

> 
> >>    so  what  i'd like to know is that is it possible for me to install a
> >>    port from the server to the client machine with nfs?
> 
> CS> As shown above: yes. It's too simple to be true.
> 
> CS> HTH
> CS> -Christoph Sold
> 
> --
> Alvin            mailto:bsd140870@yahoo.co.uk
> 
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message

-- 
Kent Stewart
Richland, WA

mailto:kbstew99@hotmail.com
http://kstewart.urx.com/kstewart/index.html
FreeBSD News http://daily.daemonnews.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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