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@91: uninstall-local: rm-rmail rm-doc_dir rm-tpl_dir meillo@0: meillo@61: meillo@0: conf_dir: $(DESTDIR)@with_confdir@ meillo@0: meillo@0: $(DESTDIR)@with_confdir@: meillo@0: install -d $(DESTDIR)@with_confdir@ meillo@0: meillo@61: meillo@0: tpl_dir: $(DESTDIR)@datadir@/tpl meillo@0: meillo@0: $(DESTDIR)@datadir@/tpl: conf_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@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@0: meillo@0: uid_bit: $(DESTDIR)@prefix@/sbin/masqmail meillo@0: chmod u+s $(DESTDIR)@prefix@/sbin/masqmail 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@61: meillo@61: meillo@61: log_dir: $(DESTDIR)@with_logdir@ meillo@61: meillo@0: $(DESTDIR)@with_logdir@: meillo@0: [ -d `dirname $(DESTDIR)@with_logdir@` ] || \ meillo@0: install -d `dirname $(DESTDIR)@with_logdir@` meillo@0: install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_logdir@ meillo@0: meillo@61: meillo@61: meillo@61: spool_dir: $(DESTDIR)@with_spooldir@ meillo@61: meillo@0: $(DESTDIR)@with_spooldir@: meillo@0: [ -d `dirname $(DESTDIR)@with_spooldir@` ] || \ meillo@0: install -d `dirname $(DESTDIR)@with_spooldir@` 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@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: rm-doc_dir: meillo@91: cd $(DESTDIR)@docdir@ ;\ meillo@91: rm -rf docs examples ;\ meillo@91: rm -f ChangeLog NEWS AUTHORS COPYING README TODO meillo@91: rmdir $(DESTDIR)@docdir@ meillo@91: meillo@91: rm-tpl_dir: meillo@91: cd $(DESTDIR)@datadir@ ;\ meillo@91: rm -rf masqmail