From f88d698b1381a4c1cd1bc7f0630f839c537441fa Mon Sep 17 00:00:00 2001 From: Chema Alonso Josa Date: Thu, 5 Oct 2017 22:44:52 +0200 Subject: [PATCH] app-admin/logrotate: Adds postinstall message for running systems using systemd Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=357275 Package-Manager: Portage-2.3.8, Repoman-2.3.3 --- app-admin/logrotate/logrotate-3.12.3-r1.ebuild | 5 +++++ app-admin/logrotate/logrotate-3.12.3-r2.ebuild | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/app-admin/logrotate/logrotate-3.12.3-r1.ebuild b/app-admin/logrotate/logrotate-3.12.3-r1.ebuild index ec6ce72f5358..b5f5d4e95d90 100644 --- a/app-admin/logrotate/logrotate-3.12.3-r1.ebuild +++ b/app-admin/logrotate/logrotate-3.12.3-r1.ebuild @@ -78,11 +78,16 @@ src_install() { } pkg_postinst() { + elog elog "The ${PN} binary is now installed under /usr/bin. Please" elog "update your links" elog move_old_state_file elog + elog "If you are running systemd you might need to run:" + elog "systemd-tmpfiles --create /usr/lib/tmpfiles.d/logrotate.conf" + elog "in order to create the new location of the logrotate state file" + elog if [[ -z ${REPLACING_VERSIONS} ]] ; then elog "If you wish to have logrotate e-mail you updates, please" elog "emerge virtual/mailx and configure logrotate in" diff --git a/app-admin/logrotate/logrotate-3.12.3-r2.ebuild b/app-admin/logrotate/logrotate-3.12.3-r2.ebuild index 89ad370fbf17..f0661a39594e 100644 --- a/app-admin/logrotate/logrotate-3.12.3-r2.ebuild +++ b/app-admin/logrotate/logrotate-3.12.3-r2.ebuild @@ -79,10 +79,14 @@ src_install() { } pkg_postinst() { + elog elog "The ${PN} binary is now installed under /usr/bin. Please" elog "update your links" elog move_old_state_file + elog "If you are running systemd you might need to run:" + elog "systemd-tmpfiles --create /usr/lib/tmpfiles.d/logrotate.conf" + elog "in order to create the new location of the logrotate state file" elog if [[ -z ${REPLACING_VERSIONS} ]] ; then elog "If you wish to have logrotate e-mail you updates, please" -- 2.26.2