aboutsummaryrefslogtreecommitdiff
path: root/security/clamav-devel/pkg-install
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2003-09-30 03:39:11 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2003-09-30 03:39:11 +0000
commite7b221ad8a8f4210b9d37890a7f6a29cb4972bc1 (patch)
treea80999954e7ea1360d87a61c97a8e933416bd83f /security/clamav-devel/pkg-install
parent42c8a9290085ca35bc8d6b6514fad168756e4563 (diff)
downloadports-e7b221ad8a8f4210b9d37890a7f6a29cb4972bc1.tar.gz
ports-e7b221ad8a8f4210b9d37890a7f6a29cb4972bc1.zip
Update to 20030928
- use included libtool (seems heavily patched) - make packageable and include a working configure file - don't install useless .la files - use DATADIR - 510001 is FreeBSD 5.10, 5.1-CURRENT is 501100 - Change log and pid file location to more universal one - RC-ng scripts for clamd and clamav-milter are planned - Thanks to Oliver Eikemeier from whom I stole most (clamav-port) PR: 57371 Submitted by: rob@debank.tv
Notes
Notes: svn path=/head/; revision=89867
Diffstat (limited to 'security/clamav-devel/pkg-install')
-rw-r--r--security/clamav-devel/pkg-install16
1 files changed, 10 insertions, 6 deletions
diff --git a/security/clamav-devel/pkg-install b/security/clamav-devel/pkg-install
index 65410625a42b..72596f16fc59 100644
--- a/security/clamav-devel/pkg-install
+++ b/security/clamav-devel/pkg-install
@@ -4,11 +4,12 @@ if [ -z "${CLAMAVUSER}" ]; then
CLAMAVUSER=clamav
fi
-if [ -z "${SPOOLDIR}" ]; then
- SPOOLDIR=/var/clamd
+if [ -z "${CLAMAVGROUP}" ]; then
+ CLAMAVGROUP=clamav
fi
-CLAMAVGROUP=${CLAMAVUSER}
+CLAMRUN=/var/run/clamav
+CLAMLOG=/var/log/clamav
echo "===> Adding user \"${CLAMAVUSER}\" if necessary."
if ! pw groupshow "${CLAMAVGROUP}" 2>/dev/null 1>&2; then
@@ -22,7 +23,7 @@ fi
if ! pw usershow "${CLAMAVUSER}" 2>/dev/null 1>&2; then
if pw useradd ${CLAMAVUSER} -g ${CLAMAVGROUP} -h - \
- -s "/usr/sbin/nologin" -d "${SPOOLDIR}" \
+ -s "/usr/sbin/nologin" -d "/nonexistent" \
-c "Clam Antivirus"; \
then
echo "===> Added user \"${CLAMAVUSER}\"."
@@ -33,7 +34,10 @@ if ! pw usershow "${CLAMAVUSER}" 2>/dev/null 1>&2; then
fi
echo "===> Setting permissions..."
-mkdir ${SPOOLDIR}
-chown -R ${CLAMAVUSER}:${CLAMAVGROUP} ${PKG_PREFIX}/share/clamav ${SPOOLDIR}
+mkdir -p "${CLAMRUN}"
+chown "${CLAMAVUSER}:${CLAMAVGROUP}" "${CLAMRUN}"
+
+mkdir -p "${CLAMLOG}"
+chown "${CLAMAVUSER}:${CLAMAVGROUP}" "${CLAMLOG}"
exit 0