diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-04-25 11:37:10 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-04-25 11:37:10 +0100 |
commit | 38423c67c8a23f6a1bc42038193182e2da3116eb (patch) | |
tree | 04e2cf4bd43601b77daa79fe654e409187093c5e /sys-apps/mlocate | |
parent | 623ee73d661e5ed8475cb264511f683407d87365 (diff) |
gentoo resync : 25.04.2020
Diffstat (limited to 'sys-apps/mlocate')
-rw-r--r-- | sys-apps/mlocate/Manifest | 3 | ||||
-rw-r--r-- | sys-apps/mlocate/files/updatedb.service | 7 | ||||
-rw-r--r-- | sys-apps/mlocate/files/updatedb.timer | 10 | ||||
-rw-r--r-- | sys-apps/mlocate/mlocate-0.26-r3.ebuild | 63 |
4 files changed, 83 insertions, 0 deletions
diff --git a/sys-apps/mlocate/Manifest b/sys-apps/mlocate/Manifest index 3a0427d39fcb..2b13987e908e 100644 --- a/sys-apps/mlocate/Manifest +++ b/sys-apps/mlocate/Manifest @@ -1,6 +1,9 @@ AUX mlocate-cron.conf 237 BLAKE2B 531d6461309b520db31ab8f682ebbe56f2cd425222ebbc16a4662b606f5a0c6c62e4b1475a02ec3f244dde1ff73fe0ad16e0850aec53e6e8836fd0ba1273ad07 SHA512 ab055b052980783b5c63c716d7c12dcb19961a9f990c077e4f8c9bef4ca591bd281ac3941f872659a558a18b81c014dbc0655ff0a1872310670d8efc1d27cb00 AUX mlocate.cron-r3 1389 BLAKE2B 678aa37c9a092d0caccca9279f6d75aa1c23a39a36bdf2006ff0c64009a783a302eaae148d9bd88ea49af44647f64ede301e131f586e77381cac314eaa808a68 SHA512 20a25a7f83886a43cb61599a65ae78170d1b5cececc953117986d27cbfb6707cbf3613b569e0bc24ce6416ce1f2cc792dd5968f0e1bf3a7a6ae72c4e10b638c2 AUX updatedb.conf 898 BLAKE2B de832ebc92e103ccaf8923b2eb872ad8e1ef36be2dfaa463a054e3e9fc256102db676ab0568501b695d943fcb74ae6ab01585bf7301cc6aa9ce6d709cc1690b5 SHA512 8b0b32e949636aef46c5439b0c963cc113306cedb1e5c84dbbfa2efba6562ca6dd602fdbfa0b3bc9095b0cf30a619ebb366535406cdb461f20d012ec1af7ff9d +AUX updatedb.service 117 BLAKE2B 9e85da639464d8b9655ed86a535d19b38329118443c2cf1c0aa76a4f2d3c0dfc412a0a3a6c61ce2f31c659f2fcfba60773aa69389b6d05f66f686bbd57eb9ac2 SHA512 1d7bb023ac05f4054f35168a304e27dae53169b8e7fee325be7bb2fb99d1d71c23d251ba3cce6afce450dfa999cc4c7ab6d0d1454855ee6b6f821572bfbadc52 +AUX updatedb.timer 140 BLAKE2B e5c250a987428f3423eaeb2876d11fe82ba390082d43434cf6bf287e275f1960dbc81d818a994e0af428c0a13c98fa125f0f6cec261ce9cc2da8990da28f7dcb SHA512 5dce1b0096daf73753a3a6fb24f03a77ccab952363a1e6aee6fa1cdb067371b3ace7c909e5d0beee40a8f8ed9bb3c20d5fc47f2b8df254a69cee5db552d452ed DIST mlocate-0.26.tar.xz 359204 BLAKE2B 48ff448b0316169b35a3c421970b280632c4a056b7566d8fda7a2c3284ef46d3abaaa96e2411d9e408cc39466577a5bd3f8fde3376178e8b7bcc9e4e01997bd7 SHA512 b1207047e30a551cba39e70812439b554def567ebe9b8b81fed6f26435bb575beafe4875a21cd72876eadd85da4e7bfc942eb28b17c430b537c351690364837f EBUILD mlocate-0.26-r2.ebuild 1562 BLAKE2B 6114fce54e528534a815a94ef479516759a2f61eddbedad2afc0f076720785547a9875732a36e1efb64ecfb8c723fcacaaab223c02b1c3bcec02b24e462ceae4 SHA512 2b28c5d4dba3db6ec17fe3a6fded9bdefccf2e0ba79d6f70fb0ffb61351147e5310a4fb07c158b8d252e1e82e58629ed54e552a1e8d6d2bdffee896776bb5ddc +EBUILD mlocate-0.26-r3.ebuild 1593 BLAKE2B f7d6bb9e94f4abdb723152da0d473706cfe01a0090d9af930902bde4535b0ed4ac888558a85fedaa7d8019febb6f37cd8b616cf7564371431c0a7dc6392f9457 SHA512 9e94887eb8d7123f0babdd8ce7873c4cf829f6c6379b7ee1d702f842ee5d5f2f238b5f88bc1fcda22bade837f05d5d8ad286365bf7e0228739881216a51ff3d3 MISC metadata.xml 253 BLAKE2B 295e9d6d93aaa12af413972e1590c67087801cc09c9aa6b59d4606c0f4106d1dacf2baa9858559083b4c6d91beeef218d0729e8593a33788958da6d2897e8ce2 SHA512 54a9069aeb4165d2dff3d473c8001bc51613aac9dff3f7f5e9971a9891a737a31511ffa11cbd523febe581ac1d9de2bdf2f40410f0c4239138f2ccca3ef15555 diff --git a/sys-apps/mlocate/files/updatedb.service b/sys-apps/mlocate/files/updatedb.service new file mode 100644 index 000000000000..b1eef0b3c4f3 --- /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 000000000000..9418d244cd71 --- /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 000000000000..cc1d33e65831 --- /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 +} |