1# vim:ft=perl 2# Copyright (c) 2008-2013 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 21package Amanda::Constants; 22 23=head1 NAME 24 25Amanda::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 33This package is a means of getting all of the necessary variables 34provided by configure into Perl scripts, without a bunch of 35boilerplate, and without requiring config.status substitution for 36every .pm file. 37 38This module does not automatically export any of its values. 39 40See 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. 46no 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$BSDTAR = "@BSDTAR@"; 55$BSDTCP_SECURITY = "@BSDTCP_SECURITY@"; 56$BSDUDP_SECURITY = "@BSDUDP_SECURITY@"; 57$BSD_SECURITY = "@BSD_SECURITY@"; 58$CC = "@CC@"; 59$CHECK_USERID = "@CHECK_USERID@"; 60$CLIENT_HOST_INSTANCE = "@CLIENT_HOST_INSTANCE@"; 61$CLIENT_HOST_KEY_FILE = "@CLIENT_HOST_KEY_FILE@"; 62$CLIENT_HOST_PRINCIPAL = "@CLIENT_HOST_PRINCIPAL@"; 63$CLIENT_LOGIN = "@CLIENT_LOGIN@"; 64$COMPRESS_BEST_OPT = "@COMPRESS_BEST_OPT@"; 65$COMPRESS_FAST_OPT = "@COMPRESS_FAST_OPT@"; 66$COMPRESS_PATH = "@COMPRESS_PATH@"; 67$COMPRESS_SUFFIX = "@COMPRESS_SUFFIX@"; 68$DD = "@DD@"; 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@"; 74$DUMP = "@DUMP@"; 75$DUMP_RETURNS_1 = "@DUMP_RETURNS_1@"; 76$GNUTAR = "@GNUTAR@"; 77$HAVE_GZIP = "@HAVE_GZIP@"; 78$KRB5_SECURITY = "@KRB5_SECURITY@"; 79$LOCKING = "@LOCKING@"; 80$MAILER = "@MAILER@"; 81$MT = "@MT@"; 82$MTX = "@MTX@"; 83$MOUNT = "@MOUNT@"; 84$UMOUNT = "@UMOUNT@"; 85$LPR = "@LPR@"; 86$LPRFLAG = "@LPRFLAG@"; 87$PS = "@PS@"; 88$PS_ARGUMENT = "@PS_ARGUMENT@"; 89$PS_ARGUMENT_ARGS = "@PS_ARGUMENT_ARGS@"; 90$RESTORE = "@RESTORE@"; 91$RSH_SECURITY = "@RSH_SECURITY@"; 92$SAMBA_CLIENT = "@SAMBA_CLIENT@"; 93$SERVER_HOST_INSTANCE = "@SERVER_HOST_INSTANCE@"; 94$SERVER_HOST_KEY_FILE = "@SERVER_HOST_KEY_FILE@"; 95$SERVER_HOST_PRINCIPAL = "@SERVER_HOST_PRINCIPAL@"; 96$SSH_SECURITY = "@SSH_SECURITY@"; 97$STAR = "@STAR@"; 98$SUNTAR = "@SUNTAR@"; 99$TICKET_LIFETIME = "@TICKET_LIFETIME@"; 100$UNCOMPRESS_OPT = "@UNCOMPRESS_OPT@"; 101$UNCOMPRESS_PATH = "@UNCOMPRESS_PATH@"; 102$USE_AMANDAHOSTS = "@USE_AMANDAHOSTS@"; 103$USE_RUNDUMP = "@USE_RUNDUMP@"; 104$VDUMP = "@VDUMP@"; 105$VERSION = "@VERSION@"; 106$VRESTORE = "@VRESTORE@"; 107$VXDUMP = "@VXDUMP@"; 108$VXRESTORE = "@VXRESTORE@"; 109$XFSDUMP = "@XFSDUMP@"; 110$XFSRESTORE = "@XFSRESTORE@"; 111$NC = "@NC@"; 112$NC6 = "@NC6@"; 113$NETCAT = "@NETCAT@"; 114 115# non-AC_SUBST'd constants 116 117$DATA_FD_OFFSET = 50; 118$DATA_FD_COUNT = 3; 119 1201; 121