Lines 6-12
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= clamav |
8 |
PORTNAME= clamav |
9 |
PORTVERSION= 20040126 |
9 |
PORTVERSION= 20040129 |
10 |
CATEGORIES= security |
10 |
CATEGORIES= security |
11 |
MASTER_SITES= http://clamav.sourceforge.net/snapshot/ |
11 |
MASTER_SITES= http://clamav.sourceforge.net/snapshot/ |
12 |
PKGNAMESUFFIX= -devel |
12 |
PKGNAMESUFFIX= -devel |
Lines 121-140
Link Here
|
121 |
${SH} ${PKGINSTALL} ${PREFIX} PRE-INSTALL |
121 |
${SH} ${PKGINSTALL} ${PREFIX} PRE-INSTALL |
122 |
.if !defined(NOPORTDOCS) |
122 |
.if !defined(NOPORTDOCS) |
123 |
@${MKDIR} ${DOCSDIR}${PKGNAMESUFFIX} |
123 |
@${MKDIR} ${DOCSDIR}${PKGNAMESUFFIX} |
124 |
${INSTALL_DATA} ${WRKSRC}/docs/*pdf ${DOCSDIR}${PKGNAMESUFFIX} |
124 |
@${INSTALL_DATA} ${WRKSRC}/docs/*pdf ${DOCSDIR}${PKGNAMESUFFIX} |
125 |
.endif |
125 |
.endif |
126 |
|
126 |
|
127 |
post-install: |
127 |
post-install: |
128 |
@[ -f ${PREFIX}/etc/clamav.conf ] || \ |
128 |
@[ -f ${PREFIX}/etc/clamav.conf ] || \ |
129 |
${CP} ${PREFIX}/etc/clamav.conf.default \ |
129 |
${CP} ${BUILD_WRKSRC}/etc/clamav.conf.default \ |
130 |
${PREFIX}/etc/clamav.conf |
130 |
${PREFIX}/etc/clamav.conf |
131 |
@[ -f ${PREFIX}/etc/freshclam.conf ] || \ |
131 |
@[ -f ${PREFIX}/etc/freshclam.conf ] || \ |
132 |
${CP} ${PREFIX}/etc/freshclam.conf.default \ |
132 |
${CP} ${BUILD_WRKSRC}/etc/freshclam.conf.default \ |
133 |
${PREFIX}/etc/freshclam.conf |
133 |
${PREFIX}/etc/freshclam.conf |
134 |
@${CHOWN} -R ${CLAMAVUSER}:${CLAMAVGROUP} ${DATADIR} |
134 |
@${CHOWN} -R ${CLAMAVUSER}:${CLAMAVGROUP} ${DATADIR} |
135 |
@${INSTALL_SCRIPT} ${WRKDIR}/clamav-clamd.sh \ |
135 |
@${INSTALL_SCRIPT} ${WRKDIR}/clamav-clamd.sh \ |
136 |
${RC_DIR}/clamav-clamd${RC_SUFX} |
136 |
${RC_DIR}/clamav-clamd${RC_SUFX} |
137 |
@${INSTALL_SCRIPT} ${WRKDIR}/freshclam.sh ${RC_DIR}/freshclam${RC_SUFX} |
137 |
@${INSTALL_SCRIPT} ${WRKDIR}/freshclam.sh ${RC_DIR}/freshclam${RC_SUFX} |
|
|
138 |
@${SH} ${PKGINSTALL} ${PREFIX} POST-INSTALL |
138 |
.if defined(WITH_MILTER) |
139 |
.if defined(WITH_MILTER) |
139 |
@${INSTALL_SCRIPT} ${WRKDIR}/clamav-milter.sh \ |
140 |
@${INSTALL_SCRIPT} ${WRKDIR}/clamav-milter.sh \ |
140 |
${RC_DIR}/clamav-milter${RC_SUFX} |
141 |
${RC_DIR}/clamav-milter${RC_SUFX} |