mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
- Switch to options helpers
This commit is contained in:
parent
1b7306da6b
commit
dc7768eb10
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=405631
@ -14,24 +14,20 @@ GNU_CONFIGURE= yes
|
||||
USES= gmake
|
||||
USE_RC_SUBR= clamsmtpd
|
||||
SUB_LIST= CLAMAV_PID_DIR=${CLAMAV_PID_DIR}
|
||||
SUB_FILES+= pkg-message
|
||||
SUB_FILES= pkg-message
|
||||
|
||||
CLAMAV_PID_DIR?= /var/run/clamav
|
||||
CLAMAV_PID_DIR?=/var/run/clamav
|
||||
|
||||
PORTDOCS= README
|
||||
PORTEXAMPLES= *
|
||||
|
||||
OPTIONS_DEFINE= DOCS LOCAL_CLAMAV
|
||||
OPTIONS_DEFINE= DOCS LOCAL_CLAMAV EXAMPLES
|
||||
OPTIONS_DEFAULT= LOCAL_CLAMAV
|
||||
|
||||
LOCAL_CLAMAV_DESC= RUN_DEPEND on security/clamav
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MLOCAL_CLAMAV}
|
||||
RUN_DEPENDS+= clamav>=0:${PORTSDIR}/security/clamav
|
||||
SUB_LIST+= CLAMD=clamd
|
||||
.else
|
||||
SUB_LIST+= CLAMD=
|
||||
.endif
|
||||
LOCAL_CLAMAV_RUN_DEPENDS= clamav>=0:${PORTSDIR}/security/clamav
|
||||
LOCAL_CLAMAV_SUB_LIST= CLAMD=clamd
|
||||
LOCAL_CLAMAV_SUB_LIST_OFF= CLAMD=
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e "s,/var/run/clamav/clamd,/var/run/clamav/clamd.sock," \
|
||||
@ -40,11 +36,13 @@ post-patch:
|
||||
${WRKSRC}/src/clamsmtpd.c
|
||||
|
||||
post-install:
|
||||
@${INSTALL_DATA} ${WRKSRC}/doc/clamsmtpd.conf ${STAGEDIR}${PREFIX}/etc/clamsmtpd.conf-sample
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/clamsmtpd.conf ${STAGEDIR}${PREFIX}/etc/clamsmtpd.conf.sample
|
||||
|
||||
post-install-DOCS-on:
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
|
||||
.endif
|
||||
|
||||
post-install-EXAMPLES-on:
|
||||
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/scripts/virus_action.sh ${STAGEDIR}${EXAMPLESDIR}
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
@unexec [ ! -f %%CLAMAV_PID_DIR%%/clamsmtpd.pid ] || %%PREFIX%%/etc/rc.d/clamsmtpd.sh stop || true
|
||||
etc/clamsmtpd.conf.sample
|
||||
man/man5/clamsmtpd.conf.5.gz
|
||||
man/man8/clamsmtpd.8.gz
|
||||
sbin/clamsmtpd
|
||||
etc/clamsmtpd.conf-sample
|
||||
%%EXAMPLESDIR%%/virus_action.sh
|
||||
|
Loading…
Reference in New Issue
Block a user