Commit 06cceba8 authored by Natanael Copa's avatar Natanael Copa

x11/slim: added init.d script

also:
 * build fix for gcc-4.4
 * alpinize default config
parent 713f6a72
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=slim
pkgver=1.3.1
pkgrel=0
pkgrel=1
pkgdesc="Desktop-independent graphical login manager for X11"
url="http://slim.berlios.de/"
license="GPL-2"
......@@ -11,20 +11,41 @@ depends=""
install=
source="http://download.berlios.de/$pkgname/$pkgname-$pkgver.tar.gz
$pkgname.logrotate
$pkgname-restart.patch"
$pkgname.initd
slim-1.3.1-gcc4.4.patch
slim-restart.patch"
build ()
{
prepare() {
cd "$srcdir/slim-$pkgver"
for i in ../*.patch; do
patch -p1 -i $i || return 1
done
sed -i -e 's|#xserver_arguments.*|xserver_arguments -nolisten tcp vt07|'\
-e 's|/var/run/slim.lock|/var/lock/slim.lock|' \
-e 's|halt_cmd.*|halt_cmd /sbin/poweroff|'\
-e 's|reboot_cmd.*|reboot_cmd /sbin/reboot|'\
-e 's|console_cmd.*|console_cmd /usr/bin/terminal|'\
-e 's|login_cmd.*|login_cmd exec /bin/sh -l /etc/X11/xinit/xinitrc|' \
-e 's|screenshot_cmd.*|screenshot_cmd scrot /slim.png|' \
-e 's|imagemagick|scrot|' \
slim.conf || return 1
}
build() {
cd "$srcdir/slim-$pkgver"
patch -Np1 -i "$srcdir/slim-restart.patch" || return 1
make CXX="${CXX:-g++}" CC="${CC:-gcc}" || return 1
make DESTDIR="$pkgdir" MANDIR=/usr/share/man install || return 1
}
install -D -m644 "$srcdir/slim.logrotate" "$pkgdir/etc/logrotate.d/slim" || return 1
sed -i 's|#xserver_arguments.*|xserver_arguments -nolisten tcp vt07|' "$pkgdir/etc/slim.conf" || return 1
sed -i 's|/var/run/slim.lock|/var/lock/slim.lock|' "$pkgdir/etc/slim.conf" || return 1
package() {
cd "$srcdir/slim-$pkgver"
make DESTDIR="$pkgdir" MANDIR=/usr/share/man install || return 1
install -D -m755 ../slim.initd "$pkgdir"/etc/init.d/slim || return 1
install -D -m644 ../slim.logrotate "$pkgdir"/etc/logrotate.d/slim
}
md5sums="727d0acb24c0fbf0751134c37a9c895f slim-1.3.1.tar.gz
43da096480bf72c3ccec8ad8400f34f0 slim.logrotate
6ee3a023e56052528295034be809cfc6 slim.initd
a00df4316e2392fff7e75daf5c826cae slim-1.3.1-gcc4.4.patch
648d871fe7d2a97b7d7b928019e2feee slim-restart.patch"
Patch to allow compilation with gcc-4.4
Notified by Daniel J. - from Debian bug tracker
http://bugs.gentoo.org/252745
--- a/switchuser.h 2008-11-11 19:40:18.000000000 +0000
+++ b/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"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment