Mercurial > masqmail
comparison 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 |
comparison
equal
deleted
inserted
replaced
420:09da6e72cd30 | 421:f37384470855 |
---|---|
604 | 604 |
605 ac_subst_vars='am__EXEEXT_FALSE | 605 ac_subst_vars='am__EXEEXT_FALSE |
606 am__EXEEXT_TRUE | 606 am__EXEEXT_TRUE |
607 LTLIBOBJS | 607 LTLIBOBJS |
608 LIBOBJS | 608 LIBOBJS |
609 with_lockdir | |
609 with_piddir | 610 with_piddir |
610 with_confdir | 611 with_confdir |
611 with_spooldir | 612 with_spooldir |
612 with_logdir | 613 with_logdir |
613 USE_LIBLOCKFILE | 614 USE_LIBLOCKFILE |
715 with_liblockfile | 716 with_liblockfile |
716 with_logdir | 717 with_logdir |
717 with_spooldir | 718 with_spooldir |
718 with_confdir | 719 with_confdir |
719 with_piddir | 720 with_piddir |
721 with_lockdir | |
720 ' | 722 ' |
721 ac_precious_vars='build_alias | 723 ac_precious_vars='build_alias |
722 host_alias | 724 host_alias |
723 target_alias | 725 target_alias |
724 CC | 726 CC |
1362 --with-liblockfile use liblock (for Debian) | 1364 --with-liblockfile use liblock (for Debian) |
1363 --with-logdir=DIR set log directory /var/log/masqmail | 1365 --with-logdir=DIR set log directory /var/log/masqmail |
1364 --with-spooldir=DIR set spool directory /var/spool/masqmail | 1366 --with-spooldir=DIR set spool directory /var/spool/masqmail |
1365 --with-confdir=DIR directory for configuration /etc/masqmail | 1367 --with-confdir=DIR directory for configuration /etc/masqmail |
1366 --with-piddir=DIR directory for pid files /var/run | 1368 --with-piddir=DIR directory for pid files /var/run |
1369 --with-lockdir=DIR directory for lock files /var/lock/masqmail | |
1367 | 1370 |
1368 Some influential environment variables: | 1371 Some influential environment variables: |
1369 CC C compiler command | 1372 CC C compiler command |
1370 CFLAGS C compiler flags | 1373 CFLAGS C compiler flags |
1371 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | 1374 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
5304 fi | 5307 fi |
5305 | 5308 |
5306 | 5309 |
5307 cat >>confdefs.h <<_ACEOF | 5310 cat >>confdefs.h <<_ACEOF |
5308 #define PID_DIR "${with_piddir}" | 5311 #define PID_DIR "${with_piddir}" |
5312 _ACEOF | |
5313 | |
5314 | |
5315 | |
5316 | |
5317 # Check whether --with-lockdir was given. | |
5318 if test "${with_lockdir+set}" = set; then : | |
5319 withval=$with_lockdir; | |
5320 else | |
5321 with_lockdir='/var/lock/masqmail' | |
5322 | |
5323 fi | |
5324 | |
5325 | |
5326 cat >>confdefs.h <<_ACEOF | |
5327 #define LOCK_DIR "${with_lockdir}" | |
5309 _ACEOF | 5328 _ACEOF |
5310 | 5329 |
5311 | 5330 |
5312 | 5331 |
5313 test "x$prefix" = xNONE && prefix="$ac_default_prefix" | 5332 test "x$prefix" = xNONE && prefix="$ac_default_prefix" |