Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=xfcetesting.git;a=commitdiff;h=750737efd591691f9b1182d7c5d0e60af12eb922

commit 750737efd591691f9b1182d7c5d0e60af12eb922
Author: Devil505 <devil505li...@gmail.com>
Date:   Wed May 2 17:02:26 2012 +0200

lightdm-1.2.2-1-i686
* new package

diff --git a/source/xfce4/lightdm/FrugalBuild b/source/xfce4/lightdm/FrugalBuild
new file mode 100644
index 0000000..c61cb73
--- /dev/null
+++ b/source/xfce4/lightdm/FrugalBuild
@@ -0,0 +1,50 @@
+# Compiling Time: 0.19 SBU
+# Maintainer: Devil505 <devil505li...@gmail.com>
+
+pkgname=lightdm
+pkgver=1.2.2
+pkgrel=1
+pkgdesc="A lightweight display manager."
+depends=('webkit-gtk3' 'dbus-glib' 'libxklavier' 'accountsservice')
+makedepends=('intltool' 'gnome-doc-utils' 'gobject-introspection')
+groups=('xfce4')
+archs=('i686' 'x86_64')
+_F_launchpad_branch="1.2"
+Finclude launchpad
+backup=(etc/apparmor.d/lightdm-guest-session \
+       etc/dbus-1/system.d/org.freedesktop.DisplayManager.conf \
+       etc/lightdm/keys.conf \
+       etc/lightdm/lightdm.conf \
+       etc/lightdm/users.conf \
+       etc/pam.d/lightdm)
+source=($source \
+       lightdm-autologin.pam \
+       xsession \
+       lightdm.pam \
+       lightdm.tmpfiles)
+sha1sums=('3c52fa36d5c33a86252fb2191a4ca49d7588cd7c' \
+          '8f355fc8170cdf4f3a94a699b849ea7a978a91e0' \
+          '7261a104c145025c63f8febfcecc189badfd3e86' \
+          '441fbf6d2e8c76d66d83eaf9bc5b484ed2846a30' \
+          'e10a39f505c58b2cb9b53f764e8383740f592bcb')
+
+build() {
+       Fcd
+       Fbuild --disable-static --libexecdir=/usr/lib/lightdm \
+               --localstatedir=/var --with-greeter-user=lightdm \
+               --with-greeter-session=lightdm-gtk-greeter --disable-tests
+
+       Fmkdir /usr/lib/tmpfiles.d/
+       Finstall 644 lightdm.tmpfiles usr/lib/tmpfiles.d/lightdm.conf
+       Fmkdir /etc/pam.d/
+       Finstall 644 lightdm.pam etc/pam.d/lightdm
+       Finstall 644 lightdm-autologin.pam etc/pam.d/lightdm-autologin
+
+       # some tweaks
+       Frm /etc/init
+       Fexe xsession etc/lightdm
+       Fsed "minimum-uid=500" "minimum-uid=1000" 
$Fdestdir/etc/lightdm/users.conf
+       Fsed "/usr/sbin/nologin" "/sbin/nologin" 
$Fdestdir/etc/lightdm/users.conf
+       Fsed "#session-wrapper=lightdm-session" 
"session-wrapper=/etc/lightdm/xsession" $Fdestdir/etc/lightdm/lightdm.conf
+       Fsed "#autologin-session=UNIMPLEMENTED" 
"#autologin-session=UNIMPLEMENTED\n#pam-service=lightdm-autologin" 
$Fdestdir/etc/lightdm/lightdm.conf
+}
diff --git a/source/xfce4/lightdm/lightdm-autologin.pam 
b/source/xfce4/lightdm/lightdm-autologin.pam
new file mode 100644
index 0000000..3d4389c
--- /dev/null
+++ b/source/xfce4/lightdm/lightdm-autologin.pam
@@ -0,0 +1,13 @@
+#%PAM-1.0
+auth requisite pam_nologin.so
+auth required pam_env.so
+auth requisite pam_permit.so
+auth sufficient pam_succeed_if.so uid >= 1000 quiet
+auth required pam_deny.so
+account required pam_unix.so
+password required pam_deny.so
+session required pam_loginuid.so
+-session optional pam_systemd.so
+session optional pam_keyinit.so revoke
+session required pam_limits.so
+session required pam_unix.so
\ No newline at end of file
diff --git a/source/xfce4/lightdm/lightdm.pam b/source/xfce4/lightdm/lightdm.pam
new file mode 100644
index 0000000..c8f5029
--- /dev/null
+++ b/source/xfce4/lightdm/lightdm.pam
@@ -0,0 +1,11 @@
+#%PAM-1.0
+auth requisite pam_nologin.so
+auth required pam_env.so
+auth required pam_unix.so
+auth optional pam_gnome_keyring.so
+account required pam_unix.so
+session required pam_limits.so
+session required pam_unix.so
+session optional pam_systemd.so
+password required pam_unix.so
+session optional pam_gnome_keyring.so auto_start
diff --git a/source/xfce4/lightdm/lightdm.tmpfiles 
b/source/xfce4/lightdm/lightdm.tmpfiles
new file mode 100644
index 0000000..eae7d1f
--- /dev/null
+++ b/source/xfce4/lightdm/lightdm.tmpfiles
@@ -0,0 +1 @@
+d /var/run/lightdm 0770 lightdm lightdm -
diff --git a/source/xfce4/lightdm/xsession b/source/xfce4/lightdm/xsession
new file mode 100755
index 0000000..5da041e
--- /dev/null
+++ b/source/xfce4/lightdm/xsession
@@ -0,0 +1,69 @@
+#!/bin/sh
+#
+# LightDM wrapper to run around X sessions.
+
+echo "Running X session wrapper"
+
+# Load profile
+for file in "/etc/profile" "$HOME/.profile" "/etc/xprofile" "$HOME/.xprofile"; 
do
+    if [ -f "$file" ]; then
+        echo "Loading profile from $file";
+        . "$file"
+    fi
+done
+
+# Load resources
+for file in "/etc/X11/Xresources" "$HOME/.Xresources"; do
+    if [ -f "$file" ]; then
+        echo "Loading resource: $file"
+        xrdb -nocpp -merge "$file"
+    fi
+done
+
+# Load keymaps
+for file in "/etc/X11/Xkbmap" "$HOME/.Xkbmap"; do
+    if [ -f "$file" ]; then
+        echo "Loading keymap: $file"
+        setxkbmap `cat "$file"`
+        XKB_IN_USE=yes
+    fi
+done
+
+# Load xmodmap if not using XKB
+if [ -z "$XKB_IN_USE" ]; then
+    for file in "/etc/X11/Xmodmap" "$HOME/.Xmodmap"; do
+        if [ -f "$file" ]; then
+           echo "Loading modmap: $file"
+           xmodmap "$file"
+        fi
+    done
+fi
+
+unset XKB_IN_USE
+
+# Run all system xinitrc shell scripts.
+xinitdir="/etc/X11/xinit/xinitrc.d"
+if [ -d "$xinitdir" ]; then
+    for script in $xinitdir/*; do
+        echo "Loading xinit script $script"
+        if [ -x "$script" -a ! -d "$script" ]; then
+            . "$script"
+        fi
+    done
+fi
+
+# Load Xsession scripts
+xsessionddir="/etc/X11/Xsession.d"
+if [ -d "$xsessionddir" ]; then
+    for i in `ls $xsessionddir`; do
+        script="$xsessionddir/$i"
+        echo "Loading X session script $script"
+        if [ -r "$script"  -a -f "$script" ] && expr "$i" : 
'^[[:alnum:]_-]\+$' > /dev/null; then
+            . "$script"
+        fi
+    done
+fi
+
+echo "X session wrapper complete, running session $@"
+
+exec $@
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to