From owner-freebsd-questions@FreeBSD.ORG Tue Jul 10 10:51:08 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EFF7C16A41F for ; Tue, 10 Jul 2007 10:51:08 +0000 (UTC) (envelope-from sonicy@otenet.gr) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.77]) by mx1.freebsd.org (Postfix) with ESMTP id 7895713C46E for ; Tue, 10 Jul 2007 10:51:08 +0000 (UTC) (envelope-from sonicy@otenet.gr) Received: from freebsdgr.dyndns.org (athedsl-305404.home.otenet.gr [85.73.240.154]) (authenticated bits=0) by kane.otenet.gr (8.13.8/8.13.8/Debian-3) with ESMTP id l6AAp4BU005516; Tue, 10 Jul 2007 13:51:05 +0300 Message-ID: <46936497.8050809@otenet.gr> Date: Tue, 10 Jul 2007 13:51:03 +0300 From: Manolis Kiagias User-Agent: Thunderbird 2.0.0.4 (X11/20070703) MIME-Version: 1.0 To: =?ISO-8859-2?Q?Nejc_=A9koberne?= References: <4693543C.1010005@skoberne.net> In-Reply-To: <4693543C.1010005@skoberne.net> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit Cc: User Questions Subject: Re: make package-recursive 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, 10 Jul 2007 10:51:09 -0000 Nejc Škoberne wrote: > Hello, > > I would like to create a custom set of packages, so that they will > be installable to my other FreeBSD boxen. > > As I understand, I have to use 'make package-recursive', but I have > some problems with it: > > 1. Is there a way to tell 'make package-recursive' not to _install_ > package, but only build it? It is annonying and time-consuming > to deinstall every package after it is installed. > 2. To refer to the previous point: I need to deinstall the packages > which I 'make package-recursive'-ed before, or else some other > package which also depends on a port which is already installed > will not include that (already installed) package. How to change > this behaviour? I would like that the packages, which I create > via 'make package-recursive', _always_ include _all_ other > dependent packages. > > Thanks for your help. > > P.S.: Do you guys have any scripts for building a customized package > set? > > Bye, > Nejc > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > > There is another little know way to create packages, assuming you have them already installed on the source machine: The pkg_create command. It can create installation packages from the already installed ones. Even better, it can create all dependency packages as well in one go with the -R option. For example, in my test machine I have the xorg 7.2 installed. I can create packages for the whole system with: pkg_create -Rb xorg-7.2 You have to get the exact name of the installed pkg using the pkg_info or pkg_version command, i.e. in the above example pkg_info |grep -i xorg The utility creates the packages in the directory you are currently in. I usually do this /usr/ports/packages I used it last week to create packages for sudo, bash, xorg, xfce, portupgrade and others all of which installed without a hitch on my other machines. In fact I plan to create custom CDs with latest packages to use on my new BSD installations and spare the endless download-compile cycle... Hope this helps, Manolis