From owner-freebsd-questions@FreeBSD.ORG Tue Mar 9 08:17:53 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6039416A4CE for ; Tue, 9 Mar 2004 08:17:53 -0800 (PST) Received: from relay03.roc.ny.frontiernet.net (relay03.roc.ny.frontiernet.net [66.133.131.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE0FB43D46 for ; Tue, 9 Mar 2004 08:17:52 -0800 (PST) (envelope-from drew@mykitchentable.net) Received: (qmail 29519 invoked from network); 9 Mar 2004 16:17:51 -0000 Received: from unknown (HELO blacklamb.mykitchentable.net) ([67.51.117.104]) (envelope-sender ) by relay03.roc.ny.frontiernet.net (FrontierMTA 2.3.6) with SMTP for ; 9 Mar 2004 16:17:51 -0000 Received: from mykitchentable.net (unknown [165.107.42.177]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by blacklamb.mykitchentable.net (Postfix) with ESMTP id 24AF53BF3CC for ; Tue, 9 Mar 2004 08:17:50 -0800 (PST) Message-ID: <404DEE2F.3080909@mykitchentable.net> Date: Tue, 09 Mar 2004 08:17:51 -0800 From: Drew Tomlinson User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) X-Accept-Language: en-us, en MIME-Version: 1.0 To: FreeBSD Questions Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: How To Set PKG_PATH? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Mar 2004 16:17:53 -0000 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 //ACCOUNT@BLACKLAMB/PORTS 16639488 4049920 12589568 24% /usr/ports //ACCOUNT@BLACKLAMB/SRC 16639488 4049920 12589568 24% /usr/src //ACCOUNT@BLACKLAMB/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