View | Details | Raw Unified | Return to bug 113396
Collapse All | Expand All

(-)./Makefile Tue Jun 5 20:25:46 2007 (-8 / +9 lines)
Lines 7-13 Link Here
7
# Based on amavisd ports makefile.
7
# Based on amavisd ports makefile.
8
8
9
PORTNAME=      amavisd-new
9
PORTNAME=      amavisd-new
10
PORTVERSION=   2.5.0
10
PORTVERSION=   2.5.1
11
PORTEPOCH=     1
11
PORTEPOCH=     1
12
CATEGORIES=    security
12
CATEGORIES=    security
13
MASTER_SITES=  http://www.ijs.si/software/amavisd/ \
13
MASTER_SITES=  http://www.ijs.si/software/amavisd/ \
Lines 22-28 Link Here
22
               ${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \
22
               ${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \
23
               ${SITE_PERL}/Convert/TNEF.pm:${PORTSDIR}/converters/p5-Convert-TNEF \
23
               ${SITE_PERL}/Convert/TNEF.pm:${PORTSDIR}/converters/p5-Convert-TNEF \
24
               p5-Convert-UUlib>=1.08,1:${PORTSDIR}/converters/p5-Convert-UUlib \
24
               p5-Convert-UUlib>=1.08,1:${PORTSDIR}/converters/p5-Convert-UUlib \
25
               p5-Compress-Zlib>=1.04:${PORTSDIR}/archivers/p5-Compress-Zlib \
25
               p5-Compress-Zlib>=2.04:${PORTSDIR}/archivers/p5-Compress-Zlib \
26
               ${SITE_PERL}/Archive/Zip.pm:${PORTSDIR}/archivers/p5-Archive-Zip \
26
               ${SITE_PERL}/Archive/Zip.pm:${PORTSDIR}/archivers/p5-Archive-Zip \
27
               ${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \
27
               ${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \
28
               ${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes \
28
               ${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes \
Lines 67-73 Link Here
67
               NOMARCH "ARC support with archivers/nomarch"    off \
67
               NOMARCH "ARC support with archivers/nomarch"    off \
68
               CAB     "CAB support with archivers/cabextract" on \
68
               CAB     "CAB support with archivers/cabextract" on \
69
               RPM     "RPM support with archivers/rpm2cpio"   on \
69
               RPM     "RPM support with archivers/rpm2cpio"   on \
70
               ZOO     "ZOO support with archivers/zoo"        on \
70
               ZOO     "ZOO support with archivers/zoo"        off \
71
               UNZOO   "ZOO support with archivers/unzoo"      off \
71
               UNZOO   "ZOO support with archivers/unzoo"      off \
72
               LZOP    "LZOP support with archivers/lzop"      on \
72
               LZOP    "LZOP support with archivers/lzop"      on \
73
               FREEZE  "FREEZE support with archivers/freeze"  on \
73
               FREEZE  "FREEZE support with archivers/freeze"  on \
Lines 140-146 Link Here
140
.endif
140
.endif
141
141
142
.if defined(WITH_FILE)
142
.if defined(WITH_FILE)
143
RUN_DEPENDS+=  ${LOCALBASE}/bin/file:${PORTSDIR}/sysutils/file
143
# security fix, file > 4.2.1 needed
144
RUN_DEPENDS+=  file>=4.2.1:${PORTSDIR}/sysutils/file
144
.endif
145
.endif
145
146
146
.if defined(WITH_RAR)
147
.if defined(WITH_RAR)
Lines 180-189 Link Here
180
.endif
181
.endif
181
182
182
.if defined(WITH_ZOO)
183
.if defined(WITH_ZOO)
183
RUN_DEPENDS+=  ${LOCALBASE}/bin/zoo:${PORTSDIR}/archivers/zoo
184
# DOS condition in 2.10.1_2
185
RUN_DEPENDS+=  zoo>=2.10.1_3:${PORTSDIR}/archivers/zoo
184
.endif
186
.endif
185
187
186
.if defined(WITH_UNZOO)
188
.if defined(WITH_UNZOO)
189
IGNORE= UNZOO Broken with DOS attack conditions.  Not maintained. No patches
187
RUN_DEPENDS+=  ${LOCALBASE}/bin/unzoo:${PORTSDIR}/archivers/unzoo
190
RUN_DEPENDS+=  ${LOCALBASE}/bin/unzoo:${PORTSDIR}/archivers/unzoo
188
.endif
191
.endif
189
192
Lines 204-212 Link Here
204
.endif
207
.endif
205
208
206
post-patch:
209
post-patch:
207
.for f in amavisd.conf amavisd.conf-sample amavisd amavisd-agent amavisd-nanny amavisd-release
208
       @${REINPLACE_CMD} "s@'zoo'\]@['zoo','unzoo'] ]@" ${WRKSRC}/${f}
209
.endfor
210
.for i in amavisd.conf amavisd.conf-sample
210
.for i in amavisd.conf amavisd.conf-sample
211
       @${REINPLACE_CMD} -e "s|$daemon_user  = \'vscan\';|$daemon_user  = \'${AMAVISUSER}\';|" \
211
       @${REINPLACE_CMD} -e "s|$daemon_user  = \'vscan\';|$daemon_user  = \'${AMAVISUSER}\';|" \
212
                       -e "s|$daemon_group = \'vscan\';|$daemon_group = \'${AMAVISGROUP}\';|" \
212
                       -e "s|$daemon_group = \'vscan\';|$daemon_group = \'${AMAVISGROUP}\';|" \
Lines 245-250 Link Here
245
.for i in amavisd amavisd-agent amavisd-nanny amavisd-release
245
.for i in amavisd amavisd-agent amavisd-nanny amavisd-release
246
       ${INSTALL_SCRIPT} ${WRKSRC}/${i} ${PREFIX}/sbin
246
       ${INSTALL_SCRIPT} ${WRKSRC}/${i} ${PREFIX}/sbin
247
.endfor
247
.endfor
248
       ${INSTALL_SCRIPT} ${WRKSRC}/amavisd-release ${PREFIX}/sbin/amavisd-requeue
248
       ${INSTALL_SCRIPT} ${WRKSRC}/amavisd.conf ${PREFIX}/etc/amavisd.conf-dist
249
       ${INSTALL_SCRIPT} ${WRKSRC}/amavisd.conf ${PREFIX}/etc/amavisd.conf-dist
249
       ${INSTALL_SCRIPT} ${WRKSRC}/amavisd.conf-sample ${PREFIX}/etc/amavisd.conf-sample
250
       ${INSTALL_SCRIPT} ${WRKSRC}/amavisd.conf-sample ${PREFIX}/etc/amavisd.conf-sample
250
       ${INSTALL_SCRIPT} ${WRKSRC}/amavisd.conf-default ${PREFIX}/etc/amavisd.conf-default
251
       ${INSTALL_SCRIPT} ${WRKSRC}/amavisd.conf-default ${PREFIX}/etc/amavisd.conf-default
(-)./distinfo Tue Jun 5 20:06:12 2007 (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (amavisd-new-2.5.0.tar.gz) = 990a8c78911e208afca8c43a1f7c018d
1
MD5 (amavisd-new-2.5.1.tar.gz) = c0bed5db53dfce6e70047597989523e2
2
SHA256 (amavisd-new-2.5.0.tar.gz) = d5f5238a565868b5150c2591cd06780556d2aa093355475874e6b539e7eb1116
2
SHA256 (amavisd-new-2.5.1.tar.gz) = 2ac5a933d62072b3ed9986252003fd3942179618c7ba76d3390570547fc981de
3
SIZE (amavisd-new-2.5.0.tar.gz) = 780990
3
SIZE (amavisd-new-2.5.1.tar.gz) = 786898
(-)./files/amavisd.sh.in Tue Jun 5 20:44:09 2007 (+14 lines)
Lines 23-28 Link Here
23
pidfile=%%AMAVISDIR%%/amavisd.pid
23
pidfile=%%AMAVISDIR%%/amavisd.pid
24
required_files=%%PREFIX%%/etc/amavisd.conf
24
required_files=%%PREFIX%%/etc/amavisd.conf
25
25
26
start_precmd=start_precmd
27
28
# possible values include: amavisd_ram="512m"
29
# adds ram disk for amavisd defanging/decoding, speeds up large systems 10%
30
start_precmd()
31
{
32
rm -rf %%AMAVISDIR%%/tmp/* %%AMAVISDIR%%/tmp/.* 2>/dev/null || true
33
if [ ${amavisd_ram} ];then
34
  df %%AMAVISDIR%%/tmp |  grep '^/dev/md' > /dev/null
35
  if [ $? -eq 1 ];then
36
   mdmfs -M -s ${amavisd_ram} -w %%AMAVISUSER%%:%%AMAVISGROUP%% md %%AMAVISDIR%%/tmp || true
37
  fi
38
fi
39
}
26
stop_postcmd=stop_postcmd
40
stop_postcmd=stop_postcmd
27
41
28
stop_postcmd()
42
stop_postcmd()
(-)./files/pkg-message.in Tue Jun 5 20:40:53 2007 (+4 lines)
Lines 13-18 Link Here
13
13
14
    amavisd_enable="YES"
14
    amavisd_enable="YES"
15
15
16
 Optionally enable amavisd tmp ram disk with: (example 512k)
17
18
    amavisd_ram="512m"
19
16
 If you have installed and want to use the amavis sendmail milter interface,
20
 If you have installed and want to use the amavis sendmail milter interface,
17
 you need the following additional line in /etc/rc.conf:
21
 you need the following additional line in /etc/rc.conf:
18
22
(-)./pkg-plist Tue Jun 5 20:47:20 2007 (+1 lines)
Lines 79-81 Link Here
79
sbin/amavisd-agent
79
sbin/amavisd-agent
80
sbin/amavisd-nanny
80
sbin/amavisd-nanny
81
sbin/amavisd-release
81
sbin/amavisd-release
82
sbin/amavisd-requeue

Return to bug 113396