2017-10-27 20:46:27 +02:00
|
|
|
|
# Tanım: SDDM paketi, Qt ve QML'de yazılmış hafif bir ekran yöneticisi içerir.
|
2016-02-24 01:27:23 +01:00
|
|
|
|
# URL: https://www.kde.org/
|
2017-10-27 20:46:27 +02:00
|
|
|
|
# Paketçi: alihan-ozturk28@hotmail.com
|
|
|
|
|
# Gerekler: cmake kf5-extra-cmake-modules qt5 upower consolekit2 xorg-libxkbfile libxcb
|
2016-07-23 02:32:16 +02:00
|
|
|
|
|
2016-02-24 01:27:23 +01:00
|
|
|
|
name=sddm
|
2016-11-06 11:51:26 +01:00
|
|
|
|
release=1
|
2016-10-08 12:42:13 +02:00
|
|
|
|
version=0.14.0
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2016-08-01 01:49:18 +02:00
|
|
|
|
source=( https://github.com/sddm/sddm/releases/download/v$version/${name}-$version.tar.xz
|
|
|
|
|
sddm.conf
|
2016-11-03 15:25:17 +01:00
|
|
|
|
10-backlight.rules
|
|
|
|
|
sddm-0.14.0-consolekit.patch
|
|
|
|
|
ecb903e4.patch)
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-27 23:59:41 +02:00
|
|
|
|
derle() {
|
2016-10-17 00:54:40 +02:00
|
|
|
|
wget http://anduin.linuxfromscratch.org/BLFS/blfs-bootscripts/blfs-bootscripts-20160902.tar.xz
|
|
|
|
|
tar xvf blfs-bootscripts-20160902.tar.xz
|
2016-10-08 13:18:39 +02:00
|
|
|
|
|
2016-02-24 01:27:23 +01:00
|
|
|
|
cd ${name}-$version
|
2016-11-06 06:58:20 +01:00
|
|
|
|
sed -e '/UPOWER_SERVICE)/ s:^://:' \
|
|
|
|
|
-i src/daemon/PowerManager.cpp
|
2016-02-24 01:27:23 +01:00
|
|
|
|
mkdir build
|
2016-11-03 15:25:17 +01:00
|
|
|
|
patch -p1 -i ../sddm-0.14.0-consolekit.patch
|
|
|
|
|
patch -p1 -i ../ecb903e4.patch
|
2016-02-24 01:27:23 +01:00
|
|
|
|
cd build
|
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
|
-DENABLE_JOURNALD=OFF \
|
2016-10-12 19:35:28 +02:00
|
|
|
|
-DDBUS_CONFIG_FILENAME=sddm_org.freedesktop.DisplayManager.conf \
|
2016-02-24 01:27:23 +01:00
|
|
|
|
-Wno-dev ..
|
|
|
|
|
make
|
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
|
2016-08-01 01:49:18 +02:00
|
|
|
|
install -m 644 -p $SRC/sddm.conf $PKG/etc/
|
2016-08-01 10:38:48 +02:00
|
|
|
|
mkdir -p $PKG/etc/polkit-1/
|
|
|
|
|
mkdir -p $PKG/etc/polkit-1/rules.d
|
2016-08-01 01:49:18 +02:00
|
|
|
|
install -m 644 -p $SRC/10-backlight.rules $PKG/etc/polkit-1/rules.d/
|
2016-08-01 02:11:19 +02:00
|
|
|
|
install -v -dm755 -o sddm -g sddm /var/lib/sddm
|
2016-08-01 01:49:18 +02:00
|
|
|
|
|
2016-02-24 01:27:23 +01:00
|
|
|
|
cat > $PKG/etc/pam.d/sddm << "EOF"
|
|
|
|
|
# Begin /etc/pam.d/sddm
|
|
|
|
|
|
2016-11-03 15:25:17 +01:00
|
|
|
|
auth requisite pam_nologin.so
|
2016-02-24 01:27:23 +01:00
|
|
|
|
auth required pam_env.so
|
2016-11-03 15:25:17 +01:00
|
|
|
|
|
2016-11-06 06:58:20 +01:00
|
|
|
|
auth required pam_succeed_if.so uid >= 0 quiet
|
|
|
|
|
#auth sufficient pam_succeed_if.so user ingroup nopasswdlogin
|
2016-02-24 01:27:23 +01:00
|
|
|
|
auth include system-auth
|
|
|
|
|
|
|
|
|
|
account include system-account
|
2016-11-03 15:25:17 +01:00
|
|
|
|
password include system-password
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
|
|
|
|
session required pam_limits.so
|
|
|
|
|
session include system-session
|
|
|
|
|
|
|
|
|
|
# End /etc/pam.d/sddm
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
cat > $PKG/etc/pam.d/sddm-autologin << "EOF"
|
|
|
|
|
# Begin /etc/pam.d/sddm-autologin
|
|
|
|
|
|
2016-11-03 15:25:17 +01:00
|
|
|
|
auth requisite pam_nologin.so
|
|
|
|
|
auth required pam_env.so
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2016-11-06 06:58:20 +01:00
|
|
|
|
auth required pam_succeed_if.so uid >= 0 quiet
|
|
|
|
|
#auth sufficient pam_succeed_if.so user ingroup nopasswdlogin
|
2016-11-03 15:25:17 +01:00
|
|
|
|
auth required pam_permit.so
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2016-11-03 15:25:17 +01:00
|
|
|
|
account include system-account
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2016-11-03 15:25:17 +01:00
|
|
|
|
password required pam_deny.so
|
2016-10-17 00:53:07 +02:00
|
|
|
|
|
2016-11-03 15:25:17 +01:00
|
|
|
|
session required pam_limits.so
|
|
|
|
|
session include system-session
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
|
|
|
|
# End /etc/pam.d/sddm-autologin
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
cat > $PKG/etc/pam.d/sddm-greeter << "EOF"
|
|
|
|
|
# Begin /etc/pam.d/sddm-greeter
|
|
|
|
|
|
2016-11-03 15:25:17 +01:00
|
|
|
|
auth required pam_env.so
|
|
|
|
|
auth required pam_permit.so
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2016-11-03 15:25:17 +01:00
|
|
|
|
account required pam_permit.so
|
|
|
|
|
password required pam_deny.so
|
|
|
|
|
session required pam_unix.so
|
|
|
|
|
-session optional pam_systemd.so
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
|
|
|
|
# End /etc/pam.d/sddm-greeter
|
|
|
|
|
EOF
|
|
|
|
|
# service
|
2016-10-17 00:54:40 +02:00
|
|
|
|
cd $SRC/blfs-bootscripts-20160902
|
2016-02-24 01:27:23 +01:00
|
|
|
|
make DESTDIR=$PKG install-sddm
|
|
|
|
|
}
|