annotate Makefile.test @ 42:afcf403709ef

updates for 3.2, try to drop root privileges
author carl
date Mon, 05 Jul 2004 13:09:44 -0700
parents 96a9758165cd
children 1142e46be550
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
96a9758165cd Initial revision
carl
parents:
diff changeset
1 # These could be used by sendmail, but are not part of the default install.
96a9758165cd Initial revision
carl
parents:
diff changeset
2 # To use them you will have to generate your own sendmail.cf with
96a9758165cd Initial revision
carl
parents:
diff changeset
3 # FEATURE('whatever')
96a9758165cd Initial revision
carl
parents:
diff changeset
4 #
96a9758165cd Initial revision
carl
parents:
diff changeset
5 POSSIBLE += $(shell test -f bitdomain && echo bitdomain.db)
96a9758165cd Initial revision
carl
parents:
diff changeset
6 POSSIBLE += $(shell test -f uudomain && echo uudomain.db)
96a9758165cd Initial revision
carl
parents:
diff changeset
7 POSSIBLE += $(shell test -f genericstable && echo genericstable.db)
96a9758165cd Initial revision
carl
parents:
diff changeset
8 POSSIBLE += $(shell test -f userdb && echo userdb.db)
96a9758165cd Initial revision
carl
parents:
diff changeset
9 CFFILES = sendmail.cf submit.cf
96a9758165cd Initial revision
carl
parents:
diff changeset
10
96a9758165cd Initial revision
carl
parents:
diff changeset
11
96a9758165cd Initial revision
carl
parents:
diff changeset
12 all: ${CFFILES} ${POSSIBLE} virtusertable.db access.db domaintable.db mailertable.db
96a9758165cd Initial revision
carl
parents:
diff changeset
13 @chown root:smmsp *.db
96a9758165cd Initial revision
carl
parents:
diff changeset
14
96a9758165cd Initial revision
carl
parents:
diff changeset
15 userdb.db : userdb
96a9758165cd Initial revision
carl
parents:
diff changeset
16 @makemap btree $@ < $<
96a9758165cd Initial revision
carl
parents:
diff changeset
17
96a9758165cd Initial revision
carl
parents:
diff changeset
18 access : access.header access.common access.510sg access.davd
96a9758165cd Initial revision
carl
parents:
diff changeset
19 cat access.header access.510sg access.common >access
96a9758165cd Initial revision
carl
parents:
diff changeset
20 cat access.header access.davd access.common | ssh mail3.davdgrp.com 'cat >/etc/mail/access'
96a9758165cd Initial revision
carl
parents:
diff changeset
21 ssh mail3.davdgrp.com '(cd /usr/src; sh makesendmailtable.bat)'
96a9758165cd Initial revision
carl
parents:
diff changeset
22 rm -f /home/httpd/html/510sg/bogus.list
96a9758165cd Initial revision
carl
parents:
diff changeset
23 cp access /home/httpd/html/510sg/bogus.list
96a9758165cd Initial revision
carl
parents:
diff changeset
24 scp access ns1:/home/httpd/html/510sg/bogus.list
96a9758165cd Initial revision
carl
parents:
diff changeset
25
96a9758165cd Initial revision
carl
parents:
diff changeset
26 %.db : %
96a9758165cd Initial revision
carl
parents:
diff changeset
27 @makemap hash $@ < $<
96a9758165cd Initial revision
carl
parents:
diff changeset
28
96a9758165cd Initial revision
carl
parents:
diff changeset
29 %.cf : %.mc
96a9758165cd Initial revision
carl
parents:
diff changeset
30 @if test -f /usr/share/sendmail-cf/m4/cf.m4; then \
96a9758165cd Initial revision
carl
parents:
diff changeset
31 mv -f $@ $@.bak; \
96a9758165cd Initial revision
carl
parents:
diff changeset
32 m4 $< > $@; \
96a9758165cd Initial revision
carl
parents:
diff changeset
33 fi;
96a9758165cd Initial revision
carl
parents:
diff changeset
34
96a9758165cd Initial revision
carl
parents:
diff changeset
35 clean:
96a9758165cd Initial revision
carl
parents:
diff changeset
36 rm -f *.db *~
96a9758165cd Initial revision
carl
parents:
diff changeset
37