aboutsummaryrefslogtreecommitdiffstats
path: root/security/clamav-devel
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-05-30 16:03:49 +0800
committerpav <pav@FreeBSD.org>2004-05-30 16:03:49 +0800
commit10e3fd3c39bbce423d3c592b4c1386718684be2f (patch)
treec25c1701563a9ceb83bc73e58ae9d614f55e01ad /security/clamav-devel
parenta36f61e0fc1980f5da15d29308407a872bbd62fa (diff)
downloadfreebsd-ports-gnome-10e3fd3c39bbce423d3c592b4c1386718684be2f.tar.gz
freebsd-ports-gnome-10e3fd3c39bbce423d3c592b4c1386718684be2f.tar.zst
freebsd-ports-gnome-10e3fd3c39bbce423d3c592b4c1386718684be2f.zip
- Use fixed UID/GID (same as security/clamav)
Diffstat (limited to 'security/clamav-devel')
-rw-r--r--security/clamav-devel/pkg-install7
1 files changed, 5 insertions, 2 deletions
diff --git a/security/clamav-devel/pkg-install b/security/clamav-devel/pkg-install
index bab656901a04..5de755a431d6 100644
--- a/security/clamav-devel/pkg-install
+++ b/security/clamav-devel/pkg-install
@@ -10,12 +10,15 @@ if [ -z "${CLAMAVGROUP}" ]; then
CLAMAVGROUP=clamav
fi
+UID=106
+GID=${UID}
+
CLAMRUN=/var/run/clamav
CLAMLOG=/var/log/clamav
echo "===> Adding user \"${CLAMAVUSER}\" if necessary."
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..."
@@ -24,7 +27,7 @@ if ! pw groupshow "${CLAMAVGROUP}" 2>/dev/null 1>&2; 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 "/usr/sbin/nologin" -d "/nonexistent" \
-c "Clam Antivirus"; \
then