From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 13 22:09:18 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 048F7106566C for ; Thu, 13 Mar 2008 22:09:18 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.186]) by mx1.freebsd.org (Postfix) with ESMTP id C5B798FC27 for ; Thu, 13 Mar 2008 22:09:17 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: by rv-out-0910.google.com with SMTP id g13so2425777rvb.43 for ; Thu, 13 Mar 2008 15:09:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=6lGUnPsO/JfjrWG9lkHmPdvJq3ebRajg3bjDuprrl2c=; b=SdX/rcv7VYIDF2mtWJsw0o3IBd28RGr2mpYbYmbGZlO/78A8nc9AtGjOrUhWY4KNgzo0kxZm7SdTjvnqGuh37OmgkQQs4xD8yrGnHVewuw6VWfbLprE8tOOD4NUFho7fiSB7VeHBP2ytwUlDCTbdUE3C1O+LW1Y9SF+NEjJGEOI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=G5K66L+hVYFLimC2TPD/+K/7Pdi0Pq2my0ZO7LBSONRmgHirDuv0Sw7N4RZ4cY9TieEme/NcHCtPD4rki0DschgPyCDxqZ7FexLufHtiAk55tmw7MT0UgHcdnN1TJWsSTxS2GPDN3KQ+6XmLfsuaO2GpJKfMMRwB/nlBoqMvrzI= Received: by 10.141.161.6 with SMTP id n6mr6187680rvo.155.1205446157012; Thu, 13 Mar 2008 15:09:17 -0700 (PDT) Received: by 10.141.212.1 with HTTP; Thu, 13 Mar 2008 15:09:16 -0700 (PDT) Message-ID: <9bbcef730803131509i72be282bhaa50e23b0a3e44ea@mail.gmail.com> Date: Thu, 13 Mar 2008 23:09:16 +0100 From: "Ivan Voras" Sender: ivoras@gmail.com To: "Ivan Voras" , freebsd-ports@freebsd.org, freebsd-hackers@freebsd.org In-Reply-To: <20080313210242.GA55395@hades.panopticon> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080313210242.GA55395@hades.panopticon> X-Google-Sender-Auth: b15361382a37bb96 Cc: Subject: Re: Transferring ports X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Mar 2008 22:09:18 -0000 On 13/03/2008, Dmitry Marakasov wrote: > * Ivan Voras (ivoras@freebsd.org) wrote: > > > I have an idea and a request for people familiar with ports & pkgdb > > infrastructure: a utility (preferably written in C, Python or as a shell > > script) that would transfer *installed* ports from one system tree to > > the other, including their dependencies. It would transfer only some > > ports, specified on the command line. > There's no way to do it clearly. Not only such utility will have > to deal with dependencies anyway, but also there are ports that do more > than just copy files on installation (such as registering uids/gids, > handling user-modified configs nicely etc.). I only need the functionality that now exists by doing "pkg_create -b" to create a package, and then install it. However "pkg_create -b" does it, that's how I need it. > Actually, I've already had an idea of utility with pretty similar > functionality for a long time. The utility would copy directory > hierarchies recursively based on file include/exclude list, like this: > The purpose is similar - creating jails out of host system in fast > and easy way, possibility to strip everything unneeded (useful for > secure minimal jails or flash/livecd/embedded installations of > minimal size) and add something extra, like stuff from /usr/local > without installing full packages in a jail, or, say, copying over > additional tree of jail-specific changes (mostly stuff under /etc > and /usr/local/etc). This seems like something that would be also useful to me, if it would also read pkgdb :). I need to clarify so people don't flood me with nullfs suggestions: I don't actually need it for jails, but that was the easiest way for me to describe it - I need it to set up new installations.