Le mercredi 2 mars 2011 12:11:04 Michael Olbrich, vous avez écrit : > On Tue, Mar 01, 2011 at 05:34:07PM +0100, Jean-Noël Avila wrote: > > Le mardi 1 mars 2011 12:49:40 Michael Olbrich, vous avez écrit : > > > [...] > > > > > > With the current ptxdist installing control files is already possible. > > > Just add rules/<pkg>.preinst etc. Where '<pkg>' is the package name > > > used in '$(call install_init, <pkg>)'. > > > > We did not like this approach as it freezes the control files whatever > > the configuration. > > We have multiple configurations, given the same source tree, and with our > > approach, we can select by script the control files to be included. > > hmmm, how do you choose then?
In an option of a ptxconf file. In our case, we have internet configs set up statically for some devices and set up by users in others. > > > > What's the exact handling of config files? What happen on update > > > (with/without modified config files)? How are modifications detected? > > > > Looking at the source code of ipkg gave us some headaches... It should > > really be replaced by opkg (is it better anyway). > > I agree, but it doesn't have a high priotity for us right now. Patches are > very welcome though. :-) Well, first I'd rather switch to the latest versions of ptxdist before. :o) > > > The conffiles file just lists the files to be considered as conf. No > > modification of the conf files is tracked for a given version of a > > package. It is only at the installation of the new package that the conf > > files are compared between the new file to install and the already > > existing one. It seems a md5sum is computed on files. > > > > The behavior on updating a modified conf file is given by two ways : > > * interactively, by the user > > * forced by option --force-defaults to force retaining previous file. > > Hmmm, no way to force the new version? Well, if you do not want to preserve, why tag the file as conffile ? > > > Regards, > Michael -- Jean-Noël Avila Tel: +33 (0)476009923 Directeur Technique 445, Rue Lavoisier VISIDOM F-38330 Montbonnot St Martin -- ptxdist mailing list [email protected]
