Ticket #13972: Portfile

File Portfile, 17.8 KB (added by compconsultant@…, 17 years ago)
Line 
1# $Id$
2
3PortSystem      1.0
4
5# Probably does not work on Mac OSX < 10.3
6
7name                            qmail-spamcontrol
8version                         2.4.18
9categories                      mail
10maintainers                     yahoo.com:compconsultant
11platforms                       darwin
12
13description                     Qmail, enhanced Spamcontrol version       
14
15long_description                Robust, popular mail system.
16
17extract.mkdir                   yes
18
19variant relaymailfrom {}
20variant noreqbrackets {}
21variant noverp {}
22variant moreipme {}
23variant bigtodo {}
24
25homepage                        http://www.fehcom.de/qmail/spamcontrol.html
26
27master_sites                    http://www.fehcom.de/qmail/spamcontrol/:spamcontrol \
28                                http://cr.yp.to/software/:qmail \
29                                http://qmail.site2nd.org/:qmail \
30                                http://qmail-mirror.jms1.net/:qmail \
31                                http://www.qmail.org/:qmail \
32                               
33distfiles                       qmail-1.03.tar.gz:qmail \
34                                spamcontrol-2418_tgz.bin:spamcontrol \
35                               
36checksums                       qmail-1.03.tar.gz \
37                                        md5 622f65f982e380dbe86e6574f3abcb7c \
38                                        sha1 18fb960481291a0503e93a94df3f6094edb7f27a \
39                                        rmd160 b851f273f1d365d38efd949b1efcf35768ffa30f \
40                                spamcontrol-2418_tgz.bin \
41                                        md5 a5502cd69e573a2753e532bce8fb6c3a \
42                                        sha1 b2329b412a88ca2072cfb5e430efd1dd8a410b64 \
43                                        rmd160 4306ff09148332f5ad4cb1a3ff3b5da74b888d79 \
44
45worksrcdir              qmail-1.03
46
47patchfiles              patch-dns.c \
48                        patch-strerr_sys.c
49
50configure.cflags        -O2 -include /usr/include/errno.h -c
51build.target            setup-patch
52destroot.cmd            ./install-destroot
53
54# A whole lot of keepdirs, Qmail creates lots of required, empty directories
55destroot.keepdirs       ${destroot}${prefix}/var/qmail/control \
56                        ${destroot}${prefix}/var/qmail/users \
57                        ${destroot}${prefix}/var/qmail/queue/pid \
58                        ${destroot}${prefix}/var/qmail/queue/bounce \
59                        ${destroot}${prefix}/var/qmail/queue/info/0 \
60                        ${destroot}${prefix}/var/qmail/queue/info/1 \
61                        ${destroot}${prefix}/var/qmail/queue/info/2 \
62                        ${destroot}${prefix}/var/qmail/queue/info/3 \
63                        ${destroot}${prefix}/var/qmail/queue/info/4 \
64                        ${destroot}${prefix}/var/qmail/queue/info/5 \
65                        ${destroot}${prefix}/var/qmail/queue/info/6 \
66                        ${destroot}${prefix}/var/qmail/queue/info/7 \
67                        ${destroot}${prefix}/var/qmail/queue/info/8 \
68                        ${destroot}${prefix}/var/qmail/queue/info/9 \
69                        ${destroot}${prefix}/var/qmail/queue/info/10 \
70                        ${destroot}${prefix}/var/qmail/queue/info/11 \
71                        ${destroot}${prefix}/var/qmail/queue/info/12 \
72                        ${destroot}${prefix}/var/qmail/queue/info/13 \
73                        ${destroot}${prefix}/var/qmail/queue/info/14 \
74                        ${destroot}${prefix}/var/qmail/queue/info/15 \
75                        ${destroot}${prefix}/var/qmail/queue/info/16 \
76                        ${destroot}${prefix}/var/qmail/queue/info/17 \
77                        ${destroot}${prefix}/var/qmail/queue/info/18 \
78                        ${destroot}${prefix}/var/qmail/queue/info/19 \
79                        ${destroot}${prefix}/var/qmail/queue/info/20 \
80                        ${destroot}${prefix}/var/qmail/queue/info/21 \
81                        ${destroot}${prefix}/var/qmail/queue/info/22 \
82                        ${destroot}${prefix}/var/qmail/queue/remote/0 \
83                        ${destroot}${prefix}/var/qmail/queue/remote/1 \
84                        ${destroot}${prefix}/var/qmail/queue/remote/2 \
85                        ${destroot}${prefix}/var/qmail/queue/remote/3 \
86                        ${destroot}${prefix}/var/qmail/queue/remote/4 \
87                        ${destroot}${prefix}/var/qmail/queue/remote/5 \
88                        ${destroot}${prefix}/var/qmail/queue/remote/6 \
89                        ${destroot}${prefix}/var/qmail/queue/remote/7 \
90                        ${destroot}${prefix}/var/qmail/queue/remote/8 \
91                        ${destroot}${prefix}/var/qmail/queue/remote/9 \
92                        ${destroot}${prefix}/var/qmail/queue/remote/10 \
93                        ${destroot}${prefix}/var/qmail/queue/remote/11 \
94                        ${destroot}${prefix}/var/qmail/queue/remote/12 \
95                        ${destroot}${prefix}/var/qmail/queue/remote/13 \
96                        ${destroot}${prefix}/var/qmail/queue/remote/14 \
97                        ${destroot}${prefix}/var/qmail/queue/remote/15 \
98                        ${destroot}${prefix}/var/qmail/queue/remote/16 \
99                        ${destroot}${prefix}/var/qmail/queue/remote/17 \
100                        ${destroot}${prefix}/var/qmail/queue/remote/18 \
101                        ${destroot}${prefix}/var/qmail/queue/remote/19 \
102                        ${destroot}${prefix}/var/qmail/queue/remote/20 \
103                        ${destroot}${prefix}/var/qmail/queue/remote/21 \
104                        ${destroot}${prefix}/var/qmail/queue/remote/22 \
105                        ${destroot}${prefix}/var/qmail/queue/local/0 \
106                        ${destroot}${prefix}/var/qmail/queue/local/1 \
107                        ${destroot}${prefix}/var/qmail/queue/local/2 \
108                        ${destroot}${prefix}/var/qmail/queue/local/3 \
109                        ${destroot}${prefix}/var/qmail/queue/local/4 \
110                        ${destroot}${prefix}/var/qmail/queue/local/5 \
111                        ${destroot}${prefix}/var/qmail/queue/local/6 \
112                        ${destroot}${prefix}/var/qmail/queue/local/7 \
113                        ${destroot}${prefix}/var/qmail/queue/local/8 \
114                        ${destroot}${prefix}/var/qmail/queue/local/9 \
115                        ${destroot}${prefix}/var/qmail/queue/local/10 \
116                        ${destroot}${prefix}/var/qmail/queue/local/11 \
117                        ${destroot}${prefix}/var/qmail/queue/local/12 \
118                        ${destroot}${prefix}/var/qmail/queue/local/13 \
119                        ${destroot}${prefix}/var/qmail/queue/local/14 \
120                        ${destroot}${prefix}/var/qmail/queue/local/15 \
121                        ${destroot}${prefix}/var/qmail/queue/local/16 \
122                        ${destroot}${prefix}/var/qmail/queue/local/17 \
123                        ${destroot}${prefix}/var/qmail/queue/local/18 \
124                        ${destroot}${prefix}/var/qmail/queue/local/19 \
125                        ${destroot}${prefix}/var/qmail/queue/local/20 \
126                        ${destroot}${prefix}/var/qmail/queue/local/21 \
127                        ${destroot}${prefix}/var/qmail/queue/local/22 \
128                        ${destroot}${prefix}/var/qmail/queue/mess/0 \
129                        ${destroot}${prefix}/var/qmail/queue/mess/1 \
130                        ${destroot}${prefix}/var/qmail/queue/mess/2 \
131                        ${destroot}${prefix}/var/qmail/queue/mess/3 \
132                        ${destroot}${prefix}/var/qmail/queue/mess/4 \
133                        ${destroot}${prefix}/var/qmail/queue/mess/5 \
134                        ${destroot}${prefix}/var/qmail/queue/mess/6 \
135                        ${destroot}${prefix}/var/qmail/queue/mess/7 \
136                        ${destroot}${prefix}/var/qmail/queue/mess/8 \
137                        ${destroot}${prefix}/var/qmail/queue/mess/9 \
138                        ${destroot}${prefix}/var/qmail/queue/mess/10 \
139                        ${destroot}${prefix}/var/qmail/queue/mess/11 \
140                        ${destroot}${prefix}/var/qmail/queue/mess/12 \
141                        ${destroot}${prefix}/var/qmail/queue/mess/13 \
142                        ${destroot}${prefix}/var/qmail/queue/mess/14 \
143                        ${destroot}${prefix}/var/qmail/queue/mess/15 \
144                        ${destroot}${prefix}/var/qmail/queue/mess/16 \
145                        ${destroot}${prefix}/var/qmail/queue/mess/17 \
146                        ${destroot}${prefix}/var/qmail/queue/mess/18 \
147                        ${destroot}${prefix}/var/qmail/queue/mess/19 \
148                        ${destroot}${prefix}/var/qmail/queue/mess/20 \
149                        ${destroot}${prefix}/var/qmail/queue/mess/21 \
150                        ${destroot}${prefix}/var/qmail/queue/mess/22   
151
152post-extract {
153
154        # Merge Spamcontrol source with Qmail source
155        foreach file [glob ${worksrcpath}/qmail-1.03/*] {
156                file rename ${file} ${worksrcpath}/
157        }
158        file delete ${worksrcpath}/qmail-1.03
159
160        # Create an install file to install into destroot since
161        # destroot is not supported by qmail
162        file copy ${worksrcpath}/conf-qmail ${worksrcpath}/conf-destroot
163        reinplace "s|\/var\/qmail|${destroot}${prefix}/var/qmail|g" \
164                ${worksrcpath}/conf-destroot
165        file copy ${worksrcpath}/install.c ${worksrcpath}/install-destroot.c
166
167        # Change live install dir to reflect the prefix
168        reinplace "s|\/var\/qmail|${prefix}/var/qmail|g" \
169                ${worksrcpath}/conf-qmail
170}
171
172post-patch {
173                # Apply Spamcontrol patches
174                foreach file [glob ${worksrcpath}/*.patch] {
175                        system "patch -p2 <${file}"
176                }
177
178                # Append our commands for making a destroot installer
179                # This is because Spamcontrol and us needs to patch Makefile
180                system "cat ${filespath}/append-Makefile >>${worksrcpath}/Makefile"
181
182                # Handle the variants, disable via source code define change
183                foreach file [glob ${worksrcpath}/*c] {
184                        if {![variant_isset relaymailfrom]} {
185                                reinplace "s|^#define RELAYMAILFROM|\/* #define RELAYMAILFROM *\/|g" \
186                                        ${file}
187                        }
188                        if {[variant_isset noreqbrackets]} {
189                                reinplace "s|^#define REQBRACKETS|\/* #define REQBRACKETS *\/|g" \
190                                        ${file}
191                        }
192                        if {[variant_isset noverp]} {
193                                reinplace "s|^#define VERP|\/* #define VERP *\/|g" \
194                                        ${file}
195                        }
196                        if {![variant_isset moreipme]} {
197                                reinplace "s|^#define MOREIPME|\/* #define MOREIPME *\/|g" \
198                                        ${file}
199                        }
200                        if {![variant_isset bigtodo]} {
201                                reinplace "s|^#define BIGTODO|\/* #define BIGTODO *\/|g" \
202                                        ${file}
203                        }
204                }
205}
206
207configure {
208
209        # The qmail users and groups are required before compilation
210        addgroup qmail gid=2107
211        addgroup nofiles gid=2108
212        adduser alias uid=7790 gid=[existsgroup nofiles] realname=Qmail-alias-user home=${prefix}/var/qmail shell=/usr/bin/true
213        adduser qmaild uid=7791 gid=[existsgroup nofiles] realname=Qmail-SMTP-user home=${prefix}/var/qmail shell=/usr/bin/true
214        adduser qmaill uid=7792 gid=[existsgroup nofiles] realname=Qmail-log-user home=${prefix}/var/qmail shell=/usr/bin/true
215        adduser qmailp uid=7793 gid=[existsgroup nofiles] realname=Qmail-password-user home=${prefix}/var/qmail shell=/usr/bin/true
216        adduser qmailq uid=7794 gid=[existsgroup qmail] realname=Qmail-queue-user home=${prefix}/var/qmail shell=/usr/bin/true
217        adduser qmailr uid=7795 gid=[existsgroup qmail] realname=Qmail-remote-user home=${prefix}/var/qmail shell=/usr/bin/true
218        adduser qmails uid=7796 gid=[existsgroup qmail] realname=Qmail-send-user home=${prefix}/var/qmail shell=/usr/bin/true
219}
220
221post-destroot {
222        # Minimal requirements per Qmail install doc
223        touch ${destroot}${prefix}/var/qmail/alias/.qmail-postmaster
224        touch ${destroot}${prefix}/var/qmail/alias/.qmail-mailer-daemon
225        touch ${destroot}${prefix}/var/qmail/alias/.qmail-root
226
227        # Create the log directories
228        file mkdir ${destroot}${prefix}/var/log/qmail
229        file mkdir ${destroot}${prefix}/var/log/qmail/smtpd
230        system "chown -R qmaill ${destroot}${prefix}/var/log/qmail"
231        touch ${destroot}${prefix}/var/log/qmail/smtpd/.turd_qmail-spamcontrol
232
233        # Copy example files
234        file mkdir ${destroot}${prefix}/var/qmail/samples
235        file copy ${filespath}/qmailctl ${destroot}${prefix}/var/qmail/samples/qmailctl
236        file copy ${filespath}/run ${destroot}${prefix}/var/qmail/samples/run
237        file copy ${filespath}/README.txt ${destroot}${prefix}/var/qmail/samples/README.txt
238        file copy ${filespath}/qmail-send-run ${destroot}${prefix}/var/qmail/samples/qmail-send-run
239        file copy ${filespath}/qmail-send-log-run ${destroot}${prefix}/var/qmail/samples/qmail-send-log-run
240        file copy ${filespath}/qmail-smtpd-run ${destroot}${prefix}/var/qmail/samples/qmail-smtpd-run
241        file copy ${filespath}/qmail-smtpd-log-run ${destroot}${prefix}/var/qmail/samples/qmail-smtpd-log-run
242       
243        # Additional Spamcontrol files
244        file mkdir ${destroot}${prefix}/var/qmail/scripts
245        file copy ${worksrcpath}/qmail-alias2recipients ${destroot}${prefix}/var/qmail/scripts
246        file copy ${worksrcpath}/qmail-users2recipients ${destroot}${prefix}/var/qmail/scripts
247        file copy ${worksrcpath}/qmail-pwd2recipients ${destroot}${prefix}/var/qmail/scripts
248        file copy ${worksrcpath}/qmail-vpopmail2recipients ${destroot}${prefix}/var/qmail/scripts
249        file copy ${worksrcpath}/conf-spamcontrol ${destroot}${prefix}/var/qmail/doc
250        file copy ${worksrcpath}/ucspi-ssl-0.70_ucspitls-0.4.patch_ ${destroot}${prefix}/var/qmail/doc
251        file copy ${worksrcpath}/clamav-0.90.1_output.patch_ ${destroot}${prefix}/var/qmail/doc
252        file copy ${worksrcpath}/Makefile.djbdns ${destroot}${prefix}/var/qmail/doc
253        file copy ${worksrcpath}/badmailfrom ${destroot}${prefix}/var/qmail/doc
254        file copy ${worksrcpath}/badmimetypes ${destroot}${prefix}/var/qmail/doc
255        file copy ${worksrcpath}/badloadertypes ${destroot}${prefix}/var/qmail/doc
256        file copy ${worksrcpath}/badrcptto ${destroot}${prefix}/var/qmail/doc
257        file copy ${worksrcpath}/tarpitcount ${destroot}${prefix}/var/qmail/doc
258        file copy ${worksrcpath}/install_spamcontrol.sh ${destroot}${prefix}/var/qmail/doc
259        file copy ${worksrcpath}/README_spamcontrol.html ${destroot}${prefix}/var/qmail/doc
260        file copy ${worksrcpath}/README.wildmat ${destroot}${prefix}/var/qmail/doc
261        file copy ${worksrcpath}/README.moreipme ${destroot}${prefix}/var/qmail/doc
262        file copy ${worksrcpath}/README.bigtodo ${destroot}${prefix}/var/qmail/doc
263        file copy ${worksrcpath}/README.qmailqueue ${destroot}${prefix}/var/qmail/doc
264        file copy ${worksrcpath}/README.bouncemaxbytes ${destroot}${prefix}/var/qmail/doc
265        file copy ${worksrcpath}/README.doublebouncetrim ${destroot}${prefix}/var/qmail/doc
266        file copy ${worksrcpath}/README.recipients ${destroot}${prefix}/var/qmail/doc
267        file copy ${worksrcpath}/README.djbdns ${destroot}${prefix}/var/qmail/doc
268        file copy ${worksrcpath}/INSTALL.spamcontrol ${destroot}${prefix}/var/qmail/doc
269        file copy ${worksrcpath}/HISTORY.spamcontrol ${destroot}${prefix}/var/qmail/doc
270        file copy ${worksrcpath}/FILES.spamcontrol ${destroot}${prefix}/var/qmail/doc
271        file copy ${worksrcpath}/LICENSE.spamcontrol ${destroot}${prefix}/var/qmail/doc
272        file copy ${worksrcpath}/TODO.spamcontrol ${destroot}${prefix}/var/qmail/doc
273        file copy ${worksrcpath}/RELEASE_22.spamcontrol ${destroot}${prefix}/var/qmail/doc
274        file copy ${worksrcpath}/RELEASE_23.spamcontrol ${destroot}${prefix}/var/qmail/doc
275        file copy ${worksrcpath}/RELEASE_24.spamcontrol ${destroot}${prefix}/var/qmail/doc
276        file copy ${worksrcpath}/LOGGING.spamcontrol ${destroot}${prefix}/var/qmail/doc
277        file copy ${worksrcpath}/SMTPREPLY.spamcontrol ${destroot}${prefix}/var/qmail/doc
278        file copy ${worksrcpath}/README.mav ${destroot}${prefix}/var/qmail/doc
279        file copy ${worksrcpath}/PROPOSAL.mav ${destroot}${prefix}/var/qmail/doc
280        file copy ${worksrcpath}/README.clamav ${destroot}${prefix}/var/qmail/doc
281
282        # User must run this
283        file copy ${worksrcpath}/config-fast ${destroot}${prefix}/var/qmail/scripts/config-fast
284
285        # Per Qmail install doc
286        file copy ${destroot}/${prefix}/var/qmail/boot/home ${destroot}${prefix}/var/qmail/rc
287
288        # Variant causes more empty directories to be required
289        if {[variant_isset bigtodo]} {
290                touch ${destroot}${prefix}/var/qmail/queue/todo/0/.turd_qmail-spamcontrol
291                touch ${destroot}${prefix}/var/qmail/queue/todo/1/.turd_qmail-spamcontrol
292                touch ${destroot}${prefix}/var/qmail/queue/todo/2/.turd_qmail-spamcontrol
293                touch ${destroot}${prefix}/var/qmail/queue/todo/3/.turd_qmail-spamcontrol
294                touch ${destroot}${prefix}/var/qmail/queue/todo/4/.turd_qmail-spamcontrol
295                touch ${destroot}${prefix}/var/qmail/queue/todo/5/.turd_qmail-spamcontrol
296                touch ${destroot}${prefix}/var/qmail/queue/todo/6/.turd_qmail-spamcontrol
297                touch ${destroot}${prefix}/var/qmail/queue/todo/7/.turd_qmail-spamcontrol
298                touch ${destroot}${prefix}/var/qmail/queue/todo/8/.turd_qmail-spamcontrol
299                touch ${destroot}${prefix}/var/qmail/queue/todo/9/.turd_qmail-spamcontrol
300                touch ${destroot}${prefix}/var/qmail/queue/todo/10/.turd_qmail-spamcontrol
301                touch ${destroot}${prefix}/var/qmail/queue/todo/11/.turd_qmail-spamcontrol
302                touch ${destroot}${prefix}/var/qmail/queue/todo/12/.turd_qmail-spamcontrol
303                touch ${destroot}${prefix}/var/qmail/queue/todo/13/.turd_qmail-spamcontrol
304                touch ${destroot}${prefix}/var/qmail/queue/todo/14/.turd_qmail-spamcontrol
305                touch ${destroot}${prefix}/var/qmail/queue/todo/15/.turd_qmail-spamcontrol
306                touch ${destroot}${prefix}/var/qmail/queue/todo/16/.turd_qmail-spamcontrol
307                touch ${destroot}${prefix}/var/qmail/queue/todo/17/.turd_qmail-spamcontrol
308                touch ${destroot}${prefix}/var/qmail/queue/todo/18/.turd_qmail-spamcontrol
309                touch ${destroot}${prefix}/var/qmail/queue/todo/19/.turd_qmail-spamcontrol
310                touch ${destroot}${prefix}/var/qmail/queue/todo/20/.turd_qmail-spamcontrol
311                touch ${destroot}${prefix}/var/qmail/queue/todo/21/.turd_qmail-spamcontrol
312                touch ${destroot}${prefix}/var/qmail/queue/todo/22/.turd_qmail-spamcontrol
313                touch ${destroot}${prefix}/var/qmail/queue/intd/0/.turd_qmail-spamcontrol
314                touch ${destroot}${prefix}/var/qmail/queue/intd/1/.turd_qmail-spamcontrol
315                touch ${destroot}${prefix}/var/qmail/queue/intd/2/.turd_qmail-spamcontrol
316                touch ${destroot}${prefix}/var/qmail/queue/intd/3/.turd_qmail-spamcontrol
317                touch ${destroot}${prefix}/var/qmail/queue/intd/4/.turd_qmail-spamcontrol
318                touch ${destroot}${prefix}/var/qmail/queue/intd/5/.turd_qmail-spamcontrol
319                touch ${destroot}${prefix}/var/qmail/queue/intd/6/.turd_qmail-spamcontrol
320                touch ${destroot}${prefix}/var/qmail/queue/intd/7/.turd_qmail-spamcontrol
321                touch ${destroot}${prefix}/var/qmail/queue/intd/8/.turd_qmail-spamcontrol
322                touch ${destroot}${prefix}/var/qmail/queue/intd/9/.turd_qmail-spamcontrol
323                touch ${destroot}${prefix}/var/qmail/queue/intd/10/.turd_qmail-spamcontrol
324                touch ${destroot}${prefix}/var/qmail/queue/intd/11/.turd_qmail-spamcontrol
325                touch ${destroot}${prefix}/var/qmail/queue/intd/12/.turd_qmail-spamcontrol
326                touch ${destroot}${prefix}/var/qmail/queue/intd/13/.turd_qmail-spamcontrol
327                touch ${destroot}${prefix}/var/qmail/queue/intd/14/.turd_qmail-spamcontrol
328                touch ${destroot}${prefix}/var/qmail/queue/intd/15/.turd_qmail-spamcontrol
329                touch ${destroot}${prefix}/var/qmail/queue/intd/16/.turd_qmail-spamcontrol
330                touch ${destroot}${prefix}/var/qmail/queue/intd/17/.turd_qmail-spamcontrol
331                touch ${destroot}${prefix}/var/qmail/queue/intd/18/.turd_qmail-spamcontrol
332                touch ${destroot}${prefix}/var/qmail/queue/intd/19/.turd_qmail-spamcontrol
333                touch ${destroot}${prefix}/var/qmail/queue/intd/20/.turd_qmail-spamcontrol
334                touch ${destroot}${prefix}/var/qmail/queue/intd/21/.turd_qmail-spamcontrol
335                touch ${destroot}${prefix}/var/qmail/queue/intd/22/.turd_qmail-spamcontrol
336        }
337        if {![variant_isset bigtodo]} {
338                touch ${destroot}${prefix}/var/qmail/queue/todo/.turd_qmail-spamcontrol
339                touch ${destroot}${prefix}/var/qmail/queue/intd/.turd_qmail-spamcontrol
340        }
341}
342
343post-install {
344ui_msg "\n
345To control qmail, highly recommended are the daemontools and ucspi-tcp ports
346A good reference for setting up qmail is www.lifewithqmail.org
347This port includes some sample files based on the Life with Qmail web site
348They can be found in ${prefix}/var/qmail/samples
349Also look at www.fehcom.de/qmail/spamcontrol.html for further info
350The fehcom site has doc for all the stuff added to the base qmail software
351There are numerous configuration options to qmail, please read all the doc!
352******************************
353For now, you must run ${prefix}/var/qmail/scripts/config-fast your.domain.name
354to set up some files for your mail server. your.domain.name should point
355to this machine you are installing qmail on.
356******************************
357\n"
358}
359
360post-activate {
361
362        # Remove the turd files
363        system "cd ${prefix}/var/qmail; find . -name .turd_qmail-spamcontrol -delete"
364        system "rm ${destroot}${prefix}/var/log/qmail/smtpd/.turd_qmail-spamcontrol"
365}