From: Jose V Beneyto Date: Mon, 21 Dec 2009 11:53:36 +0000 (+0100) Subject: slim: initial import (verified compilation) X-Git-Url: http://gitweb/?a=commitdiff_plain;h=9c5d2f8c427587cd187ba484b9b3487f371340c0;p=attic%2Fports%2Fopt-cross.git slim: initial import (verified compilation) --- diff --git a/slim/.footprint b/slim/.footprint new file mode 100644 index 0000000..23eb903 --- /dev/null +++ b/slim/.footprint @@ -0,0 +1,21 @@ +drwxr-xr-x root/root etc/ +drwxr-xr-x root/root etc/rc.d/ +-rwxr-xr-x root/root etc/rc.d/slim +-rw-r--r-- root/root etc/slim.conf +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/crux-smooth/ +-rw-r--r-- root/root usr/share/slim/themes/crux-smooth/background.jpg +-rw-r--r-- root/root usr/share/slim/themes/crux-smooth/panel.png +-rw-r--r-- root/root usr/share/slim/themes/crux-smooth/slim.theme +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 diff --git a/slim/.md5sum b/slim/.md5sum new file mode 100644 index 0000000..66922f2 --- /dev/null +++ b/slim/.md5sum @@ -0,0 +1,4 @@ +727d0acb24c0fbf0751134c37a9c895f slim-1.3.1.tar.gz +46349c2dc378b17d5857c5c1d904a636 slim-crux-smooth.tar.gz +dcc7e99ca74d6b93bca75b5dee95138b slim.diff +476ce747c77f1a7e116a7f63bfb7d8d3 slim.rc diff --git a/slim/Pkgfile b/slim/Pkgfile new file mode 100644 index 0000000..908c21e --- /dev/null +++ b/slim/Pkgfile @@ -0,0 +1,35 @@ +# Description: Graphical login utility +# URL: http://slim.berlios.de +# Packager: Simone Rota sip at crux dot nu +# Maintainer: Thomas Penteker tek at serverop dot de +# Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org +# Depends on: xorg-xauth libjpeg libpng + +name=slim +version=1.3.1 +release=2 +source=(http://download.berlios.de/$name/$name-$version.tar.gz \ + http://jw.tks6.net/files/slim-crux-smooth.tar.gz $name.rc + $name.diff) + +build () { + cd $name-$version + + # fix the build with g++ 4.4 + patch -p1 -i $SRC/$name.diff + + INC="-I$CLFS/usr/include -I$CLFS/usr/include/X11 -I$CLFS/usr/include/libpng12" + INC="$INC -I$CLFS/usr/include/X11/extensions -I$CLFS/usr/include/X11/Xft" + INC="$INC -I$CLFS/usr/include/freetype2 -I$CLFS/usr/include/freetype2/config" + + make CC="$CC" CXX="$CXX" CFLAGS="$CFLAGS -Wall -I. $INC" + make DESTDIR=$PKG install + + mkdir $PKG/etc/rc.d + install -m 755 ../$name.rc $PKG/etc/rc.d/$name + cd ../ + + rm -f slim-crux-smooth/README + cp -r slim-crux-smooth $PKG/usr/share/slim/themes/crux-smooth + chmod 0644 $PKG/usr/share/slim/themes/crux-smooth/* +} diff --git a/slim/slim.diff b/slim/slim.diff new file mode 100644 index 0000000..4be4593 --- /dev/null +++ b/slim/slim.diff @@ -0,0 +1,11 @@ +diff -aur slim-1.3.1.orig/switchuser.cpp slim-1.3.1/switchuser.cpp +--- slim-1.3.1.orig/switchuser.cpp 2008-09-26 02:54:15.000000000 +0200 ++++ slim-1.3.1/switchuser.cpp 2009-07-20 15:23:06.105573161 +0200 +@@ -9,6 +9,7 @@ + (at your option) any later version. + */ + ++#include + #include "switchuser.h" + + using namespace std; diff --git a/slim/slim.rc b/slim/slim.rc new file mode 100644 index 0000000..26fd668 --- /dev/null +++ b/slim/slim.rc @@ -0,0 +1,23 @@ +#!/bin/sh +# +# /etc/rc.d/slim: start/stop slim +# + +case $1 in +start) + /usr/bin/slim -d + ;; +stop) + killall /usr/bin/slim + ;; +restart) + $0 stop + sleep 2 + $0 start + ;; +*) + echo "usage: $0 [start|stop|restart]" + ;; +esac + +# End of file