2 # Copyright (c) 2007,2008,2009 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. Mathilda Ave., Suite 300
18 # Sunnyvale, CA 94086, USA, or: http://www.zmanda.com
20 package Amanda::Paths;
24 Amanda::Paths - perl access to build-time configuration paths
30 my $filename = "$amlibexecdir/foo/bar";
32 This package is a means of getting all of the necessary variables provided
33 by configure into Perl scripts, without a bunch of boilerplate, and without
34 requiring config.status substitution for every .pm file.
36 All of the variables in @EXPORT will be automatically imported into
37 your module's namespace. See the source, rather than the perldoc,
38 to find out what variables are available.
43 @ISA = qw( Exporter );
62 $GNUTAR_LISTED_INCREMENTAL_DIR
65 # the 'warnings' pragma doesn't recognized exported variables as "used", and generates warnings
66 # for variables only used once. We turn it off for this module.
69 ## basic filesystem layout
71 # these need to go in order, due to the way autoconf sets these dirs up
73 $exec_prefix = "@exec_prefix@";
75 $sbindir = "@sbindir@";
76 $libexecdir = "@libexecdir@";
77 $amlibexecdir = "@amlibexecdir@";
79 # (config.status worries if it doesn't see this:)
80 $datarootdir = "@datarootdir@";
81 $sysconfdir = "@sysconfdir@";
82 $amdatadir = "@amdatadir@";
83 $localstatedir = "@localstatedir@";
85 ## amanda configuration directories
87 $AMANDA_TMPDIR = "@AMANDA_TMPDIR@";
88 $CONFIG_DIR = "@CONFIG_DIR@";
89 $AMANDA_DBGDIR = "@AMANDA_DBGDIR@";
90 $APPLICATION_DIR = "@APPLICATION_DIR@";
91 $GNUTAR_LISTED_INCREMENTAL_DIR = "@GNUTAR_LISTED_INCREMENTAL_DIR@";