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

  Server: cvs.openpkg.org                  Name:   Christoph Schug
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   16-Jun-2004 17:30:42
  Branch: HEAD                             Handle: -NONE-

  Modified files:
    openpkg-src/apache      apache.spec

  Log:
    added MS SQL support using FreeTDS

  Summary:
    Revision    Changes     Path
    1.235       +0  -0      openpkg-src/apache/apache.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/apache/apache.spec
  ============================================================================
  $ cvs diff -u -r1.234 -r1.235 apache.spec
  --- openpkg-src/apache/apache.spec    13 Jun 2004 20:15:00 -0000      1.234
  +++ openpkg-src/apache/apache.spec    16 Jun 2004 15:30:41 -0000      1.235
  @@ -66,7 +66,7 @@
   Group:        Web
   License:      ASF
   Version:      %{V_apache}
  -Release:      20040613
  +Release:      20040616
   
   #   package options (suexec related)
   %option       with_suexec               yes
  @@ -105,6 +105,7 @@
   #   please note the lack of an PEAR option since PEAR is provided by the 'php' 
package
   %option       with_mod_php_hardened     no
   %option       with_mod_php_calendar     no
  +%option       with_mod_php_mssql        no
   %option       with_mod_php_mysql        no
   %option       with_mod_php_pgsql        no
   %option       with_mod_php_gd           no
  @@ -228,6 +229,10 @@
   %endif
   %if "%{with_mod_php}" == "yes"
   BuildPreReq:  gcc, sed, flex, bison
  +%if "%{with_mod_php_mssql}" == "yes"
  +BuildPreReq:  freetds, libiconv
  +PreReq:       freetds, libiconv
  +%endif
   %if "%{with_mod_php_mysql}" == "yes"
   BuildPreReq:  mysql
   PreReq:       mysql
  @@ -489,6 +494,17 @@
             -e 's;\(/include\)/freetype2;\1;' \
             configure \
             ext/gd/config.m4
  +%if "%{with_mod_php_mssql}" == "yes"
  +      %{l_shtool} subst \
  +          -e 's;\($PHP_MSSQL/include/\)\(tds.h\);\1freetds/\2;g' \
  +          -e 's;\($FREETDS_INSTALLATION_DIR/lib/\)\(libtds.a\);\1freetds/\2;g' \
  +          -e 's;\(MSSQL_INCDIR=$FREETDS_INSTALLATION_DIR/include\);\1/freetds;' \
  +          -e 's;\(MSSQL_LIBDIR=$FREETDS_INSTALLATION_DIR/lib\);\1/freetds;' \
  +          configure
  +      %{l_shtool} subst \
  +          -e 's;^typedef short SHORT\;;;' \
  +          ext/mssql/php_mssql.h
  +%endif
       ) || exit $?
   %if "%{with_mod_php_hardened}" == "yes"
       %patch -p0 -P 2
  @@ -643,7 +659,7 @@
   %if "%{with_mod_php_gd}" == "yes"
         LIBS="$LIBS -lpng -lz"
   %endif
  -%if "%{with_mod_php_gettext}" == "yes"
  +%if "%{with_mod_php_gettext}" == "yes" || "%{with_mod_php_mssql}" == "yes"
         LIBS="$LIBS -liconv"
   %endif
   %if "%{with_mod_php_openldap}" == "yes" && "%{with_mod_php_openldapsasl}" == "yes"
  @@ -686,6 +702,11 @@
   %if "%{with_mod_php_calendar}" == "yes"
             --enable-calendar \
   %endif
  +%if "%{with_mod_php_mssql}" == "yes"
  +          --with-mssql=%{l_prefix} \
  +%else
  +          --without-mssql \
  +%endif
   %if "%{with_mod_php_mysql}" == "yes"
             --with-mysql=%{l_prefix} \
   %else
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to