Lines 6-13
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= clamav |
8 |
PORTNAME= clamav |
9 |
PORTVERSION= 20040129 |
9 |
PORTVERSION= 20040210 |
10 |
PORTREVISION= 1 |
|
|
11 |
CATEGORIES= security |
10 |
CATEGORIES= security |
12 |
MASTER_SITES= http://clamav.sourceforge.net/snapshot/ |
11 |
MASTER_SITES= http://clamav.sourceforge.net/snapshot/ |
13 |
PKGNAMESUFFIX= -devel |
12 |
PKGNAMESUFFIX= -devel |
Lines 24-30
Link Here
|
24 |
arc:${PORTSDIR}/archivers/arc \ |
23 |
arc:${PORTSDIR}/archivers/arc \ |
25 |
unzip:${PORTSDIR}/archivers/unzip |
24 |
unzip:${PORTSDIR}/archivers/unzip |
26 |
|
25 |
|
27 |
#OPTIONS= MILTER "Compile the milter interface" off |
26 |
OPTIONS= MILTER "Compile the milter interface" off |
28 |
USE_REINPLACE= yes |
27 |
USE_REINPLACE= yes |
29 |
USE_GMAKE= yes |
28 |
USE_GMAKE= yes |
30 |
GNU_CONFIGURE= yes |
29 |
GNU_CONFIGURE= yes |
Lines 100-111
Link Here
|
100 |
-e 's|<malloc.h>|<stdlib.h>|' \ |
99 |
-e 's|<malloc.h>|<stdlib.h>|' \ |
101 |
${WRKSRC}/clamav-milter/clamav-milter.c |
100 |
${WRKSRC}/clamav-milter/clamav-milter.c |
102 |
|
101 |
|
103 |
pre-configure: |
|
|
104 |
@${REINPLACE_CMD} -e 's|clamav.conf|&.default|' \ |
105 |
-e 's|freshclam.conf|&.default|' \ |
106 |
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} \ |
107 |
${CONFIGURE_WRKSRC}/etc/Makefile.in |
108 |
|
109 |
post-build: |
102 |
post-build: |
110 |
@${SED} ${SED_CONF} ${BUILD_WRKSRC}/etc/clamav.conf \ |
103 |
@${SED} ${SED_CONF} ${BUILD_WRKSRC}/etc/clamav.conf \ |
111 |
> ${BUILD_WRKSRC}/etc/clamav.conf.default |
104 |
> ${BUILD_WRKSRC}/etc/clamav.conf.default |
Lines 129-142
Link Here
|
129 |
@[ -f ${PREFIX}/etc/clamav.conf ] || \ |
122 |
@[ -f ${PREFIX}/etc/clamav.conf ] || \ |
130 |
${CP} ${BUILD_WRKSRC}/etc/clamav.conf.default \ |
123 |
${CP} ${BUILD_WRKSRC}/etc/clamav.conf.default \ |
131 |
${PREFIX}/etc/clamav.conf |
124 |
${PREFIX}/etc/clamav.conf |
|
|
125 |
@[ -f ${PREFIX}/etc/clamav.conf.default ] || \ |
126 |
${CP} ${BUILD_WRKSRC}/etc/clamav.conf.default \ |
127 |
${PREFIX}/etc/clamav.conf.default |
132 |
@[ -f ${PREFIX}/etc/freshclam.conf ] || \ |
128 |
@[ -f ${PREFIX}/etc/freshclam.conf ] || \ |
133 |
${CP} ${BUILD_WRKSRC}/etc/freshclam.conf.default \ |
129 |
${CP} ${BUILD_WRKSRC}/etc/freshclam.conf.default \ |
134 |
${PREFIX}/etc/freshclam.conf |
130 |
${PREFIX}/etc/freshclam.conf |
|
|
131 |
@[ -f ${PREFIX}/etc/freshclam.conf.default ] || \ |
132 |
${CP} ${BUILD_WRKSRC}/etc/freshclam.conf.default \ |
133 |
${PREFIX}/etc/freshclam.conf.default |
135 |
@${CHOWN} -R ${CLAMAVUSER}:${CLAMAVGROUP} ${DATADIR} |
134 |
@${CHOWN} -R ${CLAMAVUSER}:${CLAMAVGROUP} ${DATADIR} |
136 |
@${INSTALL_SCRIPT} ${WRKDIR}/clamav-clamd.sh \ |
135 |
@${INSTALL_SCRIPT} ${WRKDIR}/clamav-clamd.sh \ |
137 |
${RC_DIR}/clamav-clamd${RC_SUFX} |
136 |
${RC_DIR}/clamav-clamd${RC_SUFX} |
138 |
@${INSTALL_SCRIPT} ${WRKDIR}/freshclam.sh ${RC_DIR}/freshclam${RC_SUFX} |
137 |
@${INSTALL_SCRIPT} ${WRKDIR}/freshclam.sh ${RC_DIR}/freshclam${RC_SUFX} |
139 |
@${SH} ${PKGINSTALL} ${PREFIX} POST-INSTALL |
|
|
140 |
.if defined(WITH_MILTER) |
138 |
.if defined(WITH_MILTER) |
141 |
@${INSTALL_SCRIPT} ${WRKDIR}/clamav-milter.sh \ |
139 |
@${INSTALL_SCRIPT} ${WRKDIR}/clamav-milter.sh \ |
142 |
${RC_DIR}/clamav-milter${RC_SUFX} |
140 |
${RC_DIR}/clamav-milter${RC_SUFX} |