commit:     2a4c8fec3e75d66af07a19fbfbc44e6cb6f98118
Author:     Jason Zaman <perfinion <AT> gentoo <DOT> org>
AuthorDate: Fri Feb  5 07:39:48 2016 +0000
Commit:     Jason Zaman <perfinion <AT> gentoo <DOT> org>
CommitDate: Fri Feb  5 08:00:05 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a4c8fec

sys-auth/consolekit: Add pm-utils dep

Package-Manager: portage-2.2.26

 sys-auth/consolekit/consolekit-1.0.1.ebuild | 9 +++------
 sys-auth/consolekit/metadata.xml            | 1 +
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/sys-auth/consolekit/consolekit-1.0.1.ebuild 
b/sys-auth/consolekit/consolekit-1.0.1.ebuild
index af935ad..24e779f 100644
--- a/sys-auth/consolekit/consolekit-1.0.1.ebuild
+++ b/sys-auth/consolekit/consolekit-1.0.1.ebuild
@@ -16,7 +16,7 @@ 
SRC_URI="https://github.com/${MY_PN}/${MY_PN}/releases/download/${PV}/${MY_P}.ta
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~amd64-fbsd ~amd64-linux ~arm ~hppa ~ia64-linux ~ppc64 
~x86 ~x86-fbsd ~x86-freebsd ~x86-linux"
-IUSE="acl cgroups debug doc kernel_linux pam policykit selinux test"
+IUSE="acl cgroups debug doc kernel_linux pam pm-utils policykit selinux test"
 
 COMMON_DEPEND=">=dev-libs/glib-2.40:2=[dbus]
        >=sys-devel/gettext-0.19
@@ -33,8 +33,10 @@ COMMON_DEPEND=">=dev-libs/glib-2.40:2=[dbus]
                )
        pam? ( virtual/pam )
        policykit? ( >=sys-auth/polkit-0.110 )"
+# pm-utils: bug 557432
 RDEPEND="${COMMON_DEPEND}
        kernel_linux? ( sys-apps/coreutils[acl?] )
+       pm-utils? ( sys-power/pm-utils )
        selinux? ( sec-policy/selinux-consolekit )"
 DEPEND="${COMMON_DEPEND}
        dev-libs/libxslt
@@ -116,8 +118,3 @@ src_install() {
        insinto /etc/logrotate.d
        newins "${WORKDIR}"/debian/${PN}.logrotate ${PN} #374513
 }
-
-pkg_postinst() {
-       elog "For suspend/hibernate support, please emerge"
-       elog "  sys-power/pm-utils"
-}

diff --git a/sys-auth/consolekit/metadata.xml b/sys-auth/consolekit/metadata.xml
index 1ab40e7..17dfd75 100644
--- a/sys-auth/consolekit/metadata.xml
+++ b/sys-auth/consolekit/metadata.xml
@@ -10,6 +10,7 @@
        </maintainer>
        <use>
                <flag name="cgroups">Use the kernel to track processes instead 
of the session cookie.</flag>
+               <flag name="pm-utils">Adds support for suspend/resume using 
<pkg>sys-power/pm-utils</pkg></flag>
                <flag name="policykit">Use the PolicyKit framework 
(<pkg>sys-auth/polkit</pkg>) to get authorization for suspend/shutdown.</flag>
                <flag name="systemd-units">Install systemd unit files to 
replace the modern functionality of logind in <pkg>sys-apps/systemd</pkg>. Not 
recommended.</flag>
        </use>

Reply via email to