Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=628b98786e8900658f1d51dab7087797776b577a

commit 628b98786e8900658f1d51dab7087797776b577a
Author: James Buren <[email protected]>
Date:   Sun Apr 21 12:38:43 2013 -0500

mlocate-0.26-2-x86_64
* remove old stuff from slocate replacement
* simplify install scriptlet to bare essentials

diff --git a/source/base/mlocate/FrugalBuild b/source/base/mlocate/FrugalBuild
index 649d694..f03f4b4 100644
--- a/source/base/mlocate/FrugalBuild
+++ b/source/base/mlocate/FrugalBuild
@@ -3,17 +3,15 @@

pkgname=mlocate
pkgver=0.26
-pkgrel=1
+pkgrel=2
pkgdesc="mlocate (merging locate) is a locate/updatedb implementation."
url="https://fedorahosted.org/mlocate/";
+rodepends=('bash' 'coreutils' 'shadow')
depends=('glibc')
groups=('base')
archs=('i686' 'x86_64')
license="GPLv2"
backup=('etc/updatedb.conf')
-conflicts=('slocate')
-provides=('slocate')
-replaces=('slocate')
up2date="lynx -dump https://fedorahosted.org/mlocate/wiki/MlocateDownloads 
|Flasttar"
source=(https://fedorahosted.org/releases/m/l/mlocate/mlocate-${pkgver}.tar.xz \
updatedb.conf ${pkgname}.cron locate_group.diff)
diff --git a/source/base/mlocate/mlocate.install 
b/source/base/mlocate/mlocate.install
index 3e624a1..ac72d82 100644
--- a/source/base/mlocate/mlocate.install
+++ b/source/base/mlocate/mlocate.install
@@ -1,17 +1,6 @@
-# arg 1:  the new package version
-pre_install()
-{
-       if [ `/usr/bin/grep slocate /etc/group |wc -l` != 0 ]; then
-               /usr/sbin/groupdel slocate
-       fi
-}
-
-# arg 1:  the new package version
post_install()
{
-       if [ `/usr/bin/grep locate /etc/group |wc -l` == 0 ]; then
-               /usr/sbin/groupadd -g 21 locate
-       fi
+       getent group locate 2>&1 > /dev/null || groupadd -g 21 locate
}

op=$1
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to