#!/usr/bin/perl --
# Edit the line above to reflect the location of Perl on your system.
# After editing this file to change the configuration you must run
# make install.
#
# Environment variables (specified using $ENV{'foo'}) are substituted
# at runtime (or install-time if that's when they're used).
#
# Pathnames for commands may come in two flavours: $config_x_... is
# passed to execlp when the program is to be called, and may thus be
# absolute or be searched for in $PATH - note that if you want to
# install the programs outside your path this will _have_ to be an
# absolute filename; $config_i_... is the place to install the program
# and should be absolute.
#
# Variables $config_l_... are not referenced directly by the
# configured scripts but are used to supply/build sensible values for
# other variables.
#
# If you're using Emacs 19, comment out the two lines marked as being
# for Emacs 18 and uncomment the ones for Emacs 19.

# PGPPATH environment variable and a default value for if it's not set
chop($ENV{'PGPPATH'}=`pwd`) unless length($ENV{'PGPPATH'});
$config_pgppath= $ENV{'PGPPATH'};

# Directory to contain the passphrase socket and temporary working
# files. It must have mode 700 (rwx------), but you don't need to
# create it as it will be created by the scripts when necessary.
$config_wrapperdir=	"$config_pgppath/.wrapper";

# Name of the passphrase socket in WRAPPERDIR.
# You must not make this an absolute path.
$config_socketname=	"pass-socket";

# The filename of the big public keyring containing all the userids
# you might want to PGP recognise in an encrypted message. You may
# want this to be a different keyring to your main pubring.pgp. This
# default is the name used by most of the PGP key servers for their
# huge keyring. If it doesn't exist the scripts will decide at run-
# time to use pubring.pgp in your $PGPPATH directory.
$config_allkeys=	"$config_pgppath/public-keys.pgp";

# Default directory for finding and installing programs.
# $config_l_bindir=	"/usr/local/bin";
$config_l_bindir=	"./debian-tmp/usr/bin"; # for Debian

# Ownership and mode for installing programs.
$config_execuser=	'root';
$config_execgroup=	'root';
$config_execmode=	'755';

# Emacs root directory for installing the lisp and Info:
# $config_l_emacs=	"/usr/local/emacs"; # for Emacs 18
# $config_l_emacs=	"/usr/local/lib/emacs"; # for Emacs 19
$config_l_emacs=	"./debian-tmp/usr/lib/emacs/site-lisp"; # for Debian

# Ownership and mode for lisp code:
$config_lispuser=	'root';
$config_lispgroup=	'root';
$config_lispmode=	'644';

# Location for installing the Info documenation:
# $config_i_info=	"$config_l_emacs/info/auto-pgp.info"; # for Emacs 18
# $config_i_info=	"/usr/local/info/auto-pgp.info"; # for Emacs 19
$config_i_info=		"./debian-tmp/usr/info/auto-pgp.info"; # for Debian

# Ownership and mode for Info documentation:
$config_infouser=	'root';
$config_infogroup=	'root';
$config_infomode=	'644';

# Name of the lisp package, used in the `provide' in the elisp.  Must
# be the same basename of the installed filename for `require' to
# work properly.
$config_lisp=		"auto-pgp";

# Installed filename for the lisp:
# $config_i_lisp=	"$config_l_emacs/lisp/$config_lisp.el"; # for Emacs 18
# $config_i_lisp=	"$config_l_emacs/site-lisp/$config_lisp.el"; # 19
$config_i_lisp=	"$config_l_emacs/$config_lisp.el"; # for Debian

# Directory for installing command manpages.
#$config_i_mandir=	"/usr/local/man/man1";
$config_i_mandir=	"./debian-tmp/usr/man/man1"; # for Debian
$config_i_manext=	"1";

# Ownership and mode for command manpages.
$config_manuser=	'root';
$config_mangroup=	'root';
$config_manmode=	'644';

# The normal un-hacked-up PGP.
$config_x_normalpgp=	"pgp";

# The automatic-passphrase-suppying PGP. If you install it as `pgp'
# you'd better set NORMALPGP above, and remember to move PGP to the
# NORMALPGP name before running the installation so it doesn't get
# overwritten. This is probably undesirable anyway as it asks
# pixie for a passphrase even when none is needed.
$config_l_pgpauto=	"pgp-auto";
$config_i_pgpauto=	"$config_l_bindir/$config_l_pgpauto";
$config_x_pgpauto=	"$config_l_pgpauto"; # or perhaps $config_i_pgpauto

# The PGP-decrypting filter, for use by the elisp.
$config_l_decrypt=	"pgp-decrypt";
$config_i_decrypt=	"$config_l_bindir/$config_l_decrypt";
$config_x_decrypt=	"$config_l_decrypt"; # or perhaps $config_i_decrypt

# The public keyring searching program, for use by the decrypter.
$config_l_ringsearch=	"pgp-ringsearch";
$config_i_ringsearch=	"$config_l_bindir/$config_l_ringsearch";
$config_x_ringsearch=	"$config_l_ringsearch"; # or perhaps $config_i_ringsearch

# The minimal passphrase pixie
$config_l_pixie=	"pgp-pixie";
$config_i_pixie=	"$config_l_bindir/$config_l_pixie";
$config_x_pixie=	"$config_l_pixie"; # or perhaps $config_i_pixie
