aboutsummaryrefslogtreecommitdiffstats
path: root/security/clamav-devel
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2008-08-19 02:44:19 +0800
committergarga <garga@FreeBSD.org>2008-08-19 02:44:19 +0800
commit60e161029c228949369b534327c61e1751a74c5e (patch)
treebd8f68c3d4473cc113b99638799d8125ed384be2 /security/clamav-devel
parent83a4e105fc4edf74df38d29cda58bfc5999fbf68 (diff)
downloadfreebsd-ports-gnome-60e161029c228949369b534327c61e1751a74c5e.tar.gz
freebsd-ports-gnome-60e161029c228949369b534327c61e1751a74c5e.tar.zst
freebsd-ports-gnome-60e161029c228949369b534327c61e1751a74c5e.zip
- Permit to ser owner and group to clamav milter socket [1]
- Remove @ to show some install commands, and add -v to cp - Install clamav-milter doc - User CHOWN and CHMOD from bsd.commands.mk PR: ports/126069 [1] Submitted by: Matthew D. Fuller <fullermd@over-yonder.net> [1]
Diffstat (limited to 'security/clamav-devel')
-rw-r--r--security/clamav-devel/Makefile15
-rw-r--r--security/clamav-devel/files/clamav-milter.in5
2 files changed, 14 insertions, 6 deletions
diff --git a/security/clamav-devel/Makefile b/security/clamav-devel/Makefile
index 0772f0b0bb49..e3d2c76efa85 100644
--- a/security/clamav-devel/Makefile
+++ b/security/clamav-devel/Makefile
@@ -88,7 +88,9 @@ SUB_LIST+= DBDIR=${DBDIR} \
CLAMAVUSER=${CLAMAVUSER} \
CLAMAVGROUP=${CLAMAVGROUP} \
CLAMAV_CLAMD_SOCKET=${CLAMAV_CLAMD_SOCKET} \
- CLAMAV_MILTER_SOCKET=${CLAMAV_MILTER_SOCKET}
+ CLAMAV_MILTER_SOCKET=${CLAMAV_MILTER_SOCKET} \
+ CHMOD=${CHMOD} \
+ CHOWN=${CHOWN}
SED_CONF= -E -e 's|^\#?(Example)$$|\#\1|' \
-e 's|^\#?((Update)?LogFile) .*/([a-z]+\.log)$$|\1 ${LOGDIR}/\3|' \
@@ -171,15 +173,18 @@ pre-install:
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
post-install:
- @${INSTALL_DATA} ${WRKSRC}/clamav-config.h ${PREFIX}/include
+ ${INSTALL_DATA} ${WRKSRC}/clamav-config.h ${PREFIX}/include
.for c in clamd freshclam
@[ -f ${PREFIX}/etc/${c}.conf ] || \
- ${CP} ${PREFIX}/etc/${c}.conf.default ${PREFIX}/etc/${c}.conf
+ ${CP} -v ${PREFIX}/etc/${c}.conf.default ${PREFIX}/etc/${c}.conf
.endfor
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}/html
- @${INSTALL_DATA} ${WRKSRC}/NEWS ${WRKSRC}/ChangeLog ${DOCSDIR}
- @${INSTALL_DATA} ${WRKSRC}/docs/html/* ${DOCSDIR}/html
+ ${INSTALL_DATA} ${WRKSRC}/NEWS ${WRKSRC}/ChangeLog ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/docs/html/* ${DOCSDIR}/html
+. if defined(WITH_MILTER)
+ ${INSTALL_DATA} ${WRKSRC}/clamav-milter/INSTALL ${DOCSDIR}/INSTALL.clamav-milter
+. endif
.endif
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
diff --git a/security/clamav-devel/files/clamav-milter.in b/security/clamav-devel/files/clamav-milter.in
index 1ea9c1a74bf0..cb467c53f333 100644
--- a/security/clamav-devel/files/clamav-milter.in
+++ b/security/clamav-devel/files/clamav-milter.in
@@ -84,7 +84,8 @@ start_postcmd()
echo "There is no clamav-milter socket (${clamav_milter_socket})!"
exit 1
fi
- /bin/chmod ${clamav_milter_socket_mode} ${clamav_milter_socket}
+ %%CHMOD%% ${clamav_milter_socket_mode} ${clamav_milter_socket}
+ %%CHOWN%% ${clamav_milter_socket_user}:${clamav_milter_socket_group} ${clamav_milter_socket}
fi
}
@@ -95,6 +96,8 @@ load_rc_config $name
: ${clamav_milter_flags="--postmaster-only --local --outgoing --timeout=0 --max-children=50"}
: ${clamav_milter_socktimeout="60"}
: ${clamav_milter_socket_mode="755"}
+: ${clamav_milter_socket_user="%%CLAMAVUSER%%"}
+: ${clamav_milter_socket_group="%%CLAMAVGROUP%%"}
: ${clamav_clamd_socket="%%CLAMAV_CLAMD_SOCKET%%"}
: ${clamav_clamd_enable="NO"}