x11-misc/sddm: call systemd_reenable in postinst
authorMike Gilbert <floppym@gentoo.org>
Mon, 28 Aug 2017 22:21:45 +0000 (18:21 -0400)
committerMike Gilbert <floppym@gentoo.org>
Sun, 3 Sep 2017 01:14:43 +0000 (21:14 -0400)
Bug: https://bugs.gentoo.org/627984
Package-Manager: Portage-2.3.6_p39, Repoman-2.3.3_p17

x11-misc/sddm/sddm-0.14.0-r2.ebuild
x11-misc/sddm/sddm-0.14.0-r4.ebuild
x11-misc/sddm/sddm-0.15.0.ebuild

index 8946151552d6ae56d0a0c960adc53d8f71777f8a..f3ac6dba4c950670a7ed509041234bf9ed9afb0c 100644 (file)
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-inherit cmake-utils user
+inherit cmake-utils systemd user
 
 DESCRIPTION="Simple Desktop Display Manager"
 HOMEPAGE="https://github.com/sddm/sddm"
@@ -68,6 +68,8 @@ pkg_postinst() {
        enewgroup ${PN}
        enewuser ${PN} -1 -1 /var/lib/${PN} ${PN},video
 
+       systemd_reenable sddm.service
+
        if use consolekit && use pam && [[ -e "${ROOT}"/etc/pam.d/system-login ]]; then
                local line=$(grep "pam_ck_connector.*nox11" "${ROOT}"/etc/pam.d/system-login)
                if [[ -z ${line} ]]; then
index a79ea8f1a2f8c4afabd106cc093e0eb74f6e2b02..f67abdc0bdcf07f9fd82d920fee56f8ab7d76f47 100644 (file)
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-inherit cmake-utils user
+inherit cmake-utils systemd user
 
 DESCRIPTION="Simple Desktop Display Manager"
 HOMEPAGE="https://github.com/sddm/sddm"
@@ -74,6 +74,8 @@ pkg_postinst() {
        enewgroup ${PN}
        enewuser ${PN} -1 -1 /var/lib/${PN} ${PN},video
 
+       systemd_reenable sddm.service
+
        if use consolekit && use pam && [[ -e "${ROOT}"/etc/pam.d/system-login ]]; then
                local line=$(grep "pam_ck_connector.*nox11" "${ROOT}"/etc/pam.d/system-login)
                if [[ -z ${line} ]]; then
index 0099ac086cd76613bf103368b41017e4044c7a6c..acd5a8fc7556bb94536f8cd2ab8193c0c8ec2649 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=6
 
-inherit cmake-utils user
+inherit cmake-utils systemd user
 
 DESCRIPTION="Simple Desktop Display Manager"
 HOMEPAGE="https://github.com/sddm/sddm"
@@ -59,4 +59,6 @@ src_configure() {
 pkg_postinst() {
        enewgroup ${PN}
        enewuser ${PN} -1 -1 /var/lib/${PN} ${PN},video
+
+       systemd_reenable sddm.service
 }