SHA256
1
0
forked from pool/pam_kwallet6
Christophe Marin 2024-08-06 19:17:18 +00:00 committed by Git OBS Bridge
commit 7a08b0934a
11 changed files with 392 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -0,0 +1,41 @@
From ca7f4d4ee95f37d9de9d80b5bba7407e0d11c59a Mon Sep 17 00:00:00 2001
From: Fabian Vogt <fabian@ritter-vogt.de>
Date: Thu, 14 Mar 2024 19:37:30 +0100
Subject: [PATCH 2/2] Use GNUInstallDirs instead of KDEInstallDirs
This installs rather generic files so it's not necessary to query Qt here.
---
CMakeLists.txt | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
Index: kwallet-pam-%{_plasma6_version}git.20240421T181146~fa8c240/CMakeLists.txt
===================================================================
--- kwallet-pam-%{_plasma6_version}git.20240421T181146~fa8c240.orig/CMakeLists.txt
+++ kwallet-pam-%{_plasma6_version}git.20240421T181146~fa8c240/CMakeLists.txt
@@ -12,7 +12,7 @@ find_package (ECM ${KF6_MIN_VERSION} REQ
set (CMAKE_MODULE_PATH ${ECM_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules" )
include(CheckFunctionExists)
-include(KDEInstallDirs)
+include(GNUInstallDirs)
include(KDEClangFormat)
include(ECMConfiguredInstall)
include(KDEGitCommitHooks)
@@ -93,13 +93,11 @@ kde_clang_format(${ALL_CLANG_FORMAT_SOUR
kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)
-install(TARGETS ${library_name} DESTINATION ${KDE_INSTALL_LIBDIR}/security)
+install(TARGETS ${library_name} DESTINATION ${CMAKE_INSTALL_LIBDIR}/security)
configure_file(pam_kwallet_init.desktop.cmake ${CMAKE_BINARY_DIR}/pam_kwallet_init.desktop)
-
-install(PROGRAMS pam_kwallet_init DESTINATION ${KDE_INSTALL_LIBEXECDIR})
-
-install(FILES ${CMAKE_BINARY_DIR}/pam_kwallet_init.desktop DESTINATION ${KDE_INSTALL_AUTOSTARTDIR})
+install(PROGRAMS pam_kwallet_init DESTINATION ${CMAKE_INSTALL_LIBEXECDIR})
+install(FILES ${CMAKE_BINARY_DIR}/pam_kwallet_init.desktop DESTINATION /etc/xdg/autostart/)
ecm_install_configured_files(INPUT plasma-kwallet-pam.service.in @ONLY DESTINATION
- ${KDE_INSTALL_SYSTEMDUSERUNITDIR})
+ ${CMAKE_INSTALL_PREFIX}/lib/systemd/user/)

6
baselibs.conf Normal file
View File

@ -0,0 +1,6 @@
pam_kwallet6
requires "pam_kwallet6 = <version>"
supplements "packageand(pam_kwallet6:pam-<targettype>)"
obsoletes "pam_kwallet-<targettype> < <version>"
post "%{_sbindir}/pam-config -a --kwallet5 || :"
post ":"

3
kwallet-pam-6.1.3.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6b8071d838c810fa9821f7daa67d929fb6d63c766f746cc5ac855f778c0740da
size 22520

View File

@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEE4KPrIC+OV1KOE+cv11dEg7tXsY0FAmaWVLEACgkQ11dEg7tX
sY3EWQ//RUDzcSI4VsComquJZYaq7PDt/V4w9unn+lyrNqrlZ7IEg/GzkpiApbNW
QnX/s3KWe8dFNDT3+uznnwJKUqleobSyPu1F/l/IkYykyAtdQUPWSPPos0lCJ1pm
3karZlnzdq+lfK1jE4ICuKWDVL5jA7QSbxbMKP/k7caQUpntmkeFH2z/5PPU+wdb
5rmE7SNaIssM0TWKw4Uj8zEDtL+4E6tmMvWno6lOgISrVV8c6NZOugIr08PclnnU
w+bzvoZlul3E2f9EAbuJS6ZWpXt+V8zJy4Lh7AV4SZp1FVxk87HEfaYFnrJxf2qM
pIvrNWRrsDpYrX1El8quh2+QIH7OklDPvMVcO5Y3b5wOZq3GW7YEkwiqDzldMmKK
xqtEUl+/r10syADEPghjz9DINk4W+/jWKubnAzTNouzz0MibFuonFjL6LOvn+VYP
Opk4k6f2xRGCxVZCnSkKMKoAEGby/GJ1XVvjwIQ7GnRH7+348gErxDEPRxoiG37+
lRKjyRJiTII0x+spb5GWOJUtq4iUJjfHUr2X83i6ajSKrkA461oBvOUQXh2o32v5
tpspOVDkWX8alWTLXdjnC62vnp5bUfJOZJbCdwP/fiXMTGVgAH8wsPXHMyjiet64
WnP4sneMu59rGQxNbxpo63PemkIQXw0ZhJZfz9Tzcr2+vSDzNxY=
=/RXz
-----END PGP SIGNATURE-----

3
kwallet-pam-6.1.4.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7324b13e0327cfb73fdb4ade8948cad17b854e02241dfa9c17cbab858f2f2e36
size 22516

View File

@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEE4KPrIC+OV1KOE+cv11dEg7tXsY0FAmayGDAACgkQ11dEg7tX
sY3ksw//dMsFS+Cq2Bw5HiQsnpqxo7YjIv1RgVM+G0lXr1ph+ytJkFI2lRZY7s1p
njbQlxTxQgTdfpVE2T39OGKal2/KiPn0/OO1+cu49WD87BJzNRfg2SshA8K6dzpz
njgaxwpyyaVOcDDmqCTuRCvrdTheLExnL2N9mtgkNNt67qyeuR0rSM+zqQBsirvz
Kfn02yVf3pmYrQASg3eZbOuGt6hnx1C1frQvDWDriIKfB/MpUVaw5j2yVisQLtQn
+tf452WgoZp1hU4+TuPZiMN+qUskRHiEV+kvdVTOBmNPwZOimX1c87WhyfADHX4t
WeoQpLpyplKEb0V5dJAVgs7Gx0xxniAmakqFofrm7Mu6YDvNExt4y/XCkUHWeU1O
o3yHjj3Nwgn5PN+AZ6vdbvPA/8XBnkbbDTZbkRBpVAYTCGMfLclEHGpgyPt3I5XB
AUg9JPt5Me8xAeQ4Qq288f16H8dNDcoGli0VM3LnyWHqtdTDSN25tZnFBhOdfuvB
Qi8ewIdYAteZw2cqWsnQYzndIhRq648k+9PGivaDBtA1+8p8KpgQqaaUKGiroHrT
debOzcYZBCZhI0juZZxcp7RQaTEWWjxKvis0PA3FGzN4z1imyre4/QNFcxWruVKp
yrKP0+x7pFeCIsnFoJ01U9GwO4ehDiORp1BUUV4S/7KKl76gOqk=
=BZ61
-----END PGP SIGNATURE-----

151
pam_kwallet6.changes Normal file
View File

@ -0,0 +1,151 @@
-------------------------------------------------------------------
Tue Aug 6 13:27:38 UTC 2024 - Fabian Vogt <fabian@ritter-vogt.de>
- Update to 6.1.4:
* New bugfix release
* For more details see https://kde.org/announcements/plasma/6/6.1.4
- Changes since 6.1.3:
* update version for new release
-------------------------------------------------------------------
Tue Jul 16 13:24:21 UTC 2024 - Fabian Vogt <fabian@ritter-vogt.de>
- Update to 6.1.3:
* New bugfix release
* For more details see https://kde.org/announcements/plasma/6/6.1.3
- Changes since 6.1.2:
* update version for new release
-------------------------------------------------------------------
Tue Jul 2 17:34:18 UTC 2024 - Fabian Vogt <fabian@ritter-vogt.de>
- Update to 6.1.2:
* New bugfix release
* For more details see https://kde.org/announcements/plasma/6/6.1.2
- Changes since 6.1.1:
* Switch to pkgconfig to find libgcrypt (allows building with libgcrypt 1.11) (kde#489303)
* update version for new release
-------------------------------------------------------------------
Tue Jun 25 17:13:52 UTC 2024 - Fabian Vogt <fabian@ritter-vogt.de>
- Update to 6.1.1:
* New bugfix release
* For more details see https://kde.org/announcements/plasma/6/6.1.1
- Changes since 6.1.0:
* update version for new release
-------------------------------------------------------------------
Thu Jun 13 10:58:39 UTC 2024 - Fabian Vogt <fabian@ritter-vogt.de>
- Update to 6.1.0:
* New bugfix release
* For more details see https://kde.org/announcements/plasma/6/6.1.0
- Changes since 6.0.90:
* update version for new release
-------------------------------------------------------------------
Sat May 25 11:18:58 UTC 2024 - Fabian Vogt <fabian@ritter-vogt.de>
- Update to 6.0.90:
* New feature release
* For more details see https://kde.org/announcements/plasma/6/6.0.90
- Changes since 6.0.5:
* update version for new release
* Add clang-format commit hook
* Move cmake_minimum_required above project
* Allow specifing KWALLETD_BIN_PATH manually
- Drop patches, now upstream:
* 0001-Allow-specifing-KWALLETD_BIN_PATH-manually.patch
- Refresh 0002-Use-GNUInstallDirs-instead-of-KDEInstallDirs.patch
-------------------------------------------------------------------
Wed May 22 07:43:10 UTC 2024 - Fabian Vogt <fabian@ritter-vogt.de>
- Update to 6.0.5:
* New bugfix release
* For more details see https://kde.org/announcements/plasma/6/6.0.5
- Changes since 6.0.4:
* update version for new release
-------------------------------------------------------------------
Wed Apr 17 08:13:02 UTC 2024 - Fabian Vogt <fabian@ritter-vogt.de>
- Update to 6.0.4:
* New bugfix release
* For more details see https://kde.org/announcements/plasma/6/6.0.4
- Changes since 6.0.3:
* update version for new release
-------------------------------------------------------------------
Tue Mar 26 18:06:03 UTC 2024 - Fabian Vogt <fabian@ritter-vogt.de>
- Update to 6.0.3:
* New bugfix release
* For more details see https://kde.org/announcements/plasma/6/6.0.3
- Changes since 6.0.2:
* update version for new release
-------------------------------------------------------------------
Thu Mar 14 22:28:42 UTC 2024 - Fabian Vogt <fabian@ritter-vogt.de>
- Also attempt pam-config enablement in %posttrans (boo#1221371)
-------------------------------------------------------------------
Thu Mar 14 18:59:17 UTC 2024 - Fabian Vogt <fabian@ritter-vogt.de>
- Add patches to avoid depending on Qt:
* 0001-Allow-specifing-KWALLETD_BIN_PATH-manually.patch
* 0002-Use-GNUInstallDirs-instead-of-KDEInstallDirs.patch
-------------------------------------------------------------------
Wed Mar 13 09:10:02 UTC 2024 - Fabian Vogt <fabian@ritter-vogt.de>
- Update to 6.0.2:
* New bugfix release
* For more details see https://kde.org/announcements/plasma/6/6.0.2
- Changes since 6.0.1:
* update version for new release
-------------------------------------------------------------------
Wed Mar 6 08:40:30 UTC 2024 - Fabian Vogt <fabian@ritter-vogt.de>
- Update to 6.0.1:
* New bugfix release
* For more details see https://kde.org/announcements/plasma/6/6.0.1
- Changes since 6.0.0:
* update version for new release
-------------------------------------------------------------------
Mon Mar 4 18:52:15 UTC 2024 - Christophe Marin <christophe@krop.fr>
- Add Provides/Obsoletes to replace Plasma 5
-------------------------------------------------------------------
Wed Feb 21 18:36:33 UTC 2024 - Fabian Vogt <fabian@ritter-vogt.de>
- Update to 6.0.0:
* New bugfix release
* Release announcement not available yet
- Changes since 5.93.0:
* update version for new release
-------------------------------------------------------------------
Wed Jan 31 17:37:29 UTC 2024 - Fabian Vogt <fabian@ritter-vogt.de>
- Update to 5.93.0 (6.0 RC 2):
* New bugfix release
* See https://kde.org/announcements/megarelease/6/rc2/ for details
- No code changes since 5.92.0
-------------------------------------------------------------------
Mon Jan 15 21:09:08 UTC 2024 - Fabian Vogt <fabian@ritter-vogt.de>
- Update to 5.92.0 (6.0 RC 1)
* For more details please see:
https://kde.org/announcements/megarelease/6/rc1/
-------------------------------------------------------------------
Fri Aug 25 08:21:38 UTC 2023 - Christophe Marin <christophe@krop.fr>
- Init pam_kwallet6

132
pam_kwallet6.spec Normal file
View File

@ -0,0 +1,132 @@
#
# spec file for package pam_kwallet6
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define kf6_version 6.2.0
%define qt6_version 6.6.0
%define rname kwallet-pam
%bcond_without released
Name: pam_kwallet6
Version: 6.1.4
Release: 0
Summary: A PAM Module for KWallet signing
License: GPL-2.0-or-later AND LGPL-2.1-only AND GPL-3.0-only
URL: https://www.kde.org/
Source: https://download.kde.org/stable/plasma/%{version}/%{rname}-%{version}.tar.xz
%if %{with released}
Source1: https://download.kde.org/stable/plasma/%{version}/%{rname}-%{version}.tar.xz.sig
Source2: plasma.keyring
%endif
Source3: baselibs.conf
# PATCH-FEATURE-OPENSUSE
Patch0: 0002-Use-GNUInstallDirs-instead-of-KDEInstallDirs.patch
BuildRequires: kf6-extra-cmake-modules >= %{kf6_version}
BuildRequires: pam-devel
BuildRequires: pkgconfig
BuildRequires: socat
BuildRequires: pkgconfig(libgcrypt) >= 1.5.0
# PAM modules need to be available for all archs of PAM on the system, otherwise pam-config
# will not enable it.
# Technically there can be different suffixes than just -32bit, but that's the most common.
# Expressing a hard dependency the other way around in baselibs.conf is not possible.
Requires: (%{name}-32bit if pam-32bit)
Requires: pam_kwallet6-common = %{version}
Requires(post): coreutils
Requires(post): pam
Requires(post): pam-config
Requires(postun): coreutils
Requires(postun): pam
Requires(postun): pam-config
Provides: pam_kwallet = %{version}
Obsoletes: pam_kwallet < %{version}
%description
This PAM module allows you to automatically open your kwallet
when signing into your account.
%package common
Summary: Support files for the KWallet PAM module
Requires: kwalletd6
Requires: socat
Provides: pam_kwallet-common = %{version}
Obsoletes: pam_kwallet-common < %{version}
BuildArch: noarch
%description common
This package contains support files used by the KWallet PAM
module.
%prep
%autosetup -p1 -n %{rname}-%{version}
%build
# Before usrmerge, the PAM module goes into /lib*/security/
%cmake_kf6 -DKWALLETD_BIN_PATH=%{_kf6_bindir}/kwalletd6 \
-DCMAKE_INSTALL_LIBEXECDIR=%{_libexecdir} \
%if 0%{?suse_version} < 1550
-DCMAKE_INSTALL_LIBDIR=/%{_lib}
%endif
%kf6_build
%install
%kf6_install
# Try to enable it in %post already, but it might not work at this time.
# Due to boo#728586 it is necessary to duplicate this in the 32bit variant,
# so you need to edit baselibs.conf if you change this.
%post
%{_sbindir}/pam-config -a --kwallet5 || :
%postun
if [ "$1" = "0" ]; then
%{_sbindir}/pam-config -d --kwallet5 || :
fi
# Enable this in posttrans to win over the old package's %postun
# and to run once the modules are installed for all archs (boo#728586).
%posttrans
%{_sbindir}/pam-config -a --kwallet5 || :
%post common
%{systemd_user_post plasma-kwallet-pam.service}
%preun common
%{systemd_user_preun plasma-kwallet-pam.service}
%postun common
%{systemd_user_postun plasma-kwallet-pam.service}
%files
%license LICENSES/*
# Yes, it's still called pam_kwallet5. Not sure whether that's intentional,
# but it means PAM config doesn't need migration which is nice.
%if 0%{?suse_version} >= 1550
%{_pam_moduledir}/pam_kwallet5.so
%else
/%{_lib}/security/pam_kwallet5.so
%endif
%files common
%license LICENSES/*
%config %{_kf6_configdir}/autostart/pam_kwallet_init.desktop
%{_libexecdir}/pam_kwallet_init
%{_userunitdir}/plasma-kwallet-pam.service
%changelog

BIN
plasma.keyring Normal file

Binary file not shown.