summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngmar Vanhassel <ingmar@gentoo.org>2008-05-15 23:30:33 +0000
committerIngmar Vanhassel <ingmar@gentoo.org>2008-05-15 23:30:33 +0000
commit180ca2f4bbef393fe955652dfa1f65ed2e7d8150 (patch)
tree18ed6f6ce769aedf3d6f8b72a6a58cf8e3bcbf11 /kde-base/kdm
parentAdded KDE 4.0.4 version of kdialog. Thanks to Jorge Manuel B. S. Vicetto. (diff)
downloadhistorical-180ca2f4bbef393fe955652dfa1f65ed2e7d8150.tar.gz
historical-180ca2f4bbef393fe955652dfa1f65ed2e7d8150.tar.bz2
historical-180ca2f4bbef393fe955652dfa1f65ed2e7d8150.zip
Added KDE 4.0.4 version of kdm. Thanks to Jorge Manuel B. S. Vicetto.
Package-Manager: portage-2.1.5
Diffstat (limited to 'kde-base/kdm')
-rw-r--r--kde-base/kdm/ChangeLog7
-rw-r--r--kde-base/kdm/kdm-4.0.4.ebuild66
2 files changed, 72 insertions, 1 deletions
diff --git a/kde-base/kdm/ChangeLog b/kde-base/kdm/ChangeLog
index 0d590c1d6426..d1b8d29020f1 100644
--- a/kde-base/kdm/ChangeLog
+++ b/kde-base/kdm/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for kde-base/kdm
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/kde-base/kdm/ChangeLog,v 1.133 2008/05/15 12:37:59 corsair Exp $
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdm/ChangeLog,v 1.134 2008/05/15 23:30:33 ingmar Exp $
+
+*kdm-4.0.4 (15 May 2008)
+
+ 15 May 2008; Ingmar Vanhassel <ingmar@gentoo.org> +kdm-4.0.4.ebuild:
+ Added KDE 4.0.4 version of kdm. Thanks to Jorge Manuel B. S. Vicetto.
15 May 2008; Markus Rothe <corsair@gentoo.org> kdm-3.5.9.ebuild:
Stable on ppc64; bug #221063
diff --git a/kde-base/kdm/kdm-4.0.4.ebuild b/kde-base/kdm/kdm-4.0.4.ebuild
new file mode 100644
index 000000000000..3bbb1e961ffb
--- /dev/null
+++ b/kde-base/kdm/kdm-4.0.4.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdm/kdm-4.0.4.ebuild,v 1.1 2008/05/15 23:30:33 ingmar Exp $
+
+EAPI="1"
+
+KMNAME=kdebase-workspace
+inherit kde4-meta
+
+DESCRIPTION="KDE login manager, similar to xdm and gdm"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug htmlhandbook kerberos pam"
+
+DEPEND="
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ x11-libs/libXtst
+ kerberos? ( virtual/krb5 )
+ pam? ( >=kde-base/kcheckpass-${PV}:${SLOT}
+ sys-libs/pam )"
+RDEPEND="${DEPEND}
+ >=kde-base/kdepasswd-${PV}:${SLOT}
+ >=x11-apps/xinit-1.0.5-r2
+ x11-apps/xmessage"
+
+KMEXTRACTONLY="kcontrol/kdm/"
+KMEXTRA="libs/kdm/"
+
+PATCHES="${FILESDIR}/kdebase-4.0.2-pam-optional.patch"
+
+src_compile() {
+ mycmakeargs="${mycmakeargs}
+ $(use kerberos && echo "-DKDE4_KRB5AUTH=ON" || echo "-DKDE4_KRB5AUTH=OFF")
+ $(cmake-utils_use_with pam PAM)"
+
+ kde4-meta_src_compile
+}
+
+src_install() {
+ export GENKDMCONF_FLAGS="--no-old --no-backup"
+
+ kde4-meta_src_install
+
+ # Customize the kdmrc configuration
+ sed -i -e "s:^.*SessionsDirs=.*$:#&\nSessionsDirs=/usr/share/xsessions:" \
+ "${D}"/${PREFIX}/share/config/kdm/kdmrc \
+ || die "Failed to set SessionsDirs correctly."
+
+ # Don't install empty dir
+ rmdir "${D}${KDEDIR}"/share/config/kdm/sessions
+}
+
+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
+}