From owner-freebsd-questions@FreeBSD.ORG Sat Nov 28 11:09:05 2009 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 7156C106568F for ; Sat, 28 Nov 2009 11:09:05 +0000 (UTC) (envelope-from kline@thought.org) Received: from aristotle.thought.org (aristotle.thought.org [209.180.213.210]) by mx1.freebsd.org (Postfix) with ESMTP id 10ECE8FC13 for ; Sat, 28 Nov 2009 11:09:04 +0000 (UTC) Received: from thought.org (tao.thought.org [10.47.0.250]) (authenticated bits=0) by aristotle.thought.org (8.14.2/8.14.2) with ESMTP id nASB8Wa6059643 for ; Sat, 28 Nov 2009 03:08:32 -0800 (PST) (envelope-from kline@thought.org) Received: by thought.org (nbSMTP-1.00) for uid 1002 kline@thought.org; Sat, 28 Nov 2009 03:08:58 -0800 (PST) Date: Sat, 28 Nov 2009 03:08:57 -0800 From: Gary Kline To: Manolis Kiagias Message-ID: <20091128110855.GA80767@thought.org> References: <20091128090544.GA80636@thought.org> <4B10ECDF.5010509@otenet.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B10ECDF.5010509@otenet.gr> User-Agent: Mutt/1.4.2.3i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 23 years of service to the Unix community. X-Spam-Status: No, score=-4.4 required=3.6 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on aristotle.thought.org Cc: FreeBSD Mailing List Subject: Re: how do i automate building packages? 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: Sat, 28 Nov 2009 11:09:05 -0000 On Sat, Nov 28, 2009 at 11:26:55AM +0200, Manolis Kiagias wrote: > Gary Kline wrote: > > How do I build tarballs of packages that usually wind up in > > /usr/ports/packages? > > > > I thought I had something in /etc/make.conf, but nope. My > > build of OOo [311] recently finished on my new to-be server. > > Since both the new Dell and this older Dell are running 7.2, I > > figure I can do any builds and move the packages across. > > > > I thought I had seen foo.tgz in /usr/ports/bar/foo/; but this > > time, no expected tarball. --??-- A man ports isn't very > > clear. I usually type make install clean when I build > > anything. If I have to start over from scratch with > > openoffice would I type > > > > # make install package clean? Or what? > > > > anybody? > > > > > Now that you got it installed, you may use pkg_create: > > pkg_create -Rb openoffice.org-3.1.1 > > (You can get the exact package name using pkg_info -Ix openoffice) > The -R flag will also build all dependencies of openoffice. > > Something along the lines of the following script: > > #! /usr/bin/env bash > mkdir -p /usr/ports/packages > cd /usr/ports/packages > rm -rf *.tbz > echo "Package creation starting `date`" > IFS=$'\n' > for i in `pkg_info -Ea` > do > echo "Creating $i" > pkg_create -b $i > done > echo "Finished, `date`" > > will create a package for every single port installed on your system and > place it in /usr/ports/packages. You can then move these and install > them on another system. Notice the script does not use -R as it is > already building all packages :) > _______________________________________________ > 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" Doing a "pkg_create -Rb" yielded the same results as Patrick's make package. Someone I wound up with 109 tarballs on ethic [new Dell]. Am trying a pkg_add on tao [old Dell]. See if it works. ...Well, an hour+, but it was a learning experience. In my desktop's /usr/ports/packages/All---it probably did not matter-- pkg_add -vfF openoffice-3.tbz worked. thanks guys, gary PS: I should add in my own defense that I tried building OOo-311 on my desktop but ran out of diskspace... . -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 7.31a release of Jottings: http://jottings.thought.org/index.php