blob: 9e479f004236bfc2f576bda4d327cb1810cfffcb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="5"
inherit mate pam user
DESCRIPTION="Mate Display Manager"
HOMEPAGE="http://mate-desktop.org"
LICENSE="GPL-2 LGPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
IUSE="accessibility afs +consolekit dmx elibc_glibc ipv6 gnome-keyring pam remote selinux tcpd xinerama"
GDM_EXTRA="gdm-2.20.9-gentoo-files-r1"
SRC_URI="https://github.com/linuxmint/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
#mirror://gentoo/${GDM_EXTRA}.tar.bz2"
RDEPEND=">=dev-libs/glib-2.12:2
>=x11-libs/gtk+-2.6:2
>=x11-libs/pango-1.3
>=gnome-base/libglade-2:2.0
>=gnome-base/libgnomecanvas-2
>=gnome-base/librsvg-1.1.1:2
>=dev-libs/libxml2-2.4.12:2
>=media-libs/libart_lgpl-2.3.11
net-libs/webkit-gtk:2
x11-libs/gksu
x11-libs/libXi
x11-libs/libXau
x11-libs/libX11
x11-libs/libXext
x11-apps/sessreg
x11-libs/libXdmcp
xinerama? ( x11-libs/libXinerama )
consolekit? (
sys-auth/consolekit
dev-libs/dbus-glib )
accessibility? ( x11-libs/libXevie )
afs? ( net-fs/openafs sys-libs/lwp )
dmx? ( x11-libs/libdmx )
gnome-keyring? ( gnome-base/gnome-keyring[pam] )
pam? ( virtual/pam )
!pam? ( elibc_glibc? ( sys-apps/shadow ) )
remote? ( gnome-extra/zenity )
selinux? ( sys-libs/libselinux )
tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
>=x11-misc/xdg-utils-1.0.2-r3"
DEPEND="${RDEPEND}
dmx? ( x11-proto/dmxproto )
xinerama? ( x11-proto/xineramaproto )
app-text/docbook-xml-dtd:4.1.2
sys-devel/gettext
x11-proto/inputproto
>=dev-util/intltool-0.35
virtual/pkgconfig
>=app-text/scrollkeeper-0.1.4
>=app-text/gnome-doc-utils-0.3.2"
pkg_setup() {
DOCS="AUTHORS ChangeLog NEWS README TODO"
G2CONF="${G2CONF}
--with-prefetch
--sysconfdir=/etc/X11
--localstatedir=/var
--with-xdmcp=yes
--with-pam-prefix=/etc
--disable-static
SOUND_PROGRAM=/usr/bin/mdmplay
$(use_enable ipv6)
$(use_enable remote secureremote)
$(use_with accessibility xevie)
$(use_with consolekit console-kit)
$(use_with dmx)
$(use_with selinux)
$(use_with tcpd tcp-wrappers)
$(use_with xinerama)"
if use pam; then
G2CONF="${G2CONF} --enable-authentication-scheme=pam"
else
G2CONF="${G2CONF} --enable-console-helper=no"
if use elibc_glibc ; then
G2CONF="${G2CONF} --enable-authentication-scheme=shadow"
else
G2CONF="${G2CONF} --enable-authentication-scheme=crypt"
fi
fi
enewgroup mdm
enewuser mdm -1 -1 /var/lib/mdm mdm
}
src_prepare() {
# remove unneeded linker directive for selinux (#41022)
epatch "${FILESDIR}/gdm-2.13.0.1-selinux-remove-attr.patch"
# Make custom session work, bug #216984
epatch "${FILESDIR}/gdm-2.20.10-custom-session.patch"
eautoreconf
gnome2_src_prepare
}
src_install() {
gnome2_src_install
local gentoodir="${WORKDIR}/${GDM_EXTRA}"
# install XDG_DATA_DIRS mdm changes
echo 'XDG_DATA_DIRS="/usr/share/mdm"' > 99xdg-mdm
doenvd 99xdg-mdm
# add a custom sound playing script (#248253)
mv "${gentoodir}/gdmplay" mdmplay
dobin mdmplay
# avoid file collision, bug #213118
rm -f "${D}/usr/share/xsessions/gnome.desktop"
# We replace the pam stuff by our own
rm -rf "${D}/etc/pam.d"
if use pam ; then
use gnome-keyring && sed -i "s:#Keyring=::g" "${gentoodir}"/pam.d/*
mv "${gentoodir}"/pam.d/{g,m}dm
mv "${gentoodir}"/pam.d/{g,m}dmsetup
mv "${gentoodir}"/pam.d/{g,m}dm-autologin
dopamd "${gentoodir}"/pam.d/*
sed s/gdmsetup/mdmsetup/ "${gentoodir}/security/console.apps/gdmsetup" > "${gentoodir}/security/console.apps/mdmsetup"
dopamsecurity console.apps "${gentoodir}/security/console.apps/mdmsetup"
fi
}
|