From owner-freebsd-questions@FreeBSD.ORG Wed Jul 12 00:36:50 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 4446D16A4E2 for ; Wed, 12 Jul 2006 00:36:50 +0000 (UTC) (envelope-from kruptos@mlinux.org) Received: from ms-smtp-03.tampabay.rr.com (ms-smtp-03.tampabay.rr.com [65.32.5.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id D06E343D46 for ; Wed, 12 Jul 2006 00:36:49 +0000 (GMT) (envelope-from kruptos@mlinux.org) Received: from fnord.quux.edu (207.40.33.65.cfl.res.rr.com [65.33.40.207]) by ms-smtp-03.tampabay.rr.com (8.13.6/8.13.6) with ESMTP id k6C0alqd010915; Tue, 11 Jul 2006 20:36:48 -0400 (EDT) From: Kevin Brunelle To: freebsd-questions@freebsd.org Date: Tue, 11 Jul 2006 20:36:23 -0400 User-Agent: KMail/1.9.3 References: <44B3E1AD.3080409@tania.servebbs.org> <44B3EDC3.7010104@ywave.com> In-Reply-To: <44B3EDC3.7010104@ywave.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607112036.24775.kruptos@mlinux.org> X-Virus-Scanned: Symantec AntiVirus Scan Engine Cc: Bob Subject: Re: Producing a binary install 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: Wed, 12 Jul 2006 00:36:50 -0000 > Otherwise doing a 'make package' after the port has been installed will > create a package for you. You should then be able to install the package > on the other machine using pkg_add. > > HTH, > Micah If you've already done make clean... you're going to end up rebuilding if you use make package. Since that's not what you're looking to do, use pkg_create instead. pkg_create -b jdk-1.5.0p3_1 Obviously, replace with the package name in your system. By default, the package will be created in the directory you are in when you run the command. I maintain a computer for my step-mother and, since I want to avoid actually building on her computer as much as possible, I use the following script to package every binary on my system and then I can just copy them over to her computer (or setup my computer so pkg_add can get them over the internet) and use them to install. #!/bin/tcsh foreach file ( `pkg_info | awk '{print $1}'` ) echo "Creating package for $file" pkg_create -b $file end This script is not smart... it doesn't check to see if a package of the same name already exists -- which it should... hmm, I'm going to add that to mine... to save time if you run it frequently, and just build packages you need. Anyway, pkg_create is very useful in saving time when you maintain a bunch of computers and want to keep them all up to date and only want to commit one to building and testing. -Kevin B.