Imported Upstream version 3.3.2
[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 modify it
5 # under the terms of the GNU General Public License version 2 as published
6 # by the Free Software Foundation.
7 #
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
11 # for more details.
12 #
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
16 #
17 # Contact information: Zmanda Inc, 465 S. Mathilda Ave., Suite 300
18 # Sunnyvale, CA 94086, USA, or: http://www.zmanda.com
19
20 package Amanda::Constants;
21
22 =head1 NAME
23
24 Amanda::Constants - perl access to build-time configuration values
25
26 =head1 SYNOPSIS
27
28   use Amanda::Constants;
29
30   my $default_config = $Amanda::Constants::DEFAULT_CONFIG;
31
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
35 every .pm file.  
36
37 This module does not automatically export any of its values.
38
39 See the source for the list of constants available.
40
41 =cut
42
43 # the 'warnings' pragma doesn't recognized exported variables as "used", and generates warnings
44 # for variables only used once.  We turn it off for this module.
45 no warnings;
46
47 # (keep this list sorted in alphabetical order, for ease of updates)
48
49 $AIX_BACKUP = "@AIX_BACKUP@";
50 $AMANDA_COMPONENTS = "@AMANDA_COMPONENTS@";
51 $AMANDA_DEBUG_DAYS = "@AMANDA_DEBUG_DAYS@";
52 $ASSERTIONS = "@ASSERTIONS@";
53 $BSDTCP_SECURITY = "@BSDTCP_SECURITY@";
54 $BSDUDP_SECURITY = "@BSDUDP_SECURITY@";
55 $BSD_SECURITY = "@BSD_SECURITY@";
56 $CC = "@CC@";
57 $CHECK_USERID = "@CHECK_USERID@";
58 $CLIENT_HOST_INSTANCE = "@CLIENT_HOST_INSTANCE@";
59 $CLIENT_HOST_KEY_FILE = "@CLIENT_HOST_KEY_FILE@";
60 $CLIENT_HOST_PRINCIPAL = "@CLIENT_HOST_PRINCIPAL@";
61 $CLIENT_LOGIN = "@CLIENT_LOGIN@";
62 $COMPRESS_BEST_OPT = "@COMPRESS_BEST_OPT@";
63 $COMPRESS_FAST_OPT = "@COMPRESS_FAST_OPT@";
64 $COMPRESS_PATH = "@COMPRESS_PATH@";
65 $COMPRESS_SUFFIX = "@COMPRESS_SUFFIX@";
66 $DD = "@DD@";
67 $DEFAULT_AMANDATES_FILE = "@DEFAULT_AMANDATES_FILE@";
68 $DEFAULT_CONFIG = "@DEFAULT_CONFIG@";
69 $DEFAULT_SERVER = "@DEFAULT_SERVER@";
70 $DEFAULT_TAPE_DEVICE = "@DEFAULT_TAPE_DEVICE@";
71 $DEFAULT_TAPE_SERVER = "@DEFAULT_TAPE_SERVER@";
72 $DUMP = "@DUMP@";
73 $DUMP_RETURNS_1 = "@DUMP_RETURNS_1@";
74 $GNUTAR = "@GNUTAR@";
75 $HAVE_GZIP = "@HAVE_GZIP@";
76 $KRB5_SECURITY = "@KRB5_SECURITY@";
77 $LOCKING = "@LOCKING@";
78 $MAILER = "@MAILER@";
79 $MT = "@MT@";
80 $MTX = "@MTX@";
81 $MOUNT = "@MOUNT@";
82 $UMOUNT = "@UMOUNT@";
83 $LPR = "@LPR@";
84 $LPRFLAG = "@LPRFLAG@";
85 $PS = "@PS@";
86 $PS_ARGUMENT = "@PS_ARGUMENT@";
87 $PS_ARGUMENT_ARGS = "@PS_ARGUMENT_ARGS@";
88 $RESTORE = "@RESTORE@";
89 $RSH_SECURITY = "@RSH_SECURITY@";
90 $SAMBA_CLIENT = "@SAMBA_CLIENT@";
91 $SERVER_HOST_INSTANCE = "@SERVER_HOST_INSTANCE@";
92 $SERVER_HOST_KEY_FILE = "@SERVER_HOST_KEY_FILE@";
93 $SERVER_HOST_PRINCIPAL = "@SERVER_HOST_PRINCIPAL@";
94 $SSH_SECURITY = "@SSH_SECURITY@";
95 $STAR = "@STAR@";
96 $SUNTAR = "@SUNTAR@";
97 $TICKET_LIFETIME = "@TICKET_LIFETIME@";
98 $UNCOMPRESS_OPT = "@UNCOMPRESS_OPT@";
99 $UNCOMPRESS_PATH = "@UNCOMPRESS_PATH@";
100 $USE_AMANDAHOSTS = "@USE_AMANDAHOSTS@";
101 $USE_RUNDUMP = "@USE_RUNDUMP@";
102 $VDUMP = "@VDUMP@";
103 $VERSION = "@VERSION@";
104 $VRESTORE = "@VRESTORE@";
105 $VXDUMP = "@VXDUMP@";
106 $VXRESTORE = "@VXRESTORE@";
107 $XFSDUMP = "@XFSDUMP@";
108 $XFSRESTORE = "@XFSRESTORE@";
109 $NC = "@NC@";
110 $NC6 = "@NC6@";
111 $NETCAT = "@NETCAT@";
112
113 # non-AC_SUBST'd constants
114
115 $DATA_FD_OFFSET = 50;
116 $DATA_FD_COUNT = 3;
117
118 1;