aboutsummaryrefslogtreecommitdiff
path: root/extra/mlocate
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2019-12-17 01:06:33 +0300
committerCem Keylan <cem@ckyln.com>2019-12-17 01:06:33 +0300
commit0124c81db637ae1af5ea628748cfa3d8c6069cde (patch)
treedd7cdc80df4fa5514ef337d4a0f489c4735032d2 /extra/mlocate
parentdfb5a2bd511d63d67a0fa73f2deb2abfd0d52960 (diff)
downloadrepository-0124c81db637ae1af5ea628748cfa3d8c6069cde.tar.gz
mlocate: move to extra
Diffstat (limited to 'extra/mlocate')
-rwxr-xr-xextra/mlocate/build9
-rw-r--r--extra/mlocate/checksums1
-rwxr-xr-xextra/mlocate/post-install19
-rw-r--r--extra/mlocate/sources1
-rw-r--r--extra/mlocate/version1
5 files changed, 31 insertions, 0 deletions
diff --git a/extra/mlocate/build b/extra/mlocate/build
new file mode 100755
index 00000000..e641b74d
--- /dev/null
+++ b/extra/mlocate/build
@@ -0,0 +1,9 @@
+#!/bin/sh -e
+
+./configure \
+ --prefix=/usr \
+ --disable-nls
+
+make
+
+make DESTDIR="$1" install
diff --git a/extra/mlocate/checksums b/extra/mlocate/checksums
new file mode 100644
index 00000000..ad24726f
--- /dev/null
+++ b/extra/mlocate/checksums
@@ -0,0 +1 @@
+3063df79fe198fb9618e180c54baf3105b33d88fe602ff2d8570aaf944f1263e mlocate-0.26.tar.xz
diff --git a/extra/mlocate/post-install b/extra/mlocate/post-install
new file mode 100755
index 00000000..31c4d616
--- /dev/null
+++ b/extra/mlocate/post-install
@@ -0,0 +1,19 @@
+#!/bin/sh -e
+
+if grep -q mlocate /etc/group; then
+ echo "mlocate group already exists, skipping creation"
+else
+ echo "Creating mlocate group"
+ addgroup mlocate
+fi
+
+cat <<EOF
+
+NOTE: In order to use "locate" command without
+root priviliges add yourself to the
+
+ mlocate
+
+group.
+
+EOF
diff --git a/extra/mlocate/sources b/extra/mlocate/sources
new file mode 100644
index 00000000..c3089b62
--- /dev/null
+++ b/extra/mlocate/sources
@@ -0,0 +1 @@
+http://releases.pagure.org/mlocate/mlocate-0.26.tar.xz
diff --git a/extra/mlocate/version b/extra/mlocate/version
new file mode 100644
index 00000000..f718ec45
--- /dev/null
+++ b/extra/mlocate/version
@@ -0,0 +1 @@
+0.26 1