From f5e5612b4f1f0ee862f25d7917cbb2def46c8da8 Mon Sep 17 00:00:00 2001 From: Vitezslav Crhonek Date: Wed, 6 Nov 2013 13:05:29 +0100 Subject: [PATCH] Add PAM config for vlock --- kbd.spec | 12 +++++++++++- vlock.pamd | 3 +++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 vlock.pamd diff --git a/kbd.spec b/kbd.spec index 7cb5bf2..1d0d6c1 100644 --- a/kbd.spec +++ b/kbd.spec @@ -1,6 +1,6 @@ Name: kbd Version: 2.0.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Tools for configuring the console (keyboard, virtual terminals, etc.) Group: System Environment/Base @@ -10,6 +10,7 @@ Source0: ftp://ftp.altlinux.org/pub/people/legion/kbd/kbd-%{version}.tar. Source1: kbd-latsun-fonts.tar.bz2 Source2: kbd-latarcyrheb-32.tar.bz2 Source3: xml2lst.pl +Source4: vlock.pamd # Patch0: puts additional information into man pages Patch0: kbd-1.15-keycodes-man.patch # Patch1: sparc modifications @@ -124,6 +125,10 @@ ln -s openvt $RPM_BUILD_ROOT%{_bindir}/open cp -r $RPM_BUILD_ROOT/lib/kbd/locale/ $RPM_BUILD_ROOT%{_datadir}/locale rm -rf $RPM_BUILD_ROOT/lib/kbd/locale +# Install PAM configuration for vlock +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/pam.d +install -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/vlock + # Move original keymaps to legacy directory mkdir -p $RPM_BUILD_ROOT/lib/kbd/keymaps/legacy mv $RPM_BUILD_ROOT/lib/kbd/keymaps/{amiga,atari,i386,include,mac,ppc,sun} $RPM_BUILD_ROOT/lib/kbd/keymaps/legacy @@ -216,6 +221,7 @@ ln -s /lib/kbd/keymaps/xkb/us.map.gz $RPM_BUILD_ROOT/lib/kbd/keymaps/i386/qwerty /bin/* %{_bindir}/* %{_mandir}/*/* +%config(noreplace) %{_sysconfdir}/pam.d/vlock %files misc /lib/kbd @@ -225,6 +231,10 @@ ln -s /lib/kbd/keymaps/xkb/us.map.gz $RPM_BUILD_ROOT/lib/kbd/keymaps/i386/qwerty /lib/kbd/keymaps/legacy %changelog +* Wed Nov 06 2013 Vitezslav Crhonek - 2.0.1-3 +- Add PAM config for vlock + Resolves: #913309 + * Mon Nov 04 2013 Vitezslav Crhonek - 2.0.1-2 - Fix URL - Remove source files already included in upstream tarball diff --git a/vlock.pamd b/vlock.pamd new file mode 100644 index 0000000..d2d47e5 --- /dev/null +++ b/vlock.pamd @@ -0,0 +1,3 @@ +#%PAM-1.0 +auth include system-auth +account required pam_permit.so