diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-06-10 17:30:25 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-06-10 17:30:25 +0000 |
commit | dd5222c4ae447eb7a6bda08ec5a3c2339852dc16 (patch) | |
tree | f868384a6a3676025bac736d7a688aefae8acddd /extra/lxdm | |
parent | 622de23541903f9b6f85fe0a96d61de08372d23b (diff) |
Fri Jun 10 17:30:25 UTC 2011
Diffstat (limited to 'extra/lxdm')
-rw-r--r-- | extra/lxdm/PKGBUILD | 51 | ||||
-rw-r--r-- | extra/lxdm/Xsession.patch | 14 | ||||
-rw-r--r-- | extra/lxdm/lxdm-daemon | 36 | ||||
-rw-r--r-- | extra/lxdm/lxdm-pam.patch | 8 | ||||
-rw-r--r-- | extra/lxdm/lxdm.install | 59 | ||||
-rw-r--r-- | extra/lxdm/lxdm.patch | 26 |
6 files changed, 0 insertions, 194 deletions
diff --git a/extra/lxdm/PKGBUILD b/extra/lxdm/PKGBUILD deleted file mode 100644 index a0b1d9628..000000000 --- a/extra/lxdm/PKGBUILD +++ /dev/null @@ -1,51 +0,0 @@ -# Maintainer: AndyRTR <andyrtr@archlinux.org> -#Contributor: kiefer <jorgelmadrid@gmail.com> -#Based on lxdm-git by phillipe - -pkgname=lxdm -pkgver=0.3.0 -pkgrel=1 -pkgdesc="Lightweight Display Manager (part of LXDE)" -arch=('i686' 'x86_64') -url="http://sourceforge.net/projects/lxdm/" -license=('GPL') -groups=('lxde') -conflicts=('lxdm-git') -depends=('gtk2' 'xorg-server' 'consolekit') -makedepends=('intltool') -install=${pkgname}.install -backup=('etc/lxdm/lxdm.conf') # 'etc/lxdm/xinitrc') -source=(http://downloads.sourceforge.net/project/lxdm/lxdm%20${pkgver}/$pkgname-$pkgver.tar.gz - Xsession.patch lxdm.patch lxdm-pam.patch lxdm-daemon) -md5sums=('1d0688e088edab7c3c563263eb2f9654' - '9bdf95adb74d81d4b6b6176fb1142090' - 'baed9055e8825a5511712bc095197519' - 'b20fe3c8487a039050986d60e45233a9' - '705f394052fdd0dec22e95321d170de0') - -build() { - cd $srcdir/$pkgname-$pkgver - ./configure --sysconfdir=/etc --prefix=/usr --libexecdir=/usr/lib/lxdm - make - - patch -Np0 < ../lxdm.patch - patch -Np0 < ../Xsession.patch -} - - -package() { - cd $srcdir/$pkgname-$pkgver - make DESTDIR="${pkgdir}" install || return 1 - - install -m644 ${srcdir}/lxdm-pam.patch ${pkgdir}/etc/pam.d/lxdm || return 1 - install -Dm755 ${srcdir}/lxdm-daemon ${pkgdir}/etc/rc.d/lxdm || return 1 - - # these files are not in the package, but should be owned by lxdm - taken from Fedora pkg -# touch ${pkgdir}/etc/lxdm/xinitrc - mkdir -p ${pkgdir}/var/run/lxdm - mkdir -p ${pkgdir}/var/lib/lxdm -# touch ${pkgdir}/var/lib/lxdm/lxdm.conf - - # fix the greeter location - sed -i -e "s/libexec/lib\/lxdm/" ${pkgdir}/etc/lxdm/lxdm.conf -} diff --git a/extra/lxdm/Xsession.patch b/extra/lxdm/Xsession.patch deleted file mode 100644 index a9ba63233..000000000 --- a/extra/lxdm/Xsession.patch +++ /dev/null @@ -1,14 +0,0 @@ ---- 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-daemon b/extra/lxdm/lxdm-daemon deleted file mode 100644 index 68eb6225d..000000000 --- a/extra/lxdm/lxdm-daemon +++ /dev/null @@ -1,36 +0,0 @@ -#!/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 deleted file mode 100644 index 3f5df04a7..000000000 --- a/extra/lxdm/lxdm-pam.patch +++ /dev/null @@ -1,8 +0,0 @@ -#%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.install b/extra/lxdm/lxdm.install deleted file mode 100644 index 8d42de90f..000000000 --- a/extra/lxdm/lxdm.install +++ /dev/null @@ -1,59 +0,0 @@ -pkgname=lxdm - -post_install() { - # make sure the group and user "lxdm" exist on this system and have the correct values - if grep -q "^lxdm:" /etc/group &> /dev/null ; then - groupmod -g 121 -n lxdm lxdm &> /dev/null - else - groupadd -g 121 lxdm &> /dev/null - fi - - if grep -q "^lxdm:" /etc/passwd 2> /dev/null ; then - usermod -s /sbin/nologin -c "LXDE Display Manager user" -d /var/lib/lxdm -u 121 -g lxdm lxdm &> /dev/null - else - useradd -s /sbin/nologin -c "LXDE Display Manager user" -d /var/lib/lxdm -u 121 -g lxdm -m -r lxdm &> /dev/null - fi - passwd -l lxdm > /dev/null - -# chown root:lxdm /etc/lxdm/{lxdm.conf,xinitrc} > /dev/null - chown root:lxdm /etc/lxdm/lxdm.conf > /dev/null - chown -R root:lxdm /var/lib/lxdm > /dev/null - chown -R root:lxdm /var/run/lxdm > /dev/null - -cat << EOF ->>> To make the LXDM as your default DM, ->>> put, 'lxdm' or '@lxdm' (without quotes) on DAEMONS in /etc/rc.conf ->>> ->>> You can also use /etc/inittab, ->>> just add 'x:5:respawn:/usr/sbin/lxdm >& /dev/null' (without quotes) ->>> in the end of the file /etc/inittab ->>> and uncoment the line on the top 'id:5:initdefault:'. -EOF -} - -post_upgrade() { - # make sure the group and user "lxdm" exist on this system and have the correct values - if grep -q "^lxdm:" /etc/group &> /dev/null ; then - groupmod -g 121 -n lxdm lxdm &> /dev/null - else - groupadd -g 121 lxdm &> /dev/null - fi - - if grep -q "^lxdm:" /etc/passwd 2> /dev/null ; then - usermod -s /sbin/nologin -c "LXDE Display Manager user" -d /var/lib/lxdm -u 121 -g lxdm lxdm &> /dev/null - else - useradd -s /sbin/nologin -c "LXDE Display Manager user" -d /var/lib/lxdm -u 121 -g lxdm -m -r lxdm &> /dev/null - fi - passwd -l lxdm > /dev/null - -# chown root:lxdm /etc/lxdm/{lxdm.conf,xinitrc} > /dev/null - chown root:lxdm /etc/lxdm/lxdm.conf > /dev/null - chown -R root:lxdm /var/lib/lxdm > /dev/null - chown -R root:lxdm /var/run/lxdm > /dev/null -} - -post_remove() { - # Removing lxdm group+user - getent passwd lxdm >/dev/null 2>&1 && userdel lxdm #|| /bin/true - getent group lxdm >/dev/null 2>&1 && groupdel lxdm #|| /bin/true -} diff --git a/extra/lxdm/lxdm.patch b/extra/lxdm/lxdm.patch deleted file mode 100644 index a703a386d..000000000 --- a/extra/lxdm/lxdm.patch +++ /dev/null @@ -1,26 +0,0 @@ ---- 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 |