summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2012-03-19 06:06:55 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2012-03-19 06:06:55 +0000
commita519b6a9e54d6c9a1fa8ccd43813e62dd114fdfc (patch)
tree792f4f7594025395d364f0492ef4fba5057c29b5 /x11-misc/slim
parentAdd ~mips keyword, needed by app-text/texlive[xml] (diff)
downloadgentoo-2-a519b6a9e54d6c9a1fa8ccd43813e62dd114fdfc.tar.gz
gentoo-2-a519b6a9e54d6c9a1fa8ccd43813e62dd114fdfc.tar.bz2
gentoo-2-a519b6a9e54d6c9a1fa8ccd43813e62dd114fdfc.zip
punt old, no internal CK support
(Portage version: 2.2.0_alpha90/cvs/Linux x86_64)
Diffstat (limited to 'x11-misc/slim')
-rw-r--r--x11-misc/slim/ChangeLog6
-rw-r--r--x11-misc/slim/files/Xsession-r2164
-rw-r--r--x11-misc/slim/files/slim-1.3.2-r2-config.diff71
-rw-r--r--x11-misc/slim/slim-1.3.2-r6.ebuild131
4 files changed, 5 insertions, 367 deletions
diff --git a/x11-misc/slim/ChangeLog b/x11-misc/slim/ChangeLog
index bc62d9014713..dbe9770ad3ba 100644
--- a/x11-misc/slim/ChangeLog
+++ b/x11-misc/slim/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for x11-misc/slim
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-misc/slim/ChangeLog,v 1.82 2012/03/17 18:08:05 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/slim/ChangeLog,v 1.83 2012/03/19 06:06:54 ssuominen Exp $
+
+ 19 Mar 2012; Samuli Suominen <ssuominen@gentoo.org> -slim-1.3.2-r6.ebuild,
+ -files/slim-1.3.2-r2-config.diff, -files/Xsession-r2:
+ old
17 Mar 2012; Raúl Porcel <armin76@gentoo.org> slim-1.3.2-r7.ebuild:
sparc stable wrt #401135
diff --git a/x11-misc/slim/files/Xsession-r2 b/x11-misc/slim/files/Xsession-r2
deleted file mode 100644
index 2712610f5b11..000000000000
--- a/x11-misc/slim/files/Xsession-r2
+++ /dev/null
@@ -1,164 +0,0 @@
-#!/bin/sh
-#
-# Slim login manager Xsession script
-#
-
-command="$@"
-
-# this will go into slim.log along with all other echo's
-# good for debugging where things go wrong
-echo "$0: Beginning session setup..."
-
-# First read /etc/profile and .profile
-test -f /etc/profile && . /etc/profile
-test -f "$HOME/.profile" && . "$HOME/.profile"
-# Second read /etc/xprofile and .xprofile for X specific setup
-test -f /etc/xprofile && . /etc/xprofile
-test -f "$HOME/.xprofile" && . "$HOME/.xprofile"
-
-# wrap possible arguments to determine whether to treat special or not
-if [ "x$command" = "xcustom" ] || [ "x$command" = "xCustom" ] || [ "x$command" = "xdefault" ] || [ "x$command" = "xDefault" ]; then
- command="Xsession"
-fi
-if [ "x$command" = "x" ]; then
- # no default specified, check if Xsession will complete
- # and if not then assign XSESSION to command
- if [ -x "$HOME/.xsession" ] || [ -x "$HOME/.Xclients" ] || [ -x /etc/X11/xinit/Xclients ] || [ -x /etc/X11/Xclients ]; then
- command="Xsession"
- else
- command=$XSESSION
- fi
-fi
-
-# most of this is from /etc/X11/chooser.sh
-sessionscript=""
-if [ -n "${command}" ]; then
- # find a match for $command in /etc/X11/Sessions
- for x in /etc/X11/Sessions/* ; do
- if [ "`echo ${x##*/} | awk '{ print toupper($1) }'`" = "`echo ${command} | awk '{ print toupper($1) }'`" ]; then
- sessionscript=${x}
- break
- fi
- done
- if [ -n "${sessionscript}" ]; then
- if [ -x "${sessionscript}" ]; then
- command="${sessionscript}"
- else
- command="/bin/sh ${sessionscript}"
- fi
- else
-
- # find an executable for $command
- x=""
- y=""
-
- for x in "${command}" "`echo ${command} | awk '{ print toupper($1) }'`" "`echo ${command} | awk '{ print tolower($1) }'`"
- do
- # Fall through ...
- if [ -x "`which ${x} 2>/dev/null`" ]; then
- y="`which ${x} 2>/dev/null`"
- break
- fi
- done
- # note , if the command could not be found then $command will be empty
- command="$y"
- unset x
- unset y
- fi
-fi
-
-# call xrdb and xmodmap and such, since $command is not a session script
-if [ -z "${sessionscript}" ]; then
- userresources="$HOME/.Xresources"
- usermodmap="$HOME/.Xmodmap"
- userxkbmap="$HOME/.Xkbmap"
-
- sysresources=/etc/X11/Xresources
- sysmodmap=/etc/X11/Xmodmap
- sysxkbmap=/etc/X11/Xkbmap
-
- rh6sysresources=/etc/X11/xinit/Xresources
- rh6sysmodmap=/etc/X11/xinit/Xmodmap
-
- # merge in defaults
- if [ -f "$rh6sysresources" ]; then
- xrdb -merge "$rh6sysresources"
- fi
-
- if [ -f "$sysresources" ]; then
- xrdb -merge "$sysresources"
- fi
-
- if [ -f "$userresources" ]; then
- xrdb -merge "$userresources"
- fi
-
- # merge in keymaps
- if [ -f "$sysxkbmap" ]; then
- setxkbmap `cat "$sysxkbmap"`
- XKB_IN_USE=yes
- fi
-
- if [ -f "$userxkbmap" ]; then
- setxkbmap `cat "$userxkbmap"`
- XKB_IN_USE=yes
- fi
-
- #
- # Eeek, this seems like too much magic here
- #
- if [ -z "$XKB_IN_USE" -a ! -L /etc/X11/X ]; then
- if grep '^exec.*/Xsun' /etc/X11/X > /dev/null 2>&1 && [ -f /etc/X11/XF86Config ]; then
- xkbsymbols=`sed -n -e 's/^[ ]*XkbSymbols[ ]*"\(.*\)".*$/\1/p' /etc/X11/XF86Config`
- if [ -n "$xkbsymbols" ]; then
- setxkbmap -symbols "$xkbsymbols"
- XKB_IN_USE=yes
- fi
- fi
- fi
-
- # xkb and xmodmap don't play nice together
- if [ -z "$XKB_IN_USE" ]; then
- if [ -f "$rh6sysmodmap" ]; then
- xmodmap "$rh6sysmodmap"
- fi
-
- if [ -f "$sysmodmap" ]; then
- xmodmap "$sysmodmap"
- fi
-
- if [ -f "$usermodmap" ]; then
- xmodmap "$usermodmap"
- fi
- fi
-
- unset XKB_IN_USE
-fi
-unset sessionscript
-
-# start failsafe session
-if [ -z "${command}" ]; then
- echo "$0: Failed to find a command to start the session, so starting a failsafe xterm."
- exec xterm -geometry 80x24+0+0
-fi
-
-# temporarily unset XDG_SESSION_COOKIE so consolekit launches a new session
-realxdgcookie="$XDG_SESSION_COOKIE"
-XDG_SESSION_COOKIE=
-# run all system xinitrc shell scripts which will update command
-if [ -d /etc/X11/xinit/xinitrc.d ]; then
- for i in /etc/X11/xinit/xinitrc.d/* ; do
- if [ -x "$i" ]; then
- . "$i"
- fi
- done
- unset i
-fi
-# restore XDG_SESSION_COOKIE
-XDG_SESSION_COOKIE="$realxdgcookie"
-unset realxdgcookie
-
-echo "$0: Setup done, will execute: $command"
-exec $command
-
-# vim:ts=4
diff --git a/x11-misc/slim/files/slim-1.3.2-r2-config.diff b/x11-misc/slim/files/slim-1.3.2-r2-config.diff
deleted file mode 100644
index a8ae185a845e..000000000000
--- a/x11-misc/slim/files/slim-1.3.2-r2-config.diff
+++ /dev/null
@@ -1,71 +0,0 @@
---- slim.conf.orig 2010-08-25 11:52:23.000000000 -0400
-+++ slim.conf 2010-08-25 11:58:58.000000000 -0400
-@@ -2,7 +2,7 @@
- # Note: -xauth $authfile is automatically appended
- default_path /bin:/usr/bin:/usr/local/bin
- default_xserver /usr/bin/X
--#xserver_arguments -dpi 75
-+xserver_arguments -nolisten tcp -br -deferglyphs 16
-
- # Commands for halt, login, etc.
- halt_cmd /sbin/shutdown -h now
-@@ -18,7 +18,7 @@
-
-
- # Activate numlock when slim starts. Valid values: on|off
--# numlock on
-+numlock on
-
- # Hide the mouse cursor (note: does not work with some WMs).
- # Valid values: true|false
-@@ -33,7 +33,8 @@
- # to adjust the command according to your preferred shell,
- # i.e. for freebsd use:
- # login_cmd exec /bin/sh - ~/.xinitrc %session
--login_cmd exec /bin/bash -login ~/.xinitrc %session
-+# login_cmd exec /bin/bash -login ~/.xinitrc %session
-+login_cmd exec /bin/bash -login /usr/share/slim/Xsession %session
-
- # Commands executed when starting and exiting a session.
- # They can be used for registering a X11 session with
-@@ -41,20 +42,26 @@
- #
- # sessionstart_cmd some command
- # sessionstop_cmd some command
-+sessionstart_cmd /usr/bin/sessreg -a -l :0.0 %user
-+sessionstop_cmd /usr/bin/sessreg -d -l :0.0 %user
-
- # Start in daemon mode. Valid values: yes | no
- # Note that this can be overriden by the command line
- # options "-d" and "-nodaemon"
--# daemon yes
-+daemon yes
-
- # Available sessions (first one is the default).
- # The current chosen session name is replaced in the login_cmd
- # above, so your login command can handle different sessions.
- # see the xinitrc.sample file shipped with slim sources
--sessions xfce4,icewm,wmaker,blackbox
-+#sessions xfce4,icewm,wmaker,blackbox
-+# Alternatively, read available sessions from a directory:
-+sessiondir /etc/X11/Sessions
-
--# Executed when pressing F11 (requires imagemagick)
-+# Executed when pressing F11 (requires media-gfx/imagemagick for import)
-+# Alternative is media-gfx/scrot. See Gentoo bug 252241 for more info.
- screenshot_cmd import -window root /slim.png
-+#screenshot_cmd scrot /root/slim.png
-
- # welcome message. Available variables: %host, %domain
- welcome_msg Welcome to %host
-@@ -83,8 +88,8 @@
- # randomly choose from
- current_theme default
-
--# Lock file
--lockfile /var/run/slim.lock
-+# Lock file, /etc/init.d/xdm expects slim.pid
-+lockfile /var/run/slim.pid
-
- # Log file
- logfile /var/log/slim.log
diff --git a/x11-misc/slim/slim-1.3.2-r6.ebuild b/x11-misc/slim/slim-1.3.2-r6.ebuild
deleted file mode 100644
index 36b282b1748a..000000000000
--- a/x11-misc/slim/slim-1.3.2-r6.ebuild
+++ /dev/null
@@ -1,131 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-misc/slim/slim-1.3.2-r6.ebuild,v 1.4 2011/12/18 17:37:31 armin76 Exp $
-
-EAPI=2
-
-inherit toolchain-funcs pam eutils
-
-DESCRIPTION="Simple Login Manager"
-HOMEPAGE="http://slim.berlios.de"
-SRC_URI="mirror://berlios/${PN}/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ~ppc ~ppc64 sparc x86 ~x86-fbsd"
-IUSE="branding pam"
-
-RDEPEND="x11-libs/libXmu
- x11-libs/libX11
- x11-libs/libXpm
- x11-libs/libXft
- >=media-libs/libpng-1.4
- virtual/jpeg
- x11-apps/sessreg
- pam? ( virtual/pam )"
-DEPEND="${RDEPEND}
- dev-util/pkgconfig
- x11-proto/xproto"
-PDEPEND="branding? ( >=x11-themes/slim-themes-1.2.3a-r3 )"
-
-src_prepare() {
- # respect C[XX]FLAGS, fix crosscompile,
- # fix linking order for --as-needed"
- sed -i -e "s:^CXX=.*:CXX=$(tc-getCXX) ${CXXFLAGS}:" \
- -e "s:^CC=.*:CC=$(tc-getCC) ${CFLAGS}:" \
- -e "s:^MANDIR=.*:MANDIR=/usr/share/man:" \
- -e "s:^\t\(.*\)\ \$(LDFLAGS)\ \(.*\):\t\1\ \2\ \$(LDFLAGS):g" \
- -e "s:-I/usr/include/libpng12:$(pkg-config --cflags-only-I libpng):" \
- -e "s:-lpng12:$(pkg-config --libs-only-l libpng):" \
- -r -e "s:^LDFLAGS=(.*):LDFLAGS=\1 ${LDFLAGS}:" \
- Makefile || die "sed failed in Makefile"
- # Our Gentoo-specific config changes
- epatch "${FILESDIR}"/${PN}-1.3.2-r3-config.diff
-
- if use elibc_FreeBSD; then
- sed -i -e "s/CUSTOM=-DHAVE_SHADOW/CUSTOM=-DNEEDS_BASENAME/" Makefile \
- || die "sed failed in Makefile"
- epatch "${FILESDIR}"/${PN}-1.3.2-bsd-install.patch
- fi
-
- if use branding; then
- sed -i -e 's/ default/ slim-gentoo-simple/' slim.conf || die
- fi
-
- # Gentoo bug 297655
- epatch "${FILESDIR}"/14509-fix-keyboard-in-tty-from-which-${PN}-is-lauched.patch
- # Upstream bug #15287
- epatch "${FILESDIR}"/15287-fix-pam-authentication-with-pam_unix2.patch
- # Gentoo Bug 261713
- epatch "${FILESDIR}"/261713-restart-xserver-if-killed.patch
- # Gentoo bug 261359, upstream 15326
- epatch "${FILESDIR}"/261359-fix-SIGTERM-freeze.patch
- # Gentoo bug 346037
- epatch "${FILESDIR}"/346037-stop_setting_host_for_pam_ck_connector_so.patch
- # Gentoo bug 378505
- epatch "${FILESDIR}"/${P}-libpng15.patch
- # Gentoo bug 252280
- epatch "${FILESDIR}"/252280-fix-default_user-focus_passwd.patch
-}
-
-src_compile() {
- if use pam ; then
- emake USE_PAM=1 || die "emake failed."
- else
- emake || die "emake failed."
- fi
-}
-
-src_install() {
- if use pam ; then
- emake USE_PAM=1 DESTDIR="${D}" install || die "emake install failed."
- pamd_mimic system-local-login slim auth account session
- else
- emake DESTDIR="${D}" install || die "emake install failed."
- fi
-
- insinto /usr/share/slim
- newins "${FILESDIR}/Xsession-r2" Xsession || die "newins failed"
-
- insinto /etc/logrotate.d
- newins "${FILESDIR}/slim.logrotate" slim || die "newins failed"
-
- dodoc xinitrc.sample ChangeLog README TODO THEMES
-}
-
-pkg_postinst() {
- elog
- elog "The configuration file is located at /etc/slim.conf."
- elog
- elog "If you wish ${PN} to start automatically, set DISPLAYMANAGER=\"${PN}\" "
- elog "in /etc/conf.d/xdm and run \"rc-update add xdm default\"."
- elog
- elog "By default, ${PN} now does proper X session selection, including ~/.xsession"
- elog "support, as well as selection between sessions available in"
- elog "/etc/X11/Sessions/ at login by pressing [F1]."
- elog
- elog "The XSESSION environment variable is still supported as a default"
- elog "if no session has been specified by the user."
- elog
- elog "If you want to use .xinitrc in the user's home directory for session"
- elog "management instead, see README and xinitrc.sample in"
- elog "/usr/share/doc/${PF} and change your login_cmd in /etc/slim.conf"
- elog "accordingly."
- elog
- ewarn "Please note that the slim session start script now supports consolekit"
- ewarn "directly, via xinitrc.d scripts. Please remove any existing work-arounds to"
- ewarn "avoid multiple calls to ck-launch-session."
- if has_version "<=sys-auth/pambase-20101024[consolekit]" ; then
- ewarn
- ewarn "You should also remove the 'nox11' flag from the pam_ck_connector.so module "
- ewarn "in /etc/pam.d/system-login if you have not already done so."
- ewarn "(this is safe, it will be default in the next version of pambase)"
- fi
- elog
- if ! use pam; then
- elog "You have merged ${PN} without USE=pam, this will cause ${PN} to fall back to"
- elog "the console when restarting your window manager. If this is not"
- elog "desired, then please remerge ${PN} with USE=pam"
- elog
- fi
-}