aboutsummaryrefslogtreecommitdiff
path: root/security/clamsmtp/Makefile
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2016-01-09 14:01:34 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2016-01-09 14:01:34 +0000
commitdc7768eb10393cb0bd2b20b59866e2780b56f3b9 (patch)
tree69007fcdd1ae7d6d406c91b275fd54364c47d402 /security/clamsmtp/Makefile
parent1b7306da6bf505e0fd2ea6f7261f470ba5e51974 (diff)
downloadports-dc7768eb10393cb0bd2b20b59866e2780b56f3b9.tar.gz
ports-dc7768eb10393cb0bd2b20b59866e2780b56f3b9.zip
Notes
Diffstat (limited to 'security/clamsmtp/Makefile')
-rw-r--r--security/clamsmtp/Makefile28
1 files changed, 13 insertions, 15 deletions
diff --git a/security/clamsmtp/Makefile b/security/clamsmtp/Makefile
index fb55ca695054..be3bc78cd8d0 100644
--- a/security/clamsmtp/Makefile
+++ b/security/clamsmtp/Makefile
@@ -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_DESC= RUN_DEPEND on security/clamav
+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}