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:   05-Oct-2007 17:07:59
  Branch: HEAD                             Handle: 2007100516075800

  Modified files:
    openpkg-src/bind        bind.spec

  Log:
    allow (again) BIND 9 to be built with DLZ support (RDBMS and LDAP
    backends)

  Summary:
    Revision    Changes     Path
    1.123       +31 -4      openpkg-src/bind/bind.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/bind/bind.spec
  ============================================================================
  $ cvs diff -u -r1.122 -r1.123 bind.spec
  --- openpkg-src/bind/bind.spec        5 Oct 2007 14:23:55 -0000       1.122
  +++ openpkg-src/bind/bind.spec        5 Oct 2007 15:07:58 -0000       1.123
  @@ -40,9 +40,12 @@
   Release:      20071005
   
   #   package options
  -%option       with_dnssec   yes
  -%option       with_threads  no
  -%option       with_libbind  no
  +%option       with_dnssec    yes
  +%option       with_threads   no
  +%option       with_libbind   no
  +%option       with_dlz_pgsql no
  +%option       with_dlz_mysql no
  +%option       with_dlz_ldap  no
   
   #   list of sources
   Source0:      ftp://ftp.isc.org/isc/bind9/%{V_dist}/bind-%{V_dist}.tar.gz
  @@ -64,6 +67,18 @@
   BuildPreReq:  openssl
   PreReq:       openssl
   %endif
  +%if "%{with_dlz_pgsql}" == "yes"
  +BuildPreReq:  postgresql, openssl
  +PreReq:       postgresql, openssl
  +%endif
  +%if "%{with_dlz_mysql}" == "yes"
  +BuildPreReq:  mysql
  +PreReq:       mysql
  +%endif
  +%if "%{with_dlz_ldap}" == "yes"
  +BuildPreReq:  openldap, openssl
  +PreReq:       openldap, openssl
  +%endif
   AutoReq:      no
   AutoReqProv:  no
   Conflicts:    powerdns
  @@ -93,9 +108,12 @@
           -e '/LINENO: error: C[+]* preprocessor/{N;N;N;N;s/.*/:/;}' \
           configure
       export CC="%{l_cc}"
  -    export CFLAGS="%{l_cflags -O}"
  +    export CFLAGS="%{l_cflags -O} %{l_cppflags}"
       export LDFLAGS="%{l_ldflags}"
       export LIBS=""
  +%if "%{with_dlz_pgsql}" == "yes"
  +    CFLAGS="$CFLAGS %{l_cppflags postgresql .}"
  +%endif
   %if "%{with_dnssec}" == "yes"
       LIBS="$LIBS `pkg-config openssl --libs`"
   %endif
  @@ -118,6 +136,15 @@
   %else
           --disable-threads \
   %endif
  +%if "%{with_dlz_pgsql}" == "yes"
  +        --with-dlz-postgres=%{l_prefix} \
  +%endif
  +%if "%{with_dlz_mysql}" == "yes"
  +        --with-dlz-mysql=%{l_prefix} \
  +%endif
  +%if "%{with_dlz_ldap}" == "yes"
  +        --with-dlz-ldap=%{l_prefix} \
  +%endif
           --with-libtool \
           --disable-shared \
           --disable-nls
  @@ .
______________________________________________________________________
OpenPKG                                             http://openpkg.org
CVS Repository Commit List                     openpkg-cvs@openpkg.org

Reply via email to