masqmail
annotate Makefile.am @ 228:9397d10fd771
updated date and version of man pages
author | meillo@marmaro.de |
---|---|
date | Fri, 23 Jul 2010 12:08:41 +0200 |
parents | 7b70bf4f1f42 |
children | d364fea755b4 |
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@91 | 5 install-data-local: log_dir spool_dir uid_bit conf_dir tpl_dir run_dir doc_dir rmail |
meillo@86 | 6 |
meillo@145 | 7 uninstall-local: rm-rmail rm-doc_dir rm-tpl_dir rm-conf_dir rm-run_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@58 | 30 cp ChangeLog NEWS AUTHORS COPYING README TODO $(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@147 | 35 rm -f ChangeLog NEWS AUTHORS COPYING README TODO ; \ |
meillo@147 | 36 ) |
meillo@147 | 37 rmdir $(DESTDIR)@docdir@ |
meillo@0 | 38 |
meillo@61 | 39 |
meillo@0 | 40 run_dir: |
meillo@0 | 41 install -d -o @with_user@ -g @with_group@ $(DESTDIR)/var/run/masqmail |
meillo@0 | 42 |
meillo@145 | 43 rm-run_dir: |
meillo@145 | 44 rm -rf $(DESTDIR)/var/run/masqmail |
meillo@61 | 45 |
meillo@61 | 46 |
meillo@147 | 47 log_dir: |
meillo@0 | 48 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_logdir@ |
meillo@0 | 49 |
meillo@145 | 50 rm-log_dir: |
meillo@145 | 51 rmdir $(DESTDIR)@with_logdir@ # removes only if empty |
meillo@61 | 52 |
meillo@61 | 53 |
meillo@147 | 54 spool_dir: |
meillo@0 | 55 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@ |
meillo@0 | 56 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/lock |
meillo@0 | 57 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/input |
meillo@0 | 58 |
meillo@145 | 59 rm-spool_dir: |
meillo@145 | 60 : # removal fails if the dirs are non-empty |
meillo@145 | 61 : # this prevents losing spooled files |
meillo@145 | 62 rmdir $(DESTDIR)@with_spooldir@/lock |
meillo@145 | 63 rmdir $(DESTDIR)@with_spooldir@/input |
meillo@145 | 64 rmdir $(DESTDIR)@with_spooldir@ |
meillo@91 | 65 |
meillo@91 | 66 rmail: |
meillo@148 | 67 [ -d "$(DESTDIR)@prefix@/sbin" ] || mkdir -p "$(DESTDIR)@prefix@/sbin" |
meillo@91 | 68 sed '/^SENDMAIL/s,/usr/sbin/sendmail,$(DESTDIR)@prefix@/sbin/masqmail,'\ |
meillo@227 | 69 admin/rmail >$(DESTDIR)@prefix@/sbin/rmail |
meillo@148 | 70 chmod 755 $(DESTDIR)@prefix@/sbin/rmail |
meillo@91 | 71 |
meillo@91 | 72 rm-rmail: |
meillo@148 | 73 rm -f $(DESTDIR)@prefix@/sbin/rmail |
meillo@91 | 74 |
meillo@91 | 75 |
meillo@147 | 76 uid_bit: $(DESTDIR)@prefix@/sbin/masqmail |
meillo@147 | 77 chmod u+s $(DESTDIR)@prefix@/sbin/masqmail |