[packages/sddm] - initial
arekm
arekm at pld-linux.org
Mon Sep 7 13:30:21 CEST 2015
commit ced0f17e78f57148db788cc534251b17c28b368f
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon Sep 7 13:30:07 2015 +0200
- initial
sddm-autologin.pam | 17 ++++++++
sddm.conf | 86 +++++++++++++++++++++++++++++++++++++++++
sddm.pam | 17 ++++++++
sddm.spec | 111 +++++++++++++++++++++++++++++++++++++++++++++++++++++
tmpfiles-sddm.conf | 1 +
5 files changed, 232 insertions(+)
---
diff --git a/sddm.spec b/sddm.spec
new file mode 100644
index 0000000..70d2b3c
--- /dev/null
+++ b/sddm.spec
@@ -0,0 +1,111 @@
+Summary: QML based X11 desktop manager
+Name: sddm
+Version: 0.12.0
+Release: 1
+License: GPLv2+ and CC-BY-SA
+Group: X11/Applications
+URL: https://github.com/sddm/sddm
+Source0: https://github.com/sddm/sddm/archive/v%{version}.tar.gz
+# Source0-md5: e3261ac93a50c71c973cc79b85387765
+Source10: %{name}.pam
+Source11: %{name}-autologin.pam
+Source12: tmpfiles-%{name}.conf
+# sample sddm.conf generated with sddm --example-config, and entries commented-out
+Source13: %{name}.conf
+BuildRequires: cmake
+BuildRequires: libxcb-devel
+BuildRequires: pam-devel
+BuildRequires: python-docutils
+BuildRequires: systemd-devel
+Requires: xorg-x11-xinit
+Requires(postun): /usr/sbin/groupdel
+Requires(postun): /usr/sbin/userdel
+Requires(pre): /bin/id
+Requires(pre): /usr/sbin/groupadd
+Requires(pre): /usr/sbin/useradd
+Requires: xinitrc-ng >= 1.0
+Requires(post,preun,postun): systemd-units >= 38
+Requires: systemd-units >= 38
+Provides: XDM
+Provides: group(sddm)
+Provides: service(graphical-login) = sddm
+Provides: user(sddm)
+
+%description
+SDDM is a modern display manager for X11 aiming to be fast, simple and
+beautiful. It uses modern technologies like QtQuick, which in turn
+gives the designer the ability to create smooth, animated user
+interfaces.
+
+%prep
+%setup -q
+
+%build
+install -d build
+cd build
+%{cmake} \
+ -DBUILD_MAN_PAGES:BOOL=ON \
+ -DENABLE_JOURNALD:BOOL=ON \
+ -DSESSION_COMMAND:PATH=/etc/X11/xinit/Xsession \
+ -DUSE_QT5:BOOL=ON \
+ ..
+cd ..
+
+%{__make} -C build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install/fast \
+ DESTDIR=$RPM_BUILD_ROOT \
+ -C build
+
+install -Dpm 644 %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/sddm
+install -Dpm 644 %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/sddm-autologin
+install -Dpm 644 %{SOURCE12} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/sddm.conf
+install -Dpm 644 %{SOURCE13} $RPM_BUILD_ROOT%{_sysconfdir}/sddm.conf
+install -d $RPM_BUILD_ROOT%{_localstatedir}/run/sddm
+install -d $RPM_BUILD_ROOT%{_localstatedir}/lib/sddm
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%pre
+%groupadd -g 323 -r -f sddm
+%useradd -u 323 -r -d %{_localstatedir}/lib/sddm -s /bin/false -c "Simple Desktop Display Manager" -g sddm sddm
+
+%preun
+%systemd_preun sddm.service
+
+%post
+%systemd_post sddm.service
+
+%postun
+if [ "$1" = "0" ]; then
+ %userremove sddm
+ %groupremove sddm
+fi
+%systemd_reload
+
+%files
+%defattr(644,root,root,755)
+%doc README.md CONTRIBUTORS
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sddm.conf
+%config(noreplace) %verify(not md5 mtime size) /etc/pam.d/sddm
+%config(noreplace) %verify(not md5 mtime size) /etc/pam.d/sddm-autologin
+%config(noreplace) %verify(not md5 mtime size) /etc/pam.d/sddm-greeter
+# it's under %{_sysconfdir}, sure, but it's not a config file
+/etc/dbus-1/system.d/org.freedesktop.DisplayManager.conf
+%attr(755,root,root) %{_bindir}/sddm
+%attr(755,root,root) %{_bindir}/sddm-greeter
+%{_libexecdir}/sddm-helper
+%{systemdtmpfilesdir}/sddm.conf
+%attr(711, root, sddm) %dir %{_localstatedir}/run/sddm
+%attr(1770, sddm, sddm) %dir %{_localstatedir}/lib/sddm
+%{systemdunitdir}/sddm.service
+%{_libdir}/qt5/qml/SddmComponents/
+%{_datadir}/sddm
+%{_mandir}/man1/sddm.1*
+%{_mandir}/man1/sddm-greeter.1*
+%{_mandir}/man5/sddm.conf.5*
+%{_mandir}/man5/sddm-state.conf.5*
diff --git a/sddm-autologin.pam b/sddm-autologin.pam
new file mode 100644
index 0000000..ee6c47d
--- /dev/null
+++ b/sddm-autologin.pam
@@ -0,0 +1,17 @@
+#%PAM-1.0
+auth required pam_listfile.so item=user sense=deny file=/etc/security/blacklist onerr=succeed
+auth required pam_listfile.so item=user sense=deny file=/etc/security/blacklist.gdm onerr=succeed
+auth required pam_tally.so deny=0 file=/var/log/faillog onerr=succeed
+auth required pam_permit.so
+
+account required pam_shells.so
+account required pam_nologin.so
+account required pam_access.so
+account include system-auth
+
+password include system-auth
+
+session optional pam_keyinit.so force revoke
+session include system-auth
+-session optional pam_ck_connector.so
+session optional pam_console.so
diff --git a/sddm.conf b/sddm.conf
new file mode 100644
index 0000000..8ec978a
--- /dev/null
+++ b/sddm.conf
@@ -0,0 +1,86 @@
+[Autologin]
+# Autologin again on session exit
+#Relogin=false
+
+# Autologin session
+#Session=
+
+# Autologin user
+#User=
+
+
+[General]
+# Halt command
+#HaltCommand=/usr/bin/systemctl poweroff
+
+# Initial NumLock state
+# Valid values: on|off|none
+# If property is set to none, numlock won't be changed
+#Numlock=none
+
+# Reboot command
+#RebootCommand=/usr/bin/systemctl reboot
+
+
+[Theme]
+# Current theme name
+#Current=01-breeze-fedora
+
+# Cursor theme
+#CursorTheme=
+
+# Face icon directory
+# The files should be in username.face.icon format
+#FacesDir=/usr/share/sddm/faces
+
+# Theme directory path
+#ThemeDir=/usr/share/sddm/themes
+
+
+[Users]
+# Default $PATH
+#DefaultPath=/bin:/usr/bin:/usr/local/bin
+
+# Hidden shells
+# Users with these shells as their default won't be listed
+#HideShells=
+
+# Hidden users
+#HideUsers=
+
+# Maximum user id for displayed users
+#MaximumUid=65000
+
+# Minimum user id for displayed users
+#MinimumUid=1000
+
+# Remember the session of the last successfully logged in user
+#RememberLastSession=true
+
+# Remember the last successfully logged in user
+#RememberLastUser=true
+
+
+[XDisplay]
+# Xsetup script path
+# A script to execute when starting the display server
+#DisplayCommand=/usr/share/sddm/scripts/Xsetup
+
+# Minimum VT
+# The lowest virtual terminal number that will be used.
+#MinimumVT=1
+
+# X server path
+#ServerPath=/usr/bin/X
+
+# Xsession script path
+# A script to execute when starting the desktop session
+#SessionCommand=/etc/X11/xinit/Xsession
+
+# Session description directory
+#SessionDir=/usr/share/xsessions
+
+# Xauth path
+#XauthPath=/usr/bin/xauth
+
+
diff --git a/sddm.pam b/sddm.pam
new file mode 100644
index 0000000..bcf5c5c
--- /dev/null
+++ b/sddm.pam
@@ -0,0 +1,17 @@
+#%PAM-1.0
+auth required pam_listfile.so item=user sense=deny file=/etc/security/blacklist.gdm onerr=succeed
+auth include system-auth
+auth optional pam_gnome_keyring.so
+
+account required pam_shells.so
+account required pam_nologin.so
+account required pam_access.so
+account include system-auth
+
+password include system-auth
+
+session optional pam_keyinit.so force revoke
+session optional pam_console.so
+session optional pam_gnome_keyring.so auto_start
+-session optional pam_ck_connector.so
+session include system-auth
diff --git a/tmpfiles-sddm.conf b/tmpfiles-sddm.conf
new file mode 100644
index 0000000..7165d41
--- /dev/null
+++ b/tmpfiles-sddm.conf
@@ -0,0 +1 @@
+d /var/run/sddm 0711 root root -
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/sddm.git/commitdiff/ced0f17e78f57148db788cc534251b17c28b368f
More information about the pld-cvs-commit
mailing list