summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry N <thierryn1 at hispeed dot ch>2009-08-12 20:47:32 +0200
committerThierry N <thierryn1 at hispeed dot ch>2009-08-12 20:47:32 +0200
commit55d63e11656f2cd07f7b15f2833211b55c4d6d89 (patch)
tree7c4526be53c3bdeed376866242aa5a388b3fc58d
parent6f94da2c4bd9ba797c7d2d9f0d711646c3de9654 (diff)
downloadnutyx-extra-55d63e11656f2cd07f7b15f2833211b55c4d6d89.tar.gz
nutyx-extra-55d63e11656f2cd07f7b15f2833211b55c4d6d89.tar.bz2
nutyx-extra-55d63e11656f2cd07f7b15f2833211b55c4d6d89.tar.xz
nutyx-extra-55d63e11656f2cd07f7b15f2833211b55c4d6d89.zip
Ajout de slim#1.3.1-1
-rw-r--r--extra/slim/.footprint38
-rw-r--r--extra/slim/.md5sum9
-rw-r--r--extra/slim/Pkgfile43
-rw-r--r--extra/slim/background.jpgbin0 -> 217023 bytes
-rw-r--r--extra/slim/background.oldbin0 -> 43853 bytes
-rw-r--r--extra/slim/gcc44.patch12
-rw-r--r--extra/slim/panel.pngbin0 -> 16123 bytes
-rwxr-xr-xextra/slim/post-install2
-rwxr-xr-xextra/slim/slim37
-rw-r--r--extra/slim/slim.conf79
-rw-r--r--extra/slim/slim.theme37
-rw-r--r--extra/slim/stdlib.patch11
-rw-r--r--extra/slim/xinitrc97
13 files changed, 365 insertions, 0 deletions
diff --git a/extra/slim/.footprint b/extra/slim/.footprint
new file mode 100644
index 000000000..23fd03de8
--- /dev/null
+++ b/extra/slim/.footprint
@@ -0,0 +1,38 @@
+drwxr-xr-x root/root etc/
+drwxr-xr-x root/root etc/rc.d/
+drwxr-xr-x root/root etc/rc.d/init.d/
+-rwxr-xr-x root/root etc/rc.d/init.d/slim
+drwxr-xr-x root/root etc/rc.d/rc0.d/
+lrwxrwxrwx root/root etc/rc.d/rc0.d/K10slim -> ../init.d/slim
+drwxr-xr-x root/root etc/rc.d/rc1.d/
+lrwxrwxrwx root/root etc/rc.d/rc1.d/K10slim -> ../init.d/slim
+drwxr-xr-x root/root etc/rc.d/rc2.d/
+lrwxrwxrwx root/root etc/rc.d/rc2.d/K10slim -> ../init.d/slim
+drwxr-xr-x root/root etc/rc.d/rc3.d/
+lrwxrwxrwx root/root etc/rc.d/rc3.d/S40slim -> ../init.d/slim
+drwxr-xr-x root/root etc/rc.d/rc4.d/
+lrwxrwxrwx root/root etc/rc.d/rc4.d/K10slim -> ../init.d/slim
+drwxr-xr-x root/root etc/rc.d/rc5.d/
+lrwxrwxrwx root/root etc/rc.d/rc5.d/K10slim -> ../init.d/slim
+drwxr-xr-x root/root etc/rc.d/rc6.d/
+lrwxrwxrwx root/root etc/rc.d/rc6.d/K10slim -> ../init.d/slim
+drwxr-xr-x root/root etc/skel/
+-rw-r--r-- root/root etc/slim.conf
+-rw-r--r-- root/root etc/slim.xinitrc
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/slim
+drwxr-xr-x root/root usr/man/
+drwxr-xr-x root/root usr/man/man1/
+-rw-r--r-- root/root usr/man/man1/slim.1.gz
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/slim/
+drwxr-xr-x root/root usr/share/slim/themes/
+drwxr-xr-x root/root usr/share/slim/themes/default/
+-rw-r--r-- root/root usr/share/slim/themes/default/background.jpg
+-rw-r--r-- root/root usr/share/slim/themes/default/panel.png
+-rw-r--r-- root/root usr/share/slim/themes/default/slim.theme
+drwxr-xr-x root/root usr/share/slim/themes/nutyx/
+-rw-r--r-- root/root usr/share/slim/themes/nutyx/background.jpg
+-rw-r--r-- root/root usr/share/slim/themes/nutyx/panel.png
+-rw-r--r-- root/root usr/share/slim/themes/nutyx/slim.theme
diff --git a/extra/slim/.md5sum b/extra/slim/.md5sum
new file mode 100644
index 000000000..eafd3fa54
--- /dev/null
+++ b/extra/slim/.md5sum
@@ -0,0 +1,9 @@
+7b7b1a5b55eed7ca84000f732a1ffd26 background.jpg
+87a3a022fa1d6dfe460c2989de1da5db gcc44.patch
+2dd28bf9ad148cde22b22916501b26f3 panel.png
+f7e9ef62e3d4c8e3e85865c0a169fc5f slim
+727d0acb24c0fbf0751134c37a9c895f slim-1.3.1.tar.gz
+c68a7b0f547f6d8a416dbccfd40ba690 slim.conf
+9086dc769e942bc27d363d9784533600 slim.theme
+9143a67ce78ca11a7e811138859ad54f stdlib.patch
+868863affb13c10868fe839be5f5698b xinitrc
diff --git a/extra/slim/Pkgfile b/extra/slim/Pkgfile
new file mode 100644
index 000000000..7a4f98ef3
--- /dev/null
+++ b/extra/slim/Pkgfile
@@ -0,0 +1,43 @@
+# Description: Gestionnaire de sessions tres configurable
+# URL: http://slim.berlios.de
+# Maintainer: NuTyX core team
+# Packager: thierryn1 at hispeed dot ch
+# Depends on: xorg-libxft, xorg-libxmu, xorg-xauth, libjpeg, libpng
+
+name=slim
+version=1.3.1
+release=1
+source=(http://download.berlios.de/$name/$name-$version.tar.gz\
+ stdlib.patch xinitrc gcc44.patch \
+ slim slim.conf panel.png background.jpg slim.theme)
+
+build() {
+ cd $name-$version
+ patch -Np1 -i ../gcc44.patch
+ make
+ sed -i "s|/usr/X11R6/include|/usr/include/xorg|g" slim.conf
+ sed -i "s|/usr/X11R6/|/usr/|g" slim.conf
+ make DESTDIR=$PKG install
+ mkdir -p $PKG/usr/share/slim/themes/nutyx/
+ for i in background.jpg panel.png slim.theme
+ do
+ cp ../$i $PKG/usr/share/slim/themes/nutyx/
+ done
+ mkdir -p $PKG/etc/skel
+ install -m644 ../slim.conf $PKG/etc/slim.conf
+ install -m644 ../xinitrc $PKG/etc/slim.xinitrc
+ mkdir -p $PKG/etc/rc.d/init.d
+ mkdir -p $PKG/etc/rc.d/rc{0,1,2,3,4,5,6}.d
+ install -D -m755 -o root -g root ../slim $PKG/etc/rc.d/init.d
+ for i in rc3.d;
+ do
+ ln -s ../init.d/slim $PKG/etc/rc.d/$i/S40slim
+ done
+ for i in rc{0,1,2,4,5,6}.d;
+ do
+ ln -s ../init.d/slim $PKG/etc/rc.d/$i/K10slim
+ done
+
+ sed -i 's@/var/run/slim.lock@/var/lock/slim.lock@' $PKG/etc/slim.conf
+
+}
diff --git a/extra/slim/background.jpg b/extra/slim/background.jpg
new file mode 100644
index 000000000..5df72ae5d
--- /dev/null
+++ b/extra/slim/background.jpg
Binary files differ
diff --git a/extra/slim/background.old b/extra/slim/background.old
new file mode 100644
index 000000000..440220216
--- /dev/null
+++ b/extra/slim/background.old
Binary files differ
diff --git a/extra/slim/gcc44.patch b/extra/slim/gcc44.patch
new file mode 100644
index 000000000..83d9f99ec
--- /dev/null
+++ b/extra/slim/gcc44.patch
@@ -0,0 +1,12 @@
+diff -ru slim-1.3.1/switchuser.h slim-patched/switchuser.h
+--- slim-1.3.1/switchuser.h 2008-11-11 19:40:18.000000000 +0000
++++ slim-patched/switchuser.h 2008-11-11 19:40:28.000000000 +0000
+@@ -18,6 +18,7 @@
+ #include <pwd.h>
+ #include <grp.h>
+ #include <paths.h>
++#include <cstdio>
+ #include <iostream>
+ #include "const.h"
+ #include "cfg.h"
+
diff --git a/extra/slim/panel.png b/extra/slim/panel.png
new file mode 100644
index 000000000..384154325
--- /dev/null
+++ b/extra/slim/panel.png
Binary files differ
diff --git a/extra/slim/post-install b/extra/slim/post-install
new file mode 100755
index 000000000..eae03d54b
--- /dev/null
+++ b/extra/slim/post-install
@@ -0,0 +1,2 @@
+#!/bin/bash
+sed -i "s/^id:[3-5]/id:3/" /etc/inittab
diff --git a/extra/slim/slim b/extra/slim/slim
new file mode 100755
index 000000000..428d1982b
--- /dev/null
+++ b/extra/slim/slim
@@ -0,0 +1,37 @@
+#!/bin/sh
+# Begin $rc_base/init.d/slim
+
+# $Id: $
+
+. /etc/sysconfig/rc
+. $rc_functions
+lockfile=$(grep lockfile /etc/slim.conf |tr -s " " | cut -d" " -f2)
+pid=$(pidof -o %PPID /usr/X11R6/bin/X)
+
+
+case "$1" in
+ start)
+ boot_mesg "Starting Simple Login Manager"
+ loadproc /usr/bin/slim -d
+ ;;
+ stop)
+ boot_mesg "Stopping Simple Login Manager"
+ if [ -f $lockfile ]; then
+ rm $lockfile
+ fi
+ [ ! -z "$pid" ] && kill $pid >/dev/null 2>&1
+ if [ $? -gt 0 ]; then
+ killproc /usr/bin/slim
+ fi
+ ;;
+ restart)
+ $0 stop
+ sleep 3
+ $0 start
+ ;;
+ *)
+ echo "Usage: $0 start|stop|restart"
+ ;;
+esac
+
+# End of file
diff --git a/extra/slim/slim.conf b/extra/slim/slim.conf
new file mode 100644
index 000000000..52158faee
--- /dev/null
+++ b/extra/slim/slim.conf
@@ -0,0 +1,79 @@
+# Path, X server and arguments (if needed)
+# Note: -xauth $authfile is automatically appended
+default_path ./:/bin:/usr/bin:/usr/local/bin:/usr/bin
+default_xserver /usr/bin/X
+#xserver_arguments -dpi 75
+
+# Commands for halt, login, etc.
+halt_cmd /sbin/shutdown -h now
+reboot_cmd /sbin/shutdown -r now
+console_cmd /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
+#suspend_cmd /usr/sbin/suspend
+
+# Full path to the xauth binary
+xauth_path /usr/bin/xauth
+
+# Xauth file for server
+authfile /var/run/slim.auth
+
+
+# Activate numlock when slim starts. Valid values: on|off
+# numlock on
+
+# Hide the mouse cursor (note: does not work with some WMs).
+# Valid values: true|false
+# hidecursor false
+
+# This command is executed after a succesful login.
+# you can place the %session and %theme variables
+# to handle launching of specific commands in .xinitrc
+# depending of chosen session and slim theme
+#
+# NOTE: if your system does not have bash you need
+# 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
+
+# Commands executed when starting and exiting a session.
+# They can be used for registering a X11 session with
+# sessreg. You can use the %user variable
+#
+# sessionstart_cmd some command
+# sessionstop_cmd some command
+
+# Start in daemon mode. Valid values: yes | no
+# Note that this can overridden by the command line
+# option "-d"
+# 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 twm,fvwm,jwm,lxde,blackbox,openbox,fluxbox,xfce4,gnome,icewm,wmaker,twindy,e16,ede
+
+# Executed when pressing F11 (requires imagemagick)
+screenshot_cmd import -window root /slim.png
+
+# welcome message. Available variables: %host, %domain
+welcome_msg Welcome to %host
+
+# shutdown / reboot messages
+shutdown_msg The system is halting...
+reboot_msg The system is rebooting...
+
+# default user, leave blank or remove this line
+# for avoid pre-loading the username.
+#default_user simone
+
+# current theme, use comma separated list to specify a set to
+# randomly choose from
+current_theme nutyx
+
+# Lock file
+lockfile /var/run/slim.lock
+
+# Log file
+logfile /var/log/slim.log
+
diff --git a/extra/slim/slim.theme b/extra/slim/slim.theme
new file mode 100644
index 000000000..c237b26c0
--- /dev/null
+++ b/extra/slim/slim.theme
@@ -0,0 +1,37 @@
+# text04 theme for SLiM
+# by Johannes Winkelmann
+
+# Messages (ie: shutdown)
+msg_color #FFFFFF
+msg_font Verdana:size=18:bold:dpi=75
+msg_x 50%
+msg_y 40%
+msg_shadow_color #702342
+msg_shadow_xoffset 1
+msg_shadow_yoffset 1
+
+# valid values: stretch, tile
+background_style stretch
+background_color #eedddd
+
+# Input controls
+input_panel_x 25%
+input_panel_y 65%
+input_name_x 394
+input_name_y 181
+input_font Verdana:size=12:dpi=75
+input_color #000000
+
+# Username / password request
+username_font Verdana:size=14:bold:dpi=75
+username_color #f9f9f9
+username_x 280
+username_y 183
+password_x 50%
+password_y 183
+username_shadow_color #702342
+username_shadow_xoffset 1
+username_shadow_yoffset 1
+
+username_msg Utilisateur:
+password_msg Mot de passe:
diff --git a/extra/slim/stdlib.patch b/extra/slim/stdlib.patch
new file mode 100644
index 000000000..855b110dd
--- /dev/null
+++ b/extra/slim/stdlib.patch
@@ -0,0 +1,11 @@
+--- cfg.cpp.orig 2008-04-21 00:36:08.000000000 -0700
++++ cfg.cpp 2008-04-21 00:37:01.000000000 -0700
+@@ -11,6 +11,7 @@
+ #include <fstream>
+ #include <string>
+ #include <iostream>
++#include <cstdlib>
+ #include <unistd.h>
+
+ #include <sys/types.h>
+
diff --git a/extra/slim/xinitrc b/extra/slim/xinitrc
new file mode 100644
index 000000000..604efdd96
--- /dev/null
+++ b/extra/slim/xinitrc
@@ -0,0 +1,97 @@
+# $Id: xinitrc,v 1.4 2008/05/13 17:33:40 install Exp install $
+# the following variable defines the session which is started if the user
+# doesn't explicitely select a session
+DEFAULT_SESSION=jwm
+
+case $1 in
+xfce4)
+ exec startxfce4
+ ;;
+openbox)
+ if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
+ eval `dbus-launch --sh-syntax --exit-with-session`
+ export DBUS_SESSION_BUS_ADDRESS
+ fi
+ exec openbox
+ ;;
+lxde)
+ if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
+ eval `dbus-launch --sh-syntax --exit-with-session`
+ export DBUS_SESSION_BUS_ADDRESS
+ fi
+ exec startlxde
+ ;;
+e16)
+ if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
+ eval `dbus-launch --sh-syntax --exit-with-session`
+ export DBUS_SESSION_BUS_ADDRESS
+ fi
+ exec starte16
+ ;;
+fluxbox)
+ if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
+ eval `dbus-launch --sh-syntax --exit-with-session`
+ export DBUS_SESSION_BUS_ADDRESS
+ fi
+ exec startfluxbox
+ ;;
+twindy)
+ if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
+ eval `dbus-launch --sh-syntax --exit-with-session`
+ export DBUS_SESSION_BUS_ADDRESS
+ fi
+ exec twindy
+ ;;
+fvwm)
+ if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
+ eval `dbus-launch --sh-syntax --exit-with-session`
+ export DBUS_SESSION_BUS_ADDRESS
+ fi
+ exec fvwm
+ ;;
+jwm)
+ if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
+ eval `dbus-launch --sh-syntax --exit-with-session`
+ export DBUS_SESSION_BUS_ADDRESS
+ fi
+ exec jwm
+ ;;
+twm)
+ if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
+ eval `dbus-launch --sh-syntax --exit-with-session`
+ export DBUS_SESSION_BUS_ADDRESS
+ fi
+ exec twm
+ ;;
+icewm)
+ if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
+ eval `dbus-launch --sh-syntax --exit-with-session`
+ export DBUS_SESSION_BUS_ADDRESS
+ fi
+ icewmbg &
+ icewmtray &
+ exec icewm
+ ;;
+wmaker)
+ if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
+ eval `dbus-launch --sh-syntax --exit-with-session`
+ export DBUS_SESSION_BUS_ADDRESS
+ fi
+ exec wmaker
+ ;;
+blackbox)
+ if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
+ eval `dbus-launch --sh-syntax --exit-with-session`
+ export DBUS_SESSION_BUS_ADDRESS
+ fi
+ exec blackbox
+ ;;
+gnome)
+ exec gnome-session
+ exec dbus-launch --exit-with-session gnome-session
+ ;;
+*)
+ exec $DEFAULT_SESSION
+ ;;
+esac
+