Просмотр исходного кода

add optional TCP Wrappers support

Ralf S. Engelschall 22 лет назад
Родитель
Сommit
d26d963fec
1 измененных файлов с 8 добавлено и 0 удалено
  1. 8 0
      openssh/openssh.spec

+ 8 - 0
openssh/openssh.spec

@@ -52,6 +52,7 @@ Release:      20031030
 %option       with_chroot   no
 %option       with_watchdog no
 %option       with_ldap     no
+%option       with_wrap     no
 
 #   list of sources
 Source0:      ftp://ftp.openssh.com/pub/OpenBSD/OpenSSH/portable/openssh-%{version}.tar.gz
@@ -98,6 +99,10 @@ PreReq:       X11
 BuildPreReq:  openldap
 PreReq:       openldap
 %endif
+%if "%{with_wrap}" == "yes"
+BuildPreReq:  tcpwrappers
+PreReq:       tcpwrappers
+%endif
 AutoReq:      no
 AutoReqProv:  no
 
@@ -169,6 +174,9 @@ AutoReqProv:  no
 %endif
 %if "%{with_x11}" == "yes"
         --with-xauth="`%{l_prefix}/etc/rc --query x11_bindir`/xauth" \
+%endif
+%if "%{with_wrap}" == "yes"
+        --with-tcp-wrappers=%{l_prefix} \
 %endif
         --with-md5-passwords \
         --with-zlib=%{l_prefix} \