Re: Portability: config/amanda/defaults.m4
Jean-Louis Martineau <[email protected]>
| Newsgroups | gmane.comp.archivers.amanda.devel |
|---|---|
| Message-ID | <[email protected]> |
Eric, Thanks, I committed the patch Jean-Louis On 02/01/17 05:58 PM, Eric Schnoebelen wrote: > Issue: hard-coding amanda-security.conf into /etc > > Autoconf provides support for relocation of configuration files > with the sysconfdir variable. Other portions of amanda use it, > so have the amanda-security.conf file follow the same form. > > > $NetBSD$ > > --- config/amanda/defaults.m4.orig 2016-02-09 22:52:50.000000000 +0000 > +++ config/amanda/defaults.m4 > @@ -125,15 +125,15 @@ AC_DEFUN([AMANDA_SETUP_DEFAULTS], > > AC_ARG_WITH(security-file, > AS_HELP_STRING([--with-security-file], > - [Full path of the security file (default: /etc/amanda-security.conf)]), > + [Full path of the security file (default: $sysconfdir/amanda-security.conf)]), > [ > case "$withval" in > n | no) AC_MSG_ERROR([*** --without-security-file is not allowed.]);; > - y | ye | yes) security_file='/etc/amanda-security.conf' ;; > + y | ye | yes) security_file='$sysconfdir/amanda-security.conf' ;; > *) security_file="$withval";; > esac > ], > - [security_file='/etc/amanda-security.conf'] > + [security_file='$sysconfdir/amanda-security.conf'] > ) > > AC_DEFINE_DIR([DEFAULT_SECURITY_FILE], [security_file], > Disclaimer The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful. This email has been scanned for viruses and malware, and may have been automatically archived by Mimecast Ltd, an innovator in Software as a Service (SaaS) for business. Providing a safer and more useful place for your human generated data. Specializing in; Security, archiving and compliance. To find out more visit the Mimecast website.