lxdm.yenilendi
This commit is contained in:
parent
425a9b87c9
commit
c6679eaf13
1 changed files with 18 additions and 41 deletions
|
@ -1,50 +1,27 @@
|
||||||
# Description: Lightweight X11 Display Manager based on Gtk
|
# Description: A light weight session manager for linux
|
||||||
# Url: http://wiki.lxde.org/en/LXDM
|
# URL: http://sourceforge.net/projects/lxdm/
|
||||||
# Maintainer: dgod dot osa at gmail dot com
|
|
||||||
# Packager: milisarge
|
# Packager: milisarge
|
||||||
# Depends on: iso-codes librsvg xorg-libxinerama xorg-libxrandr xorg-libxcursor xorg-libxdamage gtk2 consolekit2
|
# Depends on: iso-codes librsvg xorg-libxinerama xorg-libxrandr xorg-libxcursor xorg-libxdamage gtk2 consolekit2
|
||||||
|
|
||||||
run=(consolekit2 librsvg)
|
|
||||||
|
|
||||||
name=lxdm
|
name=lxdm
|
||||||
version=0.5.3
|
version=0.5.3
|
||||||
release=1
|
release=1
|
||||||
source=(http://downloads.sourceforge.net/$name/$name-$version.tar.xz)
|
source=(http://sourceforge.net/projects/lxde/files/${name}/${name}%20${version}/${name}-${version}.tar.xz
|
||||||
|
http://downloads.sourceforge.net/project/lxdm-init-script/lxdm-init-script-0.0.1.tar.gz)
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
source /etc/blfs-bootscripts
|
|
||||||
wget http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.bz2
|
|
||||||
tar xvf $scripts-$scriptsversion.tar.bz2
|
|
||||||
|
|
||||||
cd $name-$version
|
cd $name-$version
|
||||||
|
./configure --prefix=/usr \
|
||||||
|
--with-pam \
|
||||||
|
--disable-gtk3 \
|
||||||
|
--with-systemdsystemunitdir=no \
|
||||||
|
--sysconfdir=/etc
|
||||||
|
|
||||||
sed -i 's:sysconfig/i18n:profile.d/i18n.sh:g' data/lxdm.in
|
make
|
||||||
sed -i 's:/etc/xprofile:/etc/profile:g' data/Xsession
|
make DESTDIR=$PKG install
|
||||||
sed -e 's/^bg/#&/' \
|
mkdir $PKG/etc/rc.d
|
||||||
-e '/reset=1/ s/# //' \
|
install -m 755 $SRC/lxdm-init-script/lxdm $PKG/etc/rc.d/$name
|
||||||
-e 's/logou$/logout/' \
|
rm -r $PKG/usr/share/lxdm/themes
|
||||||
-e "/arg=/a arg=/usr/bin/X" \
|
|
||||||
-i data/lxdm.conf.in
|
|
||||||
|
|
||||||
./configure --sysconfdir=/etc \
|
|
||||||
--prefix=/usr \
|
|
||||||
--with-pam \
|
|
||||||
--with-systemdsystemunitdir=no
|
|
||||||
|
|
||||||
make
|
|
||||||
|
|
||||||
make DESTDIR=$PKG install
|
|
||||||
|
|
||||||
cat > $PKG/etc/pam.d/lxdm << "EOF"
|
|
||||||
#%PAM-1.0
|
|
||||||
auth required pam_unix.so
|
|
||||||
auth requisite pam_nologin.so
|
|
||||||
account required pam_unix.so
|
|
||||||
password required pam_unix.so
|
|
||||||
session required pam_unix.so
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Service
|
|
||||||
cd $SRC/$scripts-$scriptsversion
|
|
||||||
make DESTDIR=$PKG install-lxdm
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue