commit: 20581aec69b08bbf817ec552f18b2f8e52a60ebd
Author: Arsen Arsenović <arsen <AT> aarsen <DOT> me>
AuthorDate: Wed Mar 3 21:54:56 2021 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Wed Mar 3 21:54:56 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=20581aec
sys-apps/plocate: add post install updatedb notice
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Arsen Arsenović <arsen <AT> aarsen.me>
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 3c9b1fa0..60d17495 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
+}