2 # Copyright (c) 2005-2008 Zmanda Inc. All Rights Reserved.
4 # This program is free software; you can redistribute it and/or modify it
5 # under the terms of the GNU General Public License version 2 as published
6 # by the Free Software Foundation.
8 # This program is distributed in the hope that it will be useful, but
9 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 # You should have received a copy of the GNU General Public License along
14 # with this program; if not, write to the Free Software Foundation, Inc.,
15 # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 # Contact information: Zmanda Inc, 465 S Mathlida Ave, Suite 300
18 # Sunnyvale, CA 94086, USA, or: http://www.zmanda.com
20 package Amanda::Constants;
24 Amanda::Constants - perl access to build-time configuration values
28 use Amanda::Constants;
30 my $default_config = $Amanda::Constants::DEFAULT_CONFIG;
32 This package is a means of getting all of the necessary variables
33 provided by configure into Perl scripts, without a bunch of
34 boilerplate, and without requiring config.status substitution for
37 This module does not automatically export any of its values.
39 See the source for the list of constants available.
43 Constants will not be removed from this file unless they are no longer available in the codebase.
47 # the 'warnings' pragma doesn't recognized exported variables as "used", and generates warnings
48 # for variables only used once. We turn it off for this module.
51 # (keep this list sorted in alphabetical order, for ease of updates)
53 $AIX_BACKUP = "@AIX_BACKUP@";
54 $AMANDA_DEBUG_DAYS = "@AMANDA_DEBUG_DAYS@";
55 $ASSERTIONS = "@ASSERTIONS@";
56 $BSDTCP_SECURITY = "@BSDTCP_SECURITY@";
57 $BSDUDP_SECURITY = "@BSDUDP_SECURITY@";
58 $BSD_SECURITY = "@BSD_SECURITY@";
60 $CHECK_USERID = "@CHECK_USERID@";
61 $CLIENT_HOST_INSTANCE = "@CLIENT_HOST_INSTANCE@";
62 $CLIENT_HOST_KEY_FILE = "@CLIENT_HOST_KEY_FILE@";
63 $CLIENT_HOST_PRINCIPAL = "@CLIENT_HOST_PRINCIPAL@";
64 $CLIENT_LOGIN = "@CLIENT_LOGIN@";
65 $COMPRESS_BEST_OPT = "@COMPRESS_BEST_OPT@";
66 $COMPRESS_FAST_OPT = "@COMPRESS_FAST_OPT@";
67 $COMPRESS_PATH = "@COMPRESS_PATH@";
68 $COMPRESS_SUFFIX = "@COMPRESS_SUFFIX@";
69 $DEFAULT_AMANDATES_FILE = "@DEFAULT_AMANDATES_FILE@";
70 $DEFAULT_CONFIG = "@DEFAULT_CONFIG@";
71 $DEFAULT_SERVER = "@DEFAULT_SERVER@";
72 $DEFAULT_TAPE_DEVICE = "@DEFAULT_TAPE_DEVICE@";
73 $DEFAULT_TAPE_SERVER = "@DEFAULT_TAPE_SERVER@";
75 $DUMP_RETURNS_1 = "@DUMP_RETURNS_1@";
77 $HAVE_GZIP = "@HAVE_GZIP@";
78 $KRB4_SECURITY = "@KRB4_SECURITY@";
79 $KRB5_SECURITY = "@KRB5_SECURITY@";
80 $LOCKING = "@LOCKING@";
82 $RESTORE = "@RESTORE@";
84 $PS_ARGUMENT = "@PS_ARGUMENT@";
85 $RSH_SECURITY = "@RSH_SECURITY@";
86 $SAMBA_CLIENT = "@SAMBA_CLIENT@";
87 $SERVER_HOST_INSTANCE = "@SERVER_HOST_INSTANCE@";
88 $SERVER_HOST_KEY_FILE = "@SERVER_HOST_KEY_FILE@";
89 $SERVER_HOST_PRINCIPAL = "@SERVER_HOST_PRINCIPAL@";
90 $SSH_SECURITY = "@SSH_SECURITY@";
92 $TICKET_LIFETIME = "@TICKET_LIFETIME@";
93 $UNCOMPRESS_OPT = "@UNCOMPRESS_OPT@";
94 $UNCOMPRESS_PATH = "@UNCOMPRESS_PATH@";
95 $USE_AMANDAHOSTS = "@USE_AMANDAHOSTS@";
96 $USE_RUNDUMP = "@USE_RUNDUMP@";
97 $USE_VERSION_SUFFIXES = "@USE_VERSION_SUFFIXES@";
99 $VERSION = "@VERSION@";
100 $VRESTORE = "@VRESTORE@";
101 $VXDUMP = "@VXDUMP@";
102 $VXRESTORE = "@VXRESTORE@";
103 $XFSDUMP = "@XFSDUMP@";
104 $XFSRESTORE = "@XFSRESTORE@";