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