Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=e10620a8510086a0cc1ff32624f96d4b31676386

commit e10620a8510086a0cc1ff32624f96d4b31676386
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Sun Jan 24 01:01:32 2010 +0000

lxdm-0.1.0-1-i686
*new package
*use theme lxde/frugalware

diff --git a/source/x11-extra/lxdm/FrugalBuild 
b/source/x11-extra/lxdm/FrugalBuild
new file mode 100644
index 0000000..190132a
--- /dev/null
+++ b/source/x11-extra/lxdm/FrugalBuild
@@ -0,0 +1,35 @@
+# Compiling Time: 0.04 SBU
+# Maintainer: bouleetbil <bouleet...@frogdev.info>
+
+pkgname=lxdm
+pkgver=0.1.0
+pkgrel=1
+pkgdesc="LXDM - GUI login manager for LXDE"
+depends=('gtk+2>=2.16.2-2' 'glibc' 'consolekit')
+rodepends=('lxde-common' 'gtk+2-theme-frugalware')
+makedepends=('intltool')
+options=('scriptlet')
+groups=('x11-extra' 'lxde-desktop')
+archs=('i686')
+_F_sourceforge_dirname="lxde"
+Finclude sourceforge
+url="http://lxde.org/";
+source=($source lxdm.conf lxdm pam tty.diff)
+sha1sums=('cedaba940130d95661703af035e5f67884fe85b8' \
+          'f1b77bdb4ecd54a5a73ec10e48013781052e5c9d' \
+          '1fb545d317d43390582312a24ca68935e4d8f16b' \
+          '057e8138c508174812fe1210ea8253f822d60c0e' \
+          '65bb70f723e130e4c012d03d86549f601f364fc6')
+backup=('etc/lxdm/lxdm.conf' 'etc/pam.d/lxdm')
+
+build()  {
+       Fbuild
+       Frm etc/lxdm/lxdm.conf
+       Fcp lxdm.conf etc/lxdm/lxdm.conf
+       Frm usr/bin/lxdm
+       Fcp lxdm usr/bin/lxdm
+       Frm etc/pam.d/lxdm
+       Fcp pam etc/pam.d/lxdm
+}
+
+# optimization OK
diff --git a/source/x11-extra/lxdm/lxdm b/source/x11-extra/lxdm/lxdm
new file mode 100755
index 0000000..8e6482b
--- /dev/null
+++ b/source/x11-extra/lxdm/lxdm
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+if [ -r /etc/profile.d/lang.sh ]; then
+       . /etc/profile.d/lang.sh
+fi
+
+if [ -n "$LANG" ]; then
+       export LANG
+fi
+
+if [ -n "$DEFAULT_WM" ]; then
+       PREFERRED=$DEFAULT_WM
+fi
+
+if [ -n "$DESKTOP" ]; then
+       export DESKTOP
+fi
+
+if [ -n "$PREFERRED" ]; then
+       export PREFERRED
+fi
+
+exec /usr/bin/lxdm-binary >/dev/null 2>&1
diff --git a/source/x11-extra/lxdm/lxdm.conf b/source/x11-extra/lxdm/lxdm.conf
new file mode 100644
index 0000000..184ceab
--- /dev/null
+++ b/source/x11-extra/lxdm/lxdm.conf
@@ -0,0 +1,17 @@
+[base]
+#autologin=foo
+#session=/usr/bin/startlxde
+greeter=/usr/bin/lxdm-greeter-gtk
+
+[server]
+# Custom X parameters
+arg=/usr/bin/X -nolisten tcp
+
+[display]
+# Custom background image
+bg=/usr/share/lxde/wallpapers/lxde-frugalware_1.png
+
+# Custom GTK+ theme, you can put the name of any other theme.
+gtk_theme=Frugalware
+
+[input]
diff --git a/source/x11-extra/lxdm/lxdm.install 
b/source/x11-extra/lxdm/lxdm.install
new file mode 100644
index 0000000..b5f7c5e
--- /dev/null
+++ b/source/x11-extra/lxdm/lxdm.install
@@ -0,0 +1,21 @@
+post_install()
+{
+       sed 's|^#desktop="/usr/bin/lxdm"$|desktop="/usr/bin/lxdm"|' -i 
/etc/sysconfig/desktop
+}
+
+post_upgrade()
+{
+       post_install
+}
+
+post_remove()
+{
+       sed -i 's|^desktop="/usr/bin/lxdm"$|#desktop="/usr/bin/lxdm"|' 
/etc/sysconfig/desktop
+}
+
+op=$1
+shift
+
+$op $*
+
+# vim: ft=sh
diff --git a/source/x11-extra/lxdm/pam b/source/x11-extra/lxdm/pam
new file mode 100644
index 0000000..29ea8e1
--- /dev/null
+++ b/source/x11-extra/lxdm/pam
@@ -0,0 +1,11 @@
+#%PAM-1.0
+auth       required    pam_succeed_if.so user != root quiet
+auth       required    pam_env.so
+auth       substack    system-auth
+auth       optional    pam_gnome_keyring.so
+account    required    pam_nologin.so
+account    include     system-auth
+password   include     system-auth
+session    required    pam_loginuid.so
+session    optional    pam_gnome_keyring.so auto_start
+session    include     system-auth
diff --git a/source/x11-extra/lxdm/tty.diff b/source/x11-extra/lxdm/tty.diff
new file mode 100644
index 0000000..dd4c83d
--- /dev/null
+++ b/source/x11-extra/lxdm/tty.diff
@@ -0,0 +1,11 @@
+--- lxdm/src/lxdm.c.orig       2009-12-20 23:53:16.000000000 +0100
++++ lxdm/src/lxdm.c    2009-12-20 23:54:00.000000000 +0100
+@@ -57,7 +57,7 @@
+ static pid_t child;
+ static int reason;
+ static char mcookie[33];
+-static int tty=7;
++static int tty=12;
+
+ static int get_active_vt (void)
+ {
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to