ligthdm
This commit is contained in:
parent
98bdf238bf
commit
16898e00f0
|
@ -1,26 +0,0 @@
|
|||
# Tanım: Lightdm için GTK karşılayıcı
|
||||
# URL: https://launchpad.net/lightdm-gtk-greeter
|
||||
# Paketçi: yasarciv67@gmail.com
|
||||
# Gerekler: gtk3 lightdm exo gobject-introspection intltool
|
||||
|
||||
isim=lightdm-gtk-greeter
|
||||
surum=2.0.2
|
||||
devir=1
|
||||
|
||||
kaynak=(https://launchpad.net/$isim/${surum%.*}/$surum/+download/$isim-$surum.tar.gz)
|
||||
|
||||
derle() {
|
||||
cd $isim-$surum
|
||||
./configure \
|
||||
--prefix='/usr' \
|
||||
--libexecdir='/usr/lib/lightdm' \
|
||||
--sbindir='/usr/bin' \
|
||||
--sysconfdir='/etc' \
|
||||
--with-libxklavier \
|
||||
--enable-kill-on-sigterm \
|
||||
--disable-libido \
|
||||
--disable-libindicator \
|
||||
--disable-static
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
}
|
|
@ -1,64 +0,0 @@
|
|||
#!/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 -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
|
||||
|
||||
# Run user xsession shell script
|
||||
script="$HOME/.xsession"
|
||||
if [ -x "$script" -a ! -d "$script" ]; then
|
||||
echo "Loading xsession script $script"
|
||||
. "$script"
|
||||
fi
|
||||
|
||||
echo "X session wrapper complete, running session $@"
|
||||
|
||||
exec $@
|
|
@ -1,13 +0,0 @@
|
|||
#%PAM-1.0
|
||||
auth required pam_env.so
|
||||
auth required pam_tally.so file=/var/log/faillog onerr=succeed
|
||||
auth required pam_shells.so
|
||||
auth required pam_nologin.so
|
||||
auth [success=1 default=ignore] pam_succeed_if.so user ingroup autologin
|
||||
auth required pam_unix.so
|
||||
auth required pam_permit.so
|
||||
-auth optional pam_gnome_keyring.so
|
||||
account include system-local-login
|
||||
password include system-local-login
|
||||
session include system-local-login
|
||||
-session optional pam_gnome_keyring.so auto_start
|
|
@ -1,40 +0,0 @@
|
|||
diff -rupN lightdm-1.16.7.orig/data/lightdm.conf lightdm-1.16.7/data/lightdm.conf
|
||||
--- lightdm-1.16.7.orig/data/lightdm.conf 2016-02-07 10:44:47.229197400 +0100
|
||||
+++ lightdm-1.16.7/data/lightdm.conf 2016-02-07 10:47:36.011855600 +0100
|
||||
@@ -21,13 +21,13 @@
|
||||
#start-default-seat=true
|
||||
#greeter-user=lightdm
|
||||
#minimum-display-number=0
|
||||
-#minimum-vt=7
|
||||
+#minimum-vt=7 # Setting this to a value < 7 implies security issues, see FS#46799
|
||||
#lock-memory=true
|
||||
#user-authority-in-system-dir=false
|
||||
#guest-account-script=guest-account
|
||||
#logind-check-graphical=false
|
||||
#log-directory=/var/log/lightdm
|
||||
-#run-directory=/var/run/lightdm
|
||||
+run-directory=/run/lightdm
|
||||
#cache-directory=/var/cache/lightdm
|
||||
#sessions-directory=/usr/share/lightdm/sessions:/usr/share/xsessions:/usr/share/wayland-sessions
|
||||
#remote-sessions-directory=/usr/share/lightdm/remote-sessions
|
||||
@@ -110,7 +110,7 @@
|
||||
#allow-user-switching=true
|
||||
#allow-guest=true
|
||||
#guest-session=
|
||||
-#session-wrapper=lightdm-session
|
||||
+session-wrapper=/etc/lightdm/Xsession
|
||||
#greeter-wrapper=
|
||||
#guest-wrapper=
|
||||
#display-setup-script=
|
||||
diff -rupN lightdm-1.16.7.orig/data/users.conf lightdm-1.16.7/data/users.conf
|
||||
--- lightdm-1.16.7.orig/data/users.conf 2016-02-07 10:44:47.224423000 +0100
|
||||
+++ lightdm-1.16.7/data/users.conf 2016-02-07 10:44:53.660216200 +0100
|
||||
@@ -9,6 +9,6 @@
|
||||
# hidden-shells = Shells that indicate a user cannot login
|
||||
#
|
||||
[UserList]
|
||||
-minimum-uid=500
|
||||
+minimum-uid=1000
|
||||
hidden-users=nobody nobody4 noaccess
|
||||
-hidden-shells=/bin/false /usr/sbin/nologin
|
||||
+hidden-shells=/bin/false /usr/bin/nologin
|
|
@ -1,4 +0,0 @@
|
|||
getent group lightdm > /dev/null 2>&1 || groupadd -g 620 lightdm
|
||||
getent passwd lightdm > /dev/null 2>&1 || useradd -c 'Light Display Manager' -u 620 -g lightdm -d /var/lib/lightdm -s /usr/bin/nologin lightdm
|
||||
passwd -l lightdm > /dev/null
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
#%PAM-1.0
|
||||
auth include system-login
|
||||
-auth optional pam_gnome_keyring.so
|
||||
account include system-login
|
||||
password include system-login
|
||||
session include system-login
|
||||
-session optional pam_gnome_keyring.so auto_start
|
|
@ -1,15 +0,0 @@
|
|||
polkit.addRule(function(action, subject) {
|
||||
if (subject.user == "lightdm") {
|
||||
polkit.log("action=" + action);
|
||||
polkit.log("subject=" + subject);
|
||||
if (action.id.indexOf("org.freedesktop.login1.") == 0) {
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
if (action.id.indexOf("org.freedesktop.consolekit.system.") == 0) {
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
if (action.id.indexOf("org.freedesktop.upower.") == 0) {
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
}
|
||||
});
|
|
@ -1,14 +0,0 @@
|
|||
[Unit]
|
||||
Tanım:Light Display Manager
|
||||
Documentation=man:lightdm(1)
|
||||
Conflicts=getty@tty1.service
|
||||
After=getty@tty1.service systemd-user-sessions.service plymouth-quit.service acpid.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/lightdm
|
||||
Restart=always
|
||||
IgnoreSIGPIPE=no
|
||||
BusName=org.freedesktop.DisplayManager
|
||||
|
||||
[Install]
|
||||
Alias=display-manager.service
|
|
@ -1 +0,0 @@
|
|||
d /run/lightdm 0711 lightdm lightdm
|
|
@ -1,76 +0,0 @@
|
|||
# Tanım: Hafif bir giriş yönetici
|
||||
# URL: https://launchpad.net/lightdm
|
||||
# Paketçi: yasarciv67@gmail.com
|
||||
# Gerekler: gcc glib gobject-introspection gtk-doc intltool itstool libgcrypt xorg-libx11 libxcb xorg-libxdmcp xorg-libxklavier pam polkit qt4 qt5 vala
|
||||
|
||||
isim=lightdm
|
||||
surum=1.22.0
|
||||
devir=1
|
||||
|
||||
kaynak=(https://launchpad.net/lightdm/${surum%.*}.tar.xz
|
||||
lightdm.service
|
||||
lightdm.tmpfiles
|
||||
lightdm.pam
|
||||
lightdm-autologin.pam
|
||||
lightdm.rules
|
||||
lightdm-default-config.patch
|
||||
Xsession)
|
||||
|
||||
derle() {
|
||||
cd $isim-$surum
|
||||
patch -Np1 -i ../lightdm-default-config.patch
|
||||
|
||||
export MOC4=moc-qt4
|
||||
export MOC5=moc-qt5
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libexecdir=/usr/lib/lightdm \
|
||||
--localstatedir=/var \
|
||||
--sbindir=/usr/bin \
|
||||
--sysconfdir=/etc \
|
||||
--with-greeter-user=lightdm \
|
||||
--with-greeter-session=lightdm-gtk-greeter \
|
||||
--disable-static \
|
||||
--enable-liblightdm-qt5=no \
|
||||
--disable-tests
|
||||
|
||||
make DESTDIR=${PKG} install
|
||||
make DESTDIR=${PKG} -C liblightdm-qt uninstall
|
||||
install -m 755 ../Xsession ${PKG}/etc/lightdm/Xsession
|
||||
rm -rf ${PKG}/etc/init
|
||||
rm -rf ${PKG}/usr/include/lightdm-qt{,5}-*
|
||||
|
||||
install -dm 755 ${PKG}/var/cache/lightdm
|
||||
install -dm 770 ${PKG}/var/lib/lightdm{,-data}
|
||||
install -dm 711 ${PKG}/var/log/lightdm
|
||||
chmod +t ${PKG}/var/{cache/lightdm,lib/lightdm{,-data}}
|
||||
chown 620:620 -R ${PKG}/var/lib/lightdm{,-data}
|
||||
chgrp 620 ${PKG}/var/log/lightdm
|
||||
|
||||
# PAM
|
||||
install -m 644 ../lightdm.pam ${PKG}/etc/pam.d/lightdm
|
||||
install -m 644 ../lightdm-autologin.pam ${PKG}/etc/pam.d/lightdm-autologin
|
||||
|
||||
# PolicyKit
|
||||
install -dm 750 -g 102 ${PKG}/usr/share/polkit-1/rules.d
|
||||
install -m 644 ../lightdm.rules ${PKG}/usr/share/polkit-1/rules.d/lightdm.rules
|
||||
|
||||
make DESTDIR=${PKG} -C liblightdm-gobject install
|
||||
make DESTDIR=${PKG} -C liblightdm-qt install
|
||||
make DESTDIR=${PKG} -C liblightdm-gobject uninstall
|
||||
find ${PKG} -type d -name *qt5* -exec rm -rf {} +
|
||||
find ${PKG} -type f -name *qt5* -exec rm {} +
|
||||
find ${PKG} -type l -name *qt5* -exec rm {} +
|
||||
|
||||
|
||||
make DESTDIR=${PKG} -C liblightdm-gobject install
|
||||
make DESTDIR=${PKG} -C liblightdm-qt install
|
||||
make DESTDIR=${PKG} -C liblightdm-gobject uninstall
|
||||
find ${PKG} -type d -name *qt[!5]* -exec rm -rf {} +
|
||||
find ${PKG} -type f -name *qt[!5]* -exec rm {} +
|
||||
find ${PKG} -type l -name *qt[!5]* -exec rm {} +
|
||||
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
}
|
Loading…
Reference in New Issue