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 16:23:55
  Branch: HEAD                             Handle: 2007100515235500

  Modified files:
    openpkg-src/bind        bind.spec

  Log:
    be more flexible and allow one to build BIND without DNSSEC, with
    threads and with the BIND8 libbind resolver library

  Summary:
    Revision    Changes     Path
    1.122       +33 -8      openpkg-src/bind/bind.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/bind/bind.spec
  ============================================================================
  $ cvs diff -u -r1.121 -r1.122 bind.spec
  --- openpkg-src/bind/bind.spec        25 Jul 2007 06:45:33 -0000      1.121
  +++ openpkg-src/bind/bind.spec        5 Oct 2007 14:23:55 -0000       1.122
  @@ -37,7 +37,12 @@
   Group:        DNS
   License:      ISC
   Version:      %{V_opkg}
  -Release:      20070725
  +Release:      20071005
  +
  +#   package options
  +%option       with_dnssec   yes
  +%option       with_threads  no
  +%option       with_libbind  no
   
   #   list of sources
   Source0:      ftp://ftp.isc.org/isc/bind9/%{V_dist}/bind-%{V_dist}.tar.gz
  @@ -55,8 +60,10 @@
   BuildRoot:    %{l_buildroot}
   BuildPreReq:  OpenPKG, openpkg >= 20060823, make, pkgconfig
   PreReq:       OpenPKG, openpkg >= 20060823
  +%if "%{with_dnssec}" == "yes"
   BuildPreReq:  openssl
   PreReq:       openssl
  +%endif
   AutoReq:      no
   AutoReqProv:  no
   Conflicts:    powerdns
  @@ -79,25 +86,43 @@
   
   %prep
       %setup -q -n bind-%{V_dist}
  +
  +%build
  +    #   configure program
       %{l_shtool} subst \
           -e '/LINENO: error: C[+]* preprocessor/{N;N;N;N;s/.*/:/;}' \
           configure
  -
  -%build
  -    CC="%{l_cc}" \
  -    CFLAGS="%{l_cflags -O}" \
  -    LDFLAGS="%{l_ldflags}" \
  -    LIBS="`pkg-config openssl --libs`" \
  +    export CC="%{l_cc}"
  +    export CFLAGS="%{l_cflags -O}"
  +    export LDFLAGS="%{l_ldflags}"
  +    export LIBS=""
  +%if "%{with_dnssec}" == "yes"
  +    LIBS="$LIBS `pkg-config openssl --libs`"
  +%endif
       ./configure \
           --prefix=%{l_prefix} \
           --sysconfdir=%{l_prefix}/etc/bind \
           --localstatedir=%{l_prefix}/var/bind \
  +%if "%{with_dnssec}" == "yes"
           --with-openssl=%{l_prefix} \
  -        --with-libtool \
  +%else
  +        --without-openssl \
  +%endif
  +%if "%{with_libbind}" == "yes"
  +        --with-libbind \
  +%else
           --without-libbind \
  +%endif
  +%if "%{with_threads}" == "yes"
  +        --enable-threads \
  +%else
           --disable-threads \
  +%endif
  +        --with-libtool \
           --disable-shared \
           --disable-nls
  +
  +    #   build program
       %{l_make} %{l_mflags}
   
   %install
  @@ .
______________________________________________________________________
OpenPKG                                             http://openpkg.org
CVS Repository Commit List                     openpkg-cvs@openpkg.org

Reply via email to