From owner-freebsd-questions@FreeBSD.ORG Sun Jan 9 22:04:22 2005 Return-Path: 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 6FE1316A4CE for ; Sun, 9 Jan 2005 22:04:22 +0000 (GMT) Received: from mta9.adelphia.net (mta9.adelphia.net [68.168.78.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B76643D2D for ; Sun, 9 Jan 2005 22:04:22 +0000 (GMT) (envelope-from parv@pair.com) Received: from default.chvlva.adelphia.net ([69.160.64.9]) by mta9.adelphia.netESMTP <20050109220421.QAIS14945.mta9.adelphia.net@default.chvlva.adelphia.net>; Sun, 9 Jan 2005 17:04:21 -0500 Received: by default.chvlva.adelphia.net (Postfix, from userid 1000) id 794CDB519; Sun, 9 Jan 2005 17:03:53 -0500 (EST) Date: Sun, 9 Jan 2005 17:03:53 -0500 From: Parv To: Christer Solskogen , freebsd-questions@freebsd.org Message-ID: <20050109220353.GB275@holestein.holy.cow> Mail-Followup-To: Christer Solskogen , freebsd-questions@freebsd.org References: <20050106142257.GA30323@math.jussieu.fr> <41DD8242.8090207@scii.nl> <20050109194634.GA275@holestein.holy.cow> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050109194634.GA275@holestein.holy.cow> Subject: Re: Create tgz packages X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Jan 2005 22:04:22 -0000 in message <20050109194634.GA275@holestein.holy.cow>, wrote Parv thusly... > > in message , > wrote Christer Solskogen thusly... > > > > Is there a easy way of making packages of all installed ports? > > assuming sh ... > > for port in $( find /var/db/pkg -mindepth 1 -type d ) > do > echo pkg_create -b $(basename "$port") ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ Oops, forgot to undo the echo after testing; please remove it when one is ready to create the packages. > done Below is another way ... find /var/db/pkg -mindepth 1 -type d \ | while read port do pkg_create -b $(basename "$port") done - Parv --