summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-10-06 18:43:31 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2017-10-06 18:43:31 -0500
commit4ad213b05e19d3cd4f3b9d4c5dfe3b3a6d0499b7 (patch)
tree0a7b79f529bfd66cd7f92a985a15184649073742 /user
parent4f189ebeb0938e93c567fd34d25b2e4bc5d18404 (diff)
downloadpackages-4ad213b05e19d3cd4f3b9d4c5dfe3b3a6d0499b7.tar.gz
packages-4ad213b05e19d3cd4f3b9d4c5dfe3b3a6d0499b7.tar.bz2
packages-4ad213b05e19d3cd4f3b9d4c5dfe3b3a6d0499b7.tar.xz
packages-4ad213b05e19d3cd4f3b9d4c5dfe3b3a6d0499b7.zip
user/kscreenlocker: add PAM files
Diffstat (limited to 'user')
-rw-r--r--user/kscreenlocker/APKBUILD14
-rw-r--r--user/kscreenlocker/kde-np.pam10
-rw-r--r--user/kscreenlocker/kde.pam11
3 files changed, 31 insertions, 4 deletions
diff --git a/user/kscreenlocker/APKBUILD b/user/kscreenlocker/APKBUILD
index 432bcbae6..aaf99ec9b 100644
--- a/user/kscreenlocker/APKBUILD
+++ b/user/kscreenlocker/APKBUILD
@@ -2,13 +2,13 @@
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=kscreenlocker
pkgver=5.8.7
-pkgrel=0
+pkgrel=1
pkgdesc="Secure X11 screen locker"
url="https://www.kde.org/"
arch="all"
license="LGPL-2.1"
options="!check" # requires loginctl
-depends=""
+depends="linux-pam"
depends_dev="qt5-qtbase-dev qt5-qtdeclarative-dev kcrash-dev kdeclarative-dev
kglobalaccel-dev ki18n-dev kidletime-dev kcmutils-dev solid-dev
knotifications-dev ktextwidgets-dev kwindowsystem-dev kxmlgui-dev
@@ -18,7 +18,9 @@ makedepends="$depends_dev cmake extra-cmake-modules python3 gettext-dev
install=""
subpackages="$pkgname-dev $pkgname-lang"
source="http://download.kde.org/stable/plasma/$pkgver/kscreenlocker-$pkgver.tar.xz
- kscreenlocker-5.8.5-stop-using-getpass.patch"
+ kscreenlocker-5.8.5-stop-using-getpass.patch
+ kde.pam
+ kde-np.pam"
builddir="$srcdir/kscreenlocker-$pkgver"
build() {
@@ -45,7 +47,11 @@ check() {
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
+ install -D -m644 "$srcdir"/kde.pam "$pkgdir"/etc/pam.d/kde.pam
+ install -m644 "$srcdir"/kde-np.pam "$pkgdir"/etc/pam.d/kde-np.pam
}
sha512sums="cee66e85efaafd5629c9e2b1eea1522cff960d7b9922be7b6d5f767c231fcb762cf80585d5528fdb5fc3684881bf2fa4a59da3136a1d23341ceb218da3f69e11 kscreenlocker-5.8.7.tar.xz
-44bbf365555668f7ef2f354a06d08b4b83c556f6e78ead028acd727363c287cfecc2e3eb4d0bb137feb2939da0fa21db694af6b10f8a3878d7071ad4e3b8d4e8 kscreenlocker-5.8.5-stop-using-getpass.patch"
+44bbf365555668f7ef2f354a06d08b4b83c556f6e78ead028acd727363c287cfecc2e3eb4d0bb137feb2939da0fa21db694af6b10f8a3878d7071ad4e3b8d4e8 kscreenlocker-5.8.5-stop-using-getpass.patch
+56e87d02d75c4a8cc4ed183faed416fb4972e7f223b8759959c0f5da32e11e657907a1df279d62a44a6a174f5aca8b2ac66a5f3325c5deb92011bcf71eed74c3 kde.pam
+565265485dd7466b77966d75a56766216b8bcc187c95a997e531e9481cf50ddbe576071eb0e334421202bcab19aa6de6b93e042447ca4797a24bf97e1d053ffd kde-np.pam"
diff --git a/user/kscreenlocker/kde-np.pam b/user/kscreenlocker/kde-np.pam
new file mode 100644
index 000000000..07b7861ed
--- /dev/null
+++ b/user/kscreenlocker/kde-np.pam
@@ -0,0 +1,10 @@
+#%PAM-1.0
+
+auth required pam_nologin.so
+auth required pam_permit.so
+
+account include base-account
+
+password include base-password
+
+session include base-session-noninteractive
diff --git a/user/kscreenlocker/kde.pam b/user/kscreenlocker/kde.pam
new file mode 100644
index 000000000..1b9e446ce
--- /dev/null
+++ b/user/kscreenlocker/kde.pam
@@ -0,0 +1,11 @@
+#%PAM-1.0
+
+auth required pam_nologin.so
+
+auth include base-auth
+
+account include base-account
+
+password include base-password
+
+session include base-session-noninteractive