small OpenSSH RPM spec patch

Marko Asplund aspa at kronodoc.fi
Fri Mar 8 23:00:18 EST 2002


here's a small patch for making it easier to build OpenSSH RPM packages on
Linux using an OpenSSL library installed somewhere else than the default
location.

-- 
	aspa
-------------- next part --------------
*** /home1/aspa/openssh.spec	Fri Mar  8 13:45:01 2002
--- openssh.spec	Fri Mar  8 13:56:37 2002
***************
*** 16,21 ****
--- 16,25 ----
  # Do we want smartcard support (1=yes 0=no)
  %define scard 0
  
+ # Specify OpenSSL location.
+ %define with_openssl_dir 0
+ %define openssl_dir /usr
+ 
  # Use Redhat 7.0 pam control file
  %define redhat7 0
  
***************
*** 161,166 ****
--- 165,174 ----
  	EXTRA_OPTS="$EXTRA_OPTS --with-ipv4-default "
  %endif
  
+ %if %{with_openssl_dir}
+ 	EXTRA_OPTS="$EXTRA_OPTS --with-ssl-dir=%{openssl_dir} "
+ %endif
+ 
  %configure \
  	--libexecdir=%{_libexecdir}/openssh \
  	--datadir=%{_datadir}/openssh \
***************
*** 171,177 ****
  	$EXTRA_OPTS
  
  %if %{static_libcrypto}
! perl -pi -e "s|-lcrypto|/usr/lib/libcrypto.a|g" Makefile
  %endif
  
  make
--- 179,185 ----
  	$EXTRA_OPTS
  
  %if %{static_libcrypto}
! perl -pi -e "s|-lcrypto|%{openssl_dir}/lib/libcrypto.a|g" Makefile
  %endif
  
  make


More information about the openssh-unix-dev mailing list