summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/slocate/slocate-2.7-r2.ebuild')
-rw-r--r--sys-apps/slocate/slocate-2.7-r2.ebuild6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys-apps/slocate/slocate-2.7-r2.ebuild b/sys-apps/slocate/slocate-2.7-r2.ebuild
index 2ed6ece779a9..ce6d485d85ea 100644
--- a/sys-apps/slocate/slocate-2.7-r2.ebuild
+++ b/sys-apps/slocate/slocate-2.7-r2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/slocate/slocate-2.7-r2.ebuild,v 1.1 2003/04/17 16:34:48 lostlogic Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/slocate/slocate-2.7-r2.ebuild,v 1.2 2003/04/19 16:04:34 lostlogic Exp $
S=${WORKDIR}/${P}
DESCRIPTION="Secure locate provides a secure way to index and quickly search for files on your system (drop-in replacement for 'locate')"
@@ -48,7 +48,9 @@ pkg_postinst() {
touch /var/lib/slocate/slocate.db
# /var/lib/slocate is owned by group slocate and so is the executable
- [ -z `grep slocate /etc/group` ] && groupadd slocate
+ if ! groupmod slocate; then
+ groupadd slocate 2> /dev/null || die "Failed to create slocate group"
+ fi
chown root.slocate /usr/bin/slocate
chmod 2755 /usr/bin/slocate