Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/lightdm/files/, x11-misc/lightdm/
Date: Thu, 27 Sep 2018 08:13:05
Message-Id: 1538035964.a53723eb13bfa401e1b48c0041518bafd25b96dd.polynomial-c@gentoo
1 commit: a53723eb13bfa401e1b48c0041518bafd25b96dd
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 27 08:12:44 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 27 08:12:44 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a53723eb
7
8 Revert "x11-misc/lightdm: use upstream lightdm-greeter pam config"
9
10 This reverts commit 39b530b86790bb5d4a909118be9457be22cf7ad3.
11 which was accidentally added.
12
13 .../lightdm/files/lightdm-1.28.0-pam-greeter.patch | 10 --
14 x11-misc/lightdm/lightdm-1.28.0-r1.ebuild | 144 ---------------------
15 2 files changed, 154 deletions(-)
16
17 diff --git a/x11-misc/lightdm/files/lightdm-1.28.0-pam-greeter.patch b/x11-misc/lightdm/files/lightdm-1.28.0-pam-greeter.patch
18 deleted file mode 100644
19 index 89b47798a79..00000000000
20 --- a/x11-misc/lightdm/files/lightdm-1.28.0-pam-greeter.patch
21 +++ /dev/null
22 @@ -1,10 +0,0 @@
23 ---- a/data/pam/lightdm-greeter
24 -+++ b/data/pam/lightdm-greeter
25 -@@ -14,4 +14,6 @@ password required pam_deny.so
26 -
27 - # Setup session
28 - session required pam_unix.so
29 --session optional pam_systemd.so
30 -+-session optional pam_systemd.so
31 -+-session optional pam_elogind.so
32 -+-session optional pam_ck_connector.so nox11
33
34 diff --git a/x11-misc/lightdm/lightdm-1.28.0-r1.ebuild b/x11-misc/lightdm/lightdm-1.28.0-r1.ebuild
35 deleted file mode 100644
36 index 748ee4f83bb..00000000000
37 --- a/x11-misc/lightdm/lightdm-1.28.0-r1.ebuild
38 +++ /dev/null
39 @@ -1,144 +0,0 @@
40 -# Copyright 1999-2018 Gentoo Foundation
41 -# Distributed under the terms of the GNU General Public License v2
42 -
43 -EAPI=6
44 -
45 -inherit autotools flag-o-matic pam qmake-utils readme.gentoo-r1 systemd vala xdg-utils
46 -
47 -DESCRIPTION="A lightweight display manager"
48 -HOMEPAGE="https://www.freedesktop.org/wiki/Software/LightDM"
49 -SRC_URI="https://github.com/CanonicalLtd/lightdm/releases/download/${PV}/${P}.tar.xz
50 - mirror://gentoo/introspection-20110205.m4.tar.bz2"
51 -
52 -LICENSE="GPL-3 LGPL-3"
53 -SLOT="0"
54 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
55 -IUSE="audit +gnome +gtk +introspection qt5 vala"
56 -
57 -COMMON_DEPEND="
58 - >=dev-libs/glib-2.44.0:2
59 - dev-libs/libxml2
60 - virtual/pam
61 - x11-libs/libX11
62 - >=x11-libs/libxklavier-5
63 - audit? ( sys-process/audit )
64 - gnome? ( sys-apps/accountsservice )
65 - introspection? ( >=dev-libs/gobject-introspection-1 )
66 - qt5? (
67 - dev-qt/qtcore:5
68 - dev-qt/qtdbus:5
69 - dev-qt/qtgui:5
70 - )
71 -"
72 -RDEPEND="${COMMON_DEPEND}
73 - >=sys-auth/pambase-20101024-r2"
74 -DEPEND="${COMMON_DEPEND}
75 - dev-util/gtk-doc-am
76 - dev-util/intltool
77 - sys-devel/gettext
78 - virtual/pkgconfig
79 - gnome? ( gnome-base/gnome-common )
80 - vala? ( $(vala_depend) )
81 -"
82 -PDEPEND="gtk? ( x11-misc/lightdm-gtk-greeter )"
83 -
84 -DOCS=( NEWS )
85 -RESTRICT="test"
86 -
87 -PATCHES=( "${FILESDIR}"/${PN}-1.28.0-pam-greeter.patch )
88 -
89 -src_prepare() {
90 - xdg_environment_reset
91 -
92 - sed -i -e 's:getgroups:lightdm_&:' tests/src/libsystem.c || die #412369
93 - sed -i -e '/minimum-uid/s:500:1000:' data/users.conf || die
94 -
95 - einfo "Fixing the session-wrapper variable in lightdm.conf"
96 - sed -i -e \
97 - "/^#session-wrapper/s@^.*@session-wrapper=/etc/${PN}/Xsession@" \
98 - data/lightdm.conf || die "Failed to fix lightdm.conf"
99 -
100 - # use correct version of qmake. bug #566950
101 - sed \
102 - -e "/AC_CHECK_TOOLS(MOC5/a AC_SUBST(MOC5,$(qt5_get_bindir)/moc)" \
103 - -i configure.ac || die
104 -
105 - default
106 -
107 - # Remove bogus Makefile statement. This needs to go upstream
108 - sed -i /"@YELP_HELP_RULES@"/d help/Makefile.am || die
109 - if has_version dev-libs/gobject-introspection; then
110 - eautoreconf
111 - else
112 - AT_M4DIR=${WORKDIR} eautoreconf
113 - fi
114 -
115 - use vala && vala_src_prepare
116 -}
117 -
118 -src_configure() {
119 - # Set default values if global vars unset
120 - local _greeter _session _user
121 - _greeter=${LIGHTDM_GREETER:=lightdm-gtk-greeter}
122 - _session=${LIGHTDM_SESSION:=gnome}
123 - _user=${LIGHTDM_USER:=root}
124 - # Let user know how lightdm is configured
125 - einfo "Gentoo configuration"
126 - einfo "Default greeter: ${_greeter}"
127 - einfo "Default session: ${_session}"
128 - einfo "Greeter user: ${_user}"
129 -
130 - use qt5 && append-cxxflags -std=c++11
131 -
132 - # also disable tests because libsystem.c does not build. Tests are
133 - # restricted so it does not matter anyway.
134 - local myeconfargs=(
135 - --localstatedir=/var
136 - --disable-static
137 - --disable-tests
138 - $(use_enable audit libaudit)
139 - $(use_enable introspection)
140 - --disable-liblightdm-qt
141 - $(use_enable qt5 liblightdm-qt5)
142 - $(use_enable vala)
143 - --with-user-session=${_session}
144 - --with-greeter-session=${_greeter}
145 - --with-greeter-user=${_user}
146 - )
147 - econf "${myeconfargs[@]}"
148 -}
149 -
150 -src_install() {
151 - default
152 -
153 - # Delete apparmor profiles because they only work with Ubuntu's
154 - # apparmor package. Bug #494426
155 - if [[ -d ${ED%/}/etc/apparmor.d ]]; then
156 - rm -r "${ED%/}/etc/apparmor.d" || die \
157 - "Failed to remove apparmor profiles"
158 - fi
159 -
160 - insinto /etc/${PN}
161 - doins data/{${PN},keys}.conf
162 - doins "${FILESDIR}"/Xsession
163 - fperms +x /etc/${PN}/Xsession
164 - # /var/lib/lightdm-data could be useful. Bug #522228
165 - dodir /var/lib/lightdm-data
166 -
167 - find "${ED}" \( -name '*.a' -o -name "*.la" \) -delete || die
168 - rm -rf "${ED%/}"/etc/init
169 -
170 - # Remove existing pam file. We will build a new one. Bug #524792
171 - rm -rf "${ED%/}"/etc/pam.d/${PN}
172 - pamd_mimic system-local-login ${PN} auth account password session #372229
173 - dopamd "${FILESDIR}"/${PN}-autologin #390863, #423163
174 -
175 - readme.gentoo_create_doc
176 -
177 - systemd_dounit "${FILESDIR}/${PN}.service"
178 - keepdir /var/lib/${PN}-data
179 -}
180 -
181 -pkg_postinst() {
182 - systemd_reenable "${PN}.service"
183 -}