masqmail
annotate Makefile.am @ 159:27363b36a28c
next version will be 0.3.0
author | meillo@marmaro.de |
---|---|
date | Thu, 08 Jul 2010 11:08:37 +0200 |
parents | cb42157b3520 |
children | 89f951be358f |
rev | line source |
---|---|
meillo@125 | 1 EXTRA_DIST = examples docs man tpl misc |
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 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/popuidl |
meillo@0 | 59 |
meillo@145 | 60 rm-spool_dir: |
meillo@145 | 61 : # removal fails if the dirs are non-empty |
meillo@145 | 62 : # this prevents losing spooled files |
meillo@145 | 63 rmdir $(DESTDIR)@with_spooldir@/lock |
meillo@145 | 64 rmdir $(DESTDIR)@with_spooldir@/input |
meillo@145 | 65 rmdir $(DESTDIR)@with_spooldir@/popuidl |
meillo@145 | 66 rmdir $(DESTDIR)@with_spooldir@ |
meillo@91 | 67 |
meillo@91 | 68 rmail: |
meillo@148 | 69 [ -d "$(DESTDIR)@prefix@/sbin" ] || mkdir -p "$(DESTDIR)@prefix@/sbin" |
meillo@91 | 70 sed '/^SENDMAIL/s,/usr/sbin/sendmail,$(DESTDIR)@prefix@/sbin/masqmail,'\ |
meillo@148 | 71 contrib/rmail >$(DESTDIR)@prefix@/sbin/rmail |
meillo@148 | 72 chmod 755 $(DESTDIR)@prefix@/sbin/rmail |
meillo@91 | 73 |
meillo@91 | 74 rm-rmail: |
meillo@148 | 75 rm -f $(DESTDIR)@prefix@/sbin/rmail |
meillo@91 | 76 |
meillo@91 | 77 |
meillo@147 | 78 uid_bit: $(DESTDIR)@prefix@/sbin/masqmail |
meillo@147 | 79 chmod u+s $(DESTDIR)@prefix@/sbin/masqmail |