From owner-freebsd-questions@FreeBSD.ORG Tue Apr 15 18:50:23 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 32F2C1065687 for ; Tue, 15 Apr 2008 18:50:23 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from snoogles.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id F24C48FC14 for ; Tue, 15 Apr 2008 18:50:22 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (localhost [127.0.0.1]) by snoogles.rachie.is-a-geek.net (Postfix) with ESMTP id 0C85D1CC91; Tue, 15 Apr 2008 10:50:20 -0800 (AKDT) From: Mel To: freebsd-questions@freebsd.org Date: Tue, 15 Apr 2008 20:50:18 +0200 User-Agent: KMail/1.9.7 References: <6a5b467e0804150907u20d1163fo27c067c025d8b08c@mail.gmail.com> In-Reply-To: <6a5b467e0804150907u20d1163fo27c067c025d8b08c@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804152050.19632.fbsd.questions@rachie.is-a-geek.net> Cc: Ashant Chalasani Subject: Re: Install port without man page 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, 15 Apr 2008 18:50:23 -0000 On Tuesday 15 April 2008 18:07:42 Ashant Chalasani wrote: > Is there a way to install a port without the man-pages. I'm trying to > install a dhcp server onto a Tinybsd image and end up buying myself a > bunch of files in /man, as seen at > http://code.google.com/p/tinybsdap/wiki/InstallingPorts (hope the > linking is not minded). Read what you got in there: Instead of using FORCE_PKG_REGISTER which will alter the currently installed ports on the build system and change their prefix so they can't be uninstalled properly with pkg_delete, you can set PKG_DBDIR to a different directory. For example, all 'trash' that's part of the image build process, but not going to be in the image goes in /build. Image on /mnt, you'd do: mkdir -p /build/var/db/pkg mkdir /build/local # saves you some work create all 'man*' directories and should you decide more # directories should be excluded, then you can do so mtree -ude -f /etc/mtree/BSD.local.dist -p /build/local mkdir /mnt/man mount -t nullfs /build/local/man /mnt/man cd /usr/ports/shells/bash make PKG_DBDIR=/var/db/pkg PREFIX=/mnt install -- Mel Problem with today's modular software: they start with the modules and never get to the software part.