masqmail

diff configure @ 421:f37384470855

Changed lockdir to /var/lock/masqmail; Create lockdir and piddir on startup. Moved the lockdir out of the spool dir. (When /var/lock is a ramdisk we do well to have the lock files there.) Added the new configure option --with-lockdir to change that location. Nontheless, if we run_as_user, then lock files are always stored in the spool dir directly. Instead of installing the lockdir and piddir at installation time, we create them on startup time now if they are missing. This is necessary if lockdir or piddir are a tmpfs.
author markus schnalke <meillo@marmaro.de>
date Wed, 30 May 2012 09:38:38 +0200
parents d209b4846f2b
children bdbedce60247
line diff
     1.1 --- a/configure	Tue May 29 22:15:55 2012 +0200
     1.2 +++ b/configure	Wed May 30 09:38:38 2012 +0200
     1.3 @@ -606,6 +606,7 @@
     1.4  am__EXEEXT_TRUE
     1.5  LTLIBOBJS
     1.6  LIBOBJS
     1.7 +with_lockdir
     1.8  with_piddir
     1.9  with_confdir
    1.10  with_spooldir
    1.11 @@ -717,6 +718,7 @@
    1.12  with_spooldir
    1.13  with_confdir
    1.14  with_piddir
    1.15 +with_lockdir
    1.16  '
    1.17        ac_precious_vars='build_alias
    1.18  host_alias
    1.19 @@ -1364,6 +1366,7 @@
    1.20    --with-spooldir=DIR     set spool directory /var/spool/masqmail
    1.21    --with-confdir=DIR      directory for configuration /etc/masqmail
    1.22    --with-piddir=DIR       directory for pid files /var/run
    1.23 +  --with-lockdir=DIR      directory for lock files /var/lock/masqmail
    1.24  
    1.25  Some influential environment variables:
    1.26    CC          C compiler command
    1.27 @@ -5310,6 +5313,22 @@
    1.28  
    1.29  
    1.30  
    1.31 +
    1.32 +# Check whether --with-lockdir was given.
    1.33 +if test "${with_lockdir+set}" = set; then :
    1.34 +  withval=$with_lockdir;
    1.35 +else
    1.36 +  with_lockdir='/var/lock/masqmail'
    1.37 +
    1.38 +fi
    1.39 +
    1.40 +
    1.41 +cat >>confdefs.h <<_ACEOF
    1.42 +#define LOCK_DIR "${with_lockdir}"
    1.43 +_ACEOF
    1.44 +
    1.45 +
    1.46 +
    1.47  test "x$prefix" = xNONE && prefix="$ac_default_prefix"
    1.48  
    1.49