diff options
author | pav <pav@FreeBSD.org> | 2004-05-30 16:03:49 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2004-05-30 16:03:49 +0800 |
commit | 10e3fd3c39bbce423d3c592b4c1386718684be2f (patch) | |
tree | c25c1701563a9ceb83bc73e58ae9d614f55e01ad /security/clamav-devel | |
parent | a36f61e0fc1980f5da15d29308407a872bbd62fa (diff) | |
download | freebsd-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-install | 7 |
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 |