diff options
author | Marinus Schraal <foser@gentoo.org> | 2002-12-01 17:27:01 +0000 |
---|---|---|
committer | Marinus Schraal <foser@gentoo.org> | 2002-12-01 17:27:01 +0000 |
commit | a0c01fb8638b5c533c846a904e82e243db5e0282 (patch) | |
tree | 55f9640ef660a95cf8f631a3e88819b27024b56e /gnome-base/gdm | |
parent | Masking xft2 enabled control-center (diff) | |
download | gentoo-2-a0c01fb8638b5c533c846a904e82e243db5e0282.tar.gz gentoo-2-a0c01fb8638b5c533c846a904e82e243db5e0282.tar.bz2 gentoo-2-a0c01fb8638b5c533c846a904e82e243db5e0282.zip |
Some gimmicks added
Diffstat (limited to 'gnome-base/gdm')
-rw-r--r-- | gnome-base/gdm/ChangeLog | 7 | ||||
-rw-r--r-- | gnome-base/gdm/files/digest-gdm-2.4.0.12-r1 | 2 | ||||
-rw-r--r-- | gnome-base/gdm/gdm-2.4.0.12-r1.ebuild | 216 |
3 files changed, 224 insertions, 1 deletions
diff --git a/gnome-base/gdm/ChangeLog b/gnome-base/gdm/ChangeLog index 0694152e5a81..350a7359b695 100644 --- a/gnome-base/gdm/ChangeLog +++ b/gnome-base/gdm/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for gnome-base/gdm # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/gnome-base/gdm/ChangeLog,v 1.21 2002/11/28 01:19:35 spider Exp $ +# $Header: /var/cvsroot/gentoo-x86/gnome-base/gdm/ChangeLog,v 1.22 2002/12/01 17:27:01 foser Exp $ + +*gdm-2.4.0.12-r1 (01 Dec 2002) + + 01 Dec 2002; foser <foser@gentoo.org> gdm-2.4.0.12-r1.ebuild : + Added Gentoo theme and close open tcp port *gdm-2.4.0.12 (28 Nov 2002) 28 Nov 2002; Spider <spider@gentoo.org> : gdm-2.4.0.12.ebuild : diff --git a/gnome-base/gdm/files/digest-gdm-2.4.0.12-r1 b/gnome-base/gdm/files/digest-gdm-2.4.0.12-r1 new file mode 100644 index 000000000000..59d653878d8e --- /dev/null +++ b/gnome-base/gdm/files/digest-gdm-2.4.0.12-r1 @@ -0,0 +1,2 @@ +MD5 8aa6e503d4f74de8df32dee28df9a0de gdm-2.4.0.12.tar.bz2 1708764 +MD5 5b729216045fc49f42b6353c5ca1d4f2 gentoo-gdm-theme.tar.bz2 772144 diff --git a/gnome-base/gdm/gdm-2.4.0.12-r1.ebuild b/gnome-base/gdm/gdm-2.4.0.12-r1.ebuild new file mode 100644 index 000000000000..45537f3737a9 --- /dev/null +++ b/gnome-base/gdm/gdm-2.4.0.12-r1.ebuild @@ -0,0 +1,216 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/gnome-base/gdm/gdm-2.4.0.12-r1.ebuild,v 1.1 2002/12/01 17:27:01 foser Exp $ + +inherit gnome.org + +DESCRIPTION="GNOME2 Display Manager" +HOMEPAGE="http://www.gnome.org/" + +SLOT="0" +KEYWORDS="~x86 ~ppc ~sparc ~sparc64 ~alpha" +LICENSE="GPL-2" +IUSE="nls" +SRC_URI="${SRC_URI} + http://cvs.gentoo.org/~foser/gentoo-gdm-theme.tar.bz2" +MY_V="`echo ${PV} |cut -b -5`" + +RDEPEND=">=sys-libs/pam-0.72 + >=sys-apps/tcp-wrappers-7.6 + >=app-text/scrollkeeper-0.3.11 + >=gnome-base/libglade-2.0.1 + >=gnome-base/librsvg-2.0.1 + >=dev-libs/libxml2-2.4.24 + >=gnome-base/libgnome-2.0.4 + >=gnome-base/libgnomeui-2.0.5 + >=gnome-base/libgnomecanvas-2.0.4 + >=gnome-base/ORBit2-2.4.1" + +DEPEND="${RDEPEND} + >=x11-base/xfree-4.2.0-r3" + +pkg_setup() { + # This is not a very good way to do this, but + # it saves users the effort of remerging xfree.. + # See bug #10190 + cd /etc/X11 + if patch -p0 --dry-run < ${FILESDIR}/${PN}-startDM.sh.patch &> /dev/null + then + einfo "Fixing startDM.sh..." + patch -p0 < ${FILESDIR}/${PN}-startDM.sh.patch > /dev/null || die + fi +} + +src_unpack() { + unpack ${A} + + cd ${S}/daemon + cp gdm.h gdm.h.orig + sed -e "s:/usr/bin/X11:/usr/X11R6/bin:g" \ + gdm.h.orig > gdm.h + rm -f gdm.h.orig + + cd ${S}/config + cp gdm.conf.in gdm.conf.in.orig + sed -e "s:/usr/bin/X11:/usr/X11R6/bin:g" \ + -e "s:=circles:=gentoo-emergence:" \ + -e "s:command=/usr/X11R6/bin/X:command=/usr/X11R6/bin/X -nolisten tcp:" \ + gdm.conf.in.orig > gdm.conf.in + + rm -f gdm.conf.in.orig + + # Make the config use the Gentoo theme + +} + +src_compile() { + local myconf="" + use nls || myconf="${myconf} --disable-nls" + + ./configure --host=${CHOST} \ + --prefix=/usr \ + --sysconfdir=/etc/X11 \ + --localstatedir=/var/lib \ + --with-pam-prefix=/etc \ + ${myconf} || die + + emake || die +} + +src_install() { + cd omf-install + cp Makefile Makefile.old + sed -e "s:scrollkeeper-update.*::g" \ + Makefile.old > Makefile + rm Makefile.old + cd ${S} + + make prefix=${D}/usr \ + sysconfdir=${D}/etc/X11 \ + localstatedir=${D}/var/lib \ + PAM_PREFIX=${D}/etc \ + install || die + + # We need to move gdm-binary to gdm, else our xdm script + # have problems stopping gdm (bug #5598) + rm -f ${D}/usr/bin/gdm + mv ${D}/usr/bin/gdm-binary ${D}/usr/bin/gdm + + rm -f ${D}/etc/pam.d/gdm + + # log + dodir /var/lib/gdm + chown gdm:gdm ${D}/var/lib/gdm + chmod 0750 ${D}/var/lib/gdm + + # pam startup + dodir /etc/pam.d + insinto /etc/pam.d + doins ${FILESDIR}/${MY_V}/pam.d/gdm + doins ${FILESDIR}/${MY_V}/pam.d/gdmconfig + + # pam security + dodir /etc/security/console.apps + insinto /etc/security/console.apps + doins ${FILESDIR}/${MY_V}/security/console.apps/gdmconfig + + # gnomerc + dodir /etc/X11/gdm + exeinto /etc/X11/gdm + doexe ${FILESDIR}/${MY_V}/gnomerc + + cd ${D}/etc/X11/gdm + for i in Init/Default PostSession/Default PreSession/Default gdm.conf + do + cp ${i} ${i}.orig + sed -e s:/usr/bin/X11:/usr/X11R6/bin:g \ + ${i}.orig > ${i} + rm ${i}.orig + done + + cd ${D}/etc/X11/gdm + cp gdm.conf gdm.conf.orig + + sed -e "s:0=/usr/X11R6/bin/X:0=/usr/X11R6/bin/X -dpi 100 -nolisten tcp dpms vt7:g" \ + -e "s:GtkRC=/opt/gnome/share/themes/Default/gtk/gtkrc:GtkRC=/usr/share/themes/Default/gtk/gtkrc:g" \ + -e "s:BackgroundColor=#007777:BackgroundColor=#2a3f5b:g" \ + -e "s:TitleBar=true:TitleBar=false:g" \ + -e "s:Greeter=/usr/bin/gdmlogin:Greeter=/usr/bin/gdmgreeter:g" \ + gdm.conf.orig > gdm.conf + + rm gdm.conf.orig + + cd ${S} + + #support for new session stuff + rm -rf ${D}/etc/X11/gdm/Sessions + dosym ../Sessions /etc/X11/gdm/Sessions + + # move Gentoo theme in + mv ${WORKDIR}/gentoo-emergence ${D}/usr/share/gdm/themes + + dodoc ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS README* TODO +} + +pkg_preinst() { + #support for new session stuff + if [ -d ${ROOT}/etc/X11/gdm/Sessions -a ! -L ${ROOT}/etc/X11/gdm/Sessions ] + then + mv -f ${ROOT}/etc/X11/gdm/Sessions ${ROOT}/etc/X11/gdm/Sessions.old + fi +} + +pkg_postinst() { + echo ">>> Updating Scrollkeeper database..." + scrollkeeper-update >/dev/null 2>&1 + + # Attempt to restart GDM softly by use of the fifo. Wont work on older + # then 2.2.3.1 versions but should work nicely on later upgrades. + # FIXME: this is just way too complex + FIFOFILE="${ROOT}`grep '^ServAuthDir=' ${ROOT}/etc/X11/gdm/gdm.conf | sed -e 's/^ServAuthDir=//'`" + if [ -z "${FIFOFILE}" ] + then + FIFOFILE=${ROOT}/var/lib/gdm/.gdmfifo + else + FIFOFILE=${FIFOFILE}/.gdmfifo + fi + PIDFILE="${ROOT}`grep '^PidFile=' ${ROOT}/etc/X11/gdm/gdm.conf | sed -e 's/^PidFile=//'`" + if [ -z "${PIDFILE}" ] + then + PIDFILE=${ROOT}/var/run/gdm.pid + fi + if [ -w ${FIFOFILE} ] + then + if [ -f ${PIDFILE} ] + then + if kill -0 `cat ${PIDFILE}` + then + (echo;echo SOFT_RESTART) >> ${FIFOFILE} + fi + fi + fi + + # unmerge nukes sometimes + if [ ! -d ${ROOT}/var/lib/gdm ] + then + mkdir -p ${ROOT}/var/lib/gdm + chown gdm.gdm ${ROOT}/var/lib/gdm + chmod 0750 ${ROOT}/var/lib/gdm + fi + touch ${ROOT}/var/lib/gdm/.keep + + echo "" + einfo "To make GDM start at boot, edit /etc/rc.conf (or /etc/conf.d/basic)" + einfo "and then execute 'rc-update add xdm default'." + einfo "" + einfo "Note that you need xfree-4.1.0-r4 or later." +} + +pkg_postrm() { + echo ">>> Updating Scrollkeeper database..." + scrollkeeper-update >/dev/null 2>&1 + + echo "" + einfo "To remove GDM from startup please execute" + einfo "'rc-update del xdm default'" +} |