Gentoo Archives: gentoo-commits

From: "Markos Chandras (hwoarang)" <hwoarang@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-misc/lightdm: lightdm-1.0.6-r3.ebuild ChangeLog
Date: Sat, 19 Nov 2011 21:05:33
Message-Id: 20111119202735.172492004C@flycatcher.gentoo.org
1 hwoarang 11/11/19 20:27:35
2
3 Modified: ChangeLog
4 Added: lightdm-1.0.6-r3.ebuild
5 Log:
6 Add pam file to allow autologins. Bug #390863 thanks to Ben Kohler <bkohler@×××××.com>
7
8 (Portage version: 2.2.0_alpha71/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.23 x11-misc/lightdm/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/lightdm/ChangeLog?rev=1.23&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/lightdm/ChangeLog?rev=1.23&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/lightdm/ChangeLog?r1=1.22&r2=1.23
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/x11-misc/lightdm/ChangeLog,v
20 retrieving revision 1.22
21 retrieving revision 1.23
22 diff -u -r1.22 -r1.23
23 --- ChangeLog 5 Nov 2011 23:51:20 -0000 1.22
24 +++ ChangeLog 19 Nov 2011 20:27:34 -0000 1.23
25 @@ -1,6 +1,13 @@
26 # ChangeLog for x11-misc/lightdm
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/x11-misc/lightdm/ChangeLog,v 1.22 2011/11/05 23:51:20 hwoarang Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/lightdm/ChangeLog,v 1.23 2011/11/19 20:27:34 hwoarang Exp $
30 +
31 +*lightdm-1.0.6-r3 (19 Nov 2011)
32 +
33 + 19 Nov 2011; Markos Chandras <hwoarang@g.o> +lightdm-1.0.6-r3.ebuild,
34 + +files/lightdm-autologin:
35 + Add pam file to allow autologins. Bug #390863 thanks to Ben Kohler
36 + <bkohler@×××××.com>
37
38 *lightdm-1.0.6-r2 (05 Nov 2011)
39
40
41
42
43 1.1 x11-misc/lightdm/lightdm-1.0.6-r3.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/lightdm/lightdm-1.0.6-r3.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/lightdm/lightdm-1.0.6-r3.ebuild?rev=1.1&content-type=text/plain
47
48 Index: lightdm-1.0.6-r3.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/x11-misc/lightdm/lightdm-1.0.6-r3.ebuild,v 1.1 2011/11/19 20:27:34 hwoarang Exp $
53
54 EAPI=4
55 inherit autotools eutils pam
56
57 DESCRIPTION="A lightweight display manager"
58 HOMEPAGE="http://www.freedesktop.org/wiki/Software/LightDM"
59 SRC_URI="http://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz
60 mirror://gentoo/introspection-20110205.m4.tar.bz2
61 gtk? ( http://dev.gentoo.org/~hwoarang/distfiles/${PN}-gentoo-patch.tar.gz )"
62
63 LICENSE="GPL-3 LGPL-3"
64 SLOT="0"
65 KEYWORDS="~amd64 ~x86"
66 IUSE="branding +gtk +introspection qt4"
67
68 RDEPEND="dev-libs/glib:2
69 virtual/pam
70 x11-libs/libxklavier
71 x11-libs/libX11
72 dev-libs/libxml2
73 gtk? ( x11-libs/gtk+:3
74 x11-themes/gnome-themes-standard
75 x11-themes/gnome-icon-theme )
76 introspection? ( dev-libs/gobject-introspection )
77 qt4? ( x11-libs/qt-core:4
78 x11-libs/qt-dbus:4 )
79 sys-apps/accountsservice"
80 DEPEND="${RDEPEND}
81 dev-lang/vala:0.12
82 dev-util/intltool
83 dev-util/pkgconfig
84 gnome-base/gnome-common
85 sys-devel/gettext"
86
87 REQUIRED_USE="branding? ( gtk ) || ( gtk qt4 )"
88 DOCS=( NEWS )
89
90 src_prepare() {
91 sed -i -e "/minimum-uid/s:500:1000:" data/users.conf || die
92 sed -i -e "s:gtk+-3.0:gtk+-2.0:" configure.ac || die
93 epatch "${FILESDIR}"/session-wrapper-${PN}.patch
94
95 if has_version dev-libs/gobject-introspection; then
96 eautoreconf
97 else
98 AT_M4DIR=${WORKDIR} eautoreconf
99 fi
100 }
101
102 src_configure() {
103 # Maybe in the future, we can support some automatic session and user
104 # recognition. Until then, use default values
105 local default=gnome greeter= user=root
106
107 # gtk has higher priority because Qt4 interface sucks :)
108 use qt4 && greeter=lightdm-qt-greeter
109 use gtk && greeter=lightdm-gtk-greeter
110
111 # Let user know how lightdm is configured
112 einfo "Gentoo configuration"
113 einfo "Default greeter: ${greeter}"
114 einfo "Default session: ${default}"
115 einfo "Greeter user: ${user}"
116
117 # do the actual configuration
118 econf --localstatedir=/var \
119 --disable-static \
120 $(use_enable introspection) \
121 $(use_enable qt4 liblightdm-qt) \
122 $(use_enable qt4 qt-greeter) \
123 $(use_enable gtk gtk-greeter) \
124 --with-user-session=${default} \
125 --with-greeter-session=${greeter} \
126 --with-greeter-user=${user} \
127 --with-html-dir="${EPREFIX}"/usr/share/doc/${PF}/html
128 }
129
130 src_install() {
131 default
132
133 # Install missing files
134 insinto /etc/${PN}/
135 doins "${S}"/data/{users,keys}.conf
136 doins "${FILESDIR}"/Xsession
137 fperms +x /etc/${PN}/Xsession
138 # remove .la files
139 find "${ED}" -name "*.la" -exec rm -rf {} +
140 rm -Rf "${ED}"/etc/init || die
141
142 if use gtk; then
143 insinto /etc/${PN}/
144 doins "${WORKDIR}"/${PN}-gtk-greeter.conf
145 if use branding; then
146 insinto /usr/share/${PN}/backgrounds/
147 doins "${WORKDIR}"/gentoo1024x768.png
148 sed -i -e "/background/s:=.*:=/usr/share/${PN}/backgrounds/gentoo1024x768.png:" \
149 "${D}"/etc/${PN}/${PN}-gtk-greeter.conf || die
150 fi
151 fi
152
153 dopamd "${FILESDIR}"/${PN}
154 dopamd "${FILESDIR}"/${PN}-autologin
155 }
156
157 pkg_postinst() {
158 elog
159 elog "Even though the default /etc/${PN}/${PN}.conf will work for"
160 elog "most users, make sure you configure it to suit your needs"
161 elog "before using ${PN} for the first time."
162 elog "You can test the configuration file using the following"
163 elog "command: ${PN} --test-mode -c /etc/${PN}/${PN}.conf. This"
164 elog "requires xorg-server to be built with the 'kdrive' useflag."
165 elog
166 }