diff options
author | Chris Wilson <chris+github@qwirx.com> | 2008-01-28 23:53:26 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2008-01-28 23:53:26 +0000 |
commit | 1afeacadd7303cd89ddc319fae1e20a8f82f9bb1 (patch) | |
tree | 151660f54597c591756b983a865d8853115f6472 /lib/common/BoxPortsAndFiles.h.in | |
parent | a82dee651cd06a60e3a5108994d0168a19aa96b6 (diff) |
Change the default sysconfdir to /etc.
Generate expanded versions of sysconfdir and localstatedir, as well as
bindir.
Expand variables in BoxPortsAndFiles.h.in.
Changed default configuration dir in BoxPortsAndFiles.h.in to use
@sysconfdir_expanded@/box, defaulting to /etc/box as before. But now
you can override it with something like --sysconfdir=/usr/etc
(to place config files in /usr/etc/box).
Diffstat (limited to 'lib/common/BoxPortsAndFiles.h.in')
-rw-r--r-- | lib/common/BoxPortsAndFiles.h.in | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/lib/common/BoxPortsAndFiles.h.in b/lib/common/BoxPortsAndFiles.h.in new file mode 100644 index 00000000..fcc0ddce --- /dev/null +++ b/lib/common/BoxPortsAndFiles.h.in @@ -0,0 +1,40 @@ +// -------------------------------------------------------------------------- +// +// File +// Name: BoxPortsAndFiles.h +// Purpose: Central list of which tcp/ip ports and hardcoded file locations +// Created: 2003/08/20 +// +// -------------------------------------------------------------------------- + +#ifndef BOXPORTSANDFILES__H +#define BOXPORTSANDFILES__H + +#define BOX_PORT_BASE 2200 + + +// Backup store daemon +#define BOX_PORT_BBSTORED (BOX_PORT_BASE+1) + +// directory within the RAIDFILE root for the backup store daemon +#define BOX_RAIDFILE_ROOT_BBSTORED "backup" + +// configuration file paths +#ifdef WIN32 + // no default config file path, use these macros to call + // GetDefaultConfigFilePath() instead. + + #define BOX_GET_DEFAULT_BBACKUPD_CONFIG_FILE \ + GetDefaultConfigFilePath("bbackupd.conf").c_str() + #define BOX_GET_DEFAULT_RAIDFILE_CONFIG_FILE \ + GetDefaultConfigFilePath("raidfile.conf").c_str() + #define BOX_GET_DEFAULT_BBSTORED_CONFIG_FILE \ + GetDefaultConfigFilePath("bbstored.conf").c_str() +#else +#define BOX_FILE_BBACKUPD_DEFAULT_CONFIG "@sysconfdir_expanded@/box/bbackupd.conf" +#define BOX_FILE_RAIDFILE_DEFAULT_CONFIG "@sysconfdir_expanded@/box/raidfile.conf" +#define BOX_FILE_BBSTORED_DEFAULT_CONFIG "@sysconfdir_expanded@/box/bbstored.conf" +#endif + +#endif // BOXPORTSANDFILES__H + |