aboutsummaryrefslogtreecommitdiff
path: root/desktop/xsession
diff options
context:
space:
mode:
authorRichard Ellis <rellis@dp100.com>2010-05-12 23:28:32 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-12 23:28:32 +0200
commita142ded97a9948c02974c8197c6829498fda8686 (patch)
tree29fa66d4b35bb56e6622fdf1eae804a242fc0a91 /desktop/xsession
parent8e7bd5508cbd8a27c3ac76c97529f769b806f72c (diff)
desktop/xsession: Added to 12.2 repository
Diffstat (limited to 'desktop/xsession')
-rw-r--r--desktop/xsession/Imakefile.patch31
-rw-r--r--desktop/xsession/README27
-rw-r--r--desktop/xsession/slack-desc19
-rw-r--r--desktop/xsession/xsession.SlackBuild79
-rw-r--r--desktop/xsession/xsession.info8
5 files changed, 164 insertions, 0 deletions
diff --git a/desktop/xsession/Imakefile.patch b/desktop/xsession/Imakefile.patch
new file mode 100644
index 000000000000..ad337ee8ff4e
--- /dev/null
+++ b/desktop/xsession/Imakefile.patch
@@ -0,0 +1,31 @@
+--- Imakefile.orig 2009-06-08 11:55:16.000000000 -0400
++++ Imakefile 2009-06-08 12:07:54.000000000 -0400
+@@ -35,7 +35,7 @@
+ XCOMM Mark Boyns' rplay library, available from sounds.sdsu.edu and
+ XCOMM ftp2.montefiore.ulg.ac.be in the directory /pub/rplay. Otherwise, don't
+ XCOMM define anything here.
+-#define USE_SOUNDS
++XCOMM #define USE_SOUNDS
+
+ XCOMM The second argument of the waitpid(2) system call can be either a
+ XCOMM "union wait" (old definition) or a "int" (new definition) variable. The
+@@ -68,8 +68,8 @@
+ XCOMM Uncomment and adjust these to change the destinations of "make install"
+ XCOMM and "make install.man" if the defaults generated by Imake are not
+ XCOMM satisfactory.
+-XCOMM BINDIR = /usr/local/bin
+-XCOMM MANDIR = /usr/local/man/man1
++XCOMM BINDIR = /usr/bin
++XCOMM MANDIR = /usr/man/man1
+ XCOMM MANSUFFIX = 1
+
+ XCOMM It's not a good idea to change the default "app-defaults" directory.
+@@ -78,7 +78,7 @@
+ XCOMM you can't install the files in their default directory. If you do this,
+ XCOMM you will have to set the XAPPLRESDIR environment variable to the
+ XCOMM appropriate directory before executing xsession.
+-XCOMM XAPPLOADDIR = /usr/lib/X11/app-defaults
++XAPPLOADDIR = /etc/X11/app-defaults
+
+ XCOMM How excited are you about debugging? This can be -g, -O, or nothing.
+ CDEBUGFLAGS = -O
diff --git a/desktop/xsession/README b/desktop/xsession/README
new file mode 100644
index 000000000000..de5f311caf81
--- /dev/null
+++ b/desktop/xsession/README
@@ -0,0 +1,27 @@
+The xsession program is a session manager. It is normally executed by your
+~/.xinitrc (or ~/.xsession) script and controls your X Window session. As
+soon as it is started, xsession launches a window manager and some
+applications of your choice. At anytime during your session, you may switch
+to another window manager or execute some other applications from the
+xsession menus.
+
+You may also lock your screen using an independent locker application. The
+window contains a message area which is used to notify the user whenever an
+application or a window manager starts or ends, and also to display all the
+output and error messages of the programs (the applications and the window
+managers) run by xsession. The console output messages can also be shown
+either in this area or in a second, separate area.
+
+One useful feature of xsession is the preprocessing of window managers'
+configuration files. When a window manager is launched, its startup file
+can be filtered through m4(1) or cpp(1). Some macros are defined (such as
+the host name, screen size and so on) that will help you customize your
+menus and screen layout. One advantage of this feature is that several
+window managers can share the same startup file: some lines are protected by
+a test on the "WM_NAME" macro, but the other lines are common. This saves a
+lot of time if you want to maintain the same menu structure for several of
+them. You can also use "include" statements in your file.
+
+Note: This slackbuild builds xsession without sound support. If you wish to
+have sound support see the Imakefile and INSTALL files within the source
+tarball.
diff --git a/desktop/xsession/slack-desc b/desktop/xsession/slack-desc
new file mode 100644
index 000000000000..75b9e5aa13b0
--- /dev/null
+++ b/desktop/xsession/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|' on
+# the right side marks the last column you can put a character in. You must make
+# exactly 11 lines for the formatting to be correct. It's also customary to
+# leave one space after the ':'.
+
+ |-----handy-ruler-------------------------------------------------------|
+xsession: xsession (session manager for X)
+xsession:
+xsession: The xsession program is a session manager. It is normally executed by
+xsession: your ~/.xinitrc (or ~/.xsession) script and controls your X Window
+xsession: session. As soon as it is started, xsession launches a window manager
+xsession: and some applications of your choice. At anytime during your session,
+xsession: you may switch to another window manager or execute some other
+xsession: applications from the xsession menus.
+xsession:
+xsession: http://ftp.x.org/contrib/applications/xsession-1.1.README
+xsession:
diff --git a/desktop/xsession/xsession.SlackBuild b/desktop/xsession/xsession.SlackBuild
new file mode 100644
index 000000000000..9fb16fc0a7e2
--- /dev/null
+++ b/desktop/xsession/xsession.SlackBuild
@@ -0,0 +1,79 @@
+#!/bin/sh
+
+# Slackware build script for xsession
+
+# Written by Richard Ellis (rellis@dp100.com)
+
+# Released into the public domain June 8, 2009
+
+PRGNAM=xsession
+VERSION=${VERSION:-1.1}
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+fi
+
+set -e # Exit on most errors
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
+
+# xsession uses xmkmf instead of configure, need to patch the Imakefile
+# slightly to put some things in the proper destinations
+patch -p0 < $CWD/Imakefile.patch
+
+xmkmf -a
+make CFLAGS="$SLKCFLAGS"
+make install DESTDIR=$PKG
+make install.man DESTDIR=$PKG
+
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null || true
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
+)
+
+( cd $PKG/usr/man
+ # xsession installs it's manpage as .1x, change that to .1
+ mv man1/xsession.1x man1/xsession.1
+ find . -type f -exec gzip -9 {} \;
+ for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+)
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ examples/* \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
diff --git a/desktop/xsession/xsession.info b/desktop/xsession/xsession.info
new file mode 100644
index 000000000000..5255622b4342
--- /dev/null
+++ b/desktop/xsession/xsession.info
@@ -0,0 +1,8 @@
+PRGNAM="xsession"
+VERSION="1.1"
+HOMEPAGE="http://ftp.x.org/contrib/applications/xsession-1.1.README"
+DOWNLOAD="http://ftp.x.org/contrib/applications/xsession-1.1.tar.gz"
+MD5SUM="c2928ba29cd53f36fecd432575bd1b0d"
+MAINTAINER="Richard Ellis"
+EMAIL="rellis@dp100.com"
+APPROVED="rworkman"