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] 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 +}