aboutsummaryrefslogtreecommitdiff
path: root/security/clamav
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-05-30 08:01:22 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-05-30 08:01:22 +0000
commit612b1aca5ac287e5318cc74d0e5458399cfd5f46 (patch)
tree70c5f88290d7783aba57eaee1925cf5d1bcf697d /security/clamav
parent8ae1c82f7bfcb38a9cd7c1bca80ed8eb5c5b2b49 (diff)
- Use fixed UID/GID
Notes
Notes: svn path=/head/; revision=110386
Diffstat (limited to 'security/clamav')
-rw-r--r--security/clamav/pkg-install6
1 files changed, 4 insertions, 2 deletions
diff --git a/security/clamav/pkg-install b/security/clamav/pkg-install
index 5024534ac2ec..ebb8f9a77d69 100644
--- a/security/clamav/pkg-install
+++ b/security/clamav/pkg-install
@@ -5,6 +5,8 @@ PREFIX=${PKG_PREFIX:-%%PREFIX%%}
CLAMAVUSER=%%CLAMAVUSER%%
CLAMAVGROUP=%%CLAMAVGROUP%%
+UID=106
+GID=$UID
CLAMRUN=/var/run/clamav
CLAMLOG=/var/log/clamav
@@ -13,7 +15,7 @@ DATADIR=%%DATADIR%%
if [ "$2" = "PRE-INSTALL" ]; then
if ! pw groupshow "$CLAMAVGROUP" 2>/dev/null 1>&2; then
- if pw groupadd $CLAMAVGROUP; then
+ if pw groupadd $CLAMAVGROUP -g $GID; then
echo "=> Added group \"$CLAMAVGROUP\"."
else
echo "=> Adding group \"$CLAMAVGROUP\" failed..."
@@ -22,7 +24,7 @@ if [ "$2" = "PRE-INSTALL" ]; then
fi
if ! pw usershow "$CLAMAVUSER" 2>/dev/null 1>&2; then
- if pw useradd $CLAMAVUSER -g $CLAMAVGROUP -h - \
+ if pw useradd $CLAMAVUSER -u $UID -g $CLAMAVGROUP -h - \
-s "/sbin/nologin" -d "/nonexistent" \
-c "Clam Antivirus"; \
then