1 //! Exports configuration data from the build system
3 /// The configured configuration directory
4 pub const CONFIGDIR
: &str = "/etc/proxmox-backup";
5 pub const JS_DIR
: &str = "/usr/share/javascript/proxmox-backup";
8 macro_rules
! PROXMOX_BACKUP_RUN_DIR_M { () => ("/run/proxmox-backup") }
11 macro_rules
! PROXMOX_BACKUP_LOG_DIR_M { () => ("/var/log/proxmox-backup") }
13 /// namespaced directory for in-memory (tmpfs) run state
14 pub const PROXMOX_BACKUP_RUN_DIR
: &str = PROXMOX_BACKUP_RUN_DIR_M
!();
15 /// namespaced directory for persistent logging
16 pub const PROXMOX_BACKUP_LOG_DIR
: &str = PROXMOX_BACKUP_LOG_DIR_M
!();
18 /// logfile for all API reuests handled by the proxy and privileged API daemons
19 pub const API_ACCESS_LOG_FN
: &str = concat
!(PROXMOX_BACKUP_LOG_DIR_M
!(), "/api/access.log");
21 /// Prepend configuration directory to a file name
23 /// This is a simply way to get the full path for configuration files.
26 /// # #[macro_use] extern crate proxmox_backup;
27 /// let cert_path = configdir!("/proxy.pfx");
30 macro_rules
! configdir
{
31 ($subdir
:expr
) => (concat
!("/etc/proxmox-backup", $subdir
))