From owner-freebsd-hubs@FreeBSD.ORG Wed Dec 8 16:50:01 2004 Return-Path: Delivered-To: freebsd-hubs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB5D016A4CE; Wed, 8 Dec 2004 16:50:00 +0000 (GMT) Received: from minerva.int.gov.br (nat.int.gov.br [200.20.196.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D60043D58; Wed, 8 Dec 2004 16:49:59 +0000 (GMT) (envelope-from jonny@jonny.eng.br) Received: from [10.0.8.17] (dinf-02 [10.0.8.17]) by minerva.int.gov.br (Postfix) with ESMTP id B2D12BE65C; Wed, 8 Dec 2004 14:49:56 -0200 (BRDT) Message-ID: <41B730B5.5040100@jonny.eng.br> Date: Wed, 08 Dec 2004 14:49:57 -0200 From: =?ISO-8859-1?Q?Jo=E3o_Carlos_Mendes_Lu=EDs?= User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jeremie Le Hen References: <20041207231019.GL79919@obiwan.tataz.chchile.org> <20041208082000.GP79919@obiwan.tataz.chchile.org> In-Reply-To: <20041208082000.GP79919@obiwan.tataz.chchile.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: jdp@FreeBSD.org cc: mux@FreeBSD.org cc: freebsd-hubs@FreeBSD.org Subject: Re: cvsup-mirror rewrite X-BeenThere: freebsd-hubs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD Distributions Hubs: mail sup ftp List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Dec 2004 16:50:01 -0000 Jeremie Le Hen wrote: > [ This is a small conversation I had with jdp@ yesterday evening. Hub > owners, please, read it and let me know your feelings about this. ] > > On Tue, Dec 07, 2004 at 07:38:27PM -0800, John Polstra wrote: > >>On 07-Dec-2004 Jeremie Le Hen wrote: >> >>>I'm planning to rewrite some parts of cvsup-mirror to make it cleaner. >>>Here is what I want to do for the moment: >>> >>> o I wish to make the dependency on cvsupd optionnal for those like >>> me who just want to have a local copy of the FreeBSD CVS >>> repository. I don't quite see any useful reason for this, but if this does not brake anything else, no problem. >>> >>> o I would also like to move etc/cvsup/update.sh to something like >>> /usr/local/libexec/cvsup-mirror.sh, following the example of the >>> atrun command executed from cron(8) [1]. I'd expect more work on customizing update.sh to allow it's configuration to come from /etc/rc.conf or some other place not touched during upgrades. As jdp stated, an upgrade is not easy right now. Where the real script lives is not a big problem at all. See below... >>> >>> o I think it would be relevant to move the etc/rc.d/sup.client/ >>> directory to /var/db/, just as it has been done recently in >>> RELENG_5 and HEAD for example supfiles [2]. This would break the (weak) assumption that a port is fully under ${DESTDIR}. There are already some ports that do this, including some I've made myself, but it's not something I'm proud of. ;-) Off course, a configurable update.sh would allow anybody chose where to put it, but I would rather not make the default be outside ${DESTDIR}. >>> >>> o Move cvsup-mirror specific files to etc/rc.d/cvsup/mirror/ to >>> have a clearer hierarchy. rc.d??? Is this right? rc.d is for startup script, this would be a very bad place! But indeed I'd rather have all files in ${PREFIX}/cvsup-mirror instead of ${PREFIX}/etc/cvsup >>> >>>That's all what I thought about for the moment, but I'll maybe find >>>other things to do while working on it. I don't know if this is possible, but my wishlist includes some change to avoid using symbolic links on the prefixes/ subdir and instead list the prefixes in a text file, where it could be safely saved in a CVS repo. With this and above changes a upgrade would be simply a matter of changing the scripts and keeping the site config files. >>> >>>I prefer to taste your opinion on the subject before beginning my work. >>>Would you be interested in commiting such changes ? Do you have any >>>comments on things I described above or additional ideas ? >>> >>>[1] obiwan:libexec# grep atrun /etc/crontab >>> */5 * * * * root /usr/libexec/atrun >>> >>>[2] obiwan:cvsup# grep /var/db /usr/share/examples/cvsup/standard-supfile >>> *default base=/var/db >> >>I think your ideas are reasonable, but they could cause problems for >>mirror sites that upgraded to a new version of cvsup-mirror. Lots of >>files wouldn't be in the expected places. On the other hand, it's not >>particularly easy to upgrade an existing cvsup-mirror installation >>even now. >> >>If you want to make these changes, I think you should get the opinions >>of the folks on the freebsd-hubs mailing list first. They're the main >>users of this port. >> >>I don't have time to commit your changes, but I wouldn't object at all >>if you would (a) take over maintainership of the port, and (b) find >>another committer to do the commits for you. > > > In particular, I want to know if some hub administrators are against > this kind of changes and why. Furthermore, I would like to gather > ideas on the hypotetical upgrade method. > > Regards,