- global("cache_root", '/var/cache/cran2deb')
- global("pbuilder_results", '/var/cache/cran2deb/results')
- global("pbuilder_config", '/etc/cran2deb/pbuilderrc')
- global("dput_config", '/etc/cran2deb/dput.cf')
- global("dinstall_config", '/etc/cran2deb/mini-dinstall.conf')
- global("dinstall_archive", '/etc/cran2deb/archive')
+ global("cache_root", Sys.getenv('CRAN2DEB_CACHE','/var/cache/cran2deb'))
+ global("config_dir", Sys.getenv('CRAN2DEB_CONFDIR','/etc/cran2deb'))
+ global("pbuilder_results", file.path(cache_root,which_system))
+ global("pbuilder_config", file.path(config_dir,'sys',which_system,'pbuilderrc'))
+ global("dput_config", file.path(config_dir,'sys',which_system,'dput.cf'))
+ global("dinstall_config", file.path(config_dir,'sys',which_system,'mini-dinstall.conf'))
+ global("dinstall_archive", file.path(config_dir,'archive',which_system))