OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   29-Dec-2006 16:57:25
  Branch: HEAD                             Handle: 2006122915572500

  Modified files:
    openpkg-src/socat       socat.spec

  Log:
    allow one to disable readline and SSL support

  Summary:
    Revision    Changes     Path
    1.42        +21 -3      openpkg-src/socat/socat.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/socat/socat.spec
  ============================================================================
  $ cvs diff -u -r1.41 -r1.42 socat.spec
  --- openpkg-src/socat/socat.spec      13 Oct 2006 17:34:18 -0000      1.41
  +++ openpkg-src/socat/socat.spec      29 Dec 2006 15:57:25 -0000      1.42
  @@ -37,7 +37,11 @@
   Group:        Network
   License:      GPL
   Version:      %{V_major}.%{V_minor}
  -Release:      20061013
  +Release:      20061229
  +
  +#   package options
  +%option       with_readline yes
  +%option       with_ssl      yes
   
   #   list of sources
   Source0:      
http://www.dest-unreach.org/socat/download/socat-%{version}.tar.bz2
  @@ -47,8 +51,14 @@
   BuildRoot:    %{l_buildroot}
   BuildPreReq:  OpenPKG, openpkg >= 20040130, gcc
   PreReq:       OpenPKG, openpkg >= 20040130
  -BuildPreReq:  readline, openssl
  -PreReq:       readline, openssl
  +%if "%{with_readline}" == "yes"
  +BuildPreReq:  readline
  +PreReq:       readline
  +%endif
  +%if "%{with_ssl}" == "yes"
  +BuildPreReq:  openssl
  +PreReq:       openssl
  +%endif
   AutoReq:      no
   AutoReqProv:  no
   
  @@ -78,8 +88,16 @@
       ./configure \
           --prefix=%{l_prefix} \
           --enable-msglevel=debug \
  +%if "%{with_readline}" == "yes"
           --enable-readline \
  +%else
  +        --disable-readline \
  +%endif
  +%if "%{with_ssl}" == "yes"
           --enable-openssl \
  +%else
  +        --disable-openssl \
  +%endif
           --disable-libwrap
   
       %{l_make} %{l_mflags -O}
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     openpkg-cvs@openpkg.org

Reply via email to