1 # arg 1: the new package version
4 echo ">>> To use rlocate, add your username to the locate group, and add"
5 echo ">>> rlocate to the MODULES and DAEMONS arrays in /etc/rc.conf."
9 # remove old rlocate group
10 getent group rlocate &>/dev/null && usr/sbin/groupdel rlocate &>/dev/null
11 # remove old slocate and mlocate groups
12 # in case user didn't upgrade to mlocate-0.18-1 yet
13 getent group slocate &>/dev/null && usr/sbin/groupdel slocate &>/dev/null
14 getent group mlocate &>/dev/null && usr/sbin/groupdel mlocate &>/dev/null
16 getent group locate || usr/sbin/groupadd -g 21 locate &>/dev/null
17 chown root:locate /usr/bin/rlocate /var/lib/rlocate
18 chmod 2755 /usr/bin/rlocate
21 # arg 1: the old package version
23 getent group locate &>/dev/null && usr/sbin/groupdel locate &>/dev/null