diff options
author | sibel <lesibel@free.fr> | 2011-02-07 12:13:11 +0100 |
---|---|---|
committer | sibel <lesibel@free.fr> | 2011-02-07 12:13:11 +0100 |
commit | 2fbd5aff16564572427a3361f886c892900b19a2 (patch) | |
tree | c9a2b55fd24ad6001af6ed6b55ca4842f9267561 /extra/lxdm | |
parent | d7b1ae5c14a5d8fff988d99bb5f715d4d88320a1 (diff) | |
download | nutyx-extra-2fbd5aff16564572427a3361f886c892900b19a2.tar.gz nutyx-extra-2fbd5aff16564572427a3361f886c892900b19a2.tar.bz2 nutyx-extra-2fbd5aff16564572427a3361f886c892900b19a2.tar.xz nutyx-extra-2fbd5aff16564572427a3361f886c892900b19a2.zip |
lxdm, ajout port 0.3.0-1
Diffstat (limited to 'extra/lxdm')
-rw-r--r-- | extra/lxdm/.footprint.x86_64 | 45 | ||||
-rw-r--r-- | extra/lxdm/.md5sum.x86_64 | 5 | ||||
-rw-r--r-- | extra/lxdm/Pkgfile | 34 | ||||
-rw-r--r-- | extra/lxdm/lxdm-Xsession.patch | 14 | ||||
-rw-r--r-- | extra/lxdm/lxdm-deamon | 36 | ||||
-rw-r--r-- | extra/lxdm/lxdm-pam.patch | 8 | ||||
-rw-r--r-- | extra/lxdm/lxdm.patch | 26 |
7 files changed, 168 insertions, 0 deletions
diff --git a/extra/lxdm/.footprint.x86_64 b/extra/lxdm/.footprint.x86_64 new file mode 100644 index 000000000..351cdf03b --- /dev/null +++ b/extra/lxdm/.footprint.x86_64 @@ -0,0 +1,45 @@ +drwxr-xr-x root/root etc/ +drwxr-xr-x root/root etc/lxdm/ +-rwxr-xr-x root/root etc/lxdm/LoginReady +-rwxr-xr-x root/root etc/lxdm/PostLogin +-rwxr-xr-x root/root etc/lxdm/PostLogout +-rwxr-xr-x root/root etc/lxdm/PreLogin +-rwxr-xr-x root/root etc/lxdm/PreReboot +-rwxr-xr-x root/root etc/lxdm/PreShutdown +-rwxr-xr-x root/root etc/lxdm/Xsession +-rw-r----- root/root etc/lxdm/lxdm.conf +drwxr-xr-x root/root etc/pam.d/ +-rw-r--r-- root/root etc/pam.d/lxdm +drwxr-xr-x root/root etc/rc.d/ +-rwxr-xr-x root/root etc/rc.d/lxdm +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/lxdm/ +-rwxr-xr-x root/root usr/lib/lxdm/lxdm-greeter-gdk +-rwxr-xr-x root/root usr/lib/lxdm/lxdm-greeter-gtk +-rwxr-xr-x root/root usr/lib/lxdm/lxdm-numlock +drwxr-xr-x root/root usr/sbin/ +-rwxr-xr-x root/root usr/sbin/lxdm +-rwxr-xr-x root/root usr/sbin/lxdm-binary +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/locale/ +drwxr-xr-x root/root usr/share/locale/fr/ +drwxr-xr-x root/root usr/share/locale/fr/LC_MESSAGES/ +-rw-r--r-- root/root usr/share/locale/fr/LC_MESSAGES/lxdm.mo +drwxr-xr-x root/root usr/share/lxdm/ +-rw-r--r-- root/root usr/share/lxdm/lxdm.glade +drwxr-xr-x root/root usr/share/lxdm/themes/ +drwxr-xr-x root/root usr/share/lxdm/themes/Industrial/ +-rw-r--r-- root/root usr/share/lxdm/themes/Industrial/greeter.ui +-rw-r--r-- root/root usr/share/lxdm/themes/Industrial/gtkrc +-rw-r--r-- root/root usr/share/lxdm/themes/Industrial/index.theme +-rw-r--r-- root/root usr/share/lxdm/themes/Industrial/lang.png +-rw-r--r-- root/root usr/share/lxdm/themes/Industrial/login.png +-rw-r--r-- root/root usr/share/lxdm/themes/Industrial/session.png +-rw-r--r-- root/root usr/share/lxdm/themes/Industrial/shade.png +-rw-r--r-- root/root usr/share/lxdm/themes/Industrial/wave.svg +drwxr-xr-x root/root var/ +drwxr-xr-x root/root var/lib/ +drwxr-xr-x root/root var/lib/lxdm/ +drwxr-xr-x root/root var/run/ +drwxr-xr-x root/root var/run/lxdm/ diff --git a/extra/lxdm/.md5sum.x86_64 b/extra/lxdm/.md5sum.x86_64 new file mode 100644 index 000000000..7bf8fa6e8 --- /dev/null +++ b/extra/lxdm/.md5sum.x86_64 @@ -0,0 +1,5 @@ +1d0688e088edab7c3c563263eb2f9654 lxdm-0.3.0.tar.gz +9bdf95adb74d81d4b6b6176fb1142090 lxdm-Xsession.patch +705f394052fdd0dec22e95321d170de0 lxdm-deamon +b20fe3c8487a039050986d60e45233a9 lxdm-pam.patch +baed9055e8825a5511712bc095197519 lxdm.patch diff --git a/extra/lxdm/Pkgfile b/extra/lxdm/Pkgfile new file mode 100644 index 000000000..6c528b1e2 --- /dev/null +++ b/extra/lxdm/Pkgfile @@ -0,0 +1,34 @@ +# Description: Display manager leger (partie de lxde) +# URL: http://sourceforge.net/projects/lxdm/ +# Maintainer: NuTyX core team +# Packager: lesibel at free dot fr +# Depends on: gtk, consolekit, xorg-server +# Run on: + +name=lxdm +version=0.3.0 +release=1 +source=(http://downloads.sourceforge.net/project/lxdm/lxdm%20${version}/$name-$version.tar.gz + lxdm-Xsession.patch lxdm.patch lxdm-pam.patch lxdm-deamon) + +build() { + cd $name-$version + ./configure --sysconfdir=/etc \ + --prefix=/usr \ + --libexecdir=/usr/lib/lxdm + make + + patch -Np0 < ../lxdm.patch + patch -Np0 < ../lxdm-Xsession.patch + + make DESTDIR=$PKG install + + install -m644 $SRC/lxdm-pam.patch $PKG/etc/pam.d/lxdm + install -Dm755 $SRC/lxdm-deamon $PKG/etc/rc.d/lxdm + + mkdir -p $PKG/var/run/lxdm + mkdir -p $PKG/var/lib/lxdm + + sed -i -e "s/libexec/lib\/lxdm/" $PKG/etc/lxdm/lxdm.conf +} + diff --git a/extra/lxdm/lxdm-Xsession.patch b/extra/lxdm/lxdm-Xsession.patch new file mode 100644 index 000000000..a9ba63233 --- /dev/null +++ b/extra/lxdm/lxdm-Xsession.patch @@ -0,0 +1,14 @@ +--- data/Xsession.orig 2010-01-31 20:48:08.695677408 -0200 ++++ data/Xsession 2010-01-31 20:47:48.260223292 -0200 +@@ -2,6 +2,11 @@ + + # use bash for "exec -l", howto run login shell by /bin/sh ? + ++[[ -f /etc/profile ]] && . /etc/profile ++[[ -f "$HOME/.profile" ]] && . "$HOME/.profile" ++[[ -f /etc/xprofile ]] && . /etc/xprofile ++[[ -f "$HOME/.xprofile" ]] && . "$HOME/.xprofile" ++ + if [ $# -eq 1 -a -n "$1" ]; then + LXSESSION=$1 + else diff --git a/extra/lxdm/lxdm-deamon b/extra/lxdm/lxdm-deamon new file mode 100644 index 000000000..68eb6225d --- /dev/null +++ b/extra/lxdm/lxdm-deamon @@ -0,0 +1,36 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions + +PID=$(pidof -o %PPID `which lxdm-binary`) +case "$1" in + start) + stat_busy "Starting LXDM Display Manager" + [ -z "$PID" ] && /usr/sbin/lxdm -d &> /dev/null + if [ $? -gt 0 ]; then + stat_fail + else + add_daemon lxdm + stat_done + fi + ;; + stop) + stat_busy "Stopping LXDM Display Manager" + [ ! -z "$PID" ] && kill $PID &> /dev/null + if [ $? -gt 0 ]; then + stat_fail + else + rm_daemon lxdm + stat_done + fi + ;; + restart) + $0 stop + sleep 3 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac +exit 0 diff --git a/extra/lxdm/lxdm-pam.patch b/extra/lxdm/lxdm-pam.patch new file mode 100644 index 000000000..3f5df04a7 --- /dev/null +++ b/extra/lxdm/lxdm-pam.patch @@ -0,0 +1,8 @@ +#%PAM-1.0 +auth requisite pam_nologin.so +auth required pam_env.so +auth required pam_unix.so +account required pam_unix.so +session required pam_limits.so +session required pam_unix.so +password required pam_unix.so diff --git a/extra/lxdm/lxdm.patch b/extra/lxdm/lxdm.patch new file mode 100644 index 000000000..a703a386d --- /dev/null +++ b/extra/lxdm/lxdm.patch @@ -0,0 +1,26 @@ +--- data/lxdm.orig 2010-01-24 16:58:42.262866825 -0200 ++++ data/lxdm 2010-01-19 11:56:34.308668692 -0200 +@@ -1,21 +1,13 @@ + #!/bin/sh + +-[ -f /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n +- +-if [ -z "$LANG" -a -e /etc/sysconfig/language ]; then +- . /etc/sysconfig/language +- if [ -n "$RC_LANG"]; then +- LANG=$RC_LANG +- fi ++if [ -r /etc/profile.d/locale.sh ]; then ++ . /etc/profile.d/locale.sh + fi + + if [ -n "$LANG" ]; then + export LANG + fi + +-[ -f /etc/sysconfig/desktop ] && . /etc/sysconfig/desktop +-[ -f /etc/sysconfig/windowmanager ] && . /etc/sysconfig/windowmanager +- + if [ -n "$DEFAULT_WM" ]; then + PREFERRED=$DEFAULT_WM + fi |