masqmail

annotate Makefile.am @ 425:a19e47ebbb33

Create the spool and log dirs on program startup if missing. They are not anymore created during installation.
author markus schnalke <meillo@marmaro.de>
date Wed, 30 May 2012 11:38:03 +0200
parents bdbedce60247
children
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@425 5 install-data-local: uid_bit tpl_dir doc_dir rmail conf_dir
meillo@86 6
meillo@425 7 uninstall-local: rm-rmail rm-doc_dir rm-tpl_dir rm-dirs
meillo@61 8
meillo@147 9 conf_dir:
meillo@0 10 install -d $(DESTDIR)@with_confdir@
meillo@0 11
meillo@147 12 tpl_dir:
meillo@0 13 install -d $(DESTDIR)@datadir@/masqmail/tpl
meillo@61 14 cp tpl/* $(DESTDIR)@datadir@/masqmail/tpl
meillo@61 15 chmod 644 $(DESTDIR)@datadir@/masqmail/tpl/*
meillo@0 16
meillo@147 17 rm-tpl_dir:
meillo@147 18 rm -rf $(DESTDIR)@datadir@/masqmail/
meillo@147 19
meillo@61 20 doc_dir:
meillo@58 21 install -d $(DESTDIR)@docdir@
meillo@58 22 cp -r docs $(DESTDIR)@docdir@
meillo@58 23 cp -r examples $(DESTDIR)@docdir@
meillo@229 24 cp ChangeLog NEWS AUTHORS COPYING README TODO INSTALL THANKS $(DESTDIR)@docdir@
meillo@58 25
meillo@147 26 rm-doc_dir:
meillo@147 27 cd $(DESTDIR)@docdir@ && ( \
meillo@147 28 rm -rf docs examples ; \
meillo@229 29 rm -f ChangeLog NEWS AUTHORS COPYING README TODO INSTALL THANKS ; \
meillo@147 30 )
meillo@147 31 rmdir $(DESTDIR)@docdir@
meillo@0 32
meillo@425 33 rm-dirs:
meillo@425 34 : # removes only if empty
meillo@425 35 rmdir $(DESTDIR)@with_confdir@
meillo@425 36 rmdir $(DESTDIR)@with_logdir@
meillo@145 37 rmdir $(DESTDIR)@with_spooldir@
meillo@91 38
meillo@91 39 rmail:
meillo@148 40 [ -d "$(DESTDIR)@prefix@/sbin" ] || mkdir -p "$(DESTDIR)@prefix@/sbin"
meillo@91 41 sed '/^SENDMAIL/s,/usr/sbin/sendmail,$(DESTDIR)@prefix@/sbin/masqmail,'\
meillo@227 42 admin/rmail >$(DESTDIR)@prefix@/sbin/rmail
meillo@148 43 chmod 755 $(DESTDIR)@prefix@/sbin/rmail
meillo@91 44
meillo@91 45 rm-rmail:
meillo@148 46 rm -f $(DESTDIR)@prefix@/sbin/rmail
meillo@91 47
meillo@91 48
meillo@419 49 uid_bit:
meillo@147 50 chmod u+s $(DESTDIR)@prefix@/sbin/masqmail