aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-05-30 16:01:22 +0800
committerpav <pav@FreeBSD.org>2004-05-30 16:01:22 +0800
commita36f61e0fc1980f5da15d29308407a872bbd62fa (patch)
tree6c0c7fc2f182b3a544d4e92666cec11ca07a0dab /security
parent436588d1d3edd217515bbf48733afe14dc04158a (diff)
downloadfreebsd-ports-gnome-a36f61e0fc1980f5da15d29308407a872bbd62fa.tar.gz
freebsd-ports-gnome-a36f61e0fc1980f5da15d29308407a872bbd62fa.tar.zst
freebsd-ports-gnome-a36f61e0fc1980f5da15d29308407a872bbd62fa.zip
- Use fixed UID/GID
Diffstat (limited to 'security')
-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