masqmail-0.2

view Makefile.am @ 144:89467037cb36

credited Paolo's contributions
author meillo@marmaro.de
date Wed, 07 Jul 2010 23:37:49 +0200
parents 3e7136221104
children e68d8752735a
line source
1 EXTRA_DIST = examples docs man tpl misc
3 SUBDIRS = src man
5 install-data-local: log_dir spool_dir uid_bit conf_dir tpl_dir run_dir doc_dir rmail
7 uninstall-local: rm-rmail rm-doc_dir rm-tpl_dir
10 conf_dir: $(DESTDIR)@with_confdir@
12 $(DESTDIR)@with_confdir@:
13 install -d $(DESTDIR)@with_confdir@
16 tpl_dir: $(DESTDIR)@datadir@/tpl
18 $(DESTDIR)@datadir@/tpl: conf_dir
19 install -d $(DESTDIR)@datadir@/masqmail/tpl
20 cp tpl/* $(DESTDIR)@datadir@/masqmail/tpl
21 chmod 644 $(DESTDIR)@datadir@/masqmail/tpl/*
24 doc_dir:
25 install -d $(DESTDIR)@docdir@
26 cp -r docs $(DESTDIR)@docdir@
27 cp -r examples $(DESTDIR)@docdir@
28 cp ChangeLog NEWS AUTHORS COPYING README TODO $(DESTDIR)@docdir@
31 uid_bit: $(DESTDIR)@prefix@/sbin/masqmail
32 chmod u+s $(DESTDIR)@prefix@/sbin/masqmail
35 run_dir:
36 install -d -o @with_user@ -g @with_group@ $(DESTDIR)/var/run/masqmail
40 log_dir: $(DESTDIR)@with_logdir@
42 $(DESTDIR)@with_logdir@:
43 [ -d `dirname $(DESTDIR)@with_logdir@` ] || \
44 install -d `dirname $(DESTDIR)@with_logdir@`
45 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_logdir@
49 spool_dir: $(DESTDIR)@with_spooldir@
51 $(DESTDIR)@with_spooldir@:
52 [ -d `dirname $(DESTDIR)@with_spooldir@` ] || \
53 install -d `dirname $(DESTDIR)@with_spooldir@`
54 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@
55 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/lock
56 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/input
57 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/popuidl
60 rmail:
61 [ -d "$(DESTDIR)@prefix@/bin" ] || mkdir -p "$(DESTDIR)@prefix@/bin"
62 sed '/^SENDMAIL/s,/usr/sbin/sendmail,$(DESTDIR)@prefix@/sbin/masqmail,'\
63 contrib/rmail >$(DESTDIR)@prefix@/bin/rmail
64 chmod 755 $(DESTDIR)@prefix@/bin/rmail
66 rm-rmail:
67 rm -f $(DESTDIR)@prefix@/bin/rmail
69 rm-doc_dir:
70 cd $(DESTDIR)@docdir@ ;\
71 rm -rf docs examples ;\
72 rm -f ChangeLog NEWS AUTHORS COPYING README TODO
73 rmdir $(DESTDIR)@docdir@
75 rm-tpl_dir:
76 cd $(DESTDIR)@datadir@ ;\
77 rm -rf masqmail