masqmail
diff Makefile.in @ 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/Makefile.in Tue May 29 22:15:55 2012 +0200 1.2 +++ b/Makefile.in Wed May 30 09:38:38 2012 +0200 1.3 @@ -199,6 +199,7 @@ 1.4 top_srcdir = @top_srcdir@ 1.5 with_confdir = @with_confdir@ 1.6 with_group = @with_group@ 1.7 +with_lockdir = @with_lockdir@ 1.8 with_logdir = @with_logdir@ 1.9 with_piddir = @with_piddir@ 1.10 with_spooldir = @with_spooldir@ 1.11 @@ -690,9 +691,9 @@ 1.12 uninstall uninstall-am uninstall-local 1.13 1.14 1.15 -install-data-local: log_dir spool_dir uid_bit conf_dir tpl_dir pid_dir doc_dir rmail 1.16 +install-data-local: log_dir spool_dir uid_bit conf_dir tpl_dir doc_dir rmail 1.17 1.18 -uninstall-local: rm-rmail rm-doc_dir rm-tpl_dir rm-conf_dir rm-pid_dir rm-spool_dir rm-log_dir 1.19 +uninstall-local: rm-rmail rm-doc_dir rm-tpl_dir rm-conf_dir rm-spool_dir rm-log_dir 1.20 1.21 conf_dir: 1.22 install -d $(DESTDIR)@with_confdir@ 1.23 @@ -721,12 +722,6 @@ 1.24 ) 1.25 rmdir $(DESTDIR)@docdir@ 1.26 1.27 -pid_dir: 1.28 - install -d $(DESTDIR)@with_piddir@ 1.29 - 1.30 -rm-pid_dir: 1.31 - rm -rf $(DESTDIR)@with_piddir@ 1.32 - 1.33 log_dir: 1.34 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_logdir@ 1.35 1.36 @@ -735,13 +730,11 @@ 1.37 1.38 spool_dir: 1.39 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@ 1.40 - install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/lock 1.41 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/input 1.42 1.43 rm-spool_dir: 1.44 : # removal fails if the dirs are non-empty 1.45 : # this prevents losing spooled files 1.46 - rmdir $(DESTDIR)@with_spooldir@/lock 1.47 rmdir $(DESTDIR)@with_spooldir@/input 1.48 rmdir $(DESTDIR)@with_spooldir@ 1.49