[gentoo-commits] repo/gentoo:master commit in: sys-apps/mlocate/

2021-06-21 Thread Marek Szuba
commit: fc620963c8e5d367b4986cec5072e66504dc2973
Author: Marek Szuba  gentoo  org>
AuthorDate: Mon Jun 21 20:54:35 2021 +
Commit: Marek Szuba  gentoo  org>
CommitDate: Mon Jun 21 21:08:00 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc620963

sys-apps/mlocate: keyword 0.26-r3 for ~riscv

Builds, tests and installs fine.

Signed-off-by: Marek Szuba  gentoo.org>

 sys-apps/mlocate/mlocate-0.26-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-apps/mlocate/mlocate-0.26-r3.ebuild 
b/sys-apps/mlocate/mlocate-0.26-r3.ebuild
index d5874db84b7..84e6a485391 100644
--- a/sys-apps/mlocate/mlocate-0.26-r3.ebuild
+++ b/sys-apps/mlocate/mlocate-0.26-r3.ebuild
@@ -10,7 +10,7 @@ SRC_URI="http://releases.pagure.org/mlocate/${P}.tar.xz";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 sparc 
x86"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv 
~s390 sparc x86"
 IUSE="nls selinux"
 
 BDEPEND="



[gentoo-commits] repo/gentoo:master commit in: sys-apps/mlocate/

2021-05-14 Thread David Seifert
commit: 1b391ace053868f1b1c9e27c4ac2d7fad38ed54e
Author: David Seifert  gentoo  org>
AuthorDate: Fri May 14 22:13:01 2021 +
Commit: David Seifert  gentoo  org>
CommitDate: Fri May 14 22:13:01 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b391ace

sys-apps/mlocate: drop 0.26-r2

Signed-off-by: David Seifert  gentoo.org>

 sys-apps/mlocate/mlocate-0.26-r2.ebuild | 62 -
 1 file changed, 62 deletions(-)

diff --git a/sys-apps/mlocate/mlocate-0.26-r2.ebuild 
b/sys-apps/mlocate/mlocate-0.26-r2.ebuild
deleted file mode 100644
index adfc2fe43ab..000
--- a/sys-apps/mlocate/mlocate-0.26-r2.ebuild
+++ /dev/null
@@ -1,62 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-inherit user toolchain-funcs
-
-DESCRIPTION="Merging locate is an utility to index and quickly search for 
files"
-HOMEPAGE="https://pagure.io/mlocate";
-SRC_URI="http://releases.pagure.org/mlocate/${P}.tar.xz";
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 sparc 
x86"
-IUSE="nls selinux"
-
-RDEPEND="!sys-apps/slocate
-   !sys-apps/rlocate
-   selinux? ( sec-policy/selinux-slocate )"
-DEPEND="app-arch/xz-utils
-   nls? ( sys-devel/gettext )
-"
-
-pkg_setup() {
-   enewgroup locate
-}
-
-src_configure() {
-   econf $(use_enable nls)
-}
-
-src_compile() {
-   emake groupname=locate AR="$(tc-getAR)"
-}
-
-src_install() {
-   emake groupname=locate DESTDIR="${D}" install
-   dodoc AUTHORS ChangeLog README NEWS
-
-   insinto /etc
-   doins "${FILESDIR}"/updatedb.conf
-   doins "${FILESDIR}"/mlocate-cron.conf
-   fperms 0644 /etc/{updatedb,mlocate-cron}.conf
-
-   insinto /etc/cron.daily
-   newins "${FILESDIR}"/mlocate.cron-r3 mlocate
-   fperms 0755 /etc/cron.daily/mlocate
-
-   fowners 0:locate /usr/bin/locate
-   fperms go-r,g+s /usr/bin/locate
-
-   keepdir /var/lib/mlocate
-   chown -R 0:locate "${ED}"/var/lib/mlocate
-   fperms 0750 /var/lib/mlocate
-}
-
-pkg_postinst() {
-   elog "The database for the locate command is generated daily by a cron 
job,"
-   elog "if you install for the first time you can run the updatedb 
command manually now."
-   elog
-   elog "Note that the /etc/updatedb.conf file is generic,"
-   elog "please customize it to your system requirements."
-}



[gentoo-commits] repo/gentoo:master commit in: sys-apps/mlocate/

2021-04-25 Thread Sam James
commit: 7ca998fd8d824934556abd03a7401d33c2018525
Author: Sam James  gentoo  org>
AuthorDate: Sun Apr 25 12:23:20 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Apr 25 12:23:20 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ca998fd

sys-apps/mlocate: Stabilize 0.26-r3 arm64, #784884

Signed-off-by: Sam James  gentoo.org>

 sys-apps/mlocate/mlocate-0.26-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-apps/mlocate/mlocate-0.26-r3.ebuild 
b/sys-apps/mlocate/mlocate-0.26-r3.ebuild
index fc115a43023..d5874db84b7 100644
--- a/sys-apps/mlocate/mlocate-0.26-r3.ebuild
+++ b/sys-apps/mlocate/mlocate-0.26-r3.ebuild
@@ -10,7 +10,7 @@ SRC_URI="http://releases.pagure.org/mlocate/${P}.tar.xz";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 
sparc x86"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 sparc 
x86"
 IUSE="nls selinux"
 
 BDEPEND="



[gentoo-commits] repo/gentoo:master commit in: sys-apps/mlocate/

2021-04-25 Thread Sam James
commit: 6dcb27e38769de917630b5b4798734047d60d3d4
Author: Sam James  gentoo  org>
AuthorDate: Sun Apr 25 10:32:39 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Apr 25 10:32:39 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6dcb27e3

sys-apps/mlocate: Stabilize 0.26-r3 arm, #784884

Signed-off-by: Sam James  gentoo.org>

 sys-apps/mlocate/mlocate-0.26-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-apps/mlocate/mlocate-0.26-r3.ebuild 
b/sys-apps/mlocate/mlocate-0.26-r3.ebuild
index 43675889854..fc115a43023 100644
--- a/sys-apps/mlocate/mlocate-0.26-r3.ebuild
+++ b/sys-apps/mlocate/mlocate-0.26-r3.ebuild
@@ -10,7 +10,7 @@ SRC_URI="http://releases.pagure.org/mlocate/${P}.tar.xz";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 
sparc x86"
+KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 
sparc x86"
 IUSE="nls selinux"
 
 BDEPEND="



[gentoo-commits] repo/gentoo:master commit in: sys-apps/mlocate/

2021-04-23 Thread Sam James
commit: 846fc4b2446399c2d3b71c708d90a0bd97aeccdb
Author: Sam James  gentoo  org>
AuthorDate: Fri Apr 23 16:13:23 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Apr 23 16:13:23 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=846fc4b2

sys-apps/mlocate: Stabilize 0.26-r3 x86, #784884

Signed-off-by: Sam James  gentoo.org>

 sys-apps/mlocate/mlocate-0.26-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-apps/mlocate/mlocate-0.26-r3.ebuild 
b/sys-apps/mlocate/mlocate-0.26-r3.ebuild
index 5acd21c39bb..43675889854 100644
--- a/sys-apps/mlocate/mlocate-0.26-r3.ebuild
+++ b/sys-apps/mlocate/mlocate-0.26-r3.ebuild
@@ -10,7 +10,7 @@ SRC_URI="http://releases.pagure.org/mlocate/${P}.tar.xz";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 
sparc ~x86"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 
sparc x86"
 IUSE="nls selinux"
 
 BDEPEND="



[gentoo-commits] repo/gentoo:master commit in: sys-apps/mlocate/

2021-04-22 Thread Sam James
commit: f5a5458ce7b85cca8212661a274a5444a1c82ff8
Author: Sam James  gentoo  org>
AuthorDate: Thu Apr 22 23:01:21 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Apr 22 23:01:21 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f5a5458c

sys-apps/mlocate: Stabilize 0.26-r3 ppc, #784884

Signed-off-by: Sam James  gentoo.org>

 sys-apps/mlocate/mlocate-0.26-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-apps/mlocate/mlocate-0.26-r3.ebuild 
b/sys-apps/mlocate/mlocate-0.26-r3.ebuild
index a182b4d8f64..5acd21c39bb 100644
--- a/sys-apps/mlocate/mlocate-0.26-r3.ebuild
+++ b/sys-apps/mlocate/mlocate-0.26-r3.ebuild
@@ -10,7 +10,7 @@ SRC_URI="http://releases.pagure.org/mlocate/${P}.tar.xz";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ppc64 ~s390 
sparc ~x86"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 
sparc ~x86"
 IUSE="nls selinux"
 
 BDEPEND="



[gentoo-commits] repo/gentoo:master commit in: sys-apps/mlocate/

2021-04-22 Thread Sam James
commit: 0516609b2d2c740b1aa314df443a14548c886be4
Author: Sam James  gentoo  org>
AuthorDate: Thu Apr 22 23:00:59 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Apr 22 23:00:59 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0516609b

sys-apps/mlocate: Stabilize 0.26-r3 ppc64, #784884

Signed-off-by: Sam James  gentoo.org>

 sys-apps/mlocate/mlocate-0.26-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-apps/mlocate/mlocate-0.26-r3.ebuild 
b/sys-apps/mlocate/mlocate-0.26-r3.ebuild
index ecbfbf98f8f..a182b4d8f64 100644
--- a/sys-apps/mlocate/mlocate-0.26-r3.ebuild
+++ b/sys-apps/mlocate/mlocate-0.26-r3.ebuild
@@ -10,7 +10,7 @@ SRC_URI="http://releases.pagure.org/mlocate/${P}.tar.xz";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 
sparc ~x86"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ppc64 ~s390 
sparc ~x86"
 IUSE="nls selinux"
 
 BDEPEND="



[gentoo-commits] repo/gentoo:master commit in: sys-apps/mlocate/

2021-04-22 Thread Sam James
commit: e1c4ff8877abbaa0f798991e1c321d6437da80da
Author: Sam James  gentoo  org>
AuthorDate: Thu Apr 22 20:13:00 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Apr 22 20:13:00 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1c4ff88

sys-apps/mlocate: Stabilize 0.26-r3 amd64, #784884

Signed-off-by: Sam James  gentoo.org>

 sys-apps/mlocate/mlocate-0.26-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-apps/mlocate/mlocate-0.26-r3.ebuild 
b/sys-apps/mlocate/mlocate-0.26-r3.ebuild
index 2d67aa5c5dc..ecbfbf98f8f 100644
--- a/sys-apps/mlocate/mlocate-0.26-r3.ebuild
+++ b/sys-apps/mlocate/mlocate-0.26-r3.ebuild
@@ -10,7 +10,7 @@ SRC_URI="http://releases.pagure.org/mlocate/${P}.tar.xz";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 
sparc ~x86"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 
sparc ~x86"
 IUSE="nls selinux"
 
 BDEPEND="



[gentoo-commits] repo/gentoo:master commit in: sys-apps/mlocate/

2021-04-22 Thread Sergei Trofimovich
commit: b95b581072c939e37392f689df7830c5a26c0018
Author: Rolf Eike Beer  sf-mail  de>
AuthorDate: Thu Apr 22 19:20:23 2021 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Thu Apr 22 19:30:49 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b95b5810

sys-apps/mlocate: stable 0.26-r3 for sparc, bug #784884

Package-Manager: Portage-3.0.17, Repoman-3.0.2
RepoMan-Options: --include-arches="sparc"
Signed-off-by: Rolf Eike Beer  sf-mail.de>
Signed-off-by: Sergei Trofimovich  gentoo.org>

 sys-apps/mlocate/mlocate-0.26-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-apps/mlocate/mlocate-0.26-r3.ebuild 
b/sys-apps/mlocate/mlocate-0.26-r3.ebuild
index 2adb75612c6..2d67aa5c5dc 100644
--- a/sys-apps/mlocate/mlocate-0.26-r3.ebuild
+++ b/sys-apps/mlocate/mlocate-0.26-r3.ebuild
@@ -10,7 +10,7 @@ SRC_URI="http://releases.pagure.org/mlocate/${P}.tar.xz";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 
~sparc ~x86"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 
sparc ~x86"
 IUSE="nls selinux"
 
 BDEPEND="



[gentoo-commits] repo/gentoo:master commit in: sys-apps/mlocate/

2021-04-21 Thread Sam James
commit: 3580d6f0dfd528ac067b1a63fda79220aed8ed0b
Author: Sam James  gentoo  org>
AuthorDate: Fri Apr 16 19:26:36 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Apr 21 19:01:31 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3580d6f0

sys-apps/mlocate: eutils--

Package-Manager: Portage-3.0.18-prefix, Repoman-3.0.3
Signed-off-by: Sam James  gentoo.org>

 sys-apps/mlocate/mlocate-0.26-r2.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys-apps/mlocate/mlocate-0.26-r2.ebuild 
b/sys-apps/mlocate/mlocate-0.26-r2.ebuild
index 904accc0a05..adfc2fe43ab 100644
--- a/sys-apps/mlocate/mlocate-0.26-r2.ebuild
+++ b/sys-apps/mlocate/mlocate-0.26-r2.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
-inherit eutils user toolchain-funcs
+inherit user toolchain-funcs
 
 DESCRIPTION="Merging locate is an utility to index and quickly search for 
files"
 HOMEPAGE="https://pagure.io/mlocate";



[gentoo-commits] repo/gentoo:master commit in: sys-apps/mlocate/

2021-04-16 Thread David Seifert
commit: f5d162ef2613b0173d86fff3aa8ab09d7d6ed1de
Author: Sam James  gentoo  org>
AuthorDate: Fri Apr 16 10:13:39 2021 +
Commit: David Seifert  gentoo  org>
CommitDate: Fri Apr 16 10:13:39 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f5d162ef

sys-apps/mlocate: eutils--

Signed-off-by: Sam James  gentoo.org>
Signed-off-by: David Seifert  gentoo.org>

 sys-apps/mlocate/mlocate-0.26-r3.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys-apps/mlocate/mlocate-0.26-r3.ebuild 
b/sys-apps/mlocate/mlocate-0.26-r3.ebuild
index cc1d33e6583..2adb75612c6 100644
--- a/sys-apps/mlocate/mlocate-0.26-r3.ebuild
+++ b/sys-apps/mlocate/mlocate-0.26-r3.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-inherit eutils systemd toolchain-funcs
+inherit systemd toolchain-funcs
 
 DESCRIPTION="Merging locate is an utility to index and quickly search for 
files"
 HOMEPAGE="https://pagure.io/mlocate";



[gentoo-commits] repo/gentoo:master commit in: sys-apps/mlocate/files/, sys-apps/mlocate/

2020-04-12 Thread Mike Gilbert
commit: 0af088b41c694fbfd94e1db51a9df836eda0f7fd
Author: Mike Gilbert  gentoo  org>
AuthorDate: Sun Apr 12 16:06:19 2020 +
Commit: Mike Gilbert  gentoo  org>
CommitDate: Sun Apr 12 16:17:13 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0af088b4

sys-apps/mlocate: modernize ebuild

- EAPI=7
- Depend on acct-group/locate
- Install systemd service/timer
- Remove unneeded fperms/chown
- Display postinst message on initial install only

Closes: https://bugs.gentoo.org/622236
Closes: https://bugs.gentoo.org/509994
Package-Manager: Portage-2.3.96_p4, Repoman-2.3.22_p1
Signed-off-by: Mike Gilbert  gentoo.org>

 sys-apps/mlocate/files/updatedb.service |  7 
 sys-apps/mlocate/files/updatedb.timer   | 10 ++
 sys-apps/mlocate/mlocate-0.26-r3.ebuild | 63 +
 3 files changed, 80 insertions(+)

diff --git a/sys-apps/mlocate/files/updatedb.service 
b/sys-apps/mlocate/files/updatedb.service
new file mode 100644
index 000..b1eef0b3c4f
--- /dev/null
+++ b/sys-apps/mlocate/files/updatedb.service
@@ -0,0 +1,7 @@
+[Unit]
+Description=Update locate database
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/updatedb
+IOSchedulingClass=idle

diff --git a/sys-apps/mlocate/files/updatedb.timer 
b/sys-apps/mlocate/files/updatedb.timer
new file mode 100644
index 000..9418d244cd7
--- /dev/null
+++ b/sys-apps/mlocate/files/updatedb.timer
@@ -0,0 +1,10 @@
+[Unit]
+Description=Daily locate database update
+
+[Timer]
+OnCalendar=daily
+AccuracySec=12h
+Persistent=true
+
+[Install]
+WantedBy=timers.target

diff --git a/sys-apps/mlocate/mlocate-0.26-r3.ebuild 
b/sys-apps/mlocate/mlocate-0.26-r3.ebuild
new file mode 100644
index 000..cc1d33e6583
--- /dev/null
+++ b/sys-apps/mlocate/mlocate-0.26-r3.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit eutils systemd toolchain-funcs
+
+DESCRIPTION="Merging locate is an utility to index and quickly search for 
files"
+HOMEPAGE="https://pagure.io/mlocate";
+SRC_URI="http://releases.pagure.org/mlocate/${P}.tar.xz";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 
~sparc ~x86"
+IUSE="nls selinux"
+
+BDEPEND="
+   acct-group/locate
+   nls? ( sys-devel/gettext )
+"
+RDEPEND="
+   acct-group/locate
+   !sys-apps/slocate
+   !sys-apps/rlocate
+   selinux? ( sec-policy/selinux-slocate )
+"
+
+src_configure() {
+   econf $(use_enable nls)
+}
+
+src_compile() {
+   emake groupname=locate AR="$(tc-getAR)"
+}
+
+src_install() {
+   emake groupname=locate DESTDIR="${D}" install
+   dodoc AUTHORS ChangeLog README NEWS
+
+   insinto /etc
+   doins "${FILESDIR}"/updatedb.conf
+   doins "${FILESDIR}"/mlocate-cron.conf
+   fperms 0644 /etc/{updatedb,mlocate-cron}.conf
+
+   insinto /etc/cron.daily
+   newins "${FILESDIR}"/mlocate.cron-r3 mlocate
+   fperms 0755 /etc/cron.daily/mlocate
+
+   keepdir /var/lib/mlocate
+   fowners 0:locate /var/lib/mlocate
+   fperms 0750 /var/lib/mlocate
+
+   systemd_dounit "${FILESDIR}"/updatedb.{service,timer}
+}
+
+pkg_postinst() {
+   if [[ -z ${REPLACING_VERSIONS} ]]; then
+   elog "The database for the locate command is generated daily by 
a cron job,"
+   elog "if you install for the first time you can run the 
updatedb command manually now."
+   elog
+   elog "Note that the /etc/updatedb.conf file is generic,"
+   elog "please customize it to your system requirements."
+   fi
+}



[gentoo-commits] repo/gentoo:master commit in: sys-apps/mlocate/

2019-04-20 Thread Aaron Bauman
commit: 37791c32f4eb0070068f27c8d910bcc3c6976c80
Author: Aaron Bauman  gentoo  org>
AuthorDate: Sat Apr 20 03:45:43 2019 +
Commit: Aaron Bauman  gentoo  org>
CommitDate: Sat Apr 20 03:47:57 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37791c32

sys-apps/mlocate: arm64 stable

Signed-off-by: Aaron Bauman  gentoo.org>

 sys-apps/mlocate/mlocate-0.26-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-apps/mlocate/mlocate-0.26-r2.ebuild 
b/sys-apps/mlocate/mlocate-0.26-r2.ebuild
index 5bc4fa3c0f6..3758e48512b 100644
--- a/sys-apps/mlocate/mlocate-0.26-r2.ebuild
+++ b/sys-apps/mlocate/mlocate-0.26-r2.ebuild
@@ -10,7 +10,7 @@ SRC_URI="http://releases.pagure.org/mlocate/${P}.tar.xz";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh 
sparc x86"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh 
sparc x86"
 IUSE="nls selinux"
 
 RDEPEND="!sys-apps/slocate



[gentoo-commits] repo/gentoo:master commit in: sys-apps/mlocate/

2017-02-23 Thread Lars Wendler
commit: f6e5876b7d2bbcf6ab592b089090096536e4e841
Author: Lars Wendler  gentoo  org>
AuthorDate: Thu Feb 23 12:18:57 2017 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Thu Feb 23 12:18:57 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6e5876b

sys-apps/mlocate: Changed HOMEPAGE from fedorahosted to pagure.

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 sys-apps/mlocate/mlocate-0.26-r2.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sys-apps/mlocate/mlocate-0.26-r2.ebuild 
b/sys-apps/mlocate/mlocate-0.26-r2.ebuild
index 5bad2ad512..af28bd8f8d 100644
--- a/sys-apps/mlocate/mlocate-0.26-r2.ebuild
+++ b/sys-apps/mlocate/mlocate-0.26-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -6,8 +6,8 @@ EAPI=5
 inherit eutils user toolchain-funcs
 
 DESCRIPTION="Merging locate is an utility to index and quickly search for 
files"
-HOMEPAGE="https://fedorahosted.org/mlocate/";
-SRC_URI="https://fedorahosted.org/releases/m/l/mlocate/${P}.tar.xz";
+HOMEPAGE="https://pagure.io/mlocate";
+SRC_URI="http://releases.pagure.org/mlocate/${P}.tar.xz";
 
 LICENSE="GPL-2"
 SLOT="0"



[gentoo-commits] repo/gentoo:master commit in: sys-apps/mlocate/

2016-12-12 Thread Lars Wendler
commit: d7d399dddad9d8f531068d235bc3c621bb226bff
Author: Lars Wendler  gentoo  org>
AuthorDate: Mon Dec 12 08:51:25 2016 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Mon Dec 12 08:51:25 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7d399dd

sys-apps/mlocate: Stable for all arches.

This is a minor yet important fix.

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 sys-apps/mlocate/mlocate-0.26-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-apps/mlocate/mlocate-0.26-r2.ebuild 
b/sys-apps/mlocate/mlocate-0.26-r2.ebuild
index efb764b..5bad2ad 100644
--- a/sys-apps/mlocate/mlocate-0.26-r2.ebuild
+++ b/sys-apps/mlocate/mlocate-0.26-r2.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://fedorahosted.org/releases/m/l/mlocate/${P}.tar.xz";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 
~sh ~sparc ~x86"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh 
sparc x86"
 IUSE="nls selinux"
 
 RDEPEND="!sys-apps/slocate



[gentoo-commits] repo/gentoo:master commit in: sys-apps/mlocate/files/, sys-apps/mlocate/

2016-12-12 Thread Lars Wendler
commit: 97a0d0ae0af66fc9dbe869678ddd2ff763329ea5
Author: Lars Wendler  gentoo  org>
AuthorDate: Mon Dec 12 08:52:36 2016 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Mon Dec 12 08:52:36 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97a0d0ae

sys-apps/mlocate: Removed old.

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 sys-apps/mlocate/files/mlocate.cron-r2  | 48 -
 sys-apps/mlocate/mlocate-0.26-r1.ebuild | 63 -
 2 files changed, 111 deletions(-)

diff --git a/sys-apps/mlocate/files/mlocate.cron-r2 
b/sys-apps/mlocate/files/mlocate.cron-r2
deleted file mode 100644
index cf42104..
--- a/sys-apps/mlocate/files/mlocate.cron-r2
+++ /dev/null
@@ -1,48 +0,0 @@
-#! /bin/sh
-set -e
-
-# check if we run on battery and if so then don't run
-if which on_ac_power >/dev/null 2>&1; then
-   ON_BATTERY=0
-   on_ac_power >/dev/null 2>&1 || ON_BATTERY=$?
-   if [ "${ON_BATTERY}" -eq 1 ]; then
-   exit 0
-   fi
-fi
-
-# check if we are already running (lockfile)
-LOCKFILE="/var/lock/mlocate.daily.lock"
-if [ -e "${LOCKFILE}" ]; then
-   echo >&2 "Warning: \"${LOCKFILE}\" already present, not running 
updatedb."
-   exit 1
-fi
-touch "${LOCKFILE}"
-# trap the lockfile only if we really run the updatedb
-trap "rm -f ${LOCKFILE}" EXIT
-
-# source the user specified variables
-if [ -f /etc/mlocate-cron.conf ]; then
-   . /etc/mlocate-cron.conf
-fi
-
-# check the config file
-NODEVS=""
-if [ ! -f /etc/updatedb.conf ]; then
-   NODEVS=$(awk '$1 == "nodev" && $2 != "rootfs" { print $2 }' 
/proc/filesystems)
-fi
-
-# alter the priority of the updatedb process
-if [ -x /usr/bin/renice ]; then
-   /usr/bin/renice +${NICE:-19} -p $$ > /dev/null 2>&1
-fi
-if [ -x /usr/bin/ionice ] && /usr/bin/ionice -c3 true 2>/dev/null; then
-   /usr/bin/ionice -c${IONICE_CLASS:-2} -n${IONICE_PRIORITY:-7} -p $$ > 
/dev/null 2>&1
-fi
-
-# run the updatedb if possible
-if [ -x /usr/bin/updatedb ]; then
-   /usr/bin/updatedb -f "${NODEVS}"
-else
-   echo >&2 "Warning: \"/usr/bin/updatedb\" is not executable, unable to 
run updatedb."
-   exit 0
-fi

diff --git a/sys-apps/mlocate/mlocate-0.26-r1.ebuild 
b/sys-apps/mlocate/mlocate-0.26-r1.ebuild
deleted file mode 100644
index a0895671..
--- a/sys-apps/mlocate/mlocate-0.26-r1.ebuild
+++ /dev/null
@@ -1,63 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=4
-inherit eutils user toolchain-funcs
-
-DESCRIPTION="Merging locate is an utility to index and quickly search for 
files"
-HOMEPAGE="https://fedorahosted.org/mlocate/";
-SRC_URI="https://fedorahosted.org/releases/m/l/mlocate/${P}.tar.xz";
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc 
x86"
-IUSE="nls selinux"
-
-RDEPEND="!sys-apps/slocate
-   !sys-apps/rlocate
-   selinux? ( sec-policy/selinux-slocate )"
-DEPEND="app-arch/xz-utils
-   nls? ( sys-devel/gettext )
-"
-
-pkg_setup() {
-   enewgroup locate
-}
-
-src_configure() {
-   econf $(use_enable nls)
-}
-
-src_compile() {
-   emake groupname=locate AR="$(tc-getAR)"
-}
-
-src_install() {
-   emake groupname=locate DESTDIR="${D}" install
-   dodoc AUTHORS ChangeLog README NEWS
-
-   insinto /etc
-   doins "${FILESDIR}"/updatedb.conf
-   doins "${FILESDIR}"/mlocate-cron.conf
-   fperms 0644 /etc/{updatedb,mlocate-cron}.conf
-
-   insinto /etc/cron.daily
-   newins "${FILESDIR}"/mlocate.cron-r2 mlocate
-   fperms 0755 /etc/cron.daily/mlocate
-
-   fowners 0:locate /usr/bin/locate
-   fperms go-r,g+s /usr/bin/locate
-
-   keepdir /var/lib/mlocate
-   chown -R 0:locate "${ED}"/var/lib/mlocate
-   fperms 0750 /var/lib/mlocate
-}
-
-pkg_postinst() {
-   elog "The database for the locate command is generated daily by a cron 
job,"
-   elog "if you install for the first time you can run the updatedb 
command manually now."
-   elog
-   elog "Note that the /etc/updatedb.conf file is generic,"
-   elog "please customize it to your system requirements."
-}



[gentoo-commits] repo/gentoo:master commit in: sys-apps/mlocate/files/, sys-apps/mlocate/

2016-12-12 Thread Lars Wendler
commit: 79fc4caa544234246e9040e0610137070618e4c0
Author: Azamat H. Hackimov  gmail  com>
AuthorDate: Mon Dec 12 06:50:37 2016 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Mon Dec 12 08:46:25 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79fc4caa

sys-apps/mlocate: Revbump - cleanup temporary files at cron.daily job

During updating database mlocate creates tmp-file. If daily cron job has failed
(for example, after reboot), tmp-files are left in disk.

Added rm command before updatedb to delete these orphained files.

Package-Manager: portage-2.3.0
Closes: https://github.com/gentoo/gentoo/pull/3096

 sys-apps/mlocate/files/mlocate.cron-r3  | 51 ++
 sys-apps/mlocate/mlocate-0.26-r2.ebuild | 63 +
 2 files changed, 114 insertions(+)

diff --git a/sys-apps/mlocate/files/mlocate.cron-r3 
b/sys-apps/mlocate/files/mlocate.cron-r3
new file mode 100644
index ..7f3252e
--- /dev/null
+++ b/sys-apps/mlocate/files/mlocate.cron-r3
@@ -0,0 +1,51 @@
+#! /bin/sh
+set -e
+
+# check if we run on battery and if so then don't run
+if which on_ac_power >/dev/null 2>&1; then
+   ON_BATTERY=0
+   on_ac_power >/dev/null 2>&1 || ON_BATTERY=$?
+   if [ "${ON_BATTERY}" -eq 1 ]; then
+   exit 0
+   fi
+fi
+
+# check if we are already running (lockfile)
+LOCKFILE="/var/lock/mlocate.daily.lock"
+if [ -e "${LOCKFILE}" ]; then
+   echo >&2 "Warning: \"${LOCKFILE}\" already present, not running 
updatedb."
+   exit 1
+fi
+touch "${LOCKFILE}"
+# trap the lockfile only if we really run the updatedb
+trap "rm -f ${LOCKFILE}" EXIT
+
+# source the user specified variables
+if [ -f /etc/mlocate-cron.conf ]; then
+   . /etc/mlocate-cron.conf
+fi
+
+# check the config file
+NODEVS=""
+if [ ! -f /etc/updatedb.conf ]; then
+   NODEVS=$(awk '$1 == "nodev" && $2 != "rootfs" { print $2 }' 
/proc/filesystems)
+fi
+
+# alter the priority of the updatedb process
+if [ -x /usr/bin/renice ]; then
+   /usr/bin/renice +${NICE:-19} -p $$ > /dev/null 2>&1
+fi
+if [ -x /usr/bin/ionice ] && /usr/bin/ionice -c3 true 2>/dev/null; then
+   /usr/bin/ionice -c${IONICE_CLASS:-2} -n${IONICE_PRIORITY:-7} -p $$ > 
/dev/null 2>&1
+fi
+
+# Cleanup old temp files from previous unsuccessful runs
+rm -f /var/lib/mlocate/mlocate.db.*
+
+# run the updatedb if possible
+if [ -x /usr/bin/updatedb ]; then
+   /usr/bin/updatedb -f "${NODEVS}"
+else
+   echo >&2 "Warning: \"/usr/bin/updatedb\" is not executable, unable to 
run updatedb."
+   exit 0
+fi

diff --git a/sys-apps/mlocate/mlocate-0.26-r2.ebuild 
b/sys-apps/mlocate/mlocate-0.26-r2.ebuild
new file mode 100644
index ..efb764b
--- /dev/null
+++ b/sys-apps/mlocate/mlocate-0.26-r2.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils user toolchain-funcs
+
+DESCRIPTION="Merging locate is an utility to index and quickly search for 
files"
+HOMEPAGE="https://fedorahosted.org/mlocate/";
+SRC_URI="https://fedorahosted.org/releases/m/l/mlocate/${P}.tar.xz";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 
~sh ~sparc ~x86"
+IUSE="nls selinux"
+
+RDEPEND="!sys-apps/slocate
+   !sys-apps/rlocate
+   selinux? ( sec-policy/selinux-slocate )"
+DEPEND="app-arch/xz-utils
+   nls? ( sys-devel/gettext )
+"
+
+pkg_setup() {
+   enewgroup locate
+}
+
+src_configure() {
+   econf $(use_enable nls)
+}
+
+src_compile() {
+   emake groupname=locate AR="$(tc-getAR)"
+}
+
+src_install() {
+   emake groupname=locate DESTDIR="${D}" install
+   dodoc AUTHORS ChangeLog README NEWS
+
+   insinto /etc
+   doins "${FILESDIR}"/updatedb.conf
+   doins "${FILESDIR}"/mlocate-cron.conf
+   fperms 0644 /etc/{updatedb,mlocate-cron}.conf
+
+   insinto /etc/cron.daily
+   newins "${FILESDIR}"/mlocate.cron-r3 mlocate
+   fperms 0755 /etc/cron.daily/mlocate
+
+   fowners 0:locate /usr/bin/locate
+   fperms go-r,g+s /usr/bin/locate
+
+   keepdir /var/lib/mlocate
+   chown -R 0:locate "${ED}"/var/lib/mlocate
+   fperms 0750 /var/lib/mlocate
+}
+
+pkg_postinst() {
+   elog "The database for the locate command is generated daily by a cron 
job,"
+   elog "if you install for the first time you can run the updatedb 
command manually now."
+   elog
+   elog "Note that the /etc/updatedb.conf file is generic,"
+   elog "please customize it to your system requirements."
+}



[gentoo-commits] repo/gentoo:master commit in: sys-apps/mlocate/

2016-05-28 Thread Pacho Ramos
commit: d751f2df388ddf190853ae9820e8d67c3090d071
Author: Pacho Ramos  gentoo  org>
AuthorDate: Sat May 28 09:29:03 2016 +
Commit: Pacho Ramos  gentoo  org>
CommitDate: Sat May 28 09:31:31 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d751f2df

sys-apps/mlocate: Cleanup due to #148577

Package-Manager: portage-2.3.0_rc1

 sys-apps/mlocate/metadata.xml | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/sys-apps/mlocate/metadata.xml b/sys-apps/mlocate/metadata.xml
index 95ba8d7..56c1244 100644
--- a/sys-apps/mlocate/metadata.xml
+++ b/sys-apps/mlocate/metadata.xml
@@ -1,9 +1,6 @@
 
 http://www.gentoo.org/dtd/metadata.dtd";>
 
-
-   fa...@gentoo.org
-
 
base-sys...@gentoo.org
Gentoo Base System



[gentoo-commits] repo/gentoo:master commit in: sys-apps/mlocate/

2016-02-27 Thread Stephen Klimaszewski
commit: 1d80cb40744deab7f6035b3e85e36fa69bb2cbb3
Author: Steev Klimaszewski  gentoo  org>
AuthorDate: Sat Feb 27 18:44:39 2016 +
Commit: Stephen Klimaszewski  gentoo  org>
CommitDate: Sat Feb 27 18:44:39 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d80cb40

sys-apps/mlocate: add ~arm64 keyword

Tested on X-C1

Package-Manager: portage-2.2.27

 sys-apps/mlocate/mlocate-0.26-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys-apps/mlocate/mlocate-0.26-r1.ebuild 
b/sys-apps/mlocate/mlocate-0.26-r1.ebuild
index 41bf8df..a089567 100644
--- a/sys-apps/mlocate/mlocate-0.26-r1.ebuild
+++ b/sys-apps/mlocate/mlocate-0.26-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -11,7 +11,7 @@ 
SRC_URI="https://fedorahosted.org/releases/m/l/mlocate/${P}.tar.xz";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc 
x86"
 IUSE="nls selinux"
 
 RDEPEND="!sys-apps/slocate



[gentoo-commits] repo/gentoo:master commit in: sys-apps/mlocate/files/

2015-09-04 Thread Mike Frysinger
commit: 401cbc5c998ed65d8421cae8f2a0c39ca798a626
Author: Mike Frysinger  gentoo  org>
AuthorDate: Sat Sep  5 00:21:49 2015 +
Commit: Mike Frysinger  gentoo  org>
CommitDate: Sat Sep  5 00:21:55 2015 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=401cbc5c

sys-apps/mlocate: tweak cronjob syntax slightly #559568

These two forms are the same, but hopefully people don't get confused
by the explicit filename passing to awk.

 sys-apps/mlocate/files/mlocate.cron-r2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-apps/mlocate/files/mlocate.cron-r2 
b/sys-apps/mlocate/files/mlocate.cron-r2
index 51cb504..cf42104 100644
--- a/sys-apps/mlocate/files/mlocate.cron-r2
+++ b/sys-apps/mlocate/files/mlocate.cron-r2
@@ -28,7 +28,7 @@ fi
 # check the config file
 NODEVS=""
 if [ ! -f /etc/updatedb.conf ]; then
-   NODEVS=$(< /proc/filesystems awk '$1 == "nodev" && $2 != "rootfs" { 
print $2 }')
+   NODEVS=$(awk '$1 == "nodev" && $2 != "rootfs" { print $2 }' 
/proc/filesystems)
 fi
 
 # alter the priority of the updatedb process