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:   08-May-2008 20:39:55
  Branch: HEAD                             Handle: 2008050819395400

  Added files:
    openpkg-src/bind        bind.patch
  Modified files:
    openpkg-src/bind        bind.spec

  Log:
    fix Unix domain socket usage under Linux

  Summary:
    Revision    Changes     Path
    1.8         +15 -0      openpkg-src/bind/bind.patch
    1.137       +4  -2      openpkg-src/bind/bind.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/bind/bind.patch
  ============================================================================
  $ cvs diff -u -r0 -r1.8 bind.patch
  --- /dev/null 2008-05-08 20:39:52 +0200
  +++ bind.patch        2008-05-08 20:39:55 +0200
  @@ -0,0 +1,15 @@
  +Index: bin/named/unix/os.c
  +--- bin/named/unix/os.c.orig 2006-02-04 00:51:38 +0100
  ++++ bin/named/unix/os.c      2008-05-02 17:25:33 +0200
  +@@ -212,6 +212,11 @@
  +     caps |= (1 << CAP_SETGID);
  + 
  +     /*
  ++     * Since we call chown, we need this.
  ++     */
  ++    caps |= (1 << CAP_CHOWN);
  ++
  ++    /*
  +      * Without this, we run into problems reading a configuration file
  +      * owned by a non-root user and non-world-readable on startup.
  +      */
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/bind/bind.spec
  ============================================================================
  $ cvs diff -u -r1.136 -r1.137 bind.spec
  --- openpkg-src/bind/bind.spec        29 Feb 2008 09:18:22 -0000      1.136
  +++ openpkg-src/bind/bind.spec        8 May 2008 18:39:54 -0000       1.137
  @@ -36,7 +36,7 @@
   Group:        DNS
   License:      ISC
   Version:      %{V_opkg}
  -Release:      20080229
  +Release:      20080508
   
   #   package options
   %option       with_dnssec    yes
  @@ -50,6 +50,7 @@
   Source0:      ftp://ftp.isc.org/isc/bind9/%{V_dist}/bind-%{V_dist}.tar.gz
   Source1:      bind.txt
   Source2:      rc.bind
  +Patch0:       bind.patch
   
   #   build information
   Prefix:       %{l_prefix}
  @@ -98,6 +99,7 @@
   
   %prep
       %setup -q -n bind-%{V_dist}
  +    %patch -p0
   
   %build
       #   configure program
  @@ -199,7 +201,7 @@
           '%config %attr(640,%{l_musr},%{l_rgrp}) %{l_prefix}/etc/bind/*.conf' 
\
           '%config %attr(775,%{l_musr},%{l_rgrp}) 
%{l_prefix}/etc/bind/named.db' \
           '%config %attr(644,%{l_musr},%{l_rgrp}) 
%{l_prefix}/etc/bind/named.db/*' \
  -        '%dir %attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/bind'
  +        '%dir %attr(775,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/bind'
   
   %files -f files
   
  @@ .
______________________________________________________________________
OpenPKG                                             http://openpkg.org
CVS Repository Commit List                     [email protected]

Reply via email to