forked from pool/pam-config
Accepting request 579500 from Linux-PAM
- Use %license instead of %doc [bsc#1082318] - Update to version 0.95: - fix migration from pam_unix2/pam_pwcheck to pam_unix/pam_cracklib OBS-URL: https://build.opensuse.org/request/show/579500 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/pam-config?expand=0&rev=76
This commit is contained in:
commit
5e1ad76150
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:7579cf8363da4bbd212267faea2b39a36952da64219b31185f3cdb5621963387
|
|
||||||
size 324486
|
|
3
pam-config-0.95.tar.bz2
Normal file
3
pam-config-0.95.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:554c07df87bf25d21d3b54ec000595aea9b97ae05f95c2df599dc010fc97b4dd
|
||||||
|
size 324353
|
@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Feb 23 12:36:32 UTC 2018 - kukuk@suse.com
|
||||||
|
|
||||||
|
- Use %license instead of %doc [bsc#1082318]
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 22 16:25:04 CET 2018 - kukuk@suse.de
|
||||||
|
|
||||||
|
- Update to version 0.95:
|
||||||
|
- fix migration from pam_unix2/pam_pwcheck to pam_unix/pam_cracklib
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jan 15 17:06:23 CET 2018 - kukuk@suse.de
|
Mon Jan 15 17:06:23 CET 2018 - kukuk@suse.de
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package pam-config
|
# spec file for package pam-config
|
||||||
#
|
#
|
||||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -17,15 +17,14 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: pam-config
|
Name: pam-config
|
||||||
Summary: Modify common PAM configuration files
|
Version: 0.95
|
||||||
License: GPL-2.0
|
|
||||||
Group: System/Management
|
|
||||||
Version: 0.94
|
|
||||||
Release: 0
|
Release: 0
|
||||||
PreReq: pam >= 1.3.0
|
Summary: Modify common PAM configuration files
|
||||||
Url: https://github.com/SUSE/pam-config
|
License: GPL-2.0-only
|
||||||
|
Group: System/Management
|
||||||
|
URL: https://github.com/SUSE/pam-config
|
||||||
Source: %{name}-%{version}.tar.bz2
|
Source: %{name}-%{version}.tar.bz2
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
PreReq: pam >= 1.3.0
|
||||||
|
|
||||||
%description
|
%description
|
||||||
pam-config is a command line utility to maintain the common PAM
|
pam-config is a command line utility to maintain the common PAM
|
||||||
@ -34,8 +33,6 @@ files. It can be used to configure a system for different network or
|
|||||||
hardware based authentication schemes. pam-config can also
|
hardware based authentication schemes. pam-config can also
|
||||||
add/adjust/remove other PAM modules and their options.
|
add/adjust/remove other PAM modules and their options.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
@ -44,15 +41,15 @@ add/adjust/remove other PAM modules and their options.
|
|||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
%make_install
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/pam.d
|
mkdir -p %{buildroot}/%{_sysconfdir}/pam.d
|
||||||
for i in account auth password session ; do
|
for i in account auth password session ; do
|
||||||
touch $RPM_BUILD_ROOT/%{_sysconfdir}/pam.d/common-$i-pc
|
touch %{buildroot}/%{_sysconfdir}/pam.d/common-$i-pc
|
||||||
done
|
done
|
||||||
%{find_lang} pam-config
|
%find_lang pam-config
|
||||||
|
|
||||||
%post
|
%post
|
||||||
if [ ! -f /etc/pam.d/common-auth-pc ] ; then
|
if [ ! -f %{_sysconfdir}/pam.d/common-auth-pc ] ; then
|
||||||
pam-config --debug --create --force
|
pam-config --debug --create --force
|
||||||
else
|
else
|
||||||
pam-config --debug --update ||:
|
pam-config --debug --update ||:
|
||||||
@ -61,13 +58,13 @@ fi
|
|||||||
%postun
|
%postun
|
||||||
if [ $1 = 0 ]; then
|
if [ $1 = 0 ]; then
|
||||||
# Deinstall
|
# Deinstall
|
||||||
dir=/etc/security
|
dir=%{_sysconfdir}/security
|
||||||
for conf in pam_unix2.conf pam_pwcheck.conf ; do
|
for conf in pam_unix2.conf pam_pwcheck.conf ; do
|
||||||
if [ -f $dir/$conf.pam-config-backup -a ! -f $dir/$conf ]; then
|
if [ -f $dir/$conf.pam-config-backup -a ! -f $dir/$conf ]; then
|
||||||
mv -v $dir/$conf.pam-config-backup $dir/$conf
|
mv -v $dir/$conf.pam-config-backup $dir/$conf
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
dir=/etc/pam.d
|
dir=%{_sysconfdir}/pam.d
|
||||||
for pamd in common-account common-auth common-password common-session ; do
|
for pamd in common-account common-auth common-password common-session ; do
|
||||||
if [ -f $dir/$pamd.pam-config-backup -a -L $dir/$pamd ]; then
|
if [ -f $dir/$pamd.pam-config-backup -a -L $dir/$pamd ]; then
|
||||||
rm -v $dir/$pamd && mv -v $dir/$pamd.pam-config-backup $dir/$pamd
|
rm -v $dir/$pamd && mv -v $dir/$pamd.pam-config-backup $dir/$pamd
|
||||||
@ -80,10 +77,9 @@ if [ $1 = 0 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%files -f pam-config.lang
|
%files -f pam-config.lang
|
||||||
%defattr(-,root,root)
|
%license COPYING
|
||||||
%doc COPYING
|
|
||||||
%{_sbindir}/pam-config
|
%{_sbindir}/pam-config
|
||||||
%doc %{_mandir}/man8/pam-config.8*
|
%{_mandir}/man8/pam-config.8*
|
||||||
%ghost %config %{_sysconfdir}/pam.d/common-account-pc
|
%ghost %config %{_sysconfdir}/pam.d/common-account-pc
|
||||||
%ghost %config %{_sysconfdir}/pam.d/common-auth-pc
|
%ghost %config %{_sysconfdir}/pam.d/common-auth-pc
|
||||||
%ghost %config %{_sysconfdir}/pam.d/common-password-pc
|
%ghost %config %{_sysconfdir}/pam.d/common-password-pc
|
||||||
|
Loading…
Reference in New Issue
Block a user