On Fri, 2006-06-16 at 11:27 +0200, Eric Spakman wrote: > Hello Natanael, > > >apk-tools create the package listing on the fly. Something like: > > > >tar -ztf package.apk > var/db/apk/package/CONTENTS > >tar -zxf package.apk > > > A question. > How do you handle config files added by an user? To give an example: > A package like hostapd contains a directory /etc/hostapd which > contain some config files. It is possible to add some config files > for extra functionality in that directory.
They get automatically added. Everythin you add/touch in /etc gets included. > When you use a package listing with tar -ztf only the files present > in the package will be taken into account and the new files will get > lost with a backup. No. During installation of package, I filter out the files in /etc and add them to a sfic database. sfic --add default.tdb $etc_in_pkg When I look for what to backup, I generate a new database from current /etc. sfic -R --add temp.tdb /etc Then I compare current with default. That way, files existing in /etc that is not in any package shows up as "Added". If you remove a file it Shows up as "Deleted". If you chage it, it shows up as "Updated". > When you use something like a .local file you can list the etc/ > hostapd directory and all files will be taken into account. > > How do you handle this? see above. but in addition, I can specifically tell lbu to add files that are outside the /etc. That is done with "lbu add". for example: mkdir /nfs touch /nfs/.keep lbu add /nfs/.keep lbu commit floppy Now will /nfs/.keep be added and the /nfs dir is also added. Check out sfic. http://sfic.sourceforge.net > > Eric > _______________________________________________ leaf-devel mailing list leaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-devel