From owner-freebsd-questions@FreeBSD.ORG Tue Nov 13 03:52:40 2007 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 1963B16A419 for ; Tue, 13 Nov 2007 03:52:40 +0000 (UTC) (envelope-from jahilliya@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.238]) by mx1.freebsd.org (Postfix) with ESMTP id CD1A413C48E for ; Tue, 13 Nov 2007 03:52:39 +0000 (UTC) (envelope-from jahilliya@gmail.com) Received: by wr-out-0506.google.com with SMTP id 70so813385wra for ; Mon, 12 Nov 2007 19:51:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=gL3TcHyZ4NbJqDKEeASUlceGqk+kejk59BXKpF3KJ9Q=; b=UgpVDzDfXkiueLSxXf/jhVdDc7Ik5/8q/enn0MlazVcSpFXPJ9ulAobAr/ocA6zWAZarxSN2ncZbIzq7GnNEN75cOG8qrzdyKngALfNqF2FI+PCmCKKemVxF/Z5LjxAL9B0c/Mafc06Ld+Nq3kkgFH9ZeQ1GtrwDEmbmJRrUhcQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=DBmckGDhpFdixr0IRvZJApr72LX3vPL/w9JU6PgFoEIjukSklNL86bTGi4Sq1D5jPm9xxG9lmslN150EnXRHqE23fQmUXmmOroezY3mc7W00Ny9YTY5GK/6ZQfmQ+NERaKdZGgAShGZpwgTB9kSZlczo1bFwaDl7NYzIdSU9ja8= Received: by 10.142.232.20 with SMTP id e20mr1027668wfh.1194925916554; Mon, 12 Nov 2007 19:51:56 -0800 (PST) Received: by 10.143.163.21 with HTTP; Mon, 12 Nov 2007 19:51:56 -0800 (PST) Message-ID: Date: Tue, 13 Nov 2007 12:51:56 +0900 From: "Daniel Marsh" To: Dave In-Reply-To: <000301c8259f$aceead50$0200a8c0@satellite> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <000301c8259f$aceead50$0200a8c0@satellite> Cc: freebsd-questions@freebsd.org Subject: Re: making packages from 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, 13 Nov 2007 03:52:40 -0000 On Nov 13, 2007 11:48 AM, Dave wrote: > Hello, > I've got a box i'd like to build packages from ports on, and deploy > those packages to other machines. I'll use postfix as an example. I did make > package from postfix's directory and selected pcre and mysql support. I got > the postfix tarball package, but when i tried to install it on another box > it needed pcre and mysql-client packages. I had to run make package in each > of their directories. I was wondering if there was a recursive way of > package making? > Thanks. > Dave. Have a look at pkg_create(1) I will generally use the following command to create a bunch of packages of installed ports. pkg_info | awk '{ print "pkg_create -yb", $1 }' | sh or pkg_info | cut -d' ' -f1 | xargs -n pkg_create -yb (I'm certain someone will point out a better way of doing this) I will place these packages in a NFS/SMB shared directory or NULL mount it for jails to install packages on other systems/jails.