masqmail
annotate 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 |
rev | line source |
---|---|
meillo@226 | 1 EXTRA_DIST = examples docs man tpl devel |
meillo@0 | 2 |
meillo@57 | 3 SUBDIRS = src man |
meillo@0 | 4 |
meillo@421 | 5 install-data-local: log_dir spool_dir uid_bit conf_dir tpl_dir doc_dir rmail |
meillo@86 | 6 |
meillo@421 | 7 uninstall-local: rm-rmail rm-doc_dir rm-tpl_dir rm-conf_dir rm-spool_dir rm-log_dir |
meillo@0 | 8 |
meillo@61 | 9 |
meillo@147 | 10 conf_dir: |
meillo@0 | 11 install -d $(DESTDIR)@with_confdir@ |
meillo@0 | 12 |
meillo@145 | 13 rm-conf_dir: |
meillo@145 | 14 rmdir $(DESTDIR)@with_confdir@ # removes only if empty |
meillo@145 | 15 |
meillo@61 | 16 |
meillo@147 | 17 tpl_dir: |
meillo@0 | 18 install -d $(DESTDIR)@datadir@/masqmail/tpl |
meillo@61 | 19 cp tpl/* $(DESTDIR)@datadir@/masqmail/tpl |
meillo@61 | 20 chmod 644 $(DESTDIR)@datadir@/masqmail/tpl/* |
meillo@0 | 21 |
meillo@147 | 22 rm-tpl_dir: |
meillo@147 | 23 rm -rf $(DESTDIR)@datadir@/masqmail/ |
meillo@147 | 24 |
meillo@61 | 25 |
meillo@61 | 26 doc_dir: |
meillo@58 | 27 install -d $(DESTDIR)@docdir@ |
meillo@58 | 28 cp -r docs $(DESTDIR)@docdir@ |
meillo@58 | 29 cp -r examples $(DESTDIR)@docdir@ |
meillo@229 | 30 cp ChangeLog NEWS AUTHORS COPYING README TODO INSTALL THANKS $(DESTDIR)@docdir@ |
meillo@58 | 31 |
meillo@147 | 32 rm-doc_dir: |
meillo@147 | 33 cd $(DESTDIR)@docdir@ && ( \ |
meillo@147 | 34 rm -rf docs examples ; \ |
meillo@229 | 35 rm -f ChangeLog NEWS AUTHORS COPYING README TODO INSTALL THANKS ; \ |
meillo@147 | 36 ) |
meillo@147 | 37 rmdir $(DESTDIR)@docdir@ |
meillo@0 | 38 |
meillo@61 | 39 |
meillo@147 | 40 log_dir: |
meillo@0 | 41 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_logdir@ |
meillo@0 | 42 |
meillo@145 | 43 rm-log_dir: |
meillo@145 | 44 rmdir $(DESTDIR)@with_logdir@ # removes only if empty |
meillo@61 | 45 |
meillo@61 | 46 |
meillo@147 | 47 spool_dir: |
meillo@0 | 48 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@ |
meillo@0 | 49 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/input |
meillo@0 | 50 |
meillo@145 | 51 rm-spool_dir: |
meillo@145 | 52 : # removal fails if the dirs are non-empty |
meillo@145 | 53 : # this prevents losing spooled files |
meillo@145 | 54 rmdir $(DESTDIR)@with_spooldir@/input |
meillo@145 | 55 rmdir $(DESTDIR)@with_spooldir@ |
meillo@91 | 56 |
meillo@91 | 57 rmail: |
meillo@148 | 58 [ -d "$(DESTDIR)@prefix@/sbin" ] || mkdir -p "$(DESTDIR)@prefix@/sbin" |
meillo@91 | 59 sed '/^SENDMAIL/s,/usr/sbin/sendmail,$(DESTDIR)@prefix@/sbin/masqmail,'\ |
meillo@227 | 60 admin/rmail >$(DESTDIR)@prefix@/sbin/rmail |
meillo@148 | 61 chmod 755 $(DESTDIR)@prefix@/sbin/rmail |
meillo@91 | 62 |
meillo@91 | 63 rm-rmail: |
meillo@148 | 64 rm -f $(DESTDIR)@prefix@/sbin/rmail |
meillo@91 | 65 |
meillo@91 | 66 |
meillo@419 | 67 uid_bit: |
meillo@147 | 68 chmod u+s $(DESTDIR)@prefix@/sbin/masqmail |