|
|
@@ -45,7 +45,7 @@ Distribution: OpenPKG [CORE]
|
|
|
Group: Security
|
|
|
License: BSD
|
|
|
Version: %{V_base}%{V_portable}
|
|
|
-Release: 20021230
|
|
|
+Release: 20021231
|
|
|
|
|
|
# list of sources
|
|
|
Source0: ftp://ftp.openssh.com/pub/OpenBSD/OpenSSH/portable/openssh-%{version}.tar.gz
|
|
|
@@ -95,14 +95,22 @@ AutoReqProv: no
|
|
|
%options -p11
|
|
|
|
|
|
%prep
|
|
|
- %setup0 -q
|
|
|
+ # unpack distribution
|
|
|
+ %setup -q
|
|
|
+
|
|
|
+ # optionally apply chroot(2) patch
|
|
|
%if "%{with_chroot}" == "yes"
|
|
|
cd openssh-%{version}
|
|
|
%{l_patch} -p1 <%{SOURCE osshChroot-%{V_chroot}.diff}
|
|
|
%endif
|
|
|
|
|
|
+ # prevent in advance "make install" from running sshd
|
|
|
+ %{l_shtool} subst \
|
|
|
+ -e 's;^\(install:.*\)check-config\(.*\)$;\1 \2;' \
|
|
|
+ Makefile.in
|
|
|
+
|
|
|
%build
|
|
|
- # build OpenSSH
|
|
|
+ # configure package
|
|
|
inc="%{l_cppflags}"
|
|
|
lib="%{l_ldflags}"
|
|
|
%if "%{with_pam}" == "yes"
|