comparison Makefile.in @ 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
comparison
equal deleted inserted replaced
424:19be3b27df6f 425:a19e47ebbb33
689 maintainer-clean maintainer-clean-generic mostlyclean \ 689 maintainer-clean maintainer-clean-generic mostlyclean \
690 mostlyclean-generic pdf pdf-am ps ps-am tags tags-recursive \ 690 mostlyclean-generic pdf pdf-am ps ps-am tags tags-recursive \
691 uninstall uninstall-am uninstall-local 691 uninstall uninstall-am uninstall-local
692 692
693 693
694 install-data-local: log_dir spool_dir uid_bit conf_dir tpl_dir doc_dir rmail 694 install-data-local: uid_bit tpl_dir doc_dir rmail conf_dir
695 695
696 uninstall-local: rm-rmail rm-doc_dir rm-tpl_dir rm-conf_dir rm-spool_dir rm-log_dir 696 uninstall-local: rm-rmail rm-doc_dir rm-tpl_dir rm-dirs
697 697
698 conf_dir: 698 conf_dir:
699 install -d $(DESTDIR)@with_confdir@ 699 install -d $(DESTDIR)@with_confdir@
700
701 rm-conf_dir:
702 rmdir $(DESTDIR)@with_confdir@ # removes only if empty
703 700
704 tpl_dir: 701 tpl_dir:
705 install -d $(DESTDIR)@datadir@/masqmail/tpl 702 install -d $(DESTDIR)@datadir@/masqmail/tpl
706 cp tpl/* $(DESTDIR)@datadir@/masqmail/tpl 703 cp tpl/* $(DESTDIR)@datadir@/masqmail/tpl
707 chmod 644 $(DESTDIR)@datadir@/masqmail/tpl/* 704 chmod 644 $(DESTDIR)@datadir@/masqmail/tpl/*
720 rm -rf docs examples ; \ 717 rm -rf docs examples ; \
721 rm -f ChangeLog NEWS AUTHORS COPYING README TODO INSTALL THANKS ; \ 718 rm -f ChangeLog NEWS AUTHORS COPYING README TODO INSTALL THANKS ; \
722 ) 719 )
723 rmdir $(DESTDIR)@docdir@ 720 rmdir $(DESTDIR)@docdir@
724 721
725 log_dir: 722 rm-dirs:
726 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_logdir@ 723 : # removes only if empty
727 724 rmdir $(DESTDIR)@with_confdir@
728 rm-log_dir: 725 rmdir $(DESTDIR)@with_logdir@
729 rmdir $(DESTDIR)@with_logdir@ # removes only if empty
730
731 spool_dir:
732 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@
733
734 rm-spool_dir:
735 : # removal fails if the dirs are non-empty
736 : # this prevents losing spooled files
737 rmdir $(DESTDIR)@with_spooldir@ 726 rmdir $(DESTDIR)@with_spooldir@
738 727
739 rmail: 728 rmail:
740 [ -d "$(DESTDIR)@prefix@/sbin" ] || mkdir -p "$(DESTDIR)@prefix@/sbin" 729 [ -d "$(DESTDIR)@prefix@/sbin" ] || mkdir -p "$(DESTDIR)@prefix@/sbin"
741 sed '/^SENDMAIL/s,/usr/sbin/sendmail,$(DESTDIR)@prefix@/sbin/masqmail,'\ 730 sed '/^SENDMAIL/s,/usr/sbin/sendmail,$(DESTDIR)@prefix@/sbin/masqmail,'\