diff options
Diffstat (limited to 'testing/mlocate')
-rw-r--r-- | testing/mlocate/PKGBUILD | 49 | ||||
-rw-r--r-- | testing/mlocate/updatedb.conf | 4 | ||||
-rwxr-xr-x | testing/mlocate/updatedb.cron.daily | 29 |
3 files changed, 0 insertions, 82 deletions
diff --git a/testing/mlocate/PKGBUILD b/testing/mlocate/PKGBUILD deleted file mode 100644 index d4d79debd..000000000 --- a/testing/mlocate/PKGBUILD +++ /dev/null @@ -1,49 +0,0 @@ -# $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.26 -pkgrel=1 -pkgdesc='Merging locate/updatedb implementation' -url='https://fedorahosted.org/mlocate/' -arch=('i686' 'x86_64') -license=('GPL') -backup=('etc/updatedb.conf' - 'etc/cron.daily/updatedb') -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 -} - -check() { - cd "${srcdir}/${pkgname}-${pkgver}" - make check -} - -package() { - cd "${srcdir}/${pkgname}-${pkgver}" - - make DESTDIR="${pkgdir}" install - - 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" - - install -Dm644 ../updatedb.conf "${pkgdir}/etc/updatedb.conf" - install -Dm744 ../updatedb.cron "${pkgdir}/etc/cron.daily/updatedb" -} diff --git a/testing/mlocate/updatedb.conf b/testing/mlocate/updatedb.conf deleted file mode 100644 index 633c17482..000000000 --- a/testing/mlocate/updatedb.conf +++ /dev/null @@ -1,4 +0,0 @@ -PRUNE_BIND_MOUNTS = "yes" -PRUNEFS = "9p afs anon_inodefs auto autofs bdev binfmt_misc cgroup cifs coda configfs cpuset cramfs debugfs devpts devtmpfs ecryptfs exofs ftpfs fuse fuse.encfs fuse.sshfs fusectl gfs gfs2 hugetlbfs inotifyfs iso9660 jffs2 lustre mqueue ncpfs nfs nfs4 nfsd pipefs proc ramfs rootfs rpc_pipefs securityfs selinuxfs sfs shfs smbfs sockfs sshfs sysfs tmpfs ubifs udf usbfs vboxsf" -PRUNENAMES = ".git .hg .svn" -PRUNEPATHS = "/afs /media /mnt /net /sfs /tmp /udev /var/cache /var/lib/pacman/local /var/lock /var/run /var/spool /var/tmp" diff --git a/testing/mlocate/updatedb.cron.daily b/testing/mlocate/updatedb.cron.daily deleted file mode 100755 index cac9bb063..000000000 --- a/testing/mlocate/updatedb.cron.daily +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -# nicenesses range from -20 (most favorable scheduling) to 19 (least favorable) -NICE=19 - -# 0 for none, 1 for real time, 2 for best-effort, 3 for idle -IONICE_CLASS=2 - -# 0-7 (for IONICE_CLASS 1 and 2 only), 0=highest, 7=lowest -IONICE_PRIORITY=7 - -UPDATEDB="/usr/bin/updatedb" - -if [ -x /usr/bin/nice ]; then - UPDATEDB="/usr/bin/nice -n ${NICE:-19} ${UPDATEDB}" -fi - -if [ -x /usr/bin/ionice ]; then - UPDATEDB="/usr/bin/ionice -c ${IONICE_CLASS:-2} -n ${IONICE_PRIORITY:-7} ${UPDATEDB}" -fi - -# Update the "locate" database -if [ -x /usr/bin/updatedb ]; then - if [ -f /etc/updatedb.conf ]; then - ${UPDATEDB} - else - ${UPDATEDB} -f proc - fi -fi |