meillo@125: EXTRA_DIST = examples docs man tpl misc meillo@0: meillo@57: SUBDIRS = src man meillo@0: meillo@91: install-data-local: log_dir spool_dir uid_bit conf_dir tpl_dir run_dir doc_dir rmail meillo@86: meillo@145: uninstall-local: rm-rmail rm-doc_dir rm-tpl_dir rm-conf_dir rm-run_dir rm-spool_dir rm-log_dir meillo@0: meillo@61: meillo@147: conf_dir: meillo@0: install -d $(DESTDIR)@with_confdir@ meillo@0: meillo@145: rm-conf_dir: meillo@145: rmdir $(DESTDIR)@with_confdir@ # removes only if empty meillo@145: meillo@61: meillo@147: tpl_dir: meillo@0: install -d $(DESTDIR)@datadir@/masqmail/tpl meillo@61: cp tpl/* $(DESTDIR)@datadir@/masqmail/tpl meillo@61: chmod 644 $(DESTDIR)@datadir@/masqmail/tpl/* meillo@0: meillo@147: rm-tpl_dir: meillo@147: rm -rf $(DESTDIR)@datadir@/masqmail/ meillo@147: meillo@61: meillo@61: doc_dir: meillo@58: install -d $(DESTDIR)@docdir@ meillo@58: cp -r docs $(DESTDIR)@docdir@ meillo@58: cp -r examples $(DESTDIR)@docdir@ meillo@58: cp ChangeLog NEWS AUTHORS COPYING README TODO $(DESTDIR)@docdir@ meillo@58: meillo@147: rm-doc_dir: meillo@147: cd $(DESTDIR)@docdir@ && ( \ meillo@147: rm -rf docs examples ; \ meillo@147: rm -f ChangeLog NEWS AUTHORS COPYING README TODO ; \ meillo@147: ) meillo@147: rmdir $(DESTDIR)@docdir@ meillo@0: meillo@61: meillo@0: run_dir: meillo@0: install -d -o @with_user@ -g @with_group@ $(DESTDIR)/var/run/masqmail meillo@0: meillo@145: rm-run_dir: meillo@145: rm -rf $(DESTDIR)/var/run/masqmail meillo@61: meillo@61: meillo@147: log_dir: meillo@0: install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_logdir@ meillo@0: meillo@145: rm-log_dir: meillo@145: rmdir $(DESTDIR)@with_logdir@ # removes only if empty meillo@61: meillo@61: meillo@147: spool_dir: meillo@0: install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@ meillo@0: install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/lock meillo@0: install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/input meillo@0: install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/popuidl meillo@0: meillo@145: rm-spool_dir: meillo@145: : # removal fails if the dirs are non-empty meillo@145: : # this prevents losing spooled files meillo@145: rmdir $(DESTDIR)@with_spooldir@/lock meillo@145: rmdir $(DESTDIR)@with_spooldir@/input meillo@145: rmdir $(DESTDIR)@with_spooldir@/popuidl meillo@145: rmdir $(DESTDIR)@with_spooldir@ meillo@91: meillo@91: rmail: meillo@91: [ -d "$(DESTDIR)@prefix@/bin" ] || mkdir -p "$(DESTDIR)@prefix@/bin" meillo@91: sed '/^SENDMAIL/s,/usr/sbin/sendmail,$(DESTDIR)@prefix@/sbin/masqmail,'\ meillo@91: contrib/rmail >$(DESTDIR)@prefix@/bin/rmail meillo@91: chmod 755 $(DESTDIR)@prefix@/bin/rmail meillo@91: meillo@91: rm-rmail: meillo@91: rm -f $(DESTDIR)@prefix@/bin/rmail meillo@91: meillo@91: meillo@147: uid_bit: $(DESTDIR)@prefix@/sbin/masqmail meillo@147: chmod u+s $(DESTDIR)@prefix@/sbin/masqmail