3 # For now, just hard-coded rules for daemons, commands, config files.
5 DAEMONS
= man8
/bounce
.8 man8
/defer
.8 man8
/cleanup
.8 man8
/error
.8 man8
/local
.8 \
6 man8
/lmtp
.8 man8
/master
.8 man8
/pickup
.8 man8
/pipe
.8 man8
/qmgr
.8 \
7 man8
/showq
.8 man8
/smtp
.8 man8
/smtpd
.8 man8
/trivial-rewrite
.8 \
8 man8
/oqmgr
.8 man8
/spawn
.8 man8
/flush
.8 man8
/virtual
.8 man8
/qmqpd
.8 \
9 man8
/verify
.8 man8
/trace
.8 man8
/proxymap
.8 man8
/anvil
.8 \
10 man8
/scache
.8 man8
/discard
.8 man8
/tlsmgr
.8
11 COMMANDS
= man1
/postalias
.1 man1
/postcat
.1 man1
/postconf
.1 man1
/postfix
.1 \
12 man1
/postkick
.1 man1
/postlock
.1 man1
/postlog
.1 man1
/postdrop
.1 \
13 man1
/postmap
.1 man1
/postmulti
.1 man1
/postqueue
.1 man1
/postsuper
.1 \
14 man1
/sendmail
.1 man1
/mailq
.1 man1
/newaliases
.1
15 CONFIG
= man5
/access
.5 man5
/aliases
.5 man5
/canonical
.5 man5
/relocated
.5 \
16 man5
/transport
.5 man5
/virtual
.5 man5
/pcre_table
.5 man5
/regexp_table
.5 \
17 man5
/cidr_table
.5 man5
/tcp_table
.5 man5
/header_checks
.5 \
18 man5
/body_checks
.5 man5
/ldap_table
.5 man5
/mysql_table
.5 \
19 man5
/pgsql_table
.5 man5
/master
.5 man5
/nisplus_table
.5 \
20 man5
/generic
.5 man5
/bounce
.5 man5
/postfix-wrapper
.5
21 TOOLS
= man1
/smtp-sink
.1 man1
/smtp-source
.1 man1
/qmqp-sink
.1 \
22 man1
/qmqp-source
.1 man1
/qshape
.1
24 update
: $(DAEMONS
) $(COMMANDS
) $(CONFIG
) $(TOOLS
)
32 rm -f
$(DAEMONS
) $(COMMANDS
) $(CONFIG
)
34 man8
/bounce
.8: ..
/src
/bounce
/bounce.c
35 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
36 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
37 ..
/mantools
/srctoman
$?
>$@
40 echo .so man8
/bounce
.8 >$@
42 man8
/cleanup
.8: ..
/src
/cleanup
/cleanup.c
43 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
44 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
45 ..
/mantools
/srctoman
$?
>$@
47 man8
/anvil
.8: ..
/src
/anvil
/anvil.c
48 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
49 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
50 ..
/mantools
/srctoman
$?
>$@
52 man8
/scache
.8: ..
/src
/scache
/scache.c
53 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
54 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
55 ..
/mantools
/srctoman
$?
>$@
57 man8
/discard
.8: ..
/src
/discard
/discard.c
58 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
59 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
60 ..
/mantools
/srctoman
$?
>$@
62 man8
/error
.8: ..
/src
/error
/error.c
63 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
64 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
65 ..
/mantools
/srctoman
$?
>$@
67 man8
/flush
.8: ..
/src
/flush
/flush.c
68 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
69 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
70 ..
/mantools
/srctoman
$?
>$@
72 man8
/local
.8: ..
/src
/local
/local.c
73 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
74 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
75 ..
/mantools
/srctoman
$?
>$@
78 echo .so man8
/smtp
.8 >$@
80 man8
/master
.8: ..
/src
/master
/master.c
81 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
82 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
83 ..
/mantools
/srctoman
$?
>$@
85 man8
/oqmgr
.8: ..
/src
/oqmgr
/qmgr.c
86 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
87 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
88 ..
/mantools
/srctoman
$? | \
89 sed
-e
's/qmgr[^_]/o&/' \
91 -e
's/QMGR[^_]/O&/' >$@
93 man8
/pickup
.8: ..
/src
/pickup
/pickup.c
94 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
95 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
96 ..
/mantools
/srctoman
$?
>$@
98 man8
/pipe
.8: ..
/src
/pipe
/pipe.c
99 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
100 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
101 ..
/mantools
/srctoman
$?
>$@
103 man8
/proxymap
.8: ..
/src
/proxymap
/proxymap.c
104 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
105 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
106 ..
/mantools
/srctoman
$?
>$@
108 man8
/qmgr
.8: ..
/src
/qmgr
/qmgr.c
109 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
110 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
111 ..
/mantools
/srctoman
$?
>$@
113 man8
/qmqpd
.8: ..
/src
/qmqpd
/qmqpd.c
114 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
115 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
116 ..
/mantools
/srctoman
$?
>$@
118 man8
/showq
.8: ..
/src
/showq
/showq.c
119 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
120 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
121 ..
/mantools
/srctoman
$?
>$@
123 man8
/spawn
.8: ..
/src
/spawn
/spawn.c
124 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
125 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
126 ..
/mantools
/srctoman
$?
>$@
128 man8
/smtp
.8: ..
/src
/smtp
/smtp.c
129 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
130 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
131 ..
/mantools
/srctoman
$?
>$@
133 man8
/smtpd
.8: ..
/src
/smtpd
/smtpd.c
134 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
135 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
136 ..
/mantools
/srctoman
$?
>$@
138 man8
/virtual
.8: ..
/src
/virtual
/virtual.c
139 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
140 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
141 ..
/mantools
/srctoman
$?
>$@
143 man8
/verify
.8: ..
/src
/verify
/verify.c
144 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
145 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
146 ..
/mantools
/srctoman
$?
>$@
149 echo .so man8
/bounce
.8 >$@
151 man8
/tlsmgr
.8: ..
/src
/tlsmgr
/tlsmgr.c
152 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
153 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
154 ..
/mantools
/srctoman
$?
>$@
156 man8
/trivial-rewrite
.8: ..
/src
/trivial-rewrite
/trivial-rewrite.c
157 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
158 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
159 ..
/mantools
/srctoman
$?
>$@
161 man1
/postalias
.1: ..
/src
/postalias
/postalias.c
162 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
163 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
164 ..
/mantools
/srctoman
$?
>$@
166 man1
/postcat
.1: ..
/src
/postcat
/postcat.c
167 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
168 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
169 ..
/mantools
/srctoman
$?
>$@
171 man1
/postconf
.1: ..
/src
/postconf
/postconf.c
172 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
173 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
174 ..
/mantools
/srctoman
$?
>$@
176 man1
/postdrop
.1: ..
/src
/postdrop
/postdrop.c
177 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
178 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
179 ..
/mantools
/srctoman
$?
>$@
181 man1
/postfix
.1: ..
/src
/postfix
/postfix.c
182 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
183 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
184 ..
/mantools
/srctoman
$?
>$@
186 man1
/postkick
.1: ..
/src
/postkick
/postkick.c
187 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
188 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
189 ..
/mantools
/srctoman
$?
>$@
191 man1
/postlock
.1: ..
/src
/postlock
/postlock.c
192 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
193 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
194 ..
/mantools
/srctoman
$?
>$@
196 man1
/postlog
.1: ..
/src
/postlog
/postlog.c
197 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
198 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
199 ..
/mantools
/srctoman
$?
>$@
201 man1
/postmap
.1: ..
/src
/postmap
/postmap.c
202 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
203 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
204 ..
/mantools
/srctoman
$?
>$@
206 man1
/postmulti
.1: ..
/src
/postmulti
/postmulti.c
207 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
208 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
209 ..
/mantools
/srctoman
$?
>$@
211 man1
/postqueue
.1: ..
/src
/postqueue
/postqueue.c
212 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
213 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
214 ..
/mantools
/srctoman
$?
>$@
216 man1
/postsuper
.1: ..
/src
/postsuper
/postsuper.c
217 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
218 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
219 ..
/mantools
/srctoman
$?
>$@
221 man1
/sendmail
.1: ..
/src
/sendmail
/sendmail.c
222 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
223 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
224 ..
/mantools
/srctoman
$?
>$@
227 echo .so man1
/sendmail
.1 >$@
230 echo .so man1
/sendmail
.1 >$@
232 man5
/access
.5: ..
/proto
/access
233 ..
/mantools
/srctoman
- $?
>$@
235 man5
/aliases
.5: ..
/proto
/aliases
236 ..
/mantools
/srctoman
- $?
>$@
238 man5
/bounce
.5: ..
/proto
/bounce
239 ..
/mantools
/srctoman
- $?
>$@
241 man5
/canonical
.5: ..
/proto
/canonical
242 ..
/mantools
/srctoman
- $?
>$@
244 man5
/cidr_table
.5: ..
/proto
/cidr_table
245 ..
/mantools
/srctoman
- $?
>$@
247 man5
/generic
.5: ..
/proto
/generic
248 ..
/mantools
/srctoman
- $?
>$@
250 man5
/header_checks
.5: ..
/proto
/header_checks
251 ..
/mantools
/srctoman
- $?
>$@
253 man5
/body_checks
.5: ..
/proto
/header_checks
254 echo .so man5
/header_checks
.5 >$@
256 man5
/ldap_table
.5: ..
/proto
/ldap_table
257 ..
/mantools
/srctoman
- $?
>$@
259 man5
/master
.5: ..
/proto
/master
260 ..
/mantools
/srctoman
- $?
>$@
262 man5
/mysql_table
.5: ..
/proto
/mysql_table
263 ..
/mantools
/srctoman
- $?
>$@
265 man5
/nisplus_table
.5: ..
/proto
/nisplus_table
266 ..
/mantools
/srctoman
- $?
>$@
268 man5
/pcre_table
.5: ..
/proto
/pcre_table
269 ..
/mantools
/srctoman
- $?
>$@
271 man5
/pgsql_table
.5: ..
/proto
/pgsql_table
272 ..
/mantools
/srctoman
- $?
>$@
274 man5
/regexp_table
.5: ..
/proto
/regexp_table
275 ..
/mantools
/srctoman
- $?
>$@
277 man5
/relocated
.5: ..
/proto
/relocated
278 ..
/mantools
/srctoman
- $?
>$@
280 man5
/transport
.5: ..
/proto
/transport
281 ..
/mantools
/srctoman
- $?
>$@
283 man5
/virtual
.5: ..
/proto
/virtual
284 ..
/mantools
/srctoman
- $?
>$@
286 man5
/postfix-wrapper
.5: ..
/proto
/postfix-wrapper
287 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
288 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
289 ..
/mantools
/srctoman
- $?
>$@
291 man1
/smtp-sink
.1: ..
/src
/smtpstone
/smtp-sink.c
292 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
293 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
294 ..
/mantools
/srctoman
$?
>$@
296 man1
/smtp-source
.1: ..
/src
/smtpstone
/smtp-source.c
297 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
298 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
299 ..
/mantools
/srctoman
$?
>$@
301 man5
/tcp_table
.5: ..
/proto
/tcp_table
302 ..
/mantools
/srctoman
- $?
>$@
304 man1
/qmqp-sink
.1: ..
/src
/smtpstone
/qmqp-sink.c
305 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
306 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
307 ..
/mantools
/srctoman
$?
>$@
309 man1
/qmqp-source
.1: ..
/src
/smtpstone
/qmqp-source.c
310 ..
/mantools
/fixman ..
/proto
/postconf.proto
$?
>junk
&& \
311 (cmp
-s junk
$? || mv junk
$?
) && rm -f junk
312 ..
/mantools
/srctoman
$?
>$@
314 man1
/qshape
.1: ..
/auxiliary
/qshape
/qshape.pl
315 #../mantools/fixman ../proto/postconf.proto $? >junk && \
316 # (cmp -s junk $? || mv junk $?) && rm -f junk
317 ..
/mantools
/srctoman
- $?
>$@