From owner-freebsd-questions@FreeBSD.ORG Tue Jun 24 15:41:38 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0F4CB2A4 for ; Tue, 24 Jun 2014 15:41:38 +0000 (UTC) Received: from mail.cyberleo.net (mtumishi.cyberleo.net [216.226.128.201]) by mx1.freebsd.org (Postfix) with ESMTP id E18DA27D5 for ; Tue, 24 Jun 2014 15:41:37 +0000 (UTC) Received: from [172.16.44.4] (vitani.den.cyberleo.net [216.80.73.130]) by mail.cyberleo.net (Postfix) with ESMTPSA id A2EE42B62; Tue, 24 Jun 2014 11:36:14 -0400 (EDT) Message-ID: <53A99AEE.6020408@cyberleo.net> Date: Tue, 24 Jun 2014 10:36:14 -0500 From: CyberLeo Kitsana User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: How do I build my own package server? References: <20140624135505.GA75895@becker.bs.l> In-Reply-To: <20140624135505.GA75895@becker.bs.l> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jun 2014 15:41:38 -0000 On 06/24/2014 08:55 AM, Bertram Scharpf wrote: > Hi, > > this is sort of what I did until now: > > Inside a jail: > > - SVN-Update "/usr/ports". > - Merge my own patch files for several packages. > - Find the outdated ports using a self-written tool. > - Do "make clean" and "make package" for them. > - Build a package list. > > On all other machines and jails: > > - Load the package list. > - Find the outdated packages. > - Do "pkg_delete" and "pkg_add" for them. > > Now, the pkg_* tools are no longer supported! Rewriting my update tools > would take at least two days and I have better things to do. On the > other side, I doubt whether it would go any faster learning some > portmaster or portupgrade tool until I find the features I need. > (Actually, I tried portmaster and soon was tired of seeing it > redundantly cleaning and recompiling ports.) > > Therefore my question: Is there any documentation how to build a package > server that can be understood in finite time? I have used poudirere[1] to great effect for this purpose. It produces a ready-to-use repository that I just rsync over to an HTTP server for use amongst my many jails. Once properly configured, my update cycle now consists of running, on the build server: poudriere bulk -j cdnjail -p cdn -f /usr/local/etc/poudriere/cdnjail-ports.list ...then rsync'ing the results to a webserver, followed by, on each jail: pkg upgrade ...and that's it. This has replaced hundreds of lines of bourne shell script that I used to use to maintain jails, and it is awesome*. * for me, your mileage may vary. [1] https://fossil.etoilebsd.net/poudriere/doc/trunk/doc/index.wiki > On the other side: I do not feel very well having loads of SQLite > databases in the base system. Can you articulate this feeling further? -- Fuzzy love, -CyberLeo Technical Administrator CyberLeo.Net Webhosting http://www.CyberLeo.Net Furry Peace! - http://www.fur.com/peace/