Source6: sshd.socket
Source7: sshd-keygen.service
Source8: sshd-keygen
+Source9: sshd.pam
Source1001: openssh.manifest
Patch0: 0001-customize-configuration.patch
BuildRequires: zlib-devel
BuildRequires: pkgconfig(ncurses)
BuildRequires: pkgconfig(openssl)
+BuildRequires: pam-devel
+
%package clients
Summary: The OpenSSH client applications
--disable-strip \
--without-zlib-version-check \
--with-nss \
+ --with-pam \
--without-kerberos5
make
mkdir -p %{buildroot}/var/empty/sshd
+install -d %{buildroot}%{_sysconfdir}/pam.d/
+install -m644 %{SOURCE9} %{buildroot}%{_sysconfdir}/pam.d/sshd
+
%remove_docs
rm -rf %{buildroot}%{_datadir}/man
%{_libdir}/systemd/system/multi-user.target.wants/sshd.socket
%{_libdir}/systemd/system/multi-user.target.wants/sshd-keygen.service
%{_sbindir}/sshd-keygen
-
+%{_sysconfdir}/pam.d/sshd
--- /dev/null
+#%PAM-1.0
+auth include system-auth
+account required pam_nologin.so
+account include system-auth
+password include system-auth
+session include system-auth
+session required pam_loginuid.so
+session optional pam_keyinit.so force revoke