ソースを参照

add optional TCP Wrappers support

Ralf S. Engelschall 22 年 前
コミット
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} \