summaryrefslogtreecommitdiffstats
path: root/mlocate
diff options
context:
space:
mode:
authorLukc <lukc@upyum.com>2010-12-11 19:15:23 +0100
committerLukc <lukc@upyum.com>2010-12-11 19:15:35 +0100
commit6d908a38e05b9d4135c65d23114a5874215b5bb8 (patch)
treeb5e6da6d95b9a1235d82032b509b80483a886ff5 /mlocate
downloadbase-6d908a38e05b9d4135c65d23114a5874215b5bb8.tar.gz
base-6d908a38e05b9d4135c65d23114a5874215b5bb8.tar.bz2
base-6d908a38e05b9d4135c65d23114a5874215b5bb8.tar.xz
base-6d908a38e05b9d4135c65d23114a5874215b5bb8.zip
Engagement initial.
Diffstat (limited to 'mlocate')
-rw-r--r--mlocate/.footprint20
-rw-r--r--mlocate/.md5sum3
-rw-r--r--mlocate/Pkgfile19
-rw-r--r--mlocate/Pkgfile.old24
-rw-r--r--mlocate/mlocate8
-rw-r--r--mlocate/updatedb.conf10
6 files changed, 84 insertions, 0 deletions
diff --git a/mlocate/.footprint b/mlocate/.footprint
new file mode 100644
index 0000000..5ffc811
--- /dev/null
+++ b/mlocate/.footprint
@@ -0,0 +1,20 @@
+drwxr-xr-x root/root etc/
+drwxr-xr-x root/root etc/cron/
+drwxr-xr-x root/root etc/cron/daily/
+-rwxr-xr-x root/root etc/cron/daily/mlocate
+-rw-r--r-- root/root etc/updatedb.conf
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-sr-x root/mlocate usr/bin/locate
+-rwxr-xr-x root/root usr/bin/updatedb
+drwxr-xr-x root/root usr/man/
+drwxr-xr-x root/root usr/man/man1/
+-rw-r--r-- root/root usr/man/man1/locate.1.gz
+drwxr-xr-x root/root usr/man/man5/
+-rw-r--r-- root/root usr/man/man5/mlocate.db.5.gz
+-rw-r--r-- root/root usr/man/man5/updatedb.conf.5.gz
+drwxr-xr-x root/root usr/man/man8/
+-rw-r--r-- root/root usr/man/man8/updatedb.8.gz
+drwxr-xr-x root/root var/
+drwxr-xr-x root/root var/lib/
+drwxr-x--- root/mlocate var/lib/mlocate/
diff --git a/mlocate/.md5sum b/mlocate/.md5sum
new file mode 100644
index 0000000..decfb45
--- /dev/null
+++ b/mlocate/.md5sum
@@ -0,0 +1,3 @@
+7d67badc004a8ade29648c8449b479e4 mlocate
+db48f27fae91c754c46d8046919803c5 mlocate-0.23.1.tar.xz
+ba81e63d0d15d630e5feaecb066b202c updatedb.conf
diff --git a/mlocate/Pkgfile b/mlocate/Pkgfile
new file mode 100644
index 0000000..56f7f20
--- /dev/null
+++ b/mlocate/Pkgfile
@@ -0,0 +1,19 @@
+description="Fast merging drop-in replacement for slocate"
+packager=""
+maintainer="CRUX System Team, core-ports at crux dot nu"
+url="http://carolina.mff.cuni.cz/~trmac/blog/mlocate/"
+depends=()
+
+name=mlocate
+version=0.23.1
+release=1
+source=(https://fedorahosted.org/releases/m/l/mlocate/mlocate-0.23.1.tar.xz mlocate updatedb.conf)
+build ()
+{
+ cd $name-$version;
+ ./configure --prefix=/usr --mandir=/usr/man --sysconfdir=/etc --localstatedir=/var/lib --disable-nls;
+ make;
+ make DESTDIR=$PKG install;
+ install -D -m 0755 $SRC/mlocate $PKG/etc/cron/daily/mlocate;
+ install -m 0644 $SRC/updatedb.conf $PKG/etc
+}
diff --git a/mlocate/Pkgfile.old b/mlocate/Pkgfile.old
new file mode 100644
index 0000000..2e00076
--- /dev/null
+++ b/mlocate/Pkgfile.old
@@ -0,0 +1,24 @@
+# Description: Fast merging drop-in replacement for slocate
+# URL: http://carolina.mff.cuni.cz/~trmac/blog/mlocate/
+# Maintainer: CRUX System Team, core-ports at crux dot nu
+
+name=mlocate
+version=0.23.1
+release=1
+source=(https://fedorahosted.org/releases/m/l/$name/$name-$version.tar.xz \
+ mlocate updatedb.conf)
+
+build() {
+ cd $name-$version
+
+ ./configure --prefix=/usr \
+ --mandir=/usr/man \
+ --sysconfdir=/etc \
+ --localstatedir=/var/lib \
+ --disable-nls
+ make
+ make DESTDIR=$PKG install
+
+ install -D -m 0755 $SRC/mlocate $PKG/etc/cron/daily/mlocate
+ install -m 0644 $SRC/updatedb.conf $PKG/etc
+}
diff --git a/mlocate/mlocate b/mlocate/mlocate
new file mode 100644
index 0000000..8988e89
--- /dev/null
+++ b/mlocate/mlocate
@@ -0,0 +1,8 @@
+#!/bin/sh
+#
+# /etc/cron/daily/mlocate: update the mlocate database
+#
+
+/usr/bin/updatedb
+
+# End of file
diff --git a/mlocate/updatedb.conf b/mlocate/updatedb.conf
new file mode 100644
index 0000000..0b2ab92
--- /dev/null
+++ b/mlocate/updatedb.conf
@@ -0,0 +1,10 @@
+#
+# /etc/updatedb.conf
+#
+# configuration file for updatedb(8), see updatedb.conf(5)
+
+PRUNEFS="nfs nfs4 afs proc smbfs cifs autofs auto iso9660 sshfs sysfs usbfs tmpfs"
+PRUNENAMES=".git .svn .hg .bzr _darcs CVS RCS"
+PRUNEPATHS="/tmp /mnt /var/cache /var/lock /var/run /var/spool /var/tmp"
+
+# End of file