diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-01-29 02:53:24 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-01-29 02:53:24 +0000 |
commit | b8ec9071f5d20d8518b02d0077428b2c9f88861b (patch) | |
tree | 6214c0d63a2bd5ae464941924a90f415687fa63c /sys-apps/plocate | |
parent | bdf6e70da7a28f45617c02a251bb6b3844202bc5 (diff) |
gentoo auto-resync : 29:01:2023 - 02:53:24
Diffstat (limited to 'sys-apps/plocate')
-rw-r--r-- | sys-apps/plocate/Manifest | 2 | ||||
-rw-r--r-- | sys-apps/plocate/plocate-1.1.18.ebuild | 86 |
2 files changed, 88 insertions, 0 deletions
diff --git a/sys-apps/plocate/Manifest b/sys-apps/plocate/Manifest index 84de85221460..b94cf773bfca 100644 --- a/sys-apps/plocate/Manifest +++ b/sys-apps/plocate/Manifest @@ -3,5 +3,7 @@ AUX plocate-cron.conf 237 BLAKE2B 531d6461309b520db31ab8f682ebbe56f2cd425222ebbc AUX plocate.cron 1392 BLAKE2B 89f7eb05879c0c1a6c30376d36dc469dde0b94df3758ae659012cf9fb6e9fb2783a0d8e53ea5f79d99e2f00be72ef24a254f2d91038a30dc9e19cd2b250782f9 SHA512 b15583e98e253c2fcb658bd9c1c589bacddb8b033eb565333d9f990b1fd320fcfbe1d950657c8b5823d4cb034ccad369bdd2178ef955e42aa9c2f8e8a0268b3f AUX updatedb.conf 898 BLAKE2B de832ebc92e103ccaf8923b2eb872ad8e1ef36be2dfaa463a054e3e9fc256102db676ab0568501b695d943fcb74ae6ab01585bf7301cc6aa9ce6d709cc1690b5 SHA512 8b0b32e949636aef46c5439b0c963cc113306cedb1e5c84dbbfa2efba6562ca6dd602fdbfa0b3bc9095b0cf30a619ebb366535406cdb461f20d012ec1af7ff9d DIST plocate-1.1.17.tar.gz 73528 BLAKE2B b5694c3669a9717a9410093b1fba2eef029550989ffcbf9b6e7b48cc715c215b909c140cd98d47d30d31ccb6e04fd54e9b565bc8e16c1d9901ccf82a906de311 SHA512 36fa7ad01b5136ce75aad56d154cac511f2f4952a52ef2f16143e46b65a8b129e9011dbdd66d80a0288ef15291864cef0e51d26181b966a2f67b5e4f9fc42c7d +DIST plocate-1.1.18.tar.gz 73906 BLAKE2B 60f11df992c2865259c2c9cfda033b1b303738c19cc7ffa8a885bbc6fd26140263c7fe31acb2541fe9b298034d28a719935580561c7d4e88c564fa0e74eeccbe SHA512 da059980472df2269139a5b71d34579e239365714d54dfa2af68276c6e28178602eda302d2ec39cb7e5e07312019425159048047ddfc08bd3266e3bf7972d1c6 EBUILD plocate-1.1.17.ebuild 2195 BLAKE2B 990070bd488c31df7be758e359f092a52701b76846a3ccd009b6d95ac686936af6e05bce7ee04dac945f8237d8035ba836040609912ce31569e22bc7c26e4da0 SHA512 3d0416e8ed8e6ce74e7518a11076c7cfb64ccd15c0d7cf67462d6643420753671812dc834652bedd56e79e4383ebfa8dfdfdacc9b1f1bc8cdccee4bf16be9b47 +EBUILD plocate-1.1.18.ebuild 2196 BLAKE2B c225c730c52b6a052dd8043f4008306672bfe4d297f9b5c13409427ae64a154803594df968dbc0f8813f230c9350fb2cdb89f294e8d0b5e56ca9ec49df33629b SHA512 8f46d0e1ffaf18db4c240408e8566cb99b29749e413ccc8db1d7f9fc1a939988c35e7dd7411f0baa1556b10a0901f60448a602f6b70122e21297cc94dd126222 MISC metadata.xml 1424 BLAKE2B c0120cd8ebfe537535ef4c9d1c0af50782a8f70f5be649ea732d7196fa7c04cb3cd5eb88635ad1d8296a16ff0eaacce402024f3dd921b1b0d0aa5512f4ffe692 SHA512 633c882489bd93a3c5f1fce385e7957589e99e58185ff751fe2f0e06a49a82f6cafc9a0b490a7dbb3a3761d24904f9e360b53369b341cb65b2a58dac28e5d0e8 diff --git a/sys-apps/plocate/plocate-1.1.18.ebuild b/sys-apps/plocate/plocate-1.1.18.ebuild new file mode 100644 index 000000000000..d232fce2fe29 --- /dev/null +++ b/sys-apps/plocate/plocate-1.1.18.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit linux-info meson systemd + +DESCRIPTION="Posting locate is a much faster locate" +HOMEPAGE="https://plocate.sesse.net/" +SRC_URI="https://plocate.sesse.net/download/${P}.tar.gz" + +# GPL-2 for updatedb +# GPL-2+ for plocate itself +LICENSE="GPL-2 GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +IUSE="+io-uring" + +RDEPEND=" + acct-group/locate + app-arch/zstd:= + io-uring? ( sys-libs/liburing:= ) + !sys-apps/mlocate +" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-1.1.15-meson-use-feature-option-for-libiouring.patch +) + +pkg_setup() { + if use io-uring && linux_config_exists; then + if ! linux_chkconfig_present IO_URING; then + ewarn "CONFIG_IO_URING must be enabled for USE=io-uring" + fi + fi +} + +src_prepare() { + # We'll install the manpage ourself to locate.1 + sed -i "/install_man('plocate.1')/d" meson.build || die + + default +} + +src_configure() { + local emesonargs=( + -Dlocategroup=locate + -Dinstall_systemd=true + -Dinstall_cron=false + -Dsystemunitdir="$(systemd_get_systemunitdir)" + "$(meson_feature io-uring use_libiouring)" + ) + meson_src_configure +} + +src_install() { + meson_src_install + dodoc README NEWS + newman "${S}"/${PN}.1 locate.1 + dosym plocate /usr/bin/locate + + insinto /etc + doins "${FILESDIR}"/updatedb.conf + doins "${FILESDIR}"/plocate-cron.conf + fperms 0644 /etc/{updatedb,plocate-cron}.conf + + insinto /etc/cron.daily + # Ensure that the cron file has the same name as the + # systemd-timer, to avoid plocate being run twice daily on systems + # with a systemd compatiblity layer. See also bug #780351. + newins "${FILESDIR}"/plocate.cron plocate-updatedb + fperms 0755 /etc/cron.daily/plocate-updatedb + + systemd_dounit "${BUILD_DIR}"/${PN}-updatedb.service "${S}"/${PN}-updatedb.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 ${EROOT}/etc/updatedb.conf file is generic," + elog "please customize it to your system requirements." + fi +} |