From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1R7E0X-0005AH-LN for garchives@archives.gentoo.org; Fri, 23 Sep 2011 22:14:09 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9412E21C40B; Fri, 23 Sep 2011 22:08:19 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 3F5FA21C40B for ; Fri, 23 Sep 2011 22:08:19 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 091CC1B4097 for ; Fri, 23 Sep 2011 22:08:11 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 5F97A80042 for ; Fri, 23 Sep 2011 22:08:10 +0000 (UTC) From: "Michael Weber" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Weber" Message-ID: Subject: [gentoo-commits] dev/xmw:master commit in: x11-misc/trivdm/, x11-misc/trivdm/files/ X-VCS-Repository: dev/xmw X-VCS-Files: x11-misc/trivdm/ChangeLog x11-misc/trivdm/Manifest x11-misc/trivdm/files/trivdm-0_p20110921 x11-misc/trivdm/metadata.xml x11-misc/trivdm/trivdm-0_p20110921.ebuild X-VCS-Directories: x11-misc/trivdm/ x11-misc/trivdm/files/ X-VCS-Committer: xmw X-VCS-Committer-Name: Michael Weber X-VCS-Revision: a77bfb14a3837fdd7fba5c4fec659e693299a0f8 Date: Fri, 23 Sep 2011 22:08:10 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: aaabd8bb0e442308166408921a84a28e commit: a77bfb14a3837fdd7fba5c4fec659e693299a0f8 Author: Michael Weber gentoo org> AuthorDate: Fri Sep 23 22:07:46 2011 +0000 Commit: Michael Weber gentoo org> CommitDate: Fri Sep 23 22:07:46 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Ddev/xmw.git;a=3Dco= mmit;h=3Da77bfb14 x11-misc/trivdm: initial import (Portage version: 2.1.10.11/git/Linux x86_64, signed Manifest commit with= key 62EEF090) --- x11-misc/trivdm/ChangeLog | 10 +++++ x11-misc/trivdm/Manifest | 14 +++++++ x11-misc/trivdm/files/trivdm-0_p20110921 | 60 +++++++++++++++++++++++= ++++++ x11-misc/trivdm/metadata.xml | 10 +++++ x11-misc/trivdm/trivdm-0_p20110921.ebuild | 54 +++++++++++++++++++++++= +++ 5 files changed, 148 insertions(+), 0 deletions(-) diff --git a/x11-misc/trivdm/ChangeLog b/x11-misc/trivdm/ChangeLog new file mode 100644 index 0000000..2aecf6e --- /dev/null +++ b/x11-misc/trivdm/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for x11-misc/trivdm +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*trivdm-0_p20110921 (23 Sep 2011) + + 23 Sep 2011; Michael Weber +files/trivdm-0_p20110921, + +trivdm-0_p20110921.ebuild, +metadata.xml: + Initial import + diff --git a/x11-misc/trivdm/Manifest b/x11-misc/trivdm/Manifest new file mode 100644 index 0000000..c83ee2d --- /dev/null +++ b/x11-misc/trivdm/Manifest @@ -0,0 +1,14 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX trivdm-0_p20110921 2319 RMD160 d5ea44d05528ee0d6d3a6f27d8bb00bd513fc= e5d SHA1 21cb08d686d6c9c8cb157660f903e9ae2e496b01 SHA256 eae817ac58331265= e5f73c7d154e14524b90417a3560c826da4b55b49fe95a42 +EBUILD trivdm-0_p20110921.ebuild 1372 RMD160 e03319f38b7e6d5398b7d9ad70f= 19cecefa4bb98 SHA1 4d9946e7c0ff322e9600526be021151dc9ab8347 SHA256 28a598= 0ee288a5dff6ca820da6272567ff841d61bafd35f9a29b0b42c7025135 +MISC ChangeLog 287 RMD160 7e59711261ef173fc9fd22be4ca0bbb0d2059df5 SHA1 = 3cb44a28290f92c95ebcd78065ca14de52d60876 SHA256 5f3667a5fb992b6d5366ff5bd= 8eabf3a28f12e8b698a8d17bd183f1b2585dfe5 +MISC metadata.xml 245 RMD160 6b03982a4d5f32d9fa6b9259ae36f9fcb07c8404 SH= A1 fb16c7b4c5ab071dd979f761b8bb075f5396b737 SHA256 375a1da02cd2c393ce2378= a73c1ce08134bc030b3bb378c6a4d6ca9cd5be1f8d +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.17 (GNU/Linux) + +iF4EAREIAAYFAk59AzIACgkQknrdDGLu8JAtOwD+PMfXdsC+gxXHrKIist1Py4sm +nA6ftWSxCb5BNmLBV5MA/2OEDy6JDQUY7uISQf4Z5b/piVVEkZjPkox9YzUxT+W/ +=3D8FNu +-----END PGP SIGNATURE----- diff --git a/x11-misc/trivdm/files/trivdm-0_p20110921 b/x11-misc/trivdm/f= iles/trivdm-0_p20110921 new file mode 100644 index 0000000..6f00289 --- /dev/null +++ b/x11-misc/trivdm/files/trivdm-0_p20110921 @@ -0,0 +1,60 @@ +#!/bin/zsh +# trivdm by Christian Neukirchen, Michael Weber root@fs.lmu.de +# wget http://xmw.de/tmp/trivdm -O /usr/local/bin/trivdm +# c7:2345:respawn:/usr/bin/openvt -c 7 -f -w /usr/local/bin/trivdm +# symlinks to /usr/local/bin/{gdmflexiserver,w} and /etc/local.d/trivdm.= start +# groupadd --system trivdm ; useradd --system -g trivdm -G wheel trivdm=20 +# chmod u+s /usr/bin/chvt + +NAME=3D$(basename $0) ; USER=3Dtrivdm ; LANG=3DC +log() { echo "$@" | logger -s -t $NAME } +trap 'read -s -k -t 10 "?Press any key to continue ..." ; exit -1 ' ZERR +w() { ps haxo ruser,tty,comm | grep -v $USER | egrep -v "agetty|login$" = | \ + awk '{ if ( $3 =3D=3D "X" || $2 !=3D "?" ) print $1" "$2 }' | sort -= u | \ + awk '{ ORS=3D"" ; if ( u !=3D $1 ) { u=3D$1 ; print "\n"u"\t" } ; pr= int $2"," }' \ + | sed -e '1d ; s:,$:: ; $a\' } + +case $NAME in + gdmflexiserver) + [ "$1" =3D "-ls" ] && exec chvt 7 || exec /usr/bin/gdmflexiserver $@ ;; + trivdm.start) + chvt 7 ; exec setfont sun12x22 ;; + w) + w ; exec /usr/bin/w $@ ;; + *) + [ "$1" =3D "update" ] && exec wget http://xmw.de/tmp/$NAME -O $0 + [ "$(id -un)" =3D "$USER" ] || exec su -c $0 $USER ;; +esac + +clear +toilet --gay -f mono9 $(hostname -f | sed 's:^[^\.]*\.::') +print -n "Usage: [/] + in ~/.xinitrc (default), Gnome (fallback),\n\t" +find /etc/X11/Sessions -type f ! -name Gnome | \ + awk -F / 'BEGIN { ORS=3D", " } { print $5 }' | sed 's:, $:\n\n:' +print "connected users:\n$({ w | grep '' || print ''} | sed 's:^:\= t:')\n" +read "login?$(hostname)/tty7 x11 login: " + +case $login in + "")=20 + exit ;; + */*)=20 + xclient=3D$(find /etc/X11/Sessions -iname "*${login#*/}*" -type f | \ + sort | head -n 1) + [ -n "$xclient" ] || { log invalid session ; [ ] } + login=3D${login%/*} ;; + *) xclient=3D"~/.xinitrc" ;; +esac + +id "$login" 2>&1 >/dev/null | sed "s|^id:|$NAME:|" +id "$login" 2>/dev/null >/dev/null=20 + +tty=3D$(ps h -eo ruser,tty,comm | grep "^$login " | awk '$3=3D=3D"X" {pr= int $2}') +[ "$tty" ] && { log switching to console $tty ; chvt "${tty#tty}" ; [ ] = } + +dpy=3D0 ; while [ -e /tmp/.X11-unix/X$dpy ] ; do (( dpy +=3D 1 )) done +su -l -c "export xclient=3D$xclient ;=20 + [ -x \"\$xclient\" ] || xclient=3D/etc/X11/Sessions/Gnome ;=20 + /usr/sbin/daemonize -a -e ~/.xorg-stderr -o ~/.xorg-stdout -c ~ \ + /usr/bin/startx \$xclient -- :$dpy -retro" $login=20 +[ ] diff --git a/x11-misc/trivdm/metadata.xml b/x11-misc/trivdm/metadata.xml new file mode 100644 index 0000000..02b909e --- /dev/null +++ b/x11-misc/trivdm/metadata.xml @@ -0,0 +1,10 @@ + + + +no-herd + +xmw@gentoo.org +Michael Weber + + + diff --git a/x11-misc/trivdm/trivdm-0_p20110921.ebuild b/x11-misc/trivdm/= trivdm-0_p20110921.ebuild new file mode 100644 index 0000000..20e14bc --- /dev/null +++ b/x11-misc/trivdm/trivdm-0_p20110921.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=3D3 + +inherit eutils + +DESCRIPTION=3D"trivial display manager" +HOMEPAGE=3D"http://xmw.de/tmp/trivdm" +SRC_URI=3D"" + +LICENSE=3D"MIT" +SLOT=3D"0" +KEYWORDS=3D"~amd64 ~x86" +IUSE=3D"" + +RDEPEND=3D"app-misc/toilet + app-shells/zsh + sys-apps/daemonize + sys-apps/kbd" +DEPEND=3D"" + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 /usr/bin/${PN} -1 ${PN} +} + +src_install() { + newbin "${FILESDIR}"/${P} ${PN} || die +} + +pkg_preinst() { + dodir /etc || die + local myinit=3D$(sed -n -e '/c7:/{s/^.*c7:/c7:/ ; s:/local/:/: ; p}' \ + "${ED}"/usr/bin/${PN}) + sed -e "/^c7:/d" \ + -e "\$a$myinit\\" \ + /etc/inittab > "${ED}"/etc/inittab || die + + elog "IMPORTANT NOTE" + elog "Your system needs 5 minor adjustments that" + elog "must not be made by Gentoo portage system:" + elog "1) enable xscreensaver->newlogin comartibility" + elog " ln -s ../../bin/${PN} /usr/local/bin/gdmflexiserver" + elog "2) tune w to display remote login sessions and daeonized X11" + elog " ln -s ../../bin/${PN} /usr/local/bin/w" + elog "3) set a fancy font on framebuffer console on startup" + elog " ln -s ../../usr/bin/${PN} /etc/local.d/${PN}.start" + elog "4) grant chvt to everyone" + elog " chmod u+s /usr/bin/chvt" + elog "5) updated /etc/inittab (etc-update, ...) and reload" + elog " kill -HUP 1" +}