diff options
author | Dan Armak <danarmak@gentoo.org> | 2005-03-13 21:19:13 +0000 |
---|---|---|
committer | Dan Armak <danarmak@gentoo.org> | 2005-03-13 21:19:13 +0000 |
commit | e61c40840bb5a94186cd0a23cdf0a8b2712d5006 (patch) | |
tree | b055d11e3fef27e53d1e039ce9697e059471a51c /kde-base/kdm/kdm-3.4.0.ebuild | |
parent | add alpha keyword (diff) | |
download | gentoo-2-e61c40840bb5a94186cd0a23cdf0a8b2712d5006.tar.gz gentoo-2-e61c40840bb5a94186cd0a23cdf0a8b2712d5006.tar.bz2 gentoo-2-e61c40840bb5a94186cd0a23cdf0a8b2712d5006.zip |
kde 3.4.0 ebuilds. the tarballs will be available from upstream Wednesday.
as per cryos' request, keeping the ~amd64 keywords where present, even though i'm not an amd64 dev.
(Portage version: 2.0.51.19)
Diffstat (limited to 'kde-base/kdm/kdm-3.4.0.ebuild')
-rw-r--r-- | kde-base/kdm/kdm-3.4.0.ebuild | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/kde-base/kdm/kdm-3.4.0.ebuild b/kde-base/kdm/kdm-3.4.0.ebuild new file mode 100644 index 000000000000..363b4ef38619 --- /dev/null +++ b/kde-base/kdm/kdm-3.4.0.ebuild @@ -0,0 +1,63 @@ +# 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.4.0.ebuild,v 1.1 2005/03/13 21:19:04 danarmak Exp $ + +KMNAME=kdebase +MAXKDEVER=$PV +KM_DEPRANGE="$PV $MAXKDEVER" +inherit kde-meta eutils + +DESCRIPTION="KDE login manager, similar to xdm and gdm" +KEYWORDS="~x86 ~amd64" +IUSE="pam" + +KMEXTRA="kdmlib/" +KMEXTRACTONLY="libkonq/konq_defaults.h + kioslave/thumbnail/configure.in.in" # for the HAVE_LIBART test +KMCOMPILEONLY="kcontrol/background" +DEPEND="$DEPEND + pam? ( sys-libs/pam ~kde-base/kdebase-pam-4 ) + $(deprange $PV $MAXKDEVER kde-base/kcontrol)" + # Requires the desktop background settings and kdm modules, + # so until we separate the kcontrol modules into separate ebuilds :-), + # there's a dep here + + +src_compile() { + use pam \ + && myconf="$myconf --with-pam=yes" \ + || myconf="$myconf --with-pam=no --with-shadow" + + 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 + + # We tell kdm to /use session files from /usr/share/xsessions. + # I've removed some other kdmrc mods from here, since it's not clear why + # the default aren't ok (and I'm not sure about the benefits of using + # the xdm configfiles under /etc/X11 instead of our own ones), + # and it's the Gentoo Way to avoid modifying upstream behaviour. + # Tell me if you don't like this. --danarmak + cd ${D}/${KDEDIR}/share/config/kdm || die + sed -i -e "s:#SessionsDirs=:SessionsDirs=/usr/share/xsessions\n#SessionsDirs=:" \ + -e "s:#GreetFont=:GreetFont=Sans Serif,24,-1,5,50,0,0,0,0,0\n#GreetFont=:" \ + -e "s:#StdFont=:StdFont=Sans Serif,12,-1,5,50,0,0,0,0,0\n#StdFont=:" \ + -e "s:#FailFont=:FailFont=Sans Serif,12,-1,5,75,0,0,0,0,0\n#FailFont=:" \ + -e "s:#AntiAliasing=:AntiAliasing=true\n#AntiAliasing=:" \ + kdmrc +} + +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 +} |