From owner-freebsd-questions@FreeBSD.ORG Tue Oct 3 18:18:06 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 8088F16A407 for ; Tue, 3 Oct 2006 18:18:06 +0000 (UTC) (envelope-from wc_fbsd@xxiii.com) Received: from cartman.xxiii.com (cartman.xxiii.com [208.62.177.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id AAD0A43D7D for ; Tue, 3 Oct 2006 18:17:59 +0000 (GMT) (envelope-from wc_fbsd@xxiii.com) Received: from [192.168.0.218] (lan23.xxiii.com [208.62.177.50]) by cartman.xxiii.com (8.13.8/8.13.8) with ESMTP id k93IHweu022751 for ; Tue, 3 Oct 2006 14:17:58 -0400 (EDT) (envelope-from wc_fbsd@xxiii.com) Message-ID: <4522A959.5070803@xxiii.com> Date: Tue, 03 Oct 2006 14:18:01 -0400 From: Wayne User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: FreeBSD Questions Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: PortSnap problems & relocating ports X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Oct 2006 18:18:06 -0000 I've been using portsnap on 6.x systems for some time now with no problems. I decided to move /usr/ports and /usr/src to their own filesystem, /build, to make it easier to backup the important system stuff. I also relocated /var/db/portsnap to /build/db/portsnap. I thought I could edit /etc/portsnap.conf to reflect the new location, and do things as before. I edited WORKDIR and PORTSDIR, and set PORTSDIR (env var) but now I get: # portsnap fetch portsnap: Directory does not exist or is not writable: /var/db/portsnap Looks like it's ignoring portsnap.conf. So I explicitly name it: # portsnap -f /etc/portsnap.conf fetch portsnap: Directory does not exist or is not writable: /var/db/portsnap Same thing. What's up? So instead I specify both on the command line: # portsnap -d /build/db/portsnap -p /build/ports fetch Ahh.... now it works. Bug? Or am I doing something wrong. Which brings up the next question: What's the best way to relocate the source and ports? I could grab the dull hatchet and sym-link all the defaults to the new locations. But what's the correct method? -Thanks, Wayne