From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5121 invoked by uid 1002); 8 Nov 2003 23:11:54 -0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 2428 invoked from network); 8 Nov 2003 23:11:53 -0000 From: "Corey Crawford" To: Date: Sat, 8 Nov 2003 16:11:52 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <87vfpufp94.fsf@jay.local.invalid> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal Subject: RE: [gentoo-dev] Ebuilds and the changes people make to them X-Archives-Salt: 9fd95f3e-ccab-42c8-8fad-5a8ef8e68e43 X-Archives-Hash: 8c8c996d7b0ed9d94759f80d0f0c6c12 > -----Original Message----- > From: Jeremy Maitin-Shepard [mailto:jbms@gentoo.org] > Sent: Saturday, November 08, 2003 3:51 PM > To: gentoo-dev@gentoo.org > Subject: Re: [gentoo-dev] Ebuilds and the changes people make to them -snip- > This seems like a matter of having (more general) package-specific > configuration files, which currently is not supported. I would imagine > though that if such files were supported, it would make more sense for > these files to go in a sub-directory of /etc rather than in the portage > tree, since either they would be overwritten or they would have to be > excluded from rsync, which would cause problems if the package were > moved or removed. > > -- > Jeremy Maitin-Shepard You are right, it is a matter of having package-specific configuration files. However, if it's done right then packages can be moved to this system one at a time without requiring any kind of rewrite for the portage system. Just somewhere along the line when you did an 'emerge sync' the new ebuild file and configuration file would be included. The .defaults file is designed to be overwritten each time an 'emerge sync' is done. Just like the ChangeLog file is overwritten when it's changed. However, the .custom configuration file could easily go into an /etc directory (with make.conf would make sense). If there is no .custom file for the package being built (which would be checked by the package's ebuild) then the .defaults file would provide all the configuration values the ebuild needs. A default .custom file does not need to be provided. The user can create their own .custom file with the variables they want to change from the .defaults file. I could probably convert Apache2's ebuild file to use this system in less than an hour. --- Corey Crawford ccrawford@seventh.net -- gentoo-dev@gentoo.org mailing list