masqmail
view 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 source
1 EXTRA_DIST = examples docs man tpl devel
3 SUBDIRS = src man
5 install-data-local: log_dir spool_dir uid_bit conf_dir tpl_dir doc_dir rmail
7 uninstall-local: rm-rmail rm-doc_dir rm-tpl_dir rm-conf_dir rm-spool_dir rm-log_dir
10 conf_dir:
11 install -d $(DESTDIR)@with_confdir@
13 rm-conf_dir:
14 rmdir $(DESTDIR)@with_confdir@ # removes only if empty
17 tpl_dir:
18 install -d $(DESTDIR)@datadir@/masqmail/tpl
19 cp tpl/* $(DESTDIR)@datadir@/masqmail/tpl
20 chmod 644 $(DESTDIR)@datadir@/masqmail/tpl/*
22 rm-tpl_dir:
23 rm -rf $(DESTDIR)@datadir@/masqmail/
26 doc_dir:
27 install -d $(DESTDIR)@docdir@
28 cp -r docs $(DESTDIR)@docdir@
29 cp -r examples $(DESTDIR)@docdir@
30 cp ChangeLog NEWS AUTHORS COPYING README TODO INSTALL THANKS $(DESTDIR)@docdir@
32 rm-doc_dir:
33 cd $(DESTDIR)@docdir@ && ( \
34 rm -rf docs examples ; \
35 rm -f ChangeLog NEWS AUTHORS COPYING README TODO INSTALL THANKS ; \
36 )
37 rmdir $(DESTDIR)@docdir@
40 log_dir:
41 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_logdir@
43 rm-log_dir:
44 rmdir $(DESTDIR)@with_logdir@ # removes only if empty
47 spool_dir:
48 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@
49 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/input
51 rm-spool_dir:
52 : # removal fails if the dirs are non-empty
53 : # this prevents losing spooled files
54 rmdir $(DESTDIR)@with_spooldir@/input
55 rmdir $(DESTDIR)@with_spooldir@
57 rmail:
58 [ -d "$(DESTDIR)@prefix@/sbin" ] || mkdir -p "$(DESTDIR)@prefix@/sbin"
59 sed '/^SENDMAIL/s,/usr/sbin/sendmail,$(DESTDIR)@prefix@/sbin/masqmail,'\
60 admin/rmail >$(DESTDIR)@prefix@/sbin/rmail
61 chmod 755 $(DESTDIR)@prefix@/sbin/rmail
63 rm-rmail:
64 rm -f $(DESTDIR)@prefix@/sbin/rmail
67 uid_bit:
68 chmod u+s $(DESTDIR)@prefix@/sbin/masqmail