aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2019-06-03 11:25:18 +0200
committerLeo <thinkabit.ukim@gmail.com>2019-06-07 07:48:20 -0300
commit90fbc68e5560657fce8b07fc6291386c117a19cf (patch)
tree5b26a8c0f4c638f579bd212e1586e25c4cf50d09
parent58ad37a3fa38c25ec38bbd435c13c35f70957e65 (diff)
downloadaports-90fbc68e5560657fce8b07fc6291386c117a19cf.tar.bz2
aports-90fbc68e5560657fce8b07fc6291386c117a19cf.tar.xz
testing/sddm: new aport
-rw-r--r--testing/sddm/APKBUILD49
-rw-r--r--testing/sddm/pam-path-fix.patch36
-rwxr-xr-xtesting/sddm/sddm.openrc11
-rw-r--r--testing/sddm/sddm.pre-install4
4 files changed, 100 insertions, 0 deletions
diff --git a/testing/sddm/APKBUILD b/testing/sddm/APKBUILD
new file mode 100644
index 0000000000..b16b992b1c
--- /dev/null
+++ b/testing/sddm/APKBUILD
@@ -0,0 +1,49 @@
+# Contributor: Bart Ribbers <bribbers@disroot.org>
+# Maintainer: Bart Ribbers <bribbers@disroot.org>
+pkgname=sddm
+pkgver=0.18.1
+pkgrel=0
+pkgdesc="Simple Desktop Display Manager"
+url="https://github.com/sddm/sddm/"
+arch="all"
+license="GPL-2.0-only"
+depends="elogind xorg-server dbus-x11"
+makedepends="cmake extra-cmake-modules qt5-qtbase-dev libxcb-dev upower-dev elogind-dev linux-pam-dev qt5-qtdeclarative-dev qt5-qttools-dev utmps-dev py-docutils"
+subpackages="$pkgname-doc $pkgname-lang $pkgname-openrc"
+install="sddm.pre-install"
+langdir="/usr/share/sddm/translations"
+pkgusers="sddm"
+pkggroups="sddm"
+source="$pkgname-$pkgver.tar.gz::https://github.com/sddm/$pkgname/archive/v$pkgver.tar.gz
+ pam-path-fix.patch
+ sddm.openrc
+ "
+
+build() {
+ cmake \
+ -DCMAKE_BUILD_TYPE=RelWithDebugInfo \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_MAN_PAGES=ON \
+ -DENABLE_JOURNALD=OFF \
+ -DNO_SYSTEMD=ON \
+ -DUSE_ELOGIND=ON \
+ -DUID_MIN=500 \
+ -DUID_MAX=65000
+ make
+}
+
+check() {
+ "$builddir"/test/ConfigurationTest
+}
+
+package() {
+ DESTDIR="$pkgdir" make install
+
+ mkdir -p "$pkgdir"/etc/init.d
+ install -Dm755 "$srcdir"/sddm.openrc "$pkgdir"/etc/init.d/sddm
+}
+
+sha512sums="18d5b9ee5e4d022ac86e10cde1c70c5475aeaff86d41d8b9897bc26953f5b6d042a7fef1d6e727865ebeb003a730455656765ba53350a665891113afd4dfa7d8 sddm-0.18.1.tar.gz
+f0b4eb7ef0581701157f9decc637629156f36f6711b9a4bae517f94d7a1df614c81bbd891c918f07ac50e2a3d1519c43ccb9eefd80282c95dd79eca0e8d90904 pam-path-fix.patch
+4e6df7faf39cf4d302ad121c38287e580d8252bc46736d4ec5fae723860a45df3f103698b90826f761e361d89c824281399b0c33fcc46bcb5de8c160aa8535b7 sddm.openrc"
diff --git a/testing/sddm/pam-path-fix.patch b/testing/sddm/pam-path-fix.patch
new file mode 100644
index 0000000000..3d589bac23
--- /dev/null
+++ b/testing/sddm/pam-path-fix.patch
@@ -0,0 +1,36 @@
+--- sddm-0.16.0/services/sddm-autologin.pam.old 2017-10-03 00:43:19.000000000 -0500
++++ sddm-0.16.0/services/sddm-autologin.pam 2017-10-22 16:09:27.582687306 -0500
+@@ -6,8 +6,8 @@
+ auth required pam_permit.so
+ -auth optional pam_gnome_keyring.so
+ -auth optional pam_kwallet5.so
+-account include system-local-login
+-password include system-local-login
+-session include system-local-login
++account include base-account
++password include base-password
++session include base-session
+ -session optional pam_gnome_keyring.so auto_start
+ -session optional pam_kwallet5.so auto_start
+--- sddm-0.16.0/services/sddm.pam.old 2017-10-03 00:43:19.000000000 -0500
++++ sddm-0.16.0/services/sddm.pam 2017-10-22 16:08:55.012773018 -0500
+@@ -1,15 +1,15 @@
+ #%PAM-1.0
+
+-auth include system-login
++auth include base-auth
+ -auth optional pam_gnome_keyring.so
+ -auth optional pam_kwallet5.so
+
+-account include system-login
++account include base-account
+
+-password include system-login
++password include base-password
+ -password optional pam_gnome_keyring.so use_authtok
+
+ session optional pam_keyinit.so force revoke
+-session include system-login
++session include base-session
+ -session optional pam_gnome_keyring.so auto_start
+ -session optional pam_kwallet5.so auto_start
diff --git a/testing/sddm/sddm.openrc b/testing/sddm/sddm.openrc
new file mode 100755
index 0000000000..4b16eb3398
--- /dev/null
+++ b/testing/sddm/sddm.openrc
@@ -0,0 +1,11 @@
+#!/sbin/openrc-run
+
+depends() {
+ needs localmount
+}
+
+description="SDDM Display Manager"
+command="/usr/bin/sddm"
+command_args="$sddm_opts"
+command_background="true"
+pidfile="/var/run/sddm.pid"
diff --git a/testing/sddm/sddm.pre-install b/testing/sddm/sddm.pre-install
new file mode 100644
index 0000000000..2ac52db6b2
--- /dev/null
+++ b/testing/sddm/sddm.pre-install
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+addgroup sddm
+adduser -G video -h /var/lib/sddm -S -s /sbin/nologin sddm