provide pam files for chfn and chsh [release 2.25-2mamba;Sat Aug 02 2014]

This commit is contained in:
Silvan Calarco 2024-01-05 18:52:52 +01:00
parent dd8d96a89f
commit 2c79159c70
3 changed files with 94 additions and 16 deletions

8
util-linux-pam-chfn Normal file
View File

@ -0,0 +1,8 @@
#%PAM-1.0
auth sufficient pam_unix.so
auth include system-auth
account include system-auth
password include system-auth
session include system-auth
session required pam_limits.so
#session optional pam_console.so

8
util-linux-pam-chsh Normal file
View File

@ -0,0 +1,8 @@
#%PAM-1.0
auth sufficient pam_unix.so
auth include system-auth
account include system-auth
password include system-auth
session include system-auth
session required pam_limits.so
#session optional pam_console.so

View File

@ -7,8 +7,8 @@
%define uuidd_userid 65052
Name: util-linux
Version: 2.24.2
Release: 3mamba
Version: 2.25
Release: 2mamba
Epoch: 1
Summary: Miscellaneous utilities for Linux
Group: System/Tools
@ -28,11 +28,35 @@ Source8: util-linux-login.defs
Source9: util-linux-pam-runuser
Source10: util-linux-pam-runuser-l
Source11: util-linux-pam-remote
Source12: util-linux-pam-chfn
Source13: util-linux-pam-chsh
Patch0: %{name}-ng-2.12q-adjtime_path.patch
Patch1: %{name}-ng-2.15-reiserfs_fix_name.patch
Patch2: util-linux-2.22-su_paths.patch
Patch3: util-linux-2.24.2-blkid-pkgconfig-add-uuid.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: elfutils-devel
BuildRequires: glibc-devel
BuildRequires: libaudit-devel
BuildRequires: libcap-ng-devel
BuildRequires: libgcrypt-devel
BuildRequires: libgpg-error-devel
BuildRequires: liblzma-devel
BuildRequires: libncurses-devel
BuildRequires: libpam-devel
BuildRequires: libpcre-devel
BuildRequires: libpython-devel
BuildRequires: libpython27-devel
%if "%{stage1}" != "1"
BuildRequires: libselinux-devel
%endif
BuildRequires: libsepol-devel
BuildRequires: libsystemd-devel
BuildRequires: libtermcap-devel
BuildRequires: libudev-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRequires: bash
BuildRequires: gettext-devel
BuildRequires: libsepol-devel
@ -41,18 +65,6 @@ BuildRequires: pam-devel
BuildRequires: perl-devel
BuildRequires: texinfo
BuildRequires: zlib-devel
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libncurses-devel
%if "%{stage1}" != "1"
BuildRequires: libselinux-devel
%endif
BuildRequires: libsepol-devel
BuildRequires: libz-devel
BuildRequires: pam-devel
BuildRequires: pkg-config
BuildRequires: udev-devel
## AUTOBUILDREQ-END
Requires(post):%{__install_info}
Provides: util-linux-ng = %{?epoch:%epoch:}%{version}-%{release}
Obsoletes: util-linux-ng
@ -86,6 +98,22 @@ Requires: libblkid = %{?epoch:%epoch:}%{version}-%{release}
Block device identification library.
This package provides the development file for application which use libblkid.
%package -n libsmartcols
Summary: Pretty output library
Group: System/Libraries
%description -n libsmartcols
Pretty output library.
%package -n libsmartcols-devel
Summary: The development file for application which use libsmartcols
Group: Development/Libraries
Requires: libsmartcols = %{?epoch:%epoch:}%{version}-%{release}
%description -n libsmartcols-devel
Pretty output library.
This package provides the development file for application which use libsmartcols.
%package -n libuuid
Summary: Universal unique id library
Group: System/Libraries
@ -207,6 +235,8 @@ install -D -m 0644 %{S:8} %{buildroot}%{_sysconfdir}/login.defs
install -D -m 0644 %{S:9} %{buildroot}%{_sysconfdir}/pam.d/runuser
install -D -m 0644 %{S:10} %{buildroot}%{_sysconfdir}/pam.d/runuser-l
install -D -m 0644 %{S:11} %{buildroot}%{_sysconfdir}/pam.d/remote
install -D -m 0644 %{S:12} %{buildroot}%{_sysconfdir}/pam.d/chfn
install -D -m 0644 %{S:13} %{buildroot}%{_sysconfdir}/pam.d/chsh
# socket directory (see systemd file)
install -d %{buildroot}%{_localstatedir}/uuid
@ -231,6 +261,8 @@ exit 0
%files -f %{name}.lang
%defattr(-,root,root)
%{_sysconfdir}/pam.d/chfn
%{_sysconfdir}/pam.d/chsh
%{_sysconfdir}/pam.d/login
%{_sysconfdir}/pam.d/remote
%{_sysconfdir}/pam.d/runuser
@ -290,12 +322,14 @@ exit 0
/sbin/switch_root
/sbin/wipefs
%{_bindir}/cal
%{_bindir}/chfn
%{_bindir}/chrt
%{_bindir}/chsh
%{_bindir}/col
%{_bindir}/colcrt
%{_bindir}/colrm
%{_bindir}/column
%{_bindir}/cytune
#%{_bindir}/cytune
#%{_bindir}/ddate
#%{_bindir}/fdformat
%{_bindir}/eject
@ -326,6 +360,7 @@ exit 0
%{_bindir}/look
%{_bindir}/lscpu
%{_bindir}/lslocks
%{_bindir}/lslogins
%{_bindir}/mcookie
%{_bindir}/mesg
%{_bindir}/namei
@ -343,6 +378,7 @@ exit 0
%{_bindir}/setterm
%{_bindir}/tailf
%{_bindir}/ul
%{_bindir}/uname26
%{_bindir}/unshare
%{_bindir}/utmpdump
%{_bindir}/uuidgen
@ -362,6 +398,8 @@ exit 0
#%{_sbindir}/vidmode
/lib/systemd/system/uuidd.service
/lib/systemd/system/uuidd.socket
/lib/systemd/system/fstrim.service
/lib/systemd/system/fstrim.timer
#%{_infodir}/ipc.info.*
%{_datadir}/bash-completion/completions/*
%dir %{_localstatedir}/uuid
@ -369,6 +407,7 @@ exit 0
%ghost %{_localstatedir}/lib/libuuid/clock.txt
%{_mandir}/man1/*
%{_mandir}/man5/fstab.*
%{_mandir}/man5/terminal-colors.d.5*
%{_mandir}/man8/*
#%lang(ru) %{_mandir}/ru/man1/ddate.*
#%dir /var/lib/hwclock
@ -389,11 +428,15 @@ exit 0
/%{_libdir}/libblkid.so
%{_libdir}/pkgconfig/blkid.pc
%{_mandir}/man3/libblkid.*
%doc NEWS README
#%doc NEWS README
%files -n libmount
%defattr(-,root,root)
/%{_lib}/libmount.so.*
%dir %{python_sitearch}/libmount
%{python_sitearch}/libmount/__init__.py*
%{python_sitearch}/libmount/pylibmount.la
%{python_sitearch}/libmount/pylibmount.so
%files -n libmount-devel
%defattr(-,root,root)
@ -403,6 +446,19 @@ exit 0
/%{_libdir}/libmount.so
%{_libdir}/pkgconfig/mount.pc
%files -n libsmartcols
%defattr(-,root,root)
/%{_lib}/libsmartcols.so.*
%files -n libsmartcols-devel
%defattr(-,root,root)
%dir %{_includedir}/libsmartcols
%{_includedir}/libsmartcols/libsmartcols.h
%{_libdir}/libsmartcols.a
%{_libdir}/libsmartcols.la
%{_libdir}/libsmartcols.so
%{_libdir}/pkgconfig/smartcols.pc
%files -n libuuid
%defattr(-,root,root)
/%{_lib}/libuuid.so.*
@ -418,6 +474,12 @@ exit 0
%{_mandir}/man3/uuid*.*
%changelog
* Sat Aug 02 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.25-2mamba
- provide pam files for chfn and chsh
* Tue Jul 29 2014 Automatic Build System <autodist@mambasoft.it> 2.25-1mamba
- automatic version update by autodist
* Thu Jun 26 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.24.2-3mamba
- add -luuid to blkid.pc