blob: f13d226d4009d853741768b0a72780be6ff5f1d5 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/kde-base/kdm/kdm-3.5.5-r1.ebuild,v 1.7 2006/12/01 19:22:00 flameeyes Exp $
KMNAME=kdebase
MAXKDEVER=$PV
KM_DEPRANGE="$PV $MAXKDEVER"
inherit kde-meta eutils
SRC_URI="${SRC_URI}
mirror://gentoo/kdebase-3.5-patchset-03.tar.bz2"
DESCRIPTION="KDE login manager, similar to xdm and gdm"
KEYWORDS="~alpha amd64 ~ia64 ppc ppc64 sparc x86 ~x86-fbsd"
IUSE="elibc_glibc kdehiddenvisibility pam"
KMEXTRA="kdmlib/"
# kioslave/thumbnail/configure.in.in is to have HAVE_LIBART. Can be dropped on
# 3.5_beta1.
KMEXTRACTONLY="libkonq/konq_defaults.h"
# kioslave/thumbnail/configure.in.in"
KMCOMPILEONLY="kcontrol/background"
DEPEND="pam? ( kde-base/kdebase-pam )
$(deprange $PV $MAXKDEVER kde-base/kcontrol)"
# Requires the desktop background settings and kdm kcontrol modules
RDEPEND="${DEPEND}
|| ( ( x11-apps/xinit x11-apps/xmessage )
<virtual/x11-7 )
kde-base/kdepasswd"
PDEPEND="$(deprange $PV $MAXKDEVER kde-base/kdesktop)"
PATCHES="${FILESDIR}/${P}-grub-patch.diff"
src_unpack() {
kde-meta_src_unpack
# Avoid using imake (kde bug 114466)
epatch "${WORKDIR}/patches/kdebase-3.5.0_beta2-noimake.patch"
}
src_compile() {
local myconf="--with-x-binaries-dir=/usr/bin $(use_with pam)"
if ! use pam && use elibc_glibc; then
myconf="${myconf} --with-shadow"
fi
export USER_LDFLAGS="${LDFLAGS}"
kde-meta_src_compile myconf configure
kde_remove_flag kdm/kfrontend -fomit-frame-pointer
kde-meta_src_compile make
}
src_install() {
kde-meta_src_install
cd ${S}/kdm && make DESTDIR=${D} GENKDMCONF_FLAGS="--no-old --no-backup --no-in-notice" install
# Customize the kdmrc configuration
sed -i -e "s:#SessionsDirs=:SessionsDirs=/usr/share/xsessions\n#SessionsDirs=:" \
${D}/${KDEDIR}/share/config/kdm/kdmrc || die
}
pkg_postinst() {
# set the default kdm face icon if it's not already set by the system admin
# because this is user-overrideable in that way, it's not in src_install
if [ ! -e "${ROOT}${KDEDIR}/share/apps/kdm/faces/.default.face.icon" ]; then
mkdir -p "${ROOT}${KDEDIR}/share/apps/kdm/faces"
cp "${ROOT}${KDEDIR}/share/apps/kdm/pics/users/default1.png" \
"${ROOT}${KDEDIR}/share/apps/kdm/faces/.default.face.icon"
fi
if [ ! -e "${ROOT}${KDEDIR}/share/apps/kdm/faces/root.face.icon" ]; then
mkdir -p "${ROOT}${KDEDIR}/share/apps/kdm/faces"
cp "${ROOT}${KDEDIR}/share/apps/kdm/pics/users/root1.png" \
"${ROOT}${KDEDIR}/share/apps/kdm/faces/root.face.icon"
fi
}
|