1 |
commit: 4385185bd024aac89dcfb48c11ecce3bb556cf4e |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 2 11:26:08 2022 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 13 22:49:53 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4385185b |
7 |
|
8 |
x11-misc/lightdm: migrate to glep-81, change use flag |
9 |
|
10 |
Use flag 'non_root' renamed to 'non-root', as underscore is not allowed |
11 |
any more. |
12 |
|
13 |
Closes: https://bugs.gentoo.org/781554 |
14 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
15 |
Closes: https://github.com/gentoo/gentoo/pull/24863 |
16 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
17 |
|
18 |
...ightdm-1.30.0-r2.ebuild => lightdm-1.30.0-r3.ebuild} | 17 +++++++---------- |
19 |
x11-misc/lightdm/metadata.xml | 2 +- |
20 |
2 files changed, 8 insertions(+), 11 deletions(-) |
21 |
|
22 |
diff --git a/x11-misc/lightdm/lightdm-1.30.0-r2.ebuild b/x11-misc/lightdm/lightdm-1.30.0-r3.ebuild |
23 |
similarity index 88% |
24 |
rename from x11-misc/lightdm/lightdm-1.30.0-r2.ebuild |
25 |
rename to x11-misc/lightdm/lightdm-1.30.0-r3.ebuild |
26 |
index bd8fd0cb9b0a..5f13b6bcc1a0 100644 |
27 |
--- a/x11-misc/lightdm/lightdm-1.30.0-r2.ebuild |
28 |
+++ b/x11-misc/lightdm/lightdm-1.30.0-r3.ebuild |
29 |
@@ -1,9 +1,9 @@ |
30 |
-# Copyright 1999-2021 Gentoo Authors |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
# Distributed under the terms of the GNU General Public License v2 |
33 |
|
34 |
EAPI=7 |
35 |
|
36 |
-inherit autotools pam qmake-utils readme.gentoo-r1 systemd user vala xdg-utils |
37 |
+inherit autotools pam qmake-utils readme.gentoo-r1 systemd vala xdg-utils |
38 |
|
39 |
DESCRIPTION="A lightweight display manager" |
40 |
HOMEPAGE="https://github.com/CanonicalLtd/lightdm" |
41 |
@@ -13,7 +13,7 @@ SRC_URI="https://github.com/CanonicalLtd/lightdm/releases/download/${PV}/${P}.ta |
42 |
LICENSE="GPL-3 LGPL-3" |
43 |
SLOT="0" |
44 |
KEYWORDS="~alpha amd64 arm arm64 ppc ppc64 ~riscv x86" |
45 |
-IUSE="audit +gnome +gtk +introspection non_root qt5 vala" |
46 |
+IUSE="audit +gnome +gtk +introspection non-root qt5 vala" |
47 |
|
48 |
COMMON_DEPEND=" |
49 |
>=dev-libs/glib-2.44.0:2 |
50 |
@@ -31,6 +31,9 @@ COMMON_DEPEND=" |
51 |
) |
52 |
" |
53 |
RDEPEND="${COMMON_DEPEND} |
54 |
+ acct-group/lightdm |
55 |
+ acct-group/video |
56 |
+ acct-user/lightdm |
57 |
>=sys-auth/pambase-20101024-r2" |
58 |
DEPEND="${COMMON_DEPEND} |
59 |
gnome? ( gnome-base/gnome-common ) |
60 |
@@ -50,12 +53,6 @@ REQUIRED_USE="vala? ( introspection )" |
61 |
|
62 |
pkg_setup() { |
63 |
export LIGHTDM_USER=${LIGHTDM_USER:-lightdm} |
64 |
- if use non_root ; then |
65 |
- enewgroup ${LIGHTDM_USER} |
66 |
- enewgroup video # Just in case it hasn't been created yet |
67 |
- enewuser ${LIGHTDM_USER} -1 -1 /var/lib/${LIGHTDM_USER} ${LIGHTDM_USER},video |
68 |
- esethome ${LIGHTDM_USER} /var/lib/${LIGHTDM_USER} |
69 |
- fi |
70 |
} |
71 |
|
72 |
src_prepare() { |
73 |
@@ -92,7 +89,7 @@ src_configure() { |
74 |
local _greeter _session _user |
75 |
_greeter=${LIGHTDM_GREETER:=lightdm-gtk-greeter} |
76 |
_session=${LIGHTDM_SESSION:=gnome} |
77 |
- _user="$(usex non_root "${LIGHTDM_USER}" root)" |
78 |
+ _user="$(usex non-root "${LIGHTDM_USER}" root)" |
79 |
# Let user know how lightdm is configured |
80 |
einfo "Gentoo configuration" |
81 |
einfo "Default greeter: ${_greeter}" |
82 |
|
83 |
diff --git a/x11-misc/lightdm/metadata.xml b/x11-misc/lightdm/metadata.xml |
84 |
index eb41c0a7d705..0dbf6a9da96c 100644 |
85 |
--- a/x11-misc/lightdm/metadata.xml |
86 |
+++ b/x11-misc/lightdm/metadata.xml |
87 |
@@ -7,7 +7,7 @@ |
88 |
</maintainer> |
89 |
<use> |
90 |
<flag name="gtk">Pull in the gtk+ greeter</flag> |
91 |
- <flag name="non_root">Use non-root user by default</flag> |
92 |
+ <flag name="non-root">Use non-root user by default</flag> |
93 |
</use> |
94 |
<upstream> |
95 |
<remote-id type="github">CanonicalLtd/lightdm</remote-id> |