sys-apps/plocate: add post install updatedb notice

Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Arsen Arsenović <arsen@aarsen.me>
This commit is contained in:
Arsen Arsenović
2021-03-03 22:54:56 +01:00
parent 2aaa3ab640
commit 20581aec69

View File

@@ -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
}