Gentoo Archives: gentoo-commits

From: "Gilles Dartiguelongue (eva)" <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in gnome-base/gdm: ChangeLog gdm-2.20.3.ebuild
Date: Wed, 09 Jan 2008 21:32:47
Message-Id: E1JCiXU-0006aY-FG@stork.gentoo.org
1 eva 08/01/09 21:32:44
2
3 Modified: ChangeLog
4 Added: gdm-2.20.3.ebuild
5 Log:
6 bump to 2.20.3
7 (Portage version: 2.1.4_rc14)
8
9 Revision Changes Path
10 1.255 gnome-base/gdm/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/gnome-base/gdm/ChangeLog?rev=1.255&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/gnome-base/gdm/ChangeLog?rev=1.255&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/gnome-base/gdm/ChangeLog?r1=1.254&r2=1.255
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/gnome-base/gdm/ChangeLog,v
19 retrieving revision 1.254
20 retrieving revision 1.255
21 diff -u -r1.254 -r1.255
22 --- ChangeLog 29 Nov 2007 16:46:42 -0000 1.254
23 +++ ChangeLog 9 Jan 2008 21:32:43 -0000 1.255
24 @@ -1,6 +1,11 @@
25 # ChangeLog for gnome-base/gdm
26 -# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/gnome-base/gdm/ChangeLog,v 1.254 2007/11/29 16:46:42 dang Exp $
28 +# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/gnome-base/gdm/ChangeLog,v 1.255 2008/01/09 21:32:43 eva Exp $
30 +
31 +*gdm-2.20.3 (09 Jan 2008)
32 +
33 + 09 Jan 2008; Gilles Dartiguelongue <eva@g.o> +gdm-2.20.3.ebuild:
34 + bump to 2.20.3
35
36 *gdm-2.20.2 (29 Nov 2007)
37
38
39
40
41 1.1 gnome-base/gdm/gdm-2.20.3.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/gnome-base/gdm/gdm-2.20.3.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/gnome-base/gdm/gdm-2.20.3.ebuild?rev=1.1&content-type=text/plain
45
46 Index: gdm-2.20.3.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/gnome-base/gdm/gdm-2.20.3.ebuild,v 1.1 2008/01/09 21:32:43 eva Exp $
51
52 inherit autotools eutils pam gnome2
53
54 DESCRIPTION="GNOME Display Manager"
55 HOMEPAGE="http://www.gnome.org/projects/gdm/"
56
57 LICENSE="GPL-2"
58 SLOT="0"
59 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
60
61 IUSE_LIBC="elibc_glibc"
62 IUSE="accessibility afs branding dmx ipv6 pam remote selinux tcpd xinerama $IUSE_LIBC"
63
64 # Name of the tarball with gentoo specific files
65 GDM_EXTRA="${PN}-2.8-gentoo-files-r2"
66
67 SRC_URI="${SRC_URI}
68 mirror://gentoo/${GDM_EXTRA}.tar.bz2
69 branding? ( mirror://gentoo/gentoo-gdm-theme-r3.tar.bz2 )"
70
71 RDEPEND="dev-libs/dbus-glib
72 >=dev-libs/glib-2.12
73 >=x11-libs/gtk+-2.6
74 >=x11-libs/pango-1.3
75 >=gnome-base/libglade-2
76 >=gnome-base/libgnomecanvas-2
77 >=gnome-base/librsvg-1.1.1
78 >=dev-libs/libxml2-2.4.12
79 >=media-libs/libart_lgpl-2.3.11
80 x11-libs/gksu
81 x11-libs/libXi
82 x11-libs/libXau
83 x11-libs/libX11
84 x11-libs/libXext
85 x11-apps/sessreg
86 x11-libs/libXdmcp
87 xinerama? ( x11-libs/libXinerama )
88 sys-auth/consolekit
89 accessibility? ( x11-libs/libXevie )
90 afs? ( net-fs/openafs sys-libs/lwp )
91 dmx? ( x11-libs/libdmx )
92 pam? ( virtual/pam )
93 !pam? ( elibc_glibc? ( sys-apps/shadow ) )
94 remote? ( gnome-extra/zenity )
95 selinux? ( sys-libs/libselinux )
96 tcpd? ( >=sys-apps/tcp-wrappers-7.6 )"
97 DEPEND="${RDEPEND}
98 dmx? ( x11-proto/dmxproto )
99 sys-devel/gettext
100 x11-proto/inputproto
101 >=dev-util/intltool-0.35
102 >=dev-util/pkgconfig-0.19
103 >=app-text/scrollkeeper-0.1.4
104 >=app-text/gnome-doc-utils-0.3.2"
105
106 DOCS="AUTHORS ChangeLog NEWS README TODO"
107
108 pkg_setup() {
109 G2CONF="--with-prefetch=yes \
110 --sysconfdir=/etc/X11 \
111 --localstatedir=/var \
112 --with-xdmcp=yes \
113 --with-pam-prefix=/etc \
114 --with-console-kit=yes \
115 $(use_enable accessibility xevie) \
116 $(use_enable ipv6) \
117 $(use_enable remote secureremote) \
118 $(use_with selinux) \
119 $(use_with tcpd tcp-wrappers) \
120 $(use_with xinerama)"
121
122 if use dmx ; then
123 G2CONF="${G2CONF} --with-dmx=yes"
124 else
125 G2CONF="${G2CONF} --with-dmx=no"
126 fi
127
128 if use pam; then
129 G2CONF="${G2CONF} --enable-authentication-scheme=pam"
130 else
131 G2CONF="${G2CONF} --enable-console-helper=no"
132 if use elibc_glibc ; then
133 G2CONF="${G2CONF} --enable-authentication-scheme=shadow"
134 else
135 G2CONF="${G2CONF} --enable-authentication-scheme=crypt"
136 fi
137 fi
138
139 enewgroup gdm
140 enewuser gdm -1 -1 /var/lib/gdm gdm
141 }
142
143 src_unpack() {
144 gnome2_src_unpack
145
146 # remove unneeded linker directive for selinux (#41022)
147 epatch "${FILESDIR}/${PN}-2.13.0.1-selinux-remove-attr.patch"
148
149 # Add gksu to gdmsetup menu entry
150 epatch "${FILESDIR}/${PN}-2.20.2-gksu.patch"
151 }
152
153 src_install() {
154 gnome2_src_install
155
156 local gentoodir="${WORKDIR}/${GDM_EXTRA}"
157
158 # gdm-binary should be gdm to work with our init (#5598)
159 rm -f "${D}/usr/sbin/gdm"
160 dosym /usr/sbin/gdm-binary /usr/sbin/gdm
161
162 # our x11's scripts point to /usr/bin/gdm
163 dosym /usr/sbin/gdm-binary /usr/bin/gdm
164
165 # log, etc.
166 keepdir /var/log/gdm
167 keepdir /var/gdm
168
169 chown root:gdm "${D}/var/gdm"
170 chmod 1770 "${D}/var/gdm"
171
172 # use our own session script
173 rm -f "${D}/etc/X11/gdm/Xsession"
174 exeinto /etc/X11/gdm
175 doexe "${gentoodir}/Xsession"
176
177 # add a custom xsession .desktop by default (#44537)
178 exeinto /etc/X11/dm/Sessions
179 doexe "${gentoodir}/custom.desktop"
180
181 # We replace the pam stuff by our own
182 rm -rf "${D}/etc/pam.d"
183
184 if use pam ; then
185 dopamd "${gentoodir}"/pam.d/*
186 dopamsecurity console.apps "${gentoodir}/security/console.apps/gdmsetup"
187 fi
188
189 # use graphical greeter local
190 dosed "s:#Greeter=/usr/libexec/gdmlogin:Greeter=/usr/libexec/gdmgreeter:" \
191 /usr/share/gdm/defaults.conf
192
193 # list available users
194 dosed "s:^#MinimalUID=.*:MinimalUID=1000:" /usr/share/gdm/defaults.conf
195 dosed "s:^#IncludeAll=.*:IncludeAll=true:" /usr/share/gdm/defaults.conf
196
197 # Fix old X11R6 paths
198 dosed "s:/usr/X11R6/bin:/usr/bin:" /usr/share/gdm/defaults.conf
199
200 # Move Gentoo theme in
201 if use branding ; then
202 mv "${WORKDIR}"/gentoo-* "${D}/usr/share/gdm/themes"
203 fi
204 }
205
206 pkg_postinst() {
207 gnome2_pkg_postinst
208
209 elog "To make GDM start at boot, edit /etc/rc.conf"
210 elog "and then execute 'rc-update add xdm default'."
211
212 elog "GDM has changed the location of its configuration file. Please"
213 elog "edit /etc/X11/gdm/custom.conf. The factory defaults are located"
214 elog "at /usr/share/gdm/{defaults.conf,factory-defaults.conf}"
215
216 elog "See README.install for more information about the change."
217
218 if [ -f "/etc/X11/gdm/gdm.conf" ]; then
219 elog "You had /etc/X11/gdm/gdm.conf which is the old configuration"
220 elog "file. It has been moved to /etc/X11/gdm/gdm-pre-gnome-2.16"
221 mv /etc/X11/gdm/gdm.conf /etc/X11/gdm/gdm-pre-gnome-2.16
222 fi
223
224 # Soft restart, assumes Gentoo defaults for file locations
225 # Do restart after gdm.conf move above
226 FIFOFILE=/var/gdm/.gdmfifo
227 PIDFILE=/var/run/gdm.pid
228
229 if [ -w ${FIFOFILE} ] ; then
230 if [ -f ${PIDFILE} ] ; then
231 if kill -0 `cat ${PIDFILE}`; then
232 (echo;echo SOFT_RESTART) >> ${FIFOFILE}
233 fi
234 fi
235 fi
236 }
237
238 pkg_postrm() {
239 gnome2_pkg_postrm
240
241 if [[ "$(rc-config list default | grep xdm)" != "" ]] ; then
242 elog "To remove GDM from startup please execute"
243 elog "'rc-update del xdm default'"
244 fi
245 }
246
247
248
249 --
250 gentoo-commits@l.g.o mailing list