diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /x11-misc/dsx | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'x11-misc/dsx')
-rw-r--r-- | x11-misc/dsx/dsx-0.1.ebuild | 33 | ||||
-rw-r--r-- | x11-misc/dsx/files/dsx-0.1 | 72 | ||||
-rw-r--r-- | x11-misc/dsx/metadata.xml | 5 |
3 files changed, 110 insertions, 0 deletions
diff --git a/x11-misc/dsx/dsx-0.1.ebuild b/x11-misc/dsx/dsx-0.1.ebuild new file mode 100644 index 000000000000..cd59bd7b8538 --- /dev/null +++ b/x11-misc/dsx/dsx-0.1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 +PYTHON_DEPEND="2" + +inherit python + +DESCRIPTION="command line selection of your X desktop environment" +HOMEPAGE="http://www.gentoo.org/" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ppc x86" +IUSE="" + +RDEPEND="x11-apps/xinit" +DEPEND="" + +pkg_setup() { + python_set_active_version 2 +} + +src_prepare() { + cp "${FILESDIR}"/${P} "${T}" + python_convert_shebangs -r 2 "${T}" +} + +src_install() { + newbin "${T}"/${P} dsx +} diff --git a/x11-misc/dsx/files/dsx-0.1 b/x11-misc/dsx/files/dsx-0.1 new file mode 100644 index 000000000000..d8f5e7192928 --- /dev/null +++ b/x11-misc/dsx/files/dsx-0.1 @@ -0,0 +1,72 @@ +#!/usr/bin/env python +# dsx is Mandrakesoft's Xtart modified to work with a Gentoo Linux system. +# Gentoo doesn't use a wmsession.d directory, so we're going to accept the +# /etc/X11/Sessions executables as our menu and our command parameters. +# I also tried to increase the robustness of the entry checking and make the +# error messages less condescending. +# The 0 option for "no wm" was removed. I altered it to run option 1 instead. + +### Original copyright / license message from Xtart... ### +# This is an official linux-mandrake extension of the X windowing system for +# the benefit of Declan Moriarty Copyright 2001 by civileme@mandrakesoft all +# rights reserved. Use is hereby granted under the GNU General Publoic +# License version 2 or any future version of said license at the user's option +# +# No Warranty of course. +# This program is designed for those who want to work in concole and +# occasionally boot into window managers or who want to avoid theme +# persistence from one WM to another. +################ +import sys +import os +import popen2 +import string +import math +def complain(): + print 'X initiation aborted on invalid selection.' + sys.exit(0) + return +print +print 'Welcome to the Desktop Selector for X' +print +fspc=os.path.expanduser('~')+'/' +io=popen2.Popen3('ls /etc/X11/Sessions',1) +L=io.fromchild.readlines() +Sessions={} +Sessionkeys=[] +primekey=0 +for k in L: + primekey+=1 + name=k[:-1] + command='/etc/X11/Sessions/'+k[:-1] + Sessions[primekey]=(name, command) +Sessionkeys=Sessions.keys() +Sessionkeys.sort() +for j in Sessionkeys: + if os.system('[ -x '+Sessions[j][1]+' ]') == 0: + print j, Sessions[j][0] + pass +print +sys.stdin.flush() +s=raw_input('Enter the number of your desired desktop environment [1]: ') +if len(s)==0: + s='1' +if s=='0': + s='1' +for j in range(len(s)): + if string.find(string.digits,s[j]) == -1: + print "'" + s[j] + "' isn't a digit." + complain() +if len(s)>int(math.log10(primekey))+1: + print "That number is too big." + complain() +well=int(s) +wellformed=Sessions.has_key(well) +if wellformed: + os.execvp('xinit',Sessions[well]) +else: + print + print 'Your selection was invalid.' + print + complain() + diff --git a/x11-misc/dsx/metadata.xml b/x11-misc/dsx/metadata.xml new file mode 100644 index 000000000000..40838bc36783 --- /dev/null +++ b/x11-misc/dsx/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>desktop-misc</herd> +</pkgmetadata> |