From bc1fb652f17804d50f8ec974cf6854b63e513ac3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arsen=20Arsenovi=C4=87?= Date: Wed, 3 Mar 2021 20:51:37 +0100 Subject: [PATCH 1/4] sys-apps/plocate: add plocate to package tree MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Arsen Arsenović --- sys-apps/plocate/Manifest | 1 + sys-apps/plocate/metadata.xml | 14 +++++++++++ sys-apps/plocate/plocate-1.1.5.ebuild | 36 +++++++++++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 sys-apps/plocate/Manifest create mode 100644 sys-apps/plocate/metadata.xml create mode 100644 sys-apps/plocate/plocate-1.1.5.ebuild diff --git a/sys-apps/plocate/Manifest b/sys-apps/plocate/Manifest new file mode 100644 index 0000000000..17237dc8ed --- /dev/null +++ b/sys-apps/plocate/Manifest @@ -0,0 +1 @@ +DIST plocate-1.1.5.tar.gz 69090 BLAKE2B 70b398eb1a5d7b36294188966ef5f46843d9db9f41021a294d88795944412b4ef3819771082955a74a9945296fa14c59461a4ab4af197691f7085a40eeb7f0ef SHA512 6169ea7b3587e12e555a42e0c70e149626810f5e6f9f1f03ca1b069d7892d45bc52cabf072324eaa6f14055943dd680a71642914c0218a770e2b00a22c75efbc diff --git a/sys-apps/plocate/metadata.xml b/sys-apps/plocate/metadata.xml new file mode 100644 index 0000000000..c65c22b749 --- /dev/null +++ b/sys-apps/plocate/metadata.xml @@ -0,0 +1,14 @@ + + + + + arsen@aarsen.me + Arsen Arsenović + + + plocate is a locate(1) based on posting lists, completely replacing mlocate with a much faster (and smaller) index. It is suitable as a default locate on your system. + + + Enable efficient I/O via sys-libs/liburing. + + diff --git a/sys-apps/plocate/plocate-1.1.5.ebuild b/sys-apps/plocate/plocate-1.1.5.ebuild new file mode 100644 index 0000000000..6d3fdab794 --- /dev/null +++ b/sys-apps/plocate/plocate-1.1.5.ebuild @@ -0,0 +1,36 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit meson + +if [[ "${PV}" == "9999" ]]; then + inherit git-r3 + EGIT_REPO_URL="https://git.sesse.net/plocate" +else + SRC_URI="https://plocate.sesse.net/download/plocate-${PV}.tar.gz -> ${P}.tar.gz" +fi + +DESCRIPTION="a much faster locate" +HOMEPAGE="https://plocate.sesse.net/" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="io-uring" + +DEPEND=" + acct-group/locate + !sys-apps/mlocate + io-uring? ( sys-libs/liburing:= ) +" + +src_configure() { + local emesonargs=( + -Dinstall_cron=true + -Dinstall_systemd=true + -Dlocategroup=locate + ) + + meson_src_configure +} From 2aaa3ab6406398c4f531e32b0284dbc7d5c6b5d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arsen=20Arsenovi=C4=87?= Date: Wed, 3 Mar 2021 22:50:44 +0100 Subject: [PATCH 2/4] sys-apps/plocate: add cron and timers for updatedb MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Arsen Arsenović --- sys-apps/plocate/files/updatedb.cron | 2 ++ sys-apps/plocate/files/updatedb.service | 13 +++++++++++++ sys-apps/plocate/files/updatedb.timer | 9 +++++++++ sys-apps/plocate/plocate-1.1.5.ebuild | 14 +++++++++++--- 4 files changed, 35 insertions(+), 3 deletions(-) create mode 100644 sys-apps/plocate/files/updatedb.cron create mode 100644 sys-apps/plocate/files/updatedb.service create mode 100644 sys-apps/plocate/files/updatedb.timer diff --git a/sys-apps/plocate/files/updatedb.cron b/sys-apps/plocate/files/updatedb.cron new file mode 100644 index 0000000000..c3895afedd --- /dev/null +++ b/sys-apps/plocate/files/updatedb.cron @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/sbin/updatedb diff --git a/sys-apps/plocate/files/updatedb.service b/sys-apps/plocate/files/updatedb.service new file mode 100644 index 0000000000..01af0322b1 --- /dev/null +++ b/sys-apps/plocate/files/updatedb.service @@ -0,0 +1,13 @@ +[Unit] +Description=Update the plocate database +ConditionACPower=true + +[Service] +Type=oneshot +ExecStart=/usr/sbin/updatedb +LimitNOFILE=131072 +IOSchedulingClass=idle + +PrivateTmp=true +PrivateDevices=true +PrivateNetwork=true diff --git a/sys-apps/plocate/files/updatedb.timer b/sys-apps/plocate/files/updatedb.timer new file mode 100644 index 0000000000..1f69330cd2 --- /dev/null +++ b/sys-apps/plocate/files/updatedb.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Update the plocate database daily + +[Timer] +OnCalendar=daily +Persistent=true + +[Install] +WantedBy=timers.target diff --git a/sys-apps/plocate/plocate-1.1.5.ebuild b/sys-apps/plocate/plocate-1.1.5.ebuild index 6d3fdab794..3c9b1fa0fc 100644 --- a/sys-apps/plocate/plocate-1.1.5.ebuild +++ b/sys-apps/plocate/plocate-1.1.5.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit meson +inherit meson systemd if [[ "${PV}" == "9999" ]]; then inherit git-r3 @@ -27,10 +27,18 @@ DEPEND=" src_configure() { local emesonargs=( - -Dinstall_cron=true - -Dinstall_systemd=true + -Dinstall_cron=false + -Dinstall_systemd=false -Dlocategroup=locate ) meson_src_configure } + +src_install() { + meson_src_install + + exeinto /etc/cron.daily/ + newexe "${FILESDIR}"/updatedb.cron plocate + systemd_dounit "${FILESDIR}"/updatedb.{service,timer} +} From 20581aec69b08bbf817ec552f18b2f8e52a60ebd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arsen=20Arsenovi=C4=87?= Date: Wed, 3 Mar 2021 22:54:56 +0100 Subject: [PATCH 3/4] sys-apps/plocate: add post install updatedb notice MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Arsen Arsenović --- sys-apps/plocate/plocate-1.1.5.ebuild | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sys-apps/plocate/plocate-1.1.5.ebuild b/sys-apps/plocate/plocate-1.1.5.ebuild index 3c9b1fa0fc..60d17495ac 100644 --- a/sys-apps/plocate/plocate-1.1.5.ebuild +++ b/sys-apps/plocate/plocate-1.1.5.ebuild @@ -42,3 +42,11 @@ src_install() { newexe "${FILESDIR}"/updatedb.cron plocate systemd_dounit "${FILESDIR}"/updatedb.{service,timer} } + +pkg_postinst() { + if [[ -z "${REPLACING_VERSIONS}" ]]; then + # The same notice as mlocate, minus the configuration file + elog "The database for the plocate command is generated daily by a cron job," + elog "if you install for the first time you can run the updatedb command manually now." + fi +} From 0d9430ac51cfe05fb29be7f8f9be8e3ebe304630 Mon Sep 17 00:00:00 2001 From: Aisha Tammy Date: Wed, 3 Mar 2021 20:47:35 -0500 Subject: [PATCH 4/4] net-misc/purritobin: version bump to 0.5.0 Package-Manager: Portage-3.0.16, Repoman-3.0.2 Signed-off-by: Aisha Tammy --- net-misc/purritobin/Manifest | 1 + net-misc/purritobin/purritobin-0.5.0.ebuild | 47 +++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 net-misc/purritobin/purritobin-0.5.0.ebuild diff --git a/net-misc/purritobin/Manifest b/net-misc/purritobin/Manifest index 93d703f77d..3352f93a1f 100644 --- a/net-misc/purritobin/Manifest +++ b/net-misc/purritobin/Manifest @@ -1 +1,2 @@ DIST purritobin-0.4.2.tar.gz 15436 BLAKE2B 3e632738a9dc17beb331f80a79b52cf75716401d5aa6c6ebb696fd22ea6c65a5f0b7b80e78f8849783ef9688adcc740837d0ae0ab24407f49b274cb09e60eb7d SHA512 1e348ba30ffc1d79643b15da275e29536d3c0a7719ecf27455fafe84a066c7f8d08c5fad5be513d9d6b2b9a7e094dbe38f982eb791b2224a5c32e6fe2a41e0bc +DIST purritobin-0.5.0.tar.gz 16535 BLAKE2B e24943fcd459691a5c5d22c7a1345de1a1101769d502bf3f517310827857315b4c8ea10acc6295cea725959e908b938d3ef6d9379def4c5eaff6000a38a51361 SHA512 fea4127fd9908f86529c80c711bdba90a26b93186b29f1a06a2d541689ef924adc3c62b865ce66d7329c12dcb00d4e3e143ee1db033660ffeea04b8c77e4bd6a diff --git a/net-misc/purritobin/purritobin-0.5.0.ebuild b/net-misc/purritobin/purritobin-0.5.0.ebuild new file mode 100644 index 0000000000..cbfc6e3527 --- /dev/null +++ b/net-misc/purritobin/purritobin-0.5.0.ebuild @@ -0,0 +1,47 @@ +# Copyright 2019-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="minimalistic commandline pastebin" +HOMEPAGE="https://bsd.ac" + +inherit systemd toolchain-funcs + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/PurritoBin/PurritoBin.git" +else + SRC_URI="https://github.com/PurritoBin/PurritoBin/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm64 ~x86" + S="${WORKDIR}/PurritoBin-${PV}" +fi + +LICENSE="ISC" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + net-libs/usockets[ssl] + acct-user/purritobin + acct-group/purritobin +" +DEPEND="${RDEPEND} + www-apps/uwebsockets +" + +src_configure() { + default + tc-export CXX +} + +src_install() { + emake PREFIX="/usr" MANDIR="/usr/share/man" DESTDIR="${ED}" install + insinto /var/www/purritobin + doins frontend/paste.html + fowners purritobin:purritobin /var/www/purritobin + newinitd services/openrc purritobin + systemd_newunit services/systemd purritobin.service + einstalldocs +}