talimat 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. # Tanım: SDDM paketi, Qt ve QML'de yazılmış hafif bir ekran yöneticisi içerir.
  2. # URL: https://www.kde.org/
  3. # Paketçi: alihan-ozturk28@hotmail.com
  4. # Gerekler: cmake kf5-extra-cmake-modules qt5 upower consolekit2 xorg-libxkbfile libxcb
  5. # Grup: masaüstü
  6. isim=sddm
  7. devir=1
  8. surum=0.14.0
  9. kaynak=( https://github.com/sddm/sddm/releases/download/v$surum/${isim}-$surum.tar.xz
  10. sddm.conf
  11. 10-backlight.rules
  12. sddm-0.14.0-consolekit.patch
  13. ecb903e4.patch)
  14. derle() {
  15. wget http://anduin.linuxfromscratch.org/BLFS/blfs-bootscripts/blfs-bootscripts-20160902.tar.xz
  16. tar xvf blfs-bootscripts-20160902.tar.xz
  17. cd ${isim}-$surum
  18. sed -e '/UPOWER_SERVICE)/ s:^://:' \
  19. -i src/daemon/PowerManager.cpp
  20. mkdir build
  21. patch -p1 -i ../sddm-0.14.0-consolekit.patch
  22. patch -p1 -i ../ecb903e4.patch
  23. cd build
  24. cmake -DCMAKE_INSTALL_PREFIX=/usr \
  25. -DCMAKE_BUILD_TYPE=Release \
  26. -DENABLE_JOURNALD=OFF \
  27. -DDBUS_CONFIG_FILENAME=sddm_org.freedesktop.DisplayManager.conf \
  28. -Wno-dev ..
  29. make
  30. make DESTDIR=$PKG install
  31. install -m 644 -p $SRC/sddm.conf $PKG/etc/
  32. mkdir -p $PKG/etc/polkit-1/
  33. mkdir -p $PKG/etc/polkit-1/rules.d
  34. install -m 644 -p $SRC/10-backlight.rules $PKG/etc/polkit-1/rules.d/
  35. install -v -dm755 -o sddm -g sddm /var/lib/sddm
  36. cat > $PKG/etc/pam.d/sddm << "EOF"
  37. # Begin /etc/pam.d/sddm
  38. auth requisite pam_nologin.so
  39. auth required pam_env.so
  40. auth required pam_succeed_if.so uid >= 0 quiet
  41. #auth sufficient pam_succeed_if.so user ingroup nopasswdlogin
  42. auth include system-auth
  43. account include system-account
  44. password include system-password
  45. session required pam_limits.so
  46. session include system-session
  47. # End /etc/pam.d/sddm
  48. EOF
  49. cat > $PKG/etc/pam.d/sddm-autologin << "EOF"
  50. # Begin /etc/pam.d/sddm-autologin
  51. auth requisite pam_nologin.so
  52. auth required pam_env.so
  53. auth required pam_succeed_if.so uid >= 0 quiet
  54. #auth sufficient pam_succeed_if.so user ingroup nopasswdlogin
  55. auth required pam_permit.so
  56. account include system-account
  57. password required pam_deny.so
  58. session required pam_limits.so
  59. session include system-session
  60. # End /etc/pam.d/sddm-autologin
  61. EOF
  62. cat > $PKG/etc/pam.d/sddm-greeter << "EOF"
  63. # Begin /etc/pam.d/sddm-greeter
  64. auth required pam_env.so
  65. auth required pam_permit.so
  66. account required pam_permit.so
  67. password required pam_deny.so
  68. session required pam_unix.so
  69. -session optional pam_systemd.so
  70. # End /etc/pam.d/sddm-greeter
  71. EOF
  72. # service
  73. cd $SRC/blfs-bootscripts-20160902
  74. make DESTDIR=$PKG install-sddm
  75. }