summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desktop/wmii/README12
-rw-r--r--desktop/wmii/doinst.sh19
-rw-r--r--desktop/wmii/slack-desc19
-rw-r--r--desktop/wmii/wmii-3.9.2-config_mk.diff18
-rw-r--r--desktop/wmii/wmii-3.9.2-mk_hdr_mk.diff20
-rw-r--r--desktop/wmii/wmii.SlackBuild125
-rw-r--r--desktop/wmii/wmii.desktop6
-rw-r--r--desktop/wmii/wmii.info10
-rw-r--r--desktop/wmii/wmii.xinit5
-rw-r--r--desktop/wmii/xinitrc.wmii31
10 files changed, 265 insertions, 0 deletions
diff --git a/desktop/wmii/README b/desktop/wmii/README
new file mode 100644
index 0000000000..61d3cda094
--- /dev/null
+++ b/desktop/wmii/README
@@ -0,0 +1,12 @@
+wmii - window manager improved 2
+
+wmii is a dynamic window manager for X11. It supports classic and dynamic
+window management with extended keyboard, mouse, and filesystem based remote
+control. It replaces the workspace paradigm with a new tagging approach. Its
+minimalist philosophy attempts to not exceed 10.000 lines of code (including
+all shipped utilities and libraries), to enforce simplicity and clarity.
+
+This package requires libixp.
+
+If you plan to use plan9port, python or ruby scripting support you should also
+install required interpreters at run time.
diff --git a/desktop/wmii/doinst.sh b/desktop/wmii/doinst.sh
new file mode 100644
index 0000000000..86ec291398
--- /dev/null
+++ b/desktop/wmii/doinst.sh
@@ -0,0 +1,19 @@
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ # If there's no config file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
+ # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+config etc/wmii/welcome.new
+config etc/wmii/wmiirc.new
+config etc/wmii/plan9port/wmiirc.new
+config etc/wmii/python/wmiirc.new
+config etc/wmii/ruby/wmiirc.new
+
diff --git a/desktop/wmii/slack-desc b/desktop/wmii/slack-desc
new file mode 100644
index 0000000000..05c4ad1259
--- /dev/null
+++ b/desktop/wmii/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------------------------------------------------------|
+wmii: wmii (window manager improved 2)
+wmii:
+wmii: wmii is a dynamic window manager for X11. It supports classic and
+wmii: dynamic window management with extended keyboard, mouse, and
+wmii: filesystem based remote control. It replaces the workspace paradigm
+wmii: with a new tagging approach. Its minimalist philosophy attempts to
+wmii: not exceed 10.000 lines of code (including all shipped utilities and
+wmii: libraries), to enforce simplicity and clarity.
+wmii:
+wmii: Homepage: http://wmii.suckless.org
+wmii:
diff --git a/desktop/wmii/wmii-3.9.2-config_mk.diff b/desktop/wmii/wmii-3.9.2-config_mk.diff
new file mode 100644
index 0000000000..32a43fd5a7
--- /dev/null
+++ b/desktop/wmii/wmii-3.9.2-config_mk.diff
@@ -0,0 +1,18 @@
+diff -Naur wmii+ixp-3.9.2.orig/config.mk wmii+ixp-3.9.2/config.mk
+--- wmii+ixp-3.9.2.orig/config.mk 2010-06-10 09:24:04.000000000 +0200
++++ wmii+ixp-3.9.2/config.mk 2011-11-15 10:57:47.850346147 +0100
+@@ -6,12 +6,12 @@
+ MAN = $(PREFIX)/share/man
+ DOC = $(PREFIX)/share/doc/wmii
+ ETC = $(PREFIX)/etc
+- LIBDIR = $(PREFIX)/lib
++ LIBDIR = $(PREFIX)/lib$(LIBDIRSUFFIX)
+ INCLUDE = $(PREFIX)/include
+
+ # Includes and libs
+ INCLUDES = -I. -I$(ROOT)/include -I$(INCLUDE) -I/usr/include
+-LIBS = -L$(ROOT)/lib -L/usr/lib
++LIBS = -L$(ROOT)/lib$(LIBDIRSUFFIX) -L/usr/lib$(LIBDIRSUFFIX)
+
+ TERMINAL = xterm
+
diff --git a/desktop/wmii/wmii-3.9.2-mk_hdr_mk.diff b/desktop/wmii/wmii-3.9.2-mk_hdr_mk.diff
new file mode 100644
index 0000000000..9f7936d6f3
--- /dev/null
+++ b/desktop/wmii/wmii-3.9.2-mk_hdr_mk.diff
@@ -0,0 +1,20 @@
+diff -Naur wmii+ixp-3.9.2.orig/mk/hdr.mk wmii+ixp-3.9.2/mk/hdr.mk
+--- wmii+ixp-3.9.2.orig/mk/hdr.mk 2010-06-10 09:24:03.000000000 +0200
++++ wmii+ixp-3.9.2/mk/hdr.mk 2011-11-15 10:59:19.110546818 +0100
+@@ -37,14 +37,8 @@
+
+ PACKAGES = 2>/dev/null
+
+-# and this:
+-# Try to find a sane shell. /bin/sh is a last resort, because it's
+-# usually bash on Linux, which means it's painfully slow.
+-BINSH := $(shell \
+- if [ -x /bin/dash ]; then echo /bin/dash; \
+- elif [ -x /bin/ksh ]; then echo /bin/ksh; \
+- else echo /bin/sh; fi)
+-BINSH != echo /bin/sh
++# This is Slackware
++BINSH=/bin/sh
+
+ include $(ROOT)/config.mk
+
diff --git a/desktop/wmii/wmii.SlackBuild b/desktop/wmii/wmii.SlackBuild
new file mode 100644
index 0000000000..eb9e63d16b
--- /dev/null
+++ b/desktop/wmii/wmii.SlackBuild
@@ -0,0 +1,125 @@
+#!/bin/sh
+
+# Slackware build script for wmii
+
+# Copyright (c) 2011, Marco Bonetti <sid77@slackware.it>
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are met:
+# 1.- Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY
+# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+# DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
+# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+# Thanks to selkfoster <selkfoster@gmail.com>
+
+PRGNAM=wmii
+SRCNAM=wmii+ixp
+VERSION=3.9.2
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+# Automatically determine the architecture we're building on:
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ # Unless $ARCH is already set, use uname -m for all other archs:
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+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"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tbz
+cd $SRCNAM-$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 {} \;
+
+# Fixup config.mk
+patch -p1 < $CWD/wmii-3.9.2-config_mk.diff
+# Fixup mk/hdr.mk
+patch -p1 < $CWD/wmii-3.9.2-mk_hdr_mk.diff
+
+make \
+ OPT="$SLKCLAGS" \
+ PREFIX=/usr \
+ MAN=/usr/man \
+ ETC=/etc \
+ LIBDIRSUFFIX=${LIBDIRSUFFIX}
+
+make install \
+ OPT="$SLKCLAGS" \
+ PREFIX=$PKG/usr \
+ MAN=$PKG/usr/man \
+ ETC=$PKG/etc \
+ LIBDIRSUFFIX=${LIBDIRSUFFIX}
+
+# Add wmii to xwmconfig's list...
+install -D -m 0755 $CWD/xinitrc.wmii $PKG/etc/X11/xinit/xinitrc.wmii
+# ...and the required startup script
+install -D -m 0755 $CWD/wmii.xinit $PKG/usr/bin/wmii.xinit
+# Add a simple wmii.desktop so it can be started from kdm
+install -D -m 0644 $CWD/wmii.desktop $PKG/usr/share/apps/kdm/sessions/wmii.desktop
+
+# Don't clobber config files
+mv $PKG/etc/wmii/welcome $PKG/etc/wmii/welcome.new
+mv $PKG/etc/wmii/wmiirc $PKG/etc/wmii/wmiirc.new
+mv $PKG/etc/wmii/plan9port/wmiirc $PKG/etc/wmii/plan9port/wmiirc.new
+mv $PKG/etc/wmii/python/wmiirc $PKG/etc/wmii/python/wmiirc.new
+mv $PKG/etc/wmii/ruby/wmiirc $PKG/etc/wmii/ruby/wmiirc.new
+
+find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+
+mv $PKG/usr/share/doc $PKG/usr
+mv $PKG/usr/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a LICENSE README $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+( cd $PKG/usr/doc ; ln -s $PRGNAM-$VERSION $PRGNAM )
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/desktop/wmii/wmii.desktop b/desktop/wmii/wmii.desktop
new file mode 100644
index 0000000000..9549cbdb20
--- /dev/null
+++ b/desktop/wmii/wmii.desktop
@@ -0,0 +1,6 @@
+[Desktop Entry]
+Type=XSession
+Exec=/usr/bin/wmii.xinit
+TryExec=/usr/bin/wmii.xinit
+Name=window manager improved 2
+Comment=A small, dynamic window manager for X11.
diff --git a/desktop/wmii/wmii.info b/desktop/wmii/wmii.info
new file mode 100644
index 0000000000..0c9cf35635
--- /dev/null
+++ b/desktop/wmii/wmii.info
@@ -0,0 +1,10 @@
+PRGNAM="wmii"
+VERSION="3.9.2"
+HOMEPAGE="http://wmii.suckless.org"
+DOWNLOAD="http://dl.suckless.org/wmii/wmii+ixp-3.9.2.tbz"
+MD5SUM="3d480502b7b1e2a405d941df67f16bcf"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="Marco Bonetti"
+EMAIL="sid77@slackware.it"
+APPROVED="rworkman"
diff --git a/desktop/wmii/wmii.xinit b/desktop/wmii/wmii.xinit
new file mode 100644
index 0000000000..cff7f05222
--- /dev/null
+++ b/desktop/wmii/wmii.xinit
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+until wmii; do
+ true
+done
diff --git a/desktop/wmii/xinitrc.wmii b/desktop/wmii/xinitrc.wmii
new file mode 100644
index 0000000000..0fbc8e8271
--- /dev/null
+++ b/desktop/wmii/xinitrc.wmii
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+userresources=$HOME/.Xresources
+usermodmap=$HOME/.Xmodmap
+sysresources=/etc/X11/xinit/.Xresources
+sysmodmap=/etc/X11/xinit/.Xmodmap
+
+# merge in defaults and keymaps
+
+if [ -f $sysresources ]; then
+ xrdb -merge $sysresources
+fi
+
+if [ -f $sysmodmap ]; then
+ xmodmap $sysmodmap
+fi
+
+if [ -f $userresources ]; then
+ xrdb -merge $userresources
+fi
+
+if [ -f $usermodmap ]; then
+ xmodmap $usermodmap
+fi
+
+# Start the window manager:
+if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
+ ck-launch-session /usr/bin/wmii.xinit
+else
+ /usr/bin/wmii.xinit
+fi