|
|
@@ -47,7 +47,7 @@ Distribution: OpenPKG [REL]
|
|
|
Group: Cryptography
|
|
|
License: BSD
|
|
|
Version: 3.4p1
|
|
|
-Release: 20020627
|
|
|
+Release: 20020706
|
|
|
|
|
|
# list of sources
|
|
|
Source0: ftp://ftp.openssh.com/pub/OpenBSD/OpenSSH/portable/openssh-%{version}.tar.gz
|
|
|
@@ -198,38 +198,10 @@ AutoReqProv: no
|
|
|
-e 's;@l_musr@;%{l_musr};g' -e 's;@l_mgrp@;%{l_mgrp};g' \
|
|
|
%{SOURCE rc.openssh} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
|
|
|
|
|
|
- # determine best variant for ssh server configuration
|
|
|
- l_cfg_useprivsep=yes
|
|
|
- # (privsep broken on old Linux at all)
|
|
|
- case "%{l_target}" in
|
|
|
- *-linux2.0* ) l_cfg_useprivsep=no ;;
|
|
|
- esac
|
|
|
-%if "%{with_pam}" == "yes"
|
|
|
- # (PAM broken with privsep on non-Linux)
|
|
|
- case "%{l_target}" in
|
|
|
- *-linux* ) ;;
|
|
|
- * ) l_cfg_useprivsep=no ;;
|
|
|
- esac
|
|
|
-%endif
|
|
|
- l_cfg_compression=yes
|
|
|
- if [ ".$l_cfg_useprivsep" = .yes ]; then
|
|
|
- # (compression broken with privsep on old Linux)
|
|
|
- case "%{l_target}" in
|
|
|
- *-linux2.2* ) l_cfg_compression=no ;;
|
|
|
- esac
|
|
|
- fi
|
|
|
-%if "%{with_x11}" == "yes"
|
|
|
- l_cfg_x11forwarding=yes
|
|
|
-%else
|
|
|
- l_cfg_x11forwarding=no
|
|
|
-%endif
|
|
|
-
|
|
|
# install reasonable ssh server and client configuration files
|
|
|
%{l_shtool} install -c -m 644 \
|
|
|
-e 's;@l_prefix@;%{l_prefix};g' \
|
|
|
- -e "s;@l_cfg_useprivsep@;${l_cfg_useprivsep};" \
|
|
|
- -e "s;@l_cfg_compression@;${l_cfg_compression};" \
|
|
|
- -e "s;@l_cfg_x11forwarding@;${l_cfg_x11forwarding};" \
|
|
|
+ -e 's;@l_x11forwarding@;%{with_x11};' \
|
|
|
%{SOURCE sshd_config} $RPM_BUILD_ROOT%{l_prefix}/etc/openssh/
|
|
|
%{l_shtool} install -c -m 644 -e 's;@l_prefix@;%{l_prefix};g' \
|
|
|
%{SOURCE ssh_config} $RPM_BUILD_ROOT%{l_prefix}/etc/openssh/
|