summaryrefslogtreecommitdiff
path: root/testing/mlocate
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-09-23 01:12:09 -0700
committerroot <root@rshg054.dnsready.net>2012-09-23 01:12:09 -0700
commita7f8166c8968d3414378051d28dcfcc3e377837b (patch)
tree1b1b5c4383fe5d1f8c98c8c417fd588e67877e13 /testing/mlocate
parent0297e16d6d46f426939811847e72539d15bbf12d (diff)
Sun Sep 23 01:11:08 PDT 2012
Diffstat (limited to 'testing/mlocate')
-rw-r--r--testing/mlocate/PKGBUILD60
-rwxr-xr-xtesting/mlocate/updatedb.cron6
2 files changed, 35 insertions, 31 deletions
diff --git a/testing/mlocate/PKGBUILD b/testing/mlocate/PKGBUILD
index 50a15650f..d4d79debd 100644
--- a/testing/mlocate/PKGBUILD
+++ b/testing/mlocate/PKGBUILD
@@ -1,51 +1,49 @@
-# $Id: PKGBUILD 162087 2012-06-19 15:29:24Z allan $
-# Maintainer: Allan McRae <allan@archlinux.org>
+# $Id: PKGBUILD 166923 2012-09-22 09:15:37Z bisson $
+# Maintainer: Gaetan Bisson <bisson@archlinux.org>
+# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: lydgate
pkgname=mlocate
-pkgver=0.25
-pkgrel=2
-pkgdesc="Faster merging drop-in for slocate"
+pkgver=0.26
+pkgrel=1
+pkgdesc='Merging locate/updatedb implementation'
+url='https://fedorahosted.org/mlocate/'
arch=('i686' 'x86_64')
-url="http://carolina.mff.cuni.cz/~trmac/blog/mlocate"
license=('GPL')
-depends=('glibc' 'coreutils' 'sh')
backup=('etc/updatedb.conf'
'etc/cron.daily/updatedb')
-source=(https://fedorahosted.org/releases/m/l/mlocate/mlocate-$pkgver.tar.xz
- updatedb.conf
- updatedb.cron.daily)
-md5sums=('c6d043b170613b0e327a815b497f680a'
- 'b56d81de17fe29b01b4b28861acb8fd4'
- 'cde5da81bebad2de556ef2e43d895e13')
+source=("https://fedorahosted.org/releases/m/l/mlocate/mlocate-${pkgver}.tar.xz"
+ 'updatedb.conf'
+ 'updatedb.cron')
+sha1sums=('c6e6d81b25359c51c545f4b8ba0f3b469227fcbc'
+ '0150379149bf9d714bc81332d775fc273e7e3535'
+ '8301e6277d27db539af6cf4bc243e8e247bffc2e')
build() {
- cd $srcdir/$pkgname-$pkgver
-
- sed -i '/^groupname /s/mlocate/locate/' Makefile.in
- ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib
- make
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ sed -i '/^groupname /s/mlocate/locate/' Makefile.in
+ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib
+ make
}
check() {
- cd $srcdir/$pkgname-$pkgver
- make check
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make check
}
package() {
- cd $srcdir/$pkgname-$pkgver
+ cd "${srcdir}/${pkgname}-${pkgver}"
- make DESTDIR=$pkgdir install
+ make DESTDIR="${pkgdir}" install
- ln -s locate $pkgdir/usr/bin/slocate
- chgrp 21 $pkgdir/usr/bin/locate
- chmod 2755 $pkgdir/usr/bin/locate
+ chgrp 21 "${pkgdir}/usr/bin/locate"
+ chmod 2755 "${pkgdir}/usr/bin/locate"
+ ln -s locate "${pkgdir}/usr/bin/slocate"
- install -dm755 $pkgdir/var/lib
- install -dm750 -g21 $pkgdir/var/lib/locate
-
- # Set up a default updatedb.conf and a daily cronjob
- install -Dm644 ${srcdir}/updatedb.conf $pkgdir/etc/updatedb.conf
- install -Dm744 ${srcdir}/updatedb.cron.daily $pkgdir/etc/cron.daily/updatedb
+ install -dm755 "${pkgdir}/var/lib"
+ install -dm750 -g21 "${pkgdir}/var/lib/locate"
+
+ install -Dm644 ../updatedb.conf "${pkgdir}/etc/updatedb.conf"
+ install -Dm744 ../updatedb.cron "${pkgdir}/etc/cron.daily/updatedb"
}
diff --git a/testing/mlocate/updatedb.cron b/testing/mlocate/updatedb.cron
new file mode 100755
index 000000000..431cb533e
--- /dev/null
+++ b/testing/mlocate/updatedb.cron
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+NICE='nice -n 19'
+IONICE='ionice -c 2 -n 7'
+
+exec ${IONICE} ${NICE} updatedb -f proc