From owner-freebsd-ports@FreeBSD.ORG Fri Sep 16 09:44:58 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C4331106566B for ; Fri, 16 Sep 2011 09:44:58 +0000 (UTC) (envelope-from lukasz@wasikowski.net) Received: from bijou.wasikowski.net (bijou.wasikowski.net [IPv6:2001:808:10f::1]) by mx1.freebsd.org (Postfix) with ESMTP id 6B2D48FC16 for ; Fri, 16 Sep 2011 09:44:58 +0000 (UTC) Received: from bijou.wasikowski.net (localhost [127.0.0.1]) by bijou.wasikowski.net (Postfix) with ESMTP id 3122B5C06F; Fri, 16 Sep 2011 11:45:02 +0200 (CEST) X-Virus-Scanned: amavisd-new at wasikowski.net Received: from bijou.wasikowski.net ([127.0.0.1]) by bijou.wasikowski.net (bijou.wasikowski.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qk-SB6cuosFT; Fri, 16 Sep 2011 11:45:00 +0200 (CEST) Received: from [192.168.138.150] (cadera.waw.pl [62.121.127.119]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by bijou.wasikowski.net (Postfix) with ESMTPSA id 3580D5C063; Fri, 16 Sep 2011 11:45:00 +0200 (CEST) Message-ID: <4E731A92.1050700@wasikowski.net> Date: Fri, 16 Sep 2011 11:44:50 +0200 From: =?UTF-8?B?xYF1a2FzeiBXxIVzaWtvd3NraQ==?= User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 MIME-Version: 1.0 To: "Klaus T. Aehlig" References: <1315864556.1747.103.camel@xenon> <20110912190558.641a3219@seibercom.net> <20110912230943.GD33455@guilt.hydra> <4E6E99BC.4050909@missouri.edu> <1315905051.1747.208.camel@xenon> <4E6F8A50.9060205@gmx.de> <1315942042.1747.258.camel@xenon> <4E6FD71D.9010207@gmx.de> <20110914181553.f6d31b0f.cjr@cruwe.de> <4E722F3F.3030606@wasikowski.net> <20110916062452.GA57167@curry.linta.de> In-Reply-To: <20110916062452.GA57167@curry.linta.de> X-Enigmail-Version: 1.3.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: overlays X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Sep 2011 09:44:58 -0000 W dniu 2011-09-16 08:24, Klaus T. Aehlig pisze: > Now I'm really curios what magic device gentoo has. Once thing I > most appreciate about FreeBSD is how flexible it is in precisely > this manner. [...] > Could you please elaborate, which additional features gentoo's overlay > system brings on top of that? Simplicity. I'm not familiar with FreeBSD's way of doing overlays, quick googling and quick testing may be not enough to say anything in that matter, so I'll just describe how I do it in Gentoo. I've got ca. 70 Gentoo servers and I want my own portage overlay. So I've set up svn server with my ports. Each of 70 servers has a script in /etc/portage/postsync.d which retrives my ports from svn server during the synchronization of portage tree. Each server have a line in /etc/make.conf: PORTDIR_OVERLAY=/some/local/directory Let's say I've wrote a new ebuild for a new category, for example: my-category/my-port/my-port-1.0.ebuild. Now I have to do prepare it for "shipping", so: cd my-category/my-port && ebuild my-port-1.0.ebuild digest && svn ci That's all, after next portage update (via emerge --sync) I'll end with up-to-date official portage tree and up-to-date my overlay. Ports from my overlay will work with emerge out of the box (checking for new USE flags, checking if port needs updating, etc.) Summarize: Enable overlay: - one simple script in postsync.d - one line in make.conf Prepare port for tree: - one command to make ebuild - one command to commit it to svn Sync and install/update: - one command to update portage tree on each server - one command to install/update port(s) How would it look like on FreeBSD? -- best regards Lukasz Wasikowski