|
|
|
@ -35,7 +35,7 @@ Distribution: OpenPKG [EXP]
|
|
|
|
|
Group: Cryptography |
|
|
|
|
License: BSD |
|
|
|
|
Version: %{V_openssh} |
|
|
|
|
Release: 8 |
|
|
|
|
Release: 9 |
|
|
|
|
|
|
|
|
|
# list of sources |
|
|
|
|
Source0: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{V_openssh}.tar.gz |
|
|
|
@ -210,8 +210,9 @@ AutoReqProv: no
|
|
|
|
|
if [ -f /etc/pam.conf ]; then |
|
|
|
|
check=`grep "^#<OpenPKG prefix=$RPM_INSTALL_PREFIX pkg=openssh>" /etc/pam.conf` |
|
|
|
|
if [ ".$check" != . ]; then |
|
|
|
|
prefix=`echo $RPM_INSTALL_PREFIX | sed -e 's;/;\\/;g'` |
|
|
|
|
cp /etc/pam.conf /etc/pam.conf.tmp && \ |
|
|
|
|
sed -e "/^#<OpenPKG prefix=$RPM_INSTALL_PREFIX pkg=openssh>/,/^#<\\/OpenPKG>/d" \ |
|
|
|
|
sed -e "/^#<OpenPKG prefix=$prefix pkg=openssh>/,/^#<\\/OpenPKG>/d" \ |
|
|
|
|
</etc/pam.conf.tmp >/etc/pam.conf && \ |
|
|
|
|
rm -f /etc/pam.conf.tmp |
|
|
|
|
fi |
|
|
|
|