> Hi, I am picking up the effort to include BackupPC in Gentoo Linux from
> Stuart Herbert who I believe had some discussions on this list with
> regards to the configure script before he was flooded with other
> Right now, the configure script works great, but the issue I'm dealing
> with before inclusion is the current directory structure as Gentoo Linux
> needs configuration files to be under /etc, especially for packages such
> as BackupPC so our tools can be used to merge old and new configs upon
> I'd like to inquire into the possibility of BackupPC becoming more
> compliant to the Filesystem Hierarchy Standard with the following
> suggestions for path changes:
Thanks for the detailed suggestions. I believe the Debian package
also has been hardcoded to use most of the paths you suggest.
The motivation for the original layout was to minimize the footprint
on the system. Everything is limited to 3 directories: code+lib+doc,
data+config, and CGI. Plus I didn't know about the Filesystem
One comment: __TOPDIR__/trash needs to be on the same file system
as the data directory since directories are renamed there for later
Note also that currently __TOPDIR__ is not included in config.pl, since
you need to know __TOPDIR__ before reading __TOPDIR__/conf/config.pl.
With your setup, the config file is in /etc/backuppc/config.pl, so
it can now include __TOPDIR__, which you renamed to __DATADIR__.
It would probably be best to support both file system setups, the
existing one, and the new FHS one. Basically the code needs to be
generalized a little, and configure.pl can fill in the settings.
Do you want to take a crack at this for 2.1.0pl1?
I could make it a standard feature in 2.2.x, but that's a few