diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-29 11:22:34 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-29 11:22:34 +0000 |
commit | bd7908c6630f38067350d396ac5d18c3cc2434a0 (patch) | |
tree | 3559b3e11424f5529527f2474d8a977a91ee3389 /x11-misc/sddm | |
parent | 8b2628ad8526c806375e7b157889e4274b70248b (diff) |
gentoo resync : 29.10.2017
Diffstat (limited to 'x11-misc/sddm')
-rw-r--r-- | x11-misc/sddm/Manifest | 7 | ||||
-rw-r--r-- | x11-misc/sddm/files/sddm-0.14.0-nsswitch_conf.patch | 27 | ||||
-rw-r--r-- | x11-misc/sddm/files/sddm-0.16.0-Xsession.patch | 24 | ||||
-rw-r--r-- | x11-misc/sddm/files/sddm-enable-elogind.patch | 56 | ||||
-rw-r--r-- | x11-misc/sddm/sddm-0.14.0-r4.ebuild | 92 | ||||
-rw-r--r-- | x11-misc/sddm/sddm-0.15.0.ebuild | 2 | ||||
-rw-r--r-- | x11-misc/sddm/sddm-0.16.0-r2.ebuild | 62 |
7 files changed, 90 insertions, 180 deletions
diff --git a/x11-misc/sddm/Manifest b/x11-misc/sddm/Manifest index 659e98630c01..4d68e37c905f 100644 --- a/x11-misc/sddm/Manifest +++ b/x11-misc/sddm/Manifest @@ -2,16 +2,15 @@ AUX sddm-0.12.0-respect-user-flags.patch 779 SHA256 3737a2de5c5cf765702af739445f AUX sddm-0.13.0-pam_kwallet.patch 391 SHA256 dc46a0132cf0ea722a69cff45ed1ded3c93ade008e22fc90d1b797ca85ed535a SHA512 55375d2c91dad5478be14988e7889344eb8f0694300aefc7803d0f193f7160b5900647e4e35a604aa76119556304d055ff323c4892023664224dc36070c62b02 WHIRLPOOL 90bbfe187e4a327129c9a426c3c00de8d5ef15b3ec30bc4d3dfc6c8603514114f104762cb3053e25ab0b3274874351c94d1dc289cd129939dc46e345b1394070 AUX sddm-0.14.0-avatars.patch 1470 SHA256 b091f02d6d5b2ddc9d5208b17213a181c6e8deae23e5633d694119e79b66d38b SHA512 09a2b487767c4d84e9bb1225d27e21a6716c7c299b5f3aff5fb4934d1ddc3659658eaffcf30dd60f2c83389a461b4fe91c23cab4646c740ef5eec658e14a1eac WHIRLPOOL e84ffc8ad6c6d40df7dad24ae60d5a7c0a387c5ad0dfa93d29cc307cedd541180398d7caf1925177e43fbff093dbc1fc36f872e40c57dcd80bf12ca2910355eb AUX sddm-0.14.0-consolekit.patch 322 SHA256 a998f8a2594cd1e81f402605f01075477a017269b0ac93a22f5faa7d355d18e0 SHA512 aa53338c3e154982388b2e98101cd49e607f1744acee28f46892e3a6848f06de4ba8a8bf204128da1a7b22df9efe5d95bb6ac1cd5dedb8a301f8587af381253a WHIRLPOOL f438b0ceb638a4d6fc0d2999771a1c6dad280f4dbb263d73d458e32c09bb6884b32efac24e92001b4abc324e4e347a3360b533beab82c06022cebeb6edc7d6c1 -AUX sddm-0.14.0-nsswitch_conf.patch 1158 SHA256 8b31740cdfcc540c81dba5e190482b1ccdb29dbf2c7d14225ddfda701c3730c8 SHA512 9449c0ddb984e685c6440a9b8537cc57410df8092d549851a8285546ee0541fd3ac2eae7a62fe57a670006e930fa2cc54bb9671ba373fef914f34a9b219d4529 WHIRLPOOL 2341cd5f142fcb76b4319fc05992da0e4055e273a433d47b7b040cd7f9a99584927b2ad07636e5b390e401a09262f147eca0dc3595ed1013f86af7f63c6fc30e +AUX sddm-0.16.0-Xsession.patch 606 SHA256 c64003cc29d3741f6ac36e7d5f5546053ba2d5880d1d2db3909acbee1d152fb3 SHA512 ce01832d8af011c4e244c9357f540182cdf3b7af8d00616132f94c95a95b32df41beb1760ac8cad7a0a5a34165b8b289df0308656268d67f9bc420b5d3fb40f1 WHIRLPOOL c9f8e2e425c009793f32b6b2cb33f4c0099fd2b26c422c691ba63857a834d49bbd9120f01e452728fb251f294e56ddaccea4acf538465244a01e79ca80a40914 AUX sddm-0.16.0-ck2-revert.patch 918 SHA256 450679a1ca87e6694c1ae0c626660b35d831f16f6ccb1a1fe491271a0b7cfb3a SHA512 f9b49390f656d3ba9528c9fecaff044bab7f4933293bd439fc3ccec873aae9899b4f8b93fa769d506948de2be1d3275dafc96795b1c20caf547cbf474ee12b60 WHIRLPOOL e6c700e24562387c58237bcdb384928f385d68462b5948bae2bfd6bc189190ec1a671de7d0e6eb7bb33522fcb2c773b95ff4d970bb4bf349be24229065cd8e12 -AUX sddm-enable-elogind.patch 1754 SHA256 b216976029dc425bc05486ebe276ce65b8d188ebd142856f13f44904ed733a4c SHA512 457a49650b07df2edd836201f00858245b1567476e7e1f6cb4e74e80deea404588504d1895d050cab4278ed3273e71131d70226867e5cf8846a7472f98f23ffe WHIRLPOOL 6d88e1c7eb4bcff23805fffe5b164462f43727059b0058a22140a953dbdf3c153e526513c2ce656f9894cc58eab22c1914e2a30b209dfa75388c05e09373420e DIST sddm-0.14.0.tar.xz 3298360 SHA256 7e348258618b20f777767a98f9e377b48824b5cb5aad3a3f10f8482c1eb27778 SHA512 ae6f02e168dbb4ef1d5d360e6b26a2c45a9891fba9d53b73d41a5cc14906f3fcca3bde6d16d7bb109132d23e3e0e768c5976934fd2f59c23d919cc9f81fbd366 WHIRLPOOL d7d80c5d1e8eb5016fa6f5909026bb477293b4356b9caff92d741c936534504e35fdfe81feea8cb2312cdb53ed0e7cc5bda3af5fc4226d5a797baea97e431ecb DIST sddm-0.15.0.tar.gz 3520188 SHA256 a4211e5b66f674415e07bc1cc39c16f60ae6025418bcbaba1118cd51e57c3174 SHA512 4440acfc6f98ab8efe8e3a441e8dc9ee98615c3544f8adc899bc4f0334e4f1b0d37c1ef823b32cc466adc8fac942cd188b33eb49795e0468a136a959c65c7566 WHIRLPOOL 48d4ab7ac8d4527719d532e13956e59bdd6b94a094fdf83cb58f1c32d946b111f5ad9f2fefabe9fd6fac8bbccd2d4f8d63ef467d840b975b54d879d5f1b711f4 DIST sddm-0.16.0.tar.gz 3523735 SHA256 f7f73c6dd6d544ec2c5e4657e181f60467ec31d84bf1b775c544dfe8748badbe SHA512 1efac1ae374ae6e6cba5ea3189f720f706aed8cc5ef2289dd55498b828584c2fa50c1b3374009b1ff5d400a9f9e3e379cfeb0a0411f8078cf618a2df77f0c59c WHIRLPOOL 1a51b2d53fa5427a6785070107152bf9c907a8ebf77dd0532820d9fbcca33d68d7dbc5bcacd863d1881c54d26617bf6986c276ae6d99806e1a2bce6920240733 EBUILD sddm-0.14.0-r2.ebuild 2332 SHA256 1a0083b134f33feb4b1014a2c3a5227a569ac6a2904feeabf3a09e41564c223c SHA512 b67ed7c8582b205972ebe2847d87a08cd24c3c9c2d6f77bd81bc89503e49cc380c6fa7af6722639cf92df1414d96a21bafd4978b0b08127c37e2419651e6bd71 WHIRLPOOL 1dc114783af75071c4e174897eb1deaa0c0e0db45aaae378d4ccce83f61707e1885a0a8e915e1b40f30ebc28d15877ab810b530028a4f9d749eb66aa11e1ba60 -EBUILD sddm-0.14.0-r4.ebuild 2542 SHA256 58114e9adf0f20ccb18e573a02164c4c3a9745c83dad1f3b83655ffc440769f3 SHA512 2cc87d0c84fda296121afd7c8fefc8c237f8c4ce682e6f552d861f3dc6a318c105e0cfc6066c87fe9be1142cef9ad83125e9b393f0c17f0a51a81e31d82e39f9 WHIRLPOOL 5393d4e0510c45a8de9bbd5a39b287af11ae06697003664e7060e0e40b06a2e269aa20aa0bb84517bbea2da950b0e5fb7095658e95bd27eafdad520cef5d9489 -EBUILD sddm-0.15.0.ebuild 1577 SHA256 e7d69dd3cde642f72e7b59aeaf863b8446b7adf3d92fe2f52cbecc68b74d89fa SHA512 da3ae5055abe9a9c66ce6db715acc1bca99852d8a9a3c78276875326aa515e3b475814875145a5c9c557e2018ee71ee07fec51880a61dccbbb20a37d62b4c9f9 WHIRLPOOL 4c9a45bfa8d1c9d609202d9cd15037bd13e88162ace1a297594d812024556c0fb05bca55ab84d03d5f02e4326c62028ee1e2f390c3046ceb22bc3d87eed90737 +EBUILD sddm-0.15.0.ebuild 1576 SHA256 c29f9d1a75face9de46899dba6684c1f269b5e6aea2e9ebf20ea59f9b7d2a4e5 SHA512 48839e26239bd57053717ca81a5b6b285677384ce081652fcb774e573a37bb3d56c42489732fdec5d8442550483f3cb2b4b1b936947e3554641bd1e00c17dd45 WHIRLPOOL 47caec5f73b8aa5669e866b0f76d06a6577e9c1fb5ba250507906cc73478af3c19f7ec372de649a938396497fac1e7f51104c38b420fbadf4237a29e8a667f85 EBUILD sddm-0.16.0-r1.ebuild 1628 SHA256 e976e4e79e0f9448b0fa645b78fd82cee9a469510500d7b75aedb3f16a989f1e SHA512 fa13f0f94e8eec28d8851ef6963acbaf188d96e8f365b940e2efc2110ac0376903f14b7a311ba30ee0598222f93083235cdb299db617ac620bc6a6a7666573db WHIRLPOOL a93d7a20fd1971c30fcb1c29af1149ccd7d41bcc9d02e0a206fad16fcdf492fdaa1cbb2cbc65d07825ba57e7fa4f146744d3f5dfd46ff36320d5cfeadb9b7ca4 +EBUILD sddm-0.16.0-r2.ebuild 1563 SHA256 92c2c4a262da26632c979dd6fb798604112f6e1b3d11f51d4f10fbde9ffcec00 SHA512 bd5cab0a672662b03dfa63cb01a22520fbe921332d6b045f8a8729c70e0069598769a76b86cee28c58c321964b3f537f2067ccd6392d85a64628e652d786c187 WHIRLPOOL 3c9d61d29215fd0ede670de5a548534de619fe8e8df00b27fb7d0cf4abb626ebcbc8d0195a72a5bec60153a94bb964b4e1b531b54b0be1bc29e6e83ccb6f42ea EBUILD sddm-0.16.0.ebuild 1578 SHA256 6e738dd5bf6f6439256555fdc1f1deef106852a5b4767ce6a7ba657cf2e41194 SHA512 1635e9649279e4a8899e7478d13fe4e63fdcf43ec0204685220eaaf1716dbdf4c4eaada9079b8b6bae302d0c10c412a47b5fd99b774f498746d0f46dc7a81dfd WHIRLPOOL 4b68be654dc880c1a71eeb1d029d324174d986cad5de4f3f06b29d254238fe2de41f1af320d4ee89bd09c9c17f81143e2a52ec4b6f4b5650df9bc184d4c3cb56 MISC ChangeLog 9132 SHA256 b3c4811eab359e67c259d59550832dcb14fb4ab3ddeb71d23edc2207bda83c15 SHA512 32fc4d222b2316a4247cee25798050094983b69873e3358611d908ec030ab7c5b43c64c92a59e88aa37ba2c3ce97556ff1e03d33c6f0b90a0fdcec0a9825c2dc WHIRLPOOL c427eb05f0f819c4d6cff7d007e8d9ab7816e1fe9462af81f688bac0f649028b2137798ef40553b69d2be032a3eff971ac7875065eaf2d73759bd23e29bcb390 MISC ChangeLog-2015 3391 SHA256 3512268a5a75b764800ce67e516270f4482390a1f9ab958ec0627dc4403889e8 SHA512 3ec070987205570ba6efa11b7feca3fa42a96d2ae4997dab21c713eab043c883d9f6b7073c8572314fc6793374a6061dfa9c0eba812de21de7869c284e5b3a6d WHIRLPOOL 440c4354b7e61f5022f1f728d3a1346b8cea88eeeade570f9b3ba83a67faf26987e532e5566f272df49d3af30c7fc745983273b1cb8733625690e5fa1a6776a1 diff --git a/x11-misc/sddm/files/sddm-0.14.0-nsswitch_conf.patch b/x11-misc/sddm/files/sddm-0.14.0-nsswitch_conf.patch deleted file mode 100644 index 371df93e2b8d..000000000000 --- a/x11-misc/sddm/files/sddm-0.14.0-nsswitch_conf.patch +++ /dev/null @@ -1,27 +0,0 @@ -From 1f39c7a91ea4bc9527628adb01cb49173f1e68be Mon Sep 17 00:00:00 2001 -From: Palo Kisa <palo.kisa@gmail.com> -Date: Fri, 9 Jun 2017 10:13:01 +0200 -Subject: [PATCH] UserModel: Check for duplicates from getpwent() - ---- - src/greeter/UserModel.cpp | 7 +++++++ - 1 file changed, 7 insertions(+) - -diff --git a/src/greeter/UserModel.cpp b/src/greeter/UserModel.cpp -index 94c492d0..33114d08 100644 ---- a/src/greeter/UserModel.cpp -+++ b/src/greeter/UserModel.cpp -@@ -72,6 +72,13 @@ namespace SDDM { - if (mainConfig.Users.HideShells.get().contains(QString::fromLocal8Bit(current_pw->pw_shell))) - continue; - -+ // skip duplicates -+ // Note: getpwent() makes no attempt to suppress duplicate information -+ // if multiple sources are specified in nsswitch.conf(5). -+ if (d->users.cend() -+ != std::find_if(d->users.cbegin(), d->users.cend(), [current_pw](const UserPtr & u) { return u->uid == current_pw->pw_uid; })) -+ continue; -+ - // create user - UserPtr user { new User() }; - user->name = QString::fromLocal8Bit(current_pw->pw_name); diff --git a/x11-misc/sddm/files/sddm-0.16.0-Xsession.patch b/x11-misc/sddm/files/sddm-0.16.0-Xsession.patch new file mode 100644 index 000000000000..f341e1863f76 --- /dev/null +++ b/x11-misc/sddm/files/sddm-0.16.0-Xsession.patch @@ -0,0 +1,24 @@ +--- a/data/scripts/Xsession 2016-08-28 14:52:04.910181422 +0200 ++++ b/data/scripts/Xsession 2017-10-21 15:25:47.668886596 +0200 +@@ -50,6 +50,10 @@ + ;; + esac + ++# Make D-Bus and ConsoleKit start properly, see: ++# /etc/X11/xinit/xinitrc.d/{80-dbus,90-consolekit} ++command="$@" ++ + [ -f /etc/xprofile ] && . /etc/xprofile + [ -f $HOME/.xprofile ] && . $HOME/.xprofile + +@@ -94,8 +98,8 @@ + . "$USERXSESSION" + fi + +-if [ -z "$@" ]; then ++if [ -z "$command" ]; then + exec xmessage -center -buttons OK:0 -default OK "Sorry, $DESKTOP_SESSION is no valid session." + else +- exec $@ ++ exec $command + fi diff --git a/x11-misc/sddm/files/sddm-enable-elogind.patch b/x11-misc/sddm/files/sddm-enable-elogind.patch deleted file mode 100644 index d1277e9554f3..000000000000 --- a/x11-misc/sddm/files/sddm-enable-elogind.patch +++ /dev/null @@ -1,56 +0,0 @@ ---- a/CMakeLists.txt 2016-11-10 09:27:03.866358608 +0100 -+++ b/CMakeLists.txt 2016-11-10 10:28:25.384374766 +0100 -@@ -93,7 +93,7 @@ - endif() - - # systemd --if(NOT NO_SYSTEMD) -+if(NOT NO_SYSTEMD AND NOT USE_ELOGIND) - pkg_check_modules(SYSTEMD "systemd") - endif() - -@@ -127,12 +127,34 @@ - set(REBOOT_COMMAND "/usr/bin/systemctl reboot") - else() - set(SYSTEMD_FOUND 0) -+endif() -+add_feature_info("systemd" SYSTEMD_FOUND "systemd support") -+add_feature_info("journald" JOURNALD_FOUND "journald support") -+ -+# elogind -+if(NO_SYSTEMD AND USE_ELOGIND) -+ pkg_check_modules(ELOGIND "libelogind") -+endif() -+ -+if(ELOGIND_FOUND) -+ add_definitions(-DHAVE_ELOGIND) -+ set(CMAKE_AUTOMOC_MOC_OPTIONS -DHAVE_ELOGIND) -+ -+ set(MINIMUM_VT 7) -+ set(HALT_COMMAND "/usr/bin/loginctl poweroff") -+ set(REBOOT_COMMAND "/usr/bin/loginctl reboot") -+else() -+ set(ELOGIND_FOUND 0) -+endif() -+add_feature_info("elogind" ELOGIND_FOUND "elogind support") -+ -+# Default behaviour if neither systemd nor elogind is used -+if (NOT ELOGIND_FOUND AND NOT SYSTEMD_FOUND) - set(MINIMUM_VT 7) - set(HALT_COMMAND "/sbin/shutdown -h -P now") - set(REBOOT_COMMAND "/sbin/shutdown -r now") - endif() --add_feature_info("systemd" SYSTEMD_FOUND "systemd support") --add_feature_info("journald" JOURNALD_FOUND "journald support") -+ - - # Set constants - set(DATA_INSTALL_DIR "${CMAKE_INSTALL_FULL_DATADIR}/sddm" CACHE PATH "System application data install directory") ---- a/services/sddm-greeter.pam 2016-06-19 12:24:42.000000000 +0200 -+++ b/services/sddm-greeter.pam 2016-11-02 09:48:18.990032363 +0100 -@@ -14,4 +14,5 @@ - - # Setup session - session required pam_unix.so - session optional pam_systemd.so -+session optional pam_elogind.so diff --git a/x11-misc/sddm/sddm-0.14.0-r4.ebuild b/x11-misc/sddm/sddm-0.14.0-r4.ebuild deleted file mode 100644 index f67abdc0bdcf..000000000000 --- a/x11-misc/sddm/sddm-0.14.0-r4.ebuild +++ /dev/null @@ -1,92 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -inherit cmake-utils systemd user - -DESCRIPTION="Simple Desktop Display Manager" -HOMEPAGE="https://github.com/sddm/sddm" -SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.xz" -KEYWORDS="~amd64 ~arm ~arm64 ~x86" - -LICENSE="GPL-2+ MIT CC-BY-3.0 CC-BY-SA-3.0 public-domain" -SLOT="0" -IUSE="consolekit elogind +pam systemd" - -REQUIRED_USE="?? ( elogind systemd )" - -RDEPEND=">=dev-qt/qtcore-5.6:5 - >=dev-qt/qtdbus-5.6:5 - >=dev-qt/qtgui-5.6:5 - >=dev-qt/qtdeclarative-5.6:5 - >=dev-qt/qtnetwork-5.6:5 - >=x11-base/xorg-server-1.15.1 - x11-libs/libxcb[xkb(-)] - consolekit? ( >=sys-auth/consolekit-0.9.4 ) - elogind? ( sys-auth/elogind ) - pam? ( sys-libs/pam ) - systemd? ( sys-apps/systemd:= ) - !systemd? ( || ( sys-power/upower sys-power/upower-pm-utils ) )" - -DEPEND="${RDEPEND} - dev-python/docutils - >=dev-qt/linguist-tools-5.6:5 - >=dev-qt/qttest-5.6:5 - kde-frameworks/extra-cmake-modules - virtual/pkgconfig" - -PATCHES=( - "${FILESDIR}/${PN}-0.13.0-pam_kwallet.patch" - # fix for flags handling and bug 563108 - "${FILESDIR}/${PN}-0.12.0-respect-user-flags.patch" - "${FILESDIR}/${P}-avatars.patch" - "${FILESDIR}/${PN}-enable-elogind.patch" - "${FILESDIR}/${P}-nsswitch_conf.patch" #627902 -) - -pkg_pretend() { - if [[ ${MERGE_TYPE} != binary && $(tc-getCC) == *gcc* ]]; then - if [[ $(gcc-major-version) -lt 4 || $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 7 ]] ; then - die 'The active compiler needs to be gcc 4.7 (or newer)' - fi - fi -} - -src_prepare() { - use consolekit && eapply "${FILESDIR}/${P}-consolekit.patch" - - cmake-utils_src_prepare -} - -src_configure() { - local mycmakeargs=( - -DENABLE_PAM=$(usex pam) - -DNO_SYSTEMD=$(usex '!systemd') - -DUSE_ELOGIND=$(usex 'elogind') - -DBUILD_MAN_PAGES=ON - -DDBUS_CONFIG_FILENAME="org.freedesktop.sddm.conf" - ) - - cmake-utils_src_configure -} - -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 - ewarn - ewarn "Erroneous /etc/pam.d/system-login settings detected!" - ewarn "Please restore 'nox11' option in the line containing pam_ck_connector:" - ewarn - ewarn "session optional pam_ck_connector.so nox11" - ewarn - ewarn "or 'emerge -1 sys-auth/pambase' and run etc-update." - ewarn - fi - fi -} diff --git a/x11-misc/sddm/sddm-0.15.0.ebuild b/x11-misc/sddm/sddm-0.15.0.ebuild index cc14c6f74114..9dde4b79612d 100644 --- a/x11-misc/sddm/sddm-0.15.0.ebuild +++ b/x11-misc/sddm/sddm-0.15.0.ebuild @@ -8,7 +8,7 @@ inherit cmake-utils systemd user DESCRIPTION="Simple Desktop Display Manager" HOMEPAGE="https://github.com/sddm/sddm" SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.gz" -KEYWORDS="amd64 ~arm ~arm64 ~x86" +KEYWORDS="amd64 ~arm ~arm64 x86" LICENSE="GPL-2+ MIT CC-BY-3.0 CC-BY-SA-3.0 public-domain" SLOT="0" diff --git a/x11-misc/sddm/sddm-0.16.0-r2.ebuild b/x11-misc/sddm/sddm-0.16.0-r2.ebuild new file mode 100644 index 000000000000..26770167920d --- /dev/null +++ b/x11-misc/sddm/sddm-0.16.0-r2.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils systemd user + +DESCRIPTION="Simple Desktop Display Manager" +HOMEPAGE="https://github.com/sddm/sddm" +SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.gz" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" + +LICENSE="GPL-2+ MIT CC-BY-3.0 CC-BY-SA-3.0 public-domain" +SLOT="0" +IUSE="consolekit elogind +pam systemd" + +REQUIRED_USE="?? ( elogind systemd )" + +RDEPEND=" + >=dev-qt/qtcore-5.6:5 + >=dev-qt/qtdbus-5.6:5 + >=dev-qt/qtgui-5.6:5 + >=dev-qt/qtdeclarative-5.6:5 + >=dev-qt/qtnetwork-5.6:5 + >=x11-base/xorg-server-1.15.1 + x11-libs/libxcb[xkb] + consolekit? ( >=sys-auth/consolekit-0.9.4 ) + elogind? ( sys-auth/elogind ) + pam? ( sys-libs/pam ) + systemd? ( sys-apps/systemd:= ) + !systemd? ( sys-power/upower )" + +DEPEND="${RDEPEND} + dev-python/docutils + >=dev-qt/linguist-tools-5.6:5 + >=dev-qt/qttest-5.6:5 + kde-frameworks/extra-cmake-modules + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/${PN}-0.12.0-respect-user-flags.patch" # fix for flags handling and bug 563108 + "${FILESDIR}/${P}-Xsession.patch" # bug 611210 + "${FILESDIR}/${P}-ck2-revert.patch" # bug 633920 +) + +src_configure() { + local mycmakeargs=( + -DENABLE_PAM=$(usex pam) + -DNO_SYSTEMD=$(usex '!systemd') + -DUSE_ELOGIND=$(usex 'elogind') + -DBUILD_MAN_PAGES=ON + -DDBUS_CONFIG_FILENAME="org.freedesktop.sddm.conf" + ) + cmake-utils_src_configure +} + +pkg_postinst() { + enewgroup ${PN} + enewuser ${PN} -1 -1 /var/lib/${PN} ${PN},video + + systemd_reenable sddm.service +} |