Changeset 77

Show
Ignore:
Timestamp:
12/16/02 14:04:27 (10 years ago)
Author:
ahu
Message:

cleanups

Location:
trunk/pdns
Files:
1 removed
13 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/ChangeLog

    r67 r77  
     1Changes since 2.9.2: 
     2        - windows compilation patches 
     3        - tiny improvements in win98 error messages 
     4 
    15Changes since 2.9.1: 
    26        - removed debugging output from the webserver (found by Paul Wouters) 
  • trunk/pdns/README

    r74 r77  
    99This generates a PowerDNS binary with no modules, except the bind backend, 
    1010built in. When ./configure is run without --with-modules, the mysql and 
    11 pgmysql modules is built by default, with the latter only supporting mysql. 
     11pgmysql modules are built by default, with the latter only supporting mysql. 
    1212 
    1313To add multiple modules, try: 
     
    3434work, but doesn't in fact. Use gmake, not make. 
    3535 
     36pipebackend does not work due to bad interaction between fork and pthreads. 
     37Amazingly, running the Linux version under the linuxulator DOES work! 
     38 
    3639LINUX NOTES 
    3740----------- 
  • trunk/pdns/TODO

    r67 r77  
    11bugs: 
    2 fixed   bind backend ANY queries don't work 
    3 fixed   records of unknown type are reported as -1? 
    4 fixed   pdns/pdns should be +x 
    52        pdns.conf-dist contains old descriptions 
    6         redhat does not find postgresql includes by default 
    7         redhat does not find postgresql libraries by default 
    8  
    9  
    10 immediate issues: 
    11         make install installs libraries with a static build which it should 
    12                 not 
    13  
    143 
    154Things we will not do but hope other people will: 
     
    2615Medium size things: 
    2716        - 64 bit cleanliness 
     17                compiles on 64 bit, but does it work? 
    2818        - Improve bind 'workalike' mode so we are a drop-in replacement for 
    2919          non-resolving bind. We're 90% there. 
     
    3323                needs very good RPMS     
    3424                need to get Red Hat interested 
    35         - get PDNS into Debian Sid 
    36                 Wichert Akkerman is working on this 
    3725        - get PDNS into FreeBSD ports 
    3826        - and other architectures        
     
    5947  return 0; 
    6048} 
    61  
    62  
    63  
    64 Mostly polish on the build process: 
    65         - add support for building dynamic modules again 
    66                 .so files that can be loaded at runtime and distributed 
    67                 separately 
    68  
    69  
    70 $ export CVSROOT=:pserver:anon@outpost.ds9a.nl:/var/cvsroot 
    71 $ cvs login 
    72 CVS password: [enter 'cvs' (without 's)] 
    73 $ cvs co pdns 
    74 cvs server: Updating pdns 
    75 ... 
    76  
    77         - In ./modules you will find a number of exciting modules that need to 
    78           be tought to add themselves to the 'distdir', so they appear in 
    79           'make dist', the PowerDNS distribution. 
    80  
    81          
    82 Real work: 
    83         - Mac OS X version (has been done, partly) 
    84         - resurrect W2K version 
  • trunk/pdns/configure.in

    r74 r77  
    5555 
    5656# pthread_create is in standard libraries (As in BSDI 3.0) 
    57 AC_MSG_CHECKING("for pthread_create in -libc"); 
     57AC_MSG_CHECKING([for pthread_create in -libc]); 
    5858AC_TRY_LINK( 
    5959[#include <pthread.h>], 
     
    6363if test "$with_posix_threads" = "no" 
    6464then 
    65   AC_MSG_CHECKING("for pthread_create in -lpthread"); 
     65  AC_MSG_CHECKING([for pthread_create in -lpthread]); 
    6666  ac_save_LIBS="$LIBS" 
    6767  LIBS="$LIBS -lpthread" 
     
    7474  then 
    7575    LIBS=" $ac_save_LIBS -lpthreads" 
    76     AC_MSG_CHECKING("for pthread_create in -lpthreads"); 
     76    AC_MSG_CHECKING([for pthread_create in -lpthreads]); 
    7777    AC_TRY_LINK( 
    7878    [#include <pthread.h>], 
     
    8484          # This is for FreeBSD 
    8585          LIBS="$ac_save_LIBS -pthread" 
    86           AC_MSG_CHECKING("for pthread_create in -pthread"); 
     86          AC_MSG_CHECKING([for pthread_create in -pthread]); 
    8787          AC_TRY_LINK( 
    8888          [#include <pthread.h>], 
  • trunk/pdns/debian/changelog

    r67 r77  
    11pdns (2.9.2-1) unstable; urgency=low 
    22 
    3   * upstream updates 
     3  * New upstream release 
     4  * bind backend fully merged in the main pdns package now 
     5  * Add new pipe, pgmysql and xdb backends 
    46 
    5  -- bert hubert <bert@powerdns.com>  Wed, 11 Dec 2002 15:04:52 +0100 
     7 -- Wichert Akkerman <wakkerma@debian.org>  Fri, 13 Dec 2002 16:39:29 +0100 
    68 
    79pdns (2.9-1) unstable; urgency=low 
  • trunk/pdns/debian/control

    r71 r77  
    44Standards-Version: 3.5.8 
    55Maintainer: Wichert Akkerman <wakkerma@debian.org> 
    6 Build-Depends: automake1.5, autoconf, libtool, flex, bison, docbook-utils, libmysqlclient10-dev, postgresql-dev, tdb-dev 
     6Build-Depends: automake1.5, autoconf, libtool, flex, bison, docbook-utils, libmysqlclient10-dev, postgresql-dev, tdb-dev, libgdbmg1-dev 
    77 
    88Package: pdns 
     
    1717 
    1818Package: pdns-doc 
     19Section: doc 
    1920Architecture: all 
    2021Description: PowerDNS manual 
  • trunk/pdns/debian/rules

    r70 r77  
    6464 
    6565        rm -f "$(tmpdir)"/usr/bin/binpatch 
     66        rm -f "$(tmpdir)"/usr/bin/xdb-fill 
    6667        rm -rf "$(tmpdir)"/usr/lib 
    6768 
     
    112113 
    113114        strip --remove-section=.comment --remove-section=.note \ 
    114                 --strip-unneeded "$(tmpdir)"/usr/lib/powerdns/*.so 
     115                --strip-unneeded "$(tmpdir)"/usr/lib/powerdns/*.so \ 
     116                "$(tmpdir)"/usr/bin/xdb-fill 
    115117        chmod 644 "$(tmpdir)"/usr/lib/powerdns/* 
    116118 
     
    119121                rm -rf "$(tmpdir)"-$$be ; \ 
    120122                pkg=pdns-backend-$$be ; \ 
     123                if [ "$$be" = "xdb" ] ; then \ 
     124                        install -d -m 755 -o root -g root "$(tmpdir)"-$$be/usr/bin ; \ 
     125                        mv "$(tmpdir)"/usr/bin/xdb-fill  "$(tmpdir)"-$$be/usr/bin/ ; \ 
     126                fi ; \ 
     127                \ 
    121128                install -d -m 755 -o root -g root "$(tmpdir)"-$$be/usr/lib/powerdns ; \ 
    122129                mv "$(tmpdir)"/usr/lib/powerdns/lib$$be* "$(tmpdir)"-$$be/usr/lib/powerdns ; \ 
  • trunk/pdns/modules/pipebackend/Makefile.am

    r67 r77  
    44#endif 
    55 
    6 EXTRA_DIST=OBJECTFILES OBJECTLIBS 
     6EXTRA_DIST=OBJECTFILES OBJECTLIBS backend.pl 
    77lib_LTLIBRARIES = libpipebackend.la 
    88 
  • trunk/pdns/modules/pipebackend/coprocess.cc

    r57 r77  
    103103  line.append(1,'\n'); 
    104104   
    105   int sent=0; 
     105  unsigned int sent=0; 
    106106  int bytes; 
    107107 
  • trunk/pdns/modules/pipebackend/pipebackend.cc

    r61 r77  
    11// -*- sateh-c -*-  
    22// File    : pdnsbackend.cc 
    3 // Version : $Id: pipebackend.cc,v 1.3 2002/12/09 16:24:17 ahu Exp $  
     3// Version : $Id: pipebackend.cc,v 1.4 2002/12/16 13:04:27 ahu Exp $  
    44// 
    55 
     
    183183      } 
    184184      else if(parts[0]=="DATA") { // yay 
    185  
    186185         if(parts.size()<7) { 
    187             L<<Logger::Error<<kBackendId<<" coprocess returned emtpy line in data section for query for "<<d_qname<<endl; 
     186            L<<Logger::Error<<kBackendId<<" coprocess returned incomplete or empty line in data section for query for "<<d_qname<<endl; 
    188187            throw AhuException("Format error communicating with coprocess in data section"); 
    189188            // now what? 
     
    193192         r.ttl=atoi(parts[4].c_str()); 
    194193         r.domain_id=atoi(parts[5].c_str()); 
    195          r.content=parts[6]; 
     194 
     195         if(parts[3]!="MX") 
     196           r.content=parts[6]; 
     197         else { 
     198           if(parts.size()<8) { 
     199            L<<Logger::Error<<kBackendId<<" coprocess returned incomplete MX line in data section for query for "<<d_qname<<endl; 
     200            throw AhuException("Format error communicating with coprocess in data section of MX record"); 
     201           } 
     202            
     203           r.priority=atoi(parts[6].c_str()); 
     204           r.content=parts[7]; 
     205         } 
    196206         break; 
    197207      } 
  • trunk/pdns/modules/xdbbackend/Makefile.in

    r67 r77  
    2020top_distdir = ../.. 
    2121distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) 
     22exec_prefix = @exec_prefix@ 
    2223 
    2324distdir: $(DISTFILES) 
     
    5051        $(mkinstalldirs) $(DESTDIR)@libdir@ 
    5152        install -s libxdbbackend.so $(DESTDIR)@libdir@ 
     53        $(mkinstalldirs) $(DESTDIR)@bindir@ 
     54        install -s xdb-fill $(DESTDIR)@bindir@ 
    5255 
  • trunk/pdns/pdns.spec

    r62 r77  
    11Buildroot: /tmp/pdns 
    22Name: pdns 
    3 Version: 2.9.1 
     3Version: 2.9.2 
    44Release: 1 
    55Summary: extremely powerful and versatile nameserver 
  • trunk/pdns/rpm-build-instruction

    r63 r77  
    11#!/bin/sh 
    2 ./configure --with-modules="mysql pgmysql pdns pipe" \ 
     2./configure --with-modules="mysql pgmysql pipe pdns" --with-dynmodules="" \ 
    33        --enable-static-binaries --enable-mysql --enable-pgsql \ 
    44        --with-pgsql-lib=/opt/postgresql-with-3.2/lib/ --prefix=/usr \ 
    55        --sysconfdir=/etc/powerdns \ 
    6 && make && \ 
     6&& make clean && make && \ 
    77sudo /bin/sh -c "rm -rf /tmp/pdns ; DESTDIR=/tmp/pdns make install-strip" && 
    88sudo mkdir -p /tmp/pdns/etc/init.d &&