Accepting request 724569 from home:kukuk:branches:Linux-PAM
- encryption_method_nis.diff: obsolete, NIS clients shouldn't require DES anymore. - etc.environment: removed, the sources contain the same - Update to version 1.3.1+git20190807.e31dd6c: * pam_tty_audit: Manual page clarification about password logging * pam_get_authtok_verify: Avoid duplicate password verification * Mention that ./autogen.sh is needeed to be run if you check out the sources from git * pam_unix: Correct MAXPASS define name in the previous two commits. * Restrict password length when changing password * Trim password at PAM_MAX_RESP_SIZE chars * pam_succeed_if: Request user data only when needed * pam_tally2: Remove unnecessary fsync() * Fixed a grammer mistake * Fix documentation for pam_wheel * Fix a typo in the documentation * pam_lastlog: Improve silent option documentation * pam_lastlog: Respect PAM_SILENT flag * Fix regressions from the last commits. * Replace strndupa with strncpy * build: ignore pam_lastlog when logwtmp is not available. * build: ignore pam_rhosts if neither ruserok nor ruserok_af is available. * pam_motd: Cleanup the code and avoid unnecessary logging * pam_lastlog: Limit lastlog file use by LASTLOG_UID_MAX option in login.defs. * Move the duplicated search_key function to pam_modutil. * pam_unix: Use pam_syslog instead of helper_log_err. * pam_unix: Report unusable hashes found by checksalt to syslog. * Revert "pam_unix: Add crypt_default method, if supported." * pam_unix: Add crypt_default method, if supported. * Revert part of the commit 4da9febc OBS-URL: https://build.opensuse.org/request/show/724569 OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=191
This commit is contained in:
committed by
Git OBS Bridge
parent
bf578882d8
commit
78441ed37b
23
pam.spec
23
pam.spec
@@ -38,7 +38,7 @@ BuildRequires: libselinux-devel
|
||||
%define libpam_misc_so_version 0.82.1
|
||||
%define libpamc_so_version 0.82.1
|
||||
#
|
||||
Version: 1.3.1
|
||||
Version: 1.3.1+git20190807.e31dd6c
|
||||
Release: 0
|
||||
Summary: A Security Tool that Provides Authentication for Applications
|
||||
License: GPL-2.0-or-later OR BSD-3-Clause
|
||||
@@ -55,22 +55,21 @@ Requires(pre): user(root)
|
||||
Requires: login_defs-support-for-pam >= 1.3.1
|
||||
|
||||
#DL-URL: https://fedorahosted.org/releases/l/i/linux-pam/
|
||||
Source: Linux-PAM-%{version}.tar.xz
|
||||
Source1: Linux-PAM-%{version}-docs.tar.xz
|
||||
Source2: securetty
|
||||
Source: linux-pam-%{version}.tar.xz
|
||||
Source1: Linux-PAM-1.3.1-docs.tar.xz
|
||||
Source2: linux-pam-man-pages-1.3.1+git20190807.e31dd6c.tar.xz
|
||||
Source3: other.pamd
|
||||
Source4: common-auth.pamd
|
||||
Source5: common-account.pamd
|
||||
Source6: common-password.pamd
|
||||
Source7: common-session.pamd
|
||||
Source8: etc.environment
|
||||
Source8: securetty
|
||||
Source9: baselibs.conf
|
||||
Source10: unix2_chkpwd.c
|
||||
Source11: unix2_chkpwd.8
|
||||
Source12: pam-login_defs-check.sh
|
||||
Patch0: fix-man-links.dif
|
||||
Patch2: pam-limit-nproc.patch
|
||||
Patch3: encryption_method_nis.diff
|
||||
Patch4: pam-hostnames-in-access_conf.patch
|
||||
Patch5: use-correct-IP-address.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
@@ -120,17 +119,17 @@ building both PAM-aware applications and modules for use with PAM.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n Linux-PAM-%{version} -b 1
|
||||
%setup -q -n linux-pam-%{version} -b 1 -a 2
|
||||
cp -av ../Linux-PAM-1.3.1/* .
|
||||
cp -a %{S:12} .
|
||||
%patch0 -p1
|
||||
%patch2 -p1
|
||||
%patch3 -p0
|
||||
%patch4 -p0
|
||||
%patch5 -p1
|
||||
|
||||
%build
|
||||
bash ./pam-login_defs-check.sh
|
||||
autoreconf -fiv
|
||||
./autogen.sh
|
||||
export CFLAGS="%optflags -DNDEBUG"
|
||||
%configure \
|
||||
--sbindir=/sbin \
|
||||
@@ -142,7 +141,7 @@ export CFLAGS="%optflags -DNDEBUG"
|
||||
--enable-isadir=../../%{_lib}/security \
|
||||
--enable-securedir=/%{_lib}/security
|
||||
make %{?_smp_mflags}
|
||||
%__cc -fwhole-program -fpie -pie -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE %{optflags} -I$RPM_BUILD_DIR/Linux-PAM-%{version}/libpam/include %{SOURCE10} -o $RPM_BUILD_DIR/unix2_chkpwd -L$RPM_BUILD_DIR/Linux-PAM-%{version}/libpam/.libs/ -lpam
|
||||
%__cc -fwhole-program -fpie -pie -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE %{optflags} -I$RPM_BUILD_DIR/linux-pam-%{version}/libpam/include %{SOURCE10} -o $RPM_BUILD_DIR/unix2_chkpwd -L$RPM_BUILD_DIR/linux-pam-%{version}/libpam/.libs/ -lpam
|
||||
|
||||
%check
|
||||
make %{?_smp_mflags} check
|
||||
@@ -157,10 +156,8 @@ make DESTDIR=$RPM_BUILD_ROOT install
|
||||
/sbin/ldconfig -n $RPM_BUILD_ROOT/%{_lib}
|
||||
# Install documentation
|
||||
make -C doc install DESTDIR=$RPM_BUILD_ROOT
|
||||
# install /etc/environment
|
||||
install -m 644 %{SOURCE8} $RPM_BUILD_ROOT/etc/environment
|
||||
# install securetty
|
||||
install -m 644 %{SOURCE2} $RPM_BUILD_ROOT/etc
|
||||
install -m 644 %{SOURCE8} $RPM_BUILD_ROOT/etc
|
||||
%ifarch s390 s390x
|
||||
echo "ttyS0" >> $RPM_BUILD_ROOT/etc/securetty
|
||||
echo "ttyS1" >> $RPM_BUILD_ROOT/etc/securetty
|
||||
|
Reference in New Issue
Block a user