Imported Upstream version 3.3.3
[debian/amanda] / perl / Amanda / Constants.pm.in
1 # vim:ft=perl
2 # Copyright (c) 2008-2012 Zmanda, Inc.  All Rights Reserved.
3 #
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful, but
10 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11 # or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12 # for more details.
13 #
14 # You should have received a copy of the GNU General Public License along
15 # with this program; if not, write to the Free Software Foundation, Inc.,
16 # 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 #
18 # Contact information: Zmanda Inc, 465 S. Mathilda Ave., Suite 300
19 # Sunnyvale, CA 94086, USA, or: http://www.zmanda.com
20
21 package Amanda::Constants;
22
23 =head1 NAME
24
25 Amanda::Constants - perl access to build-time configuration values
26
27 =head1 SYNOPSIS
28
29   use Amanda::Constants;
30
31   my $default_config = $Amanda::Constants::DEFAULT_CONFIG;
32
33 This package is a means of getting all of the necessary variables
34 provided by configure into Perl scripts, without a bunch of
35 boilerplate, and without requiring config.status substitution for
36 every .pm file.  
37
38 This module does not automatically export any of its values.
39
40 See the source for the list of constants available.
41
42 =cut
43
44 # the 'warnings' pragma doesn't recognized exported variables as "used", and generates warnings
45 # for variables only used once.  We turn it off for this module.
46 no warnings;
47
48 # (keep this list sorted in alphabetical order, for ease of updates)
49
50 $AIX_BACKUP = "@AIX_BACKUP@";
51 $AMANDA_COMPONENTS = "@AMANDA_COMPONENTS@";
52 $AMANDA_DEBUG_DAYS = "@AMANDA_DEBUG_DAYS@";
53 $ASSERTIONS = "@ASSERTIONS@";
54 $BSDTCP_SECURITY = "@BSDTCP_SECURITY@";
55 $BSDUDP_SECURITY = "@BSDUDP_SECURITY@";
56 $BSD_SECURITY = "@BSD_SECURITY@";
57 $CC = "@CC@";
58 $CHECK_USERID = "@CHECK_USERID@";
59 $CLIENT_HOST_INSTANCE = "@CLIENT_HOST_INSTANCE@";
60 $CLIENT_HOST_KEY_FILE = "@CLIENT_HOST_KEY_FILE@";
61 $CLIENT_HOST_PRINCIPAL = "@CLIENT_HOST_PRINCIPAL@";
62 $CLIENT_LOGIN = "@CLIENT_LOGIN@";
63 $COMPRESS_BEST_OPT = "@COMPRESS_BEST_OPT@";
64 $COMPRESS_FAST_OPT = "@COMPRESS_FAST_OPT@";
65 $COMPRESS_PATH = "@COMPRESS_PATH@";
66 $COMPRESS_SUFFIX = "@COMPRESS_SUFFIX@";
67 $DD = "@DD@";
68 $DEFAULT_AMANDATES_FILE = "@DEFAULT_AMANDATES_FILE@";
69 $DEFAULT_CONFIG = "@DEFAULT_CONFIG@";
70 $DEFAULT_SERVER = "@DEFAULT_SERVER@";
71 $DEFAULT_TAPE_DEVICE = "@DEFAULT_TAPE_DEVICE@";
72 $DEFAULT_TAPE_SERVER = "@DEFAULT_TAPE_SERVER@";
73 $DUMP = "@DUMP@";
74 $DUMP_RETURNS_1 = "@DUMP_RETURNS_1@";
75 $GNUTAR = "@GNUTAR@";
76 $HAVE_GZIP = "@HAVE_GZIP@";
77 $KRB5_SECURITY = "@KRB5_SECURITY@";
78 $LOCKING = "@LOCKING@";
79 $MAILER = "@MAILER@";
80 $MT = "@MT@";
81 $MTX = "@MTX@";
82 $MOUNT = "@MOUNT@";
83 $UMOUNT = "@UMOUNT@";
84 $LPR = "@LPR@";
85 $LPRFLAG = "@LPRFLAG@";
86 $PS = "@PS@";
87 $PS_ARGUMENT = "@PS_ARGUMENT@";
88 $PS_ARGUMENT_ARGS = "@PS_ARGUMENT_ARGS@";
89 $RESTORE = "@RESTORE@";
90 $RSH_SECURITY = "@RSH_SECURITY@";
91 $SAMBA_CLIENT = "@SAMBA_CLIENT@";
92 $SERVER_HOST_INSTANCE = "@SERVER_HOST_INSTANCE@";
93 $SERVER_HOST_KEY_FILE = "@SERVER_HOST_KEY_FILE@";
94 $SERVER_HOST_PRINCIPAL = "@SERVER_HOST_PRINCIPAL@";
95 $SSH_SECURITY = "@SSH_SECURITY@";
96 $STAR = "@STAR@";
97 $SUNTAR = "@SUNTAR@";
98 $TICKET_LIFETIME = "@TICKET_LIFETIME@";
99 $UNCOMPRESS_OPT = "@UNCOMPRESS_OPT@";
100 $UNCOMPRESS_PATH = "@UNCOMPRESS_PATH@";
101 $USE_AMANDAHOSTS = "@USE_AMANDAHOSTS@";
102 $USE_RUNDUMP = "@USE_RUNDUMP@";
103 $VDUMP = "@VDUMP@";
104 $VERSION = "@VERSION@";
105 $VRESTORE = "@VRESTORE@";
106 $VXDUMP = "@VXDUMP@";
107 $VXRESTORE = "@VXRESTORE@";
108 $XFSDUMP = "@XFSDUMP@";
109 $XFSRESTORE = "@XFSRESTORE@";
110 $NC = "@NC@";
111 $NC6 = "@NC6@";
112 $NETCAT = "@NETCAT@";
113
114 # non-AC_SUBST'd constants
115
116 $DATA_FD_OFFSET = 50;
117 $DATA_FD_COUNT = 3;
118
119 1;