diff options
author | Emanuel Haupt <ehaupt@FreeBSD.org> | 2005-10-13 15:03:40 +0000 |
---|---|---|
committer | Emanuel Haupt <ehaupt@FreeBSD.org> | 2005-10-13 15:03:40 +0000 |
commit | 5b692052a3f0d33a24ffb3b36deaa4059ff47dd5 (patch) | |
tree | 3a4c6a573af4ef4840a15e52d0a7739671e881fe /security/drweb/pkg-install | |
parent | Update to 0.32.4 [1] (diff) |
- Update to 4.33
- Nuke files/*
PR: 87247
Submitted by: Demin Alexander <support@spectrum.ru> (maintainer)
Approved by: novel (mentor)
Notes
Notes:
svn path=/head/; revision=145269
Diffstat (limited to 'security/drweb/pkg-install')
-rw-r--r-- | security/drweb/pkg-install | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/security/drweb/pkg-install b/security/drweb/pkg-install index 47960241a687..cfb303a3d172 100644 --- a/security/drweb/pkg-install +++ b/security/drweb/pkg-install @@ -6,12 +6,12 @@ if [ "$2" != "POST-INSTALL" ]; then exit 0 fi +DRWEB_PREFIX="$3" +DRWEB_VARPREFIX="$4" USER=drweb GROUP=${USER} UID=426 GID=${UID} -BINOWN=root -BINGRP=wheel ex=0 if ! pw groupshow "${GROUP}" 2>/dev/null 1>&2; then @@ -27,7 +27,7 @@ fi if ! pw usershow "${USER}" 2>/dev/null 1>&2; then if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \ - -s "/sbin/nologin" -d "/nonexistent" -c "Dr. Web Scanner" + -s "/sbin/nologin" -d "/nonexistent" -c "DrWeb Antivirus Software" then echo "" echo "Added user \"${USER}\"." @@ -41,15 +41,15 @@ fi echo "" echo "You may also add this lines to your /etc/syslog.conf:" echo "!drwebd" -echo "*.* /var/log/drwebd.log" +echo "*.* ${DRWEB_VARPREFIX}/drwebd.log" echo "" echo "You may also add this crontab entry to /etc/crontab" -echo "0 12 * * * ${BINOWN} ${PKG_PREFIX}/drweb/update/update.pl" +echo "0 12 * * * root ${DRWEB_PREFIX}/update/update.pl" echo "" [ "$ex" = "1" ] && exit 1 -install -dv -m 0755 -o ${USER} -g ${BINGRP} ${PKG_PREFIX}/drweb/run -install -dv -m 0700 -o ${USER} -g ${BINGRP} ${PKG_PREFIX}/drweb/infected -install -dv -m 0755 -o ${BINOWN} -g ${BINGRP} ${PKG_PREFIX}/drweb/updates +chown -R ${USER}:${GROUP} ${DRWEB_PREFIX} +chown -R ${USER}:${GROUP} ${DRWEB_VARPREFIX} +chmod 0750 ${DRWEB_VARPREFIX} exit 0 |