Sorry if this has been covered before but I have not been able to find the answer. Where do I set PKG_PATH so portupgrade will install packages from a local drive instead of attempting to 'fetch'? I tried adding 'PKG_PATH=/usr/ports/packages' to /etc/make.conf but that doesn't work. Portupgrade still tries to 'fetch'?

What I'm trying to do is build packages from the ports tree on my faster machine (BLACKLAMB) and then install those packages on my slower machine (BLACKSHEEP). I've found that either 'make package' or portupgrade -p will build a package and place it in /usr/ports/packages. Because I run samba on this faster machine, I created a 'ports' share and mounted it via smbfs on the slower machine. My 'df' output shows this:

blacksheep# df
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/ad0s1a 99183 54479 36770 60% /
/dev/ad2s1e 3691213 1307513 2088403 39% /usr
procfs 4 4 0 100% /proc
//[EMAIL PROTECTED]/PORTS 16639488 4049920 12589568 24% /usr/ports
//[EMAIL PROTECTED]/SRC 16639488 4049920 12589568 24% /usr/src
//[EMAIL PROTECTED]/OBJ 16639488 4049920 12589568 24% /usr/obj


Thus /usr/ports/packages on BLACKSHEEP contains all of the packages built on BLACKLAMB:

blacksheep# ll /usr/ports/packages
total 368
drwxr-xr-x  1 root  wheel  16384 Mar  7 17:04 All
drwxr-xr-x  1 root  wheel  16384 Mar  7 17:04 Latest
drwxr-xr-x  1 root  wheel  16384 Mar  7 13:12 benchmarks
drwxr-xr-x  1 root  wheel  16384 Mar  7 10:43 converters
drwxr-xr-x  1 root  wheel  16384 Mar  7 11:06 databases
drwxr-xr-x  1 root  wheel  16384 Mar  7 17:04 devel
drwxr-xr-x  1 root  wheel  16384 Mar  7 10:54 dns
drwxr-xr-x  1 root  wheel  16384 Mar  7 17:03 gnome
drwxr-xr-x  1 root  wheel  16384 Mar  7 15:50 graphics
drwxr-xr-x  1 root  wheel  16384 Mar  7 16:52 ipv6
drwxr-xr-x  1 root  wheel  16384 Mar  7 16:35 lang
drwxr-xr-x  1 root  wheel  16384 Mar  7 13:15 mail
drwxr-xr-x  1 root  wheel  16384 Mar  7 13:12 math
drwxr-xr-x  1 root  wheel  16384 Mar  7 16:59 misc
drwxr-xr-x  1 root  wheel  16384 Mar  7 15:47 net
drwxr-xr-x  1 root  wheel  16384 Mar  7 16:59 perl5
drwxr-xr-x  1 root  wheel  16384 Mar  7 16:59 print
drwxr-xr-x  1 root  wheel  16384 Mar  7 13:06 python
drwxr-xr-x  1 root  wheel  16384 Mar  7 16:52 security
drwxr-xr-x  1 root  wheel  16384 Mar  7 10:52 sysutils
drwxr-xr-x  1 root  wheel  16384 Mar  7 15:54 tcl84
drwxr-xr-x  1 root  wheel  16384 Mar  7 17:03 textproc
drwxr-xr-x  1 root  wheel  16384 Mar  7 10:44 www

I want to make BLACKSHEEP use this collection rather than fetching from ftp.FreeBSD.org.

And I have another question. Is there some way to make package without having to install it on the machine that makes it? There are some things I want to install on BLACKSHEEP but not on BLACKLAMB. Can I build the package on BLACKLAMB without installing it? I know I can just 'pkg_delete' to remove it after it's installed. But then there's times when I want things compiled with different options. For example, I have the full version of bacula installed on BLACKLAMB. I'd like to use BLACKLAMB to build a bacula "WITH_CLIENT_ONLY=YES" package and install it on BLACKSHEEP. How can I do this without ruining the bacula running on BLACKLAMB?

OK, enough questions. Thanks for any help!!! I really appreciate it.

Drew
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to