/[gentoo-alt]/trunk/kde-base/kdm/kdm-3.4.0.ebuild
Gentoo

Contents of /trunk/kde-base/kdm/kdm-3.4.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 381 - (show annotations) (download)
Sun May 22 15:43:41 2005 UTC (9 years, 3 months ago) by flameeyes
File size: 2345 byte(s)
Added kde-base ebuild needed to satisfy dependency for kde. Still trouble with qt for now.

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header$
4
5 KMNAME=kdebase
6 MAXKDEVER=$PV
7 KM_DEPRANGE="$PV $MAXKDEVER"
8 inherit kde-meta eutils
9
10 DESCRIPTION="KDE login manager, similar to xdm and gdm"
11 KEYWORDS="~x86 ~amd64 ~ppc ~sparc ~ppc64"
12 IUSE="pam"
13
14 KMEXTRA="kdmlib/"
15 KMEXTRACTONLY="libkonq/konq_defaults.h
16 kioslave/thumbnail/configure.in.in" # for the HAVE_LIBART test
17 KMCOMPILEONLY="kcontrol/background"
18 DEPEND="$DEPEND
19 pam? ( ~kde-base/kdebase-pam-4 )
20 $(deprange $PV $MAXKDEVER kde-base/kcontrol)"
21 # Requires the desktop background settings and kdm modules,
22 # so until we separate the kcontrol modules into separate ebuilds :-),
23 # there's a dep here
24
25
26 src_compile() {
27 use pam \
28 && myconf="$myconf --with-pam=yes" \
29 || myconf="$myconf --with-pam=no --with-shadow"
30
31 kde-meta_src_compile myconf configure
32 kde_remove_flag kdm/kfrontend -fomit-frame-pointer
33 kde-meta_src_compile make
34 }
35
36 src_install() {
37 kde-meta_src_install
38 cd ${S}/kdm && make DESTDIR=${D} GENKDMCONF_FLAGS="--no-old --no-backup --no-in-notice" install
39
40 # We tell kdm to /use session files from /usr/share/xsessions.
41 # I've removed some other kdmrc mods from here, since it's not clear why
42 # the default aren't ok (and I'm not sure about the benefits of using
43 # the xdm configfiles under /etc/X11 instead of our own ones),
44 # and it's the Gentoo Way to avoid modifying upstream behaviour.
45 # Tell me if you don't like this. --danarmak
46 cd ${D}/${KDEDIR}/share/config/kdm || die
47 sed -i -e "s:#SessionsDirs=:SessionsDirs=/usr/share/xsessions\n#SessionsDirs=:" \
48 -e "s:#GreetFont=:GreetFont=Sans Serif,24,-1,5,50,0,0,0,0,0\n#GreetFont=:" \
49 -e "s:#StdFont=:StdFont=Sans Serif,12,-1,5,50,0,0,0,0,0\n#StdFont=:" \
50 -e "s:#FailFont=:FailFont=Sans Serif,12,-1,5,75,0,0,0,0,0\n#FailFont=:" \
51 -e "s:#AntiAliasing=:AntiAliasing=true\n#AntiAliasing=:" \
52 kdmrc
53 }
54
55 pkg_postinst() {
56 # set the default kdm face icon if it's not already set by the system admin
57 # because this is user-overrideable in that way, it's not in src_install
58 if [ ! -e "${ROOT}${KDEDIR}/share/apps/kdm/faces/.default.face.icon" ]; then
59 mkdir -p "${ROOT}${KDEDIR}/share/apps/kdm/faces"
60 cp "${ROOT}${KDEDIR}/share/apps/kdm/pics/users/default1.png" \
61 "${ROOT}${KDEDIR}/share/apps/kdm/faces/.default.face.icon"
62 fi
63 }

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.20