From 3abc405e1d92653b975827b550b521e387f63563 Mon Sep 17 00:00:00 2001 From: milisman Date: Mon, 13 Feb 2017 13:38:29 +0200 Subject: [PATCH] mlocate.paketlendi --- talimatname/genel/mlocate/talimat | 28 +++++++++++++++++++++++++ talimatname/genel/mlocate/updatedb.conf | 4 ++++ 2 files changed, 32 insertions(+) create mode 100644 talimatname/genel/mlocate/talimat create mode 100644 talimatname/genel/mlocate/updatedb.conf diff --git a/talimatname/genel/mlocate/talimat b/talimatname/genel/mlocate/talimat new file mode 100644 index 000000000..da1442e2f --- /dev/null +++ b/talimatname/genel/mlocate/talimat @@ -0,0 +1,28 @@ +# Description= locate/updatedb birleştirilmiş uygulaması +# Url= https://fedorahosted.org/mlocate/ +# Packager: milisarge +# Depends on: + +name=mlocate +version=0.26 +release=1 + +source=(https://fedorahosted.org/releases/m/l/mlocate/mlocate-${version}.tar.xz + updatedb.conf) + +build() { + cd ${name}-$version + sed -i '/^groupname /s/mlocate/locate/' Makefile.in + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib + make + make DESTDIR="${PKG}" install + + chgrp 21 "${PKG}/usr/bin/locate" + chmod 2755 "${PKG}/usr/bin/locate" + ln -s locate "${PKG}/usr/bin/slocate" + + install -dm755 "${PKG}/var/lib" + install -dm750 -g21 "${PKG}/var/lib/locate" + + install -Dm644 ../updatedb.conf "${PKG}/etc/updatedb.conf" +} diff --git a/talimatname/genel/mlocate/updatedb.conf b/talimatname/genel/mlocate/updatedb.conf new file mode 100644 index 000000000..633c17482 --- /dev/null +++ b/talimatname/genel/mlocate/updatedb.conf @@ -0,0 +1,4 @@ +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"