diff options
author | Dan Armak <danarmak@gentoo.org> | 2005-11-22 22:14:16 +0000 |
---|---|---|
committer | Dan Armak <danarmak@gentoo.org> | 2005-11-22 22:14:16 +0000 |
commit | ec50b1ccda877b635377e8dc5b79019eb1859906 (patch) | |
tree | 155d2c4d6c4be39c89ebb4baf7a5ebc2096a2c82 /kde-base/kdm/kdm-3.5.0.ebuild | |
parent | version bump (diff) | |
download | historical-ec50b1ccda877b635377e8dc5b79019eb1859906.tar.gz historical-ec50b1ccda877b635377e8dc5b79019eb1859906.tar.bz2 historical-ec50b1ccda877b635377e8dc5b79019eb1859906.zip |
KDE 3.5.0 (not yet released, p.masked)
Package-Manager: portage-2.0.53_rc7
Diffstat (limited to 'kde-base/kdm/kdm-3.5.0.ebuild')
-rw-r--r-- | kde-base/kdm/kdm-3.5.0.ebuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/kde-base/kdm/kdm-3.5.0.ebuild b/kde-base/kdm/kdm-3.5.0.ebuild new file mode 100644 index 000000000000..626b0753775d --- /dev/null +++ b/kde-base/kdm/kdm-3.5.0.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/kde-base/kdm/kdm-3.5.0.ebuild,v 1.1 2005/11/22 22:14:05 danarmak Exp $ + +KMNAME=kdebase +MAXKDEVER=$PV +KM_DEPRANGE="$PV $MAXKDEVER" +inherit kde-meta eutils + +DESCRIPTION="KDE login manager, similar to xdm and gdm" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="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="$DEPEND + pam? ( kde-base/kdebase-pam ) + $(deprange $PV $MAXKDEVER kde-base/kcontrol)" + # Requires the desktop background settings and kdm kcontrol modules + +# Avoid using imake (kde bug 114466). +PATCHES="${FILESDIR}/kdebase-3.5.0_beta2-noimake.patch" + +src_compile() { + local myconf="--with-x-binaries-dir=/usr/bin" + + if use pam; then + myconf="${myconf} --with-pam=yes" + else + myconf="${myconf} --with-pam=no --with-shadow" + fi + + 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 +} |