Changeset 13

Show
Ignore:
Timestamp:
11/28/02 13:30:45 (10 years ago)
Author:
ahu
Message:

open source work

Location:
trunk/pdns
Files:
16 added
3 removed
15 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/GOALS

    r11 r13  
    1212        - one big module 
    1313 
     14suggested mechanism: 
     15         
  • trunk/pdns/modules/mysqlbackend/mysqlcbackend.cc

    r7 r13  
    1 // $Id: mysqlcbackend.cc,v 1.1 2002/11/27 15:29:50 ahu Exp $  
     1// $Id: mysqlcbackend.cc,v 1.2 2002/11/28 12:30:45 ahu Exp $  
    22#include <string> 
    33#include <map> 
     
    88using namespace std; 
    99 
    10 #include <dns.hh> 
    11 #include <dnsbackend.hh> 
    12 #include <mysqlcbackend.hh> 
    13 #include <dnspacket.hh> 
    14 #include <ueberbackend.hh> 
    15 #include <ahuexception.hh> 
    16 #include <logger.hh> 
    17 #include <arguments.hh> 
     10#include <pdns/dns.hh> 
     11#include <pdns/dnsbackend.hh> 
     12#include "mysqlcbackend.hh" 
     13#include <pdns/dnspacket.hh> 
     14#include <pdns/ueberbackend.hh> 
     15#include <pdns/ahuexception.hh> 
     16#include <pdns/logger.hh> 
     17#include <pdns/arguments.hh> 
    1818 
    1919static string backendName="[MySQLbackend]"; 
  • trunk/pdns/modules/mysqlbackend/mysqlcbackend.hh

    r7 r13  
    77using namespace std; 
    88 
    9 #include <mysql.h> 
    10  
     9#include <mysql/mysql.h> 
    1110 
    1211 
  • trunk/pdns/modules/pdnsbackend/pdnsbackend.cc

    r9 r13  
    1 // $Id: pdnsbackend.cc,v 1.1 2002/11/27 15:34:15 ahu Exp $  
     1// $Id: pdnsbackend.cc,v 1.2 2002/11/28 12:30:45 ahu Exp $  
    22 
    33#include <string> 
     
    99using namespace std; 
    1010 
    11 #include <dns.hh> 
    12 #include <dnsbackend.hh> 
    13 #include <dnspacket.hh> 
    14 #include <ueberbackend.hh> 
    15 #include <ahuexception.hh> 
    16 #include <logger.hh> 
    17 #include <arguments.hh> 
     11#include <pdns/dns.hh> 
     12#include <pdns/dnsbackend.hh> 
     13#include <pdns/dnspacket.hh> 
     14#include <pdns/ueberbackend.hh> 
     15#include <pdns/ahuexception.hh> 
     16#include <pdns/logger.hh> 
     17#include <pdns/arguments.hh> 
    1818 
    1919#include "pdnsbackend.hh" 
  • trunk/pdns/modules/pdnsbackend/pdnsbackend.hh

    r9 r13  
    1 // $Id: pdnsbackend.hh,v 1.1 2002/11/27 15:34:15 ahu Exp $ 
     1// $Id: pdnsbackend.hh,v 1.2 2002/11/28 12:30:45 ahu Exp $ 
    22 
    33#ifndef PDNSBACKEND_HH 
     
    99using namespace std; 
    1010 
    11 #include <mysql.h> 
     11#include <mysql/mysql.h> 
    1212 
    1313class PdnsBackend : public DNSBackend 
  • trunk/pdns/pdns/Makefile.am

    r2 r13  
    1 AM_CXXFLAGS=-D_GNU_SOURCE -DSYSCONFDIR=\"@sysconfdir@\" -DBINDIR=\"@bindir@\" -DLOCALSTATEDIR=\"@localstatedir@\" -Ibackends/bind 
     1AM_CXXFLAGS=-D_GNU_SOURCE -DSYSCONFDIR=\"@sysconfdir@\" -DBINDIR=\"@bindir@\" -DLOCALSTATEDIR=\"@socketdir@\" -Ibackends/bind 
    22AM_CPPFLAGS=-Ibackends/bind 
    33 
     
    1212 
    1313bin_SCRIPTS = pdns 
    14 sysconf_DATA = pdns.conf-dist smtpredir.conf-dist  
     14sysconf_DATA = pdns.conf-dist  
    1515 
    16 bin_PROGRAMS = pdns_server pdns_control binpatch # syncres #   resolver syncres # smtpredir 
     16bin_PROGRAMS = pdns_server pdns_control binpatch # syncres #   resolver syncres  
    1717 
     18pdns.conf-dist: pdns_server 
     19        -./pdns_server --config > $@ 
    1820 
    1921pdns_server_SOURCES=dnspacket.cc nameserver.cc tcpreceiver.hh \ 
     
    3335 
    3436# 
    35 pdns_server_LDFLAGS=-rdynamic @LIBDL@ extra/*.o `cat extra/ld`  -ldl 
     37pdns_server_LDFLAGS=-rdynamic @LIBDL@ @moduleobjects@ @modulelibs@  
    3638pdns_server_INCLUDES= 
    3739 
     
    5254SUBDIRS= codedocs backends extra . 
    5355 
    54 deb: ../ahudns_1.1-1_i386.deb 
    55  
    56 ../ahudns_1.1-1_i386.deb: 
    57         ./debian/rules binary-arch 
  • trunk/pdns/pdns/Makefile.in

    r2 r13  
    3737pkglibdir = $(libdir)/@PACKAGE@ 
    3838pkgincludedir = $(includedir)/@PACKAGE@ 
    39 top_builddir = . 
     39top_builddir = .. 
    4040 
    4141ACLOCAL = @ACLOCAL@ 
     
    5656PRE_UNINSTALL = : 
    5757POST_UNINSTALL = : 
    58 build_alias = @build_alias@ 
    59 build_triplet = @build@ 
    6058host_alias = @host_alias@ 
    6159host_triplet = @host@ 
    62 target_alias = @target_alias@ 
    63 target_triplet = @target@ 
    6460AMTAR = @AMTAR@ 
    6561AS = @AS@ 
     
    7470LEX = @LEX@ 
    7571LIBDL = @LIBDL@ 
    76 LIBRESOLV = @LIBRESOLV@ 
    7772LIBTOOL = @LIBTOOL@ 
    7873LN_S = @LN_S@ 
     
    8782am__quote = @am__quote@ 
    8883install_sh = @install_sh@ 
    89  
    90 AM_CXXFLAGS = -D_GNU_SOURCE -DSYSCONFDIR=\"@sysconfdir@\" -DBINDIR=\"@bindir@\" -DLOCALSTATEDIR=\"@localstatedir@\" -Ibackends/bind 
     84moduledirs = @moduledirs@ 
     85modulelibs = @modulelibs@ 
     86moduleobjects = @moduleobjects@ 
     87socketdir = @socketdir@ 
     88 
     89AM_CXXFLAGS = -D_GNU_SOURCE -DSYSCONFDIR=\"@sysconfdir@\" -DBINDIR=\"@bindir@\" -DLOCALSTATEDIR=\"@socketdir@\" -Ibackends/bind 
    9190AM_CPPFLAGS = -Ibackends/bind 
    9291 
     
    102101 
    103102bin_SCRIPTS = pdns 
    104 sysconf_DATA = pdns.conf-dist smtpredir.conf-dist  
    105  
    106 bin_PROGRAMS = pdns_server pdns_control binpatch # syncres #   resolver syncres # smtpredir 
     103sysconf_DATA = pdns.conf-dist  
     104 
     105bin_PROGRAMS = pdns_server pdns_control binpatch # syncres #   resolver syncres  
    107106 
    108107pdns_server_SOURCES = dnspacket.cc nameserver.cc tcpreceiver.hh \ 
     
    123122 
    124123# 
    125 pdns_server_LDFLAGS = -rdynamic @LIBDL@ extra/*.o `cat extra/ld`  -ldl 
     124pdns_server_LDFLAGS = -rdynamic @LIBDL@ @moduleobjects@ @modulelibs@  
    126125pdns_server_INCLUDES =  
    127126 
     
    140139 
    141140SUBDIRS = codedocs backends extra . 
    142 subdir = . 
    143 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 
     141subdir = pdns 
    144142mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs 
    145 CONFIG_HEADER = config.h 
    146 CONFIG_CLEAN_FILES = pdns.conf-dist buildroot.sh showvar pdns mkbindist 
     143CONFIG_HEADER = $(top_builddir)/config.h 
     144CONFIG_CLEAN_FILES = pdns 
    147145bin_PROGRAMS = pdns_server$(EXEEXT) pdns_control$(EXEEXT) \ 
    148146        binpatch$(EXEEXT) 
     
    179177 
    180178DEFS = @DEFS@ 
    181 DEFAULT_INCLUDES =  -I. -I$(srcdir) -I. 
     179DEFAULT_INCLUDES =  -I. -I$(srcdir) -I$(top_builddir) 
    182180CPPFLAGS = @CPPFLAGS@ 
    183181LDFLAGS = @LDFLAGS@ 
     
    226224        install-exec-recursive installdirs-recursive install-recursive \ 
    227225        uninstall-recursive check-recursive installcheck-recursive 
    228 DIST_COMMON = README ./stamp-h.in COPYING ChangeLog INSTALL Makefile.am \ 
    229         Makefile.in TODO acconfig.h aclocal.m4 buildroot.sh.in \ 
    230         config.guess config.h.in config.sub configure configure.in \ 
    231         depcomp install-sh ltmain.sh missing mkbindist.in mkinstalldirs \ 
    232         pdns.conf-dist.in pdns.in showvar.in ylwrap 
     226DIST_COMMON = README COPYING ChangeLog INSTALL Makefile.am Makefile.in \ 
     227        TODO config.guess config.sub configure depcomp install-sh \ 
     228        ltmain.sh missing mkinstalldirs pdns.in ylwrap 
    233229DIST_SUBDIRS = $(SUBDIRS) 
    234230SOURCES = $(binpatch_SOURCES) $(pdns_control_SOURCES) $(pdns_server_SOURCES) 
    235231 
    236 all: config.h 
    237         $(MAKE) $(AM_MAKEFLAGS) all-recursive 
     232all: all-recursive 
    238233 
    239234.SUFFIXES: 
     
    250245$(srcdir)/Makefile.in:  Makefile.am  $(top_srcdir)/configure.in $(ACLOCAL_M4) 
    251246        cd $(top_srcdir) && \ 
    252           $(AUTOMAKE) --foreign  Makefile 
     247          $(AUTOMAKE) --foreign  pdns/Makefile 
    253248Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status 
    254249        cd $(top_builddir) && \ 
    255250          CONFIG_HEADERS= CONFIG_LINKS= \ 
    256           CONFIG_FILES=$@ $(SHELL) ./config.status 
    257  
    258 $(top_builddir)/config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) 
    259         $(SHELL) ./config.status --recheck 
    260 $(srcdir)/configure:  $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) 
    261         cd $(srcdir) && $(AUTOCONF) 
    262  
    263 $(ACLOCAL_M4):  configure.in  
    264         cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) 
    265 config.h: stamp-h 
    266         @if test ! -f $@; then \ 
    267                 rm -f stamp-h; \ 
    268                 $(MAKE) stamp-h; \ 
    269         else :; fi 
    270 stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status 
    271         @rm -f stamp-h stamp-hT 
    272         @echo timestamp > stamp-hT 2> /dev/null 
    273         cd $(top_builddir) \ 
    274           && CONFIG_FILES= CONFIG_HEADERS=config.h \ 
    275              $(SHELL) ./config.status 
    276         @mv stamp-hT stamp-h 
    277 $(srcdir)/config.h.in:  $(srcdir)/./stamp-h.in 
    278         @if test ! -f $@; then \ 
    279                 rm -f $(srcdir)/./stamp-h.in; \ 
    280                 $(MAKE) $(srcdir)/./stamp-h.in; \ 
    281         else :; fi 
    282 $(srcdir)/./stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) $(top_srcdir)/acconfig.h 
    283         @rm -f $(srcdir)/./stamp-h.in $(srcdir)/./stamp-h.inT 
    284         @echo timestamp > $(srcdir)/./stamp-h.inT 2> /dev/null 
    285         cd $(top_srcdir) && $(AUTOHEADER) 
    286         @mv $(srcdir)/./stamp-h.inT $(srcdir)/./stamp-h.in 
    287  
    288 distclean-hdr: 
    289         -rm -f config.h 
    290 pdns.conf-dist: $(top_builddir)/config.status pdns.conf-dist.in 
    291         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= CONFIG_LINKS= $(SHELL) ./config.status 
    292 buildroot.sh: $(top_builddir)/config.status buildroot.sh.in 
    293         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= CONFIG_LINKS= $(SHELL) ./config.status 
    294 showvar: $(top_builddir)/config.status showvar.in 
    295         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= CONFIG_LINKS= $(SHELL) ./config.status 
     251          CONFIG_FILES=$(subdir)/$@ $(SHELL) ./config.status 
    296252pdns: $(top_builddir)/config.status pdns.in 
    297         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= CONFIG_LINKS= $(SHELL) ./config.status 
    298 mkbindist: $(top_builddir)/config.status mkbindist.in 
    299         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= CONFIG_LINKS= $(SHELL) ./config.status 
     253        cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= CONFIG_LINKS= $(SHELL) ./config.status 
    300254install-binPROGRAMS: $(bin_PROGRAMS) 
    301255        @$(NORMAL_INSTALL) 
     
    612566        mkid -fID $$unique $(LISP) 
    613567 
    614 TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ 
     568TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 
    615569                $(TAGS_FILES) $(LISP) 
    616570        tags=; \ 
     
    627581          $(AWK) '    { files[$$0] = 1; } \ 
    628582               END { for (i in files) print i; }'`; \ 
    629         test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \ 
    630           || etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) 
     583        test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ 
     584          || etags $(ETAGS_ARGS) $$tags $$unique $(LISP) 
    631585 
    632586GTAGS: 
     
    640594DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 
    641595 
    642 top_distdir = . 
    643 # Avoid unsightly `./'. 
    644 distdir = $(PACKAGE)-$(VERSION) 
    645  
    646 GZIP_ENV = --best 
     596top_distdir = .. 
     597distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) 
    647598 
    648599distdir: $(DISTFILES) 
    649         -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir) 
    650         mkdir $(distdir) 
    651         $(mkinstalldirs) $(distdir)/. $(distdir)/codedocs $(distdir)/debian $(distdir)/docs $(distdir)/extra 
     600        $(mkinstalldirs) $(distdir)/codedocs $(distdir)/debian $(distdir)/docs $(distdir)/extra 
    652601        @for file in $(DISTFILES); do \ 
    653602          if test -f $$file; then d=.; else d=$(srcdir); fi; \ 
     
    678627          fi; \ 
    679628        done 
    680         -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ 
    681           ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ 
    682           ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ 
    683           ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ 
    684         || chmod -R a+r $(distdir) 
    685 dist: distdir 
    686         $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz 
    687         -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir) 
    688  
    689 # This target untars the dist file and tries a VPATH configuration.  Then 
    690 # it guarantees that the distribution is self-contained by making another 
    691 # tarfile. 
    692 distcheck: dist 
    693         -chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir) 
    694         GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf - 
    695         chmod -R a-w $(distdir); chmod a+w $(distdir) 
    696         mkdir $(distdir)/=build 
    697         mkdir $(distdir)/=inst 
    698         chmod a-w $(distdir) 
    699         dc_install_base=`CDPATH=: && cd $(distdir)/=inst && pwd` \ 
    700           && cd $(distdir)/=build \ 
    701           && ../configure --srcdir=.. --prefix=$$dc_install_base \ 
    702           && $(MAKE) $(AM_MAKEFLAGS) \ 
    703           && $(MAKE) $(AM_MAKEFLAGS) dvi \ 
    704           && $(MAKE) $(AM_MAKEFLAGS) check \ 
    705           && $(MAKE) $(AM_MAKEFLAGS) install \ 
    706           && $(MAKE) $(AM_MAKEFLAGS) installcheck \ 
    707           && $(MAKE) $(AM_MAKEFLAGS) uninstall \ 
    708           && (test `find $$dc_install_base -type f -print | wc -l` -le 1 \ 
    709              || (echo "Error: files left after uninstall" 1>&2; \ 
    710                  exit 1) ) \ 
    711           && $(MAKE) $(AM_MAKEFLAGS) dist \ 
    712           && $(MAKE) $(AM_MAKEFLAGS) distclean \ 
    713           && rm -f $(distdir).tar.gz \ 
    714           && (test `find . -type f -print | wc -l` -eq 0 \ 
    715              || (echo "Error: files left after distclean" 1>&2; \ 
    716                  exit 1) ) 
    717         -chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir) 
    718         @echo "$(distdir).tar.gz is ready for distribution" | \ 
    719           sed 'h;s/./=/g;p;x;p;x' 
    720629check-am: all-am 
    721630check: check-recursive 
    722 all-am: Makefile $(PROGRAMS) $(SCRIPTS) $(DATA) config.h 
     631all-am: Makefile $(PROGRAMS) $(SCRIPTS) $(DATA) 
    723632installdirs: installdirs-recursive 
    724633installdirs-am: 
     
    752661clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am 
    753662 
    754 dist-all: distdir 
    755         $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz 
    756         -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir) 
    757663distclean: distclean-recursive 
    758         -rm -f config.status config.cache config.log 
     664 
    759665distclean-am: clean-am distclean-compile distclean-depend \ 
    760         distclean-generic distclean-hdr distclean-libtool \ 
    761         distclean-tags 
     666        distclean-generic distclean-libtool distclean-tags 
    762667 
    763668dvi: dvi-recursive 
     
    796701.PHONY: $(RECURSIVE_TARGETS) GTAGS all all-am check check-am clean \ 
    797702        clean-binPROGRAMS clean-generic clean-libtool clean-recursive \ 
    798         dist dist-all distcheck distclean distclean-compile \ 
    799         distclean-depend distclean-generic distclean-hdr \ 
     703        distclean distclean-compile distclean-depend distclean-generic \ 
    800704        distclean-libtool distclean-recursive distclean-tags distdir \ 
    801705        dvi dvi-am dvi-recursive info info-am info-recursive install \ 
     
    815719 
    816720 
    817 deb: ../ahudns_1.1-1_i386.deb 
    818  
    819 ../ahudns_1.1-1_i386.deb: 
    820         ./debian/rules binary-arch 
     721pdns.conf-dist: pdns_server 
     722        -./pdns_server --config > $@ 
    821723# Tell versions [3.59,3.63) of GNU make to not export all variables. 
    822724# Otherwise a system limit (for SysV at least) may be exceeded. 
  • trunk/pdns/pdns/backends/Makefile.in

    r2 r13  
    3737pkglibdir = $(libdir)/@PACKAGE@ 
    3838pkgincludedir = $(includedir)/@PACKAGE@ 
    39 top_builddir = .. 
     39top_builddir = ../.. 
    4040 
    4141ACLOCAL = @ACLOCAL@ 
     
    5656PRE_UNINSTALL = : 
    5757POST_UNINSTALL = : 
    58 build_alias = @build_alias@ 
    59 build_triplet = @build@ 
    6058host_alias = @host_alias@ 
    6159host_triplet = @host@ 
    62 target_alias = @target_alias@ 
    63 target_triplet = @target@ 
    6460AMTAR = @AMTAR@ 
    6561AS = @AS@ 
     
    7470LEX = @LEX@ 
    7571LIBDL = @LIBDL@ 
    76 LIBRESOLV = @LIBRESOLV@ 
    7772LIBTOOL = @LIBTOOL@ 
    7873LN_S = @LN_S@ 
     
    8782am__quote = @am__quote@ 
    8883install_sh = @install_sh@ 
     84moduledirs = @moduledirs@ 
     85modulelibs = @modulelibs@ 
     86moduleobjects = @moduleobjects@ 
     87socketdir = @socketdir@ 
    8988 
    9089SUBDIRS = bind  
    91 subdir = backends 
     90subdir = pdns/backends 
    9291mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs 
    9392CONFIG_HEADER = $(top_builddir)/config.h 
     
    115114$(srcdir)/Makefile.in:  Makefile.am  $(top_srcdir)/configure.in $(ACLOCAL_M4) 
    116115        cd $(top_srcdir) && \ 
    117           $(AUTOMAKE) --foreign  backends/Makefile 
     116          $(AUTOMAKE) --foreign  pdns/backends/Makefile 
    118117Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status 
    119118        cd $(top_builddir) && \ 
     
    216215DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 
    217216 
    218 top_distdir = .. 
     217top_distdir = ../.. 
    219218distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) 
    220219 
  • trunk/pdns/pdns/backends/bind/Makefile.am

    r2 r13  
    1 AM_CXXFLAGS=-D_GNU_SOURCE 
     1AM_CXXFLAGS=-D_GNU_SOURCE -I../.. 
    22lib_LTLIBRARIES = libbindbackend.la 
    33 
  • trunk/pdns/pdns/backends/bind/Makefile.in

    r2 r13  
    3737pkglibdir = $(libdir)/@PACKAGE@ 
    3838pkgincludedir = $(includedir)/@PACKAGE@ 
    39 top_builddir = ../.. 
     39top_builddir = ../../.. 
    4040 
    4141ACLOCAL = @ACLOCAL@ 
     
    5656PRE_UNINSTALL = : 
    5757POST_UNINSTALL = : 
    58 build_alias = @build_alias@ 
    59 build_triplet = @build@ 
    6058host_alias = @host_alias@ 
    6159host_triplet = @host@ 
    62 target_alias = @target_alias@ 
    63 target_triplet = @target@ 
    6460AMTAR = @AMTAR@ 
    6561AS = @AS@ 
     
    7470LEX = @LEX@ 
    7571LIBDL = @LIBDL@ 
    76 LIBRESOLV = @LIBRESOLV@ 
    7772LIBTOOL = @LIBTOOL@ 
    7873LN_S = @LN_S@ 
     
    8782am__quote = @am__quote@ 
    8883install_sh = @install_sh@ 
    89  
    90 AM_CXXFLAGS = -D_GNU_SOURCE 
     84moduledirs = @moduledirs@ 
     85modulelibs = @modulelibs@ 
     86moduleobjects = @moduleobjects@ 
     87socketdir = @socketdir@ 
     88 
     89AM_CXXFLAGS = -D_GNU_SOURCE -I../.. 
    9190lib_LTLIBRARIES = libbindbackend.la 
    9291 
     
    107106LFLAGS = -s -i 
    108107YFLAGS = -d --verbose --debug 
    109 subdir = backends/bind 
     108subdir = pdns/backends/bind 
    110109mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs 
    111110CONFIG_HEADER = $(top_builddir)/config.h 
     
    185184$(srcdir)/Makefile.in:  Makefile.am  $(top_srcdir)/configure.in $(ACLOCAL_M4) 
    186185        cd $(top_srcdir) && \ 
    187           $(AUTOMAKE) --foreign  backends/bind/Makefile 
     186          $(AUTOMAKE) --foreign  pdns/backends/bind/Makefile 
    188187Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status 
    189188        cd $(top_builddir) && \ 
     
    446445DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 
    447446 
    448 top_distdir = ../.. 
     447top_distdir = ../../.. 
    449448distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) 
    450449 
  • trunk/pdns/pdns/backends/bind/bindlexer.c

    r2 r13  
    22 
    33/* Scanner skeleton version: 
    4  * $Header: /home/ahu/tmp/cvs2svn/pdns/pdns/backends/bind/bindlexer.c,v 1.1 2002/11/27 15:18:38 ahu Exp $ 
     4 * $Header: /home/ahu/tmp/cvs2svn/pdns/pdns/backends/bind/bindlexer.c,v 1.2 2002/11/28 12:30:45 ahu Exp $ 
    55 */ 
    66 
  • trunk/pdns/pdns/codedocs/Makefile

    r2 r13  
    1818 
    1919srcdir = . 
    20 top_srcdir = .. 
    21 prefix = /opt/pdns 
     20top_srcdir = ../.. 
     21prefix = /usr/local 
    2222exec_prefix = ${prefix} 
    2323 
     
    3737pkglibdir = $(libdir)/pdns 
    3838pkgincludedir = $(includedir)/pdns 
    39 top_builddir = .. 
    40  
    41 ACLOCAL = ${SHELL} /home/ahu/programming/ahudns/missing --run aclocal 
    42 AUTOCONF = ${SHELL} /home/ahu/programming/ahudns/missing --run autoconf 
    43 AUTOMAKE = ${SHELL} /home/ahu/programming/ahudns/missing --run automake 
    44 AUTOHEADER = ${SHELL} /home/ahu/programming/ahudns/missing --run autoheader 
     39top_builddir = ../.. 
     40 
     41ACLOCAL = ${SHELL} /home/ahu/programming/pdns/missing --run aclocal 
     42AUTOCONF = ${SHELL} /home/ahu/programming/pdns/missing --run autoconf 
     43AUTOMAKE = ${SHELL} /home/ahu/programming/pdns/missing --run automake 
     44AUTOHEADER = ${SHELL} /home/ahu/programming/pdns/missing --run autoheader 
    4545 
    4646INSTALL = /usr/bin/install -c 
     
    5656PRE_UNINSTALL = : 
    5757POST_UNINSTALL = : 
    58 build_alias = i686-pc-linux-gnu 
    59 build_triplet = i686-pc-linux-gnu 
    6058host_alias = i686-pc-linux-gnu 
    6159host_triplet = i686-pc-linux-gnu 
    62 target_alias = i686-pc-linux-gnu 
    63 target_triplet = i686-pc-linux-gnu 
    64 AMTAR = ${SHELL} /home/ahu/programming/ahudns/missing --run tar 
     60AMTAR = ${SHELL} /home/ahu/programming/pdns/missing --run tar 
    6561AS = @AS@ 
    6662AWK = mawk 
     
    7470LEX = flex 
    7571LIBDL = -ldl  
    76 LIBRESOLV = -lresolv  
    7772LIBTOOL = $(SHELL) $(top_builddir)/libtool 
    7873LN_S = ln -s 
     
    8681am__include = include 
    8782am__quote =  
    88 install_sh = /home/ahu/programming/ahudns/install-sh 
    89 subdir = codedocs 
     83install_sh = /home/ahu/programming/pdns/install-sh 
     84moduledirs =  mysqlbackend pdnsbackend pgmysqlbackend 
     85modulelibs =  -lmysqlclient -lmysqlclient -Wl,-rpath -Wl,/opt/postgresql-with-3.2/lib -L/opt/postgresql-with-3.2/lib -L./ -lmysqlclient -Wl,-Bstatic -lpq++ -lpq -Wl,-Bdynamic -lssl -lcrypt -lcrypto 
     86moduleobjects =  ../modules/mysqlbackend/mysqlcbackend.o ../modules/pdnsbackend/pdnsbackend.o ../modules/pgmysqlbackend/gmysqlbackend.o ../modules/pgmysqlbackend/smysql.o ../modules/pgmysqlbackend/spgsql.o 
     87socketdir = /var/run 
     88subdir = pdns/codedocs 
    9089mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs 
    9190CONFIG_HEADER = $(top_builddir)/config.h 
     
    107106$(srcdir)/Makefile.in:  Makefile.am  $(top_srcdir)/configure.in $(ACLOCAL_M4) 
    108107        cd $(top_srcdir) && \ 
    109           $(AUTOMAKE) --foreign  codedocs/Makefile 
     108          $(AUTOMAKE) --foreign  pdns/codedocs/Makefile 
    110109Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status 
    111110        cd $(top_builddir) && \ 
     
    119118DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 
    120119 
    121 top_distdir = .. 
     120top_distdir = ../.. 
    122121distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) 
    123122 
  • trunk/pdns/pdns/codedocs/Makefile.in

    r2 r13  
    3737pkglibdir = $(libdir)/@PACKAGE@ 
    3838pkgincludedir = $(includedir)/@PACKAGE@ 
    39 top_builddir = .. 
     39top_builddir = ../.. 
    4040 
    4141ACLOCAL = @ACLOCAL@ 
     
    5656PRE_UNINSTALL = : 
    5757POST_UNINSTALL = : 
    58 build_alias = @build_alias@ 
    59 build_triplet = @build@ 
    6058host_alias = @host_alias@ 
    6159host_triplet = @host@ 
    62 target_alias = @target_alias@ 
    63 target_triplet = @target@ 
    6460AMTAR = @AMTAR@ 
    6561AS = @AS@ 
     
    7470LEX = @LEX@ 
    7571LIBDL = @LIBDL@ 
    76 LIBRESOLV = @LIBRESOLV@ 
    7772LIBTOOL = @LIBTOOL@ 
    7873LN_S = @LN_S@ 
     
    8782am__quote = @am__quote@ 
    8883install_sh = @install_sh@ 
    89 subdir = codedocs 
     84moduledirs = @moduledirs@ 
     85modulelibs = @modulelibs@ 
     86moduleobjects = @moduleobjects@ 
     87socketdir = @socketdir@ 
     88subdir = pdns/codedocs 
    9089mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs 
    9190CONFIG_HEADER = $(top_builddir)/config.h 
     
    107106$(srcdir)/Makefile.in:  Makefile.am  $(top_srcdir)/configure.in $(ACLOCAL_M4) 
    108107        cd $(top_srcdir) && \ 
    109           $(AUTOMAKE) --foreign  codedocs/Makefile 
     108          $(AUTOMAKE) --foreign  pdns/codedocs/Makefile 
    110109Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status 
    111110        cd $(top_builddir) && \ 
     
    119118DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 
    120119 
    121 top_distdir = .. 
     120top_distdir = ../.. 
    122121distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) 
    123122 
  • trunk/pdns/pdns/pdns.conf-dist

    r2 r13  
    1 # Generated automatically from pdns.conf-dist.in by configure. 
    2  
    3 #  cache-ttl=... 
    4 #       Seconds to store packets in the PacketCache 
    5 #  default-soa-name=... 
    6 #       name to insert in the SOA record if none set in the backend 
    7 #  distributor-threads=... 
    8 #       Default number of Distributor (backend) threads to start 
    9 #  fancy-records=... 
    10 #       Process URL and MBOXFW records 
    11 #  help=... 
    12 #       Provide a helpful message 
    13 #  localaddress=... 
    14 #       Local IP address to which we bind 
    15 #  localport=... 
    16 #       The port on which we listen 
    17 #  loglevel=... 
    18 #       Amount of logging. Higher is more. Do not set below 3 
    19 #  out-of-zone-additional-processing | out-of-zone-additional-processing=yes | out-of-zone-additional-processing=no 
    20 #       Do out of zone additional processing 
    21 #  smtpredirector=... 
    22 #       Our smtpredir MX host 
    23 #  urlredirector=... 
    24 #       Where we send hosts to that need to be url redirected 
    25 #  wildcards=... 
    26 #       Honor wildcards in the database 
     1# Autogenerated configuration file template 
     2################################# 
     3# allow-axfr-ips        If disabled, DO allow zonetransfers from these IP addresses 
     4# 
     5# allow-axfr-ips= 
     6 
     7################################# 
     8# allow-recursion       List of netmasks that are allowed to recurse 
     9# 
     10# allow-recursion= 
     11 
     12################################# 
     13# cache-ttl     Seconds to store packets in the PacketCache 
     14# 
     15# cache-ttl=20 
     16 
     17################################# 
     18# chroot        If set, chroot to this directory for more security 
     19# 
     20# chroot= 
     21 
     22################################# 
     23# config-dir    Location of configuration directory (pdns.conf) 
     24# 
     25# config-dir=/usr/local/etc 
     26 
     27################################# 
     28# config-name   Name of this virtual configuration - will rename the binary image 
     29# 
     30# config-name= 
     31 
     32################################# 
     33# control-console       Debugging switch - don't use 
     34# 
     35# control-console=no 
     36 
     37################################# 
     38# daemon        Operate as a daemon 
     39# 
     40# daemon=no 
     41 
     42################################# 
     43# default-soa-name      name to insert in the SOA record if none set in the backend 
     44# 
     45# default-soa-name=a.misconfigured.powerdns.server 
     46 
     47################################# 
     48# disable-axfr  Disable zonetransfers but do allow TCP queries 
     49# 
     50# disable-axfr=no 
     51 
     52################################# 
     53# disable-tcp   Do not listen to TCP queries 
     54# 
     55# disable-tcp=no 
     56 
     57################################# 
     58# distributor-threads   Default number of Distributor (backend) threads to start 
     59# 
     60# distributor-threads=3 
     61 
     62################################# 
     63# fancy-records Process URL and MBOXFW records 
     64# 
     65# fancy-records=no 
     66 
     67################################# 
     68# guardian      Run within a guardian process 
     69# 
     70# guardian=no 
     71 
     72################################# 
     73# launch        Which backends to launch and order to query them in 
     74# 
     75# launch= 
     76 
     77################################# 
     78# lazy-recursion        Only recurse if question cannot be answered locally 
     79# 
     80# lazy-recursion=yes 
     81 
     82################################# 
     83# load-modules  Load this module - supply absolute or relative path 
     84# 
     85# load-modules= 
     86 
     87################################# 
     88# local-address Local IP address to which we bind 
     89# 
     90# local-address=0.0.0.0 
     91 
     92################################# 
     93# local-ipv6    Local IP address to which we bind 
     94# 
     95# local-ipv6= 
     96 
     97################################# 
     98# local-port    The port on which we listen 
     99# 
     100# local-port=53 
     101 
     102################################# 
     103# log-dns-details       If PDNS should log failed update requests 
     104# 
     105# log-dns-details= 
     106 
     107################################# 
     108# log-failed-updates    If PDNS should log failed update requests 
     109# 
     110# log-failed-updates= 
     111 
     112################################# 
     113# logfile       Logfile to use 
     114# 
     115# logfile=pdns.log 
     116 
     117################################# 
     118# logging-facility      Log under a specific facility 
     119# 
     120# logging-facility= 
     121 
     122################################# 
     123# loglevel      Amount of logging. Higher is more. Do not set below 3 
     124# 
     125# loglevel=4 
     126 
     127################################# 
     128# master        Act as a master 
     129# 
     130# master=no 
     131 
     132################################# 
     133# max-queue-length      Maximum queuelength before considering situation lost 
     134# 
     135# max-queue-length=5000 
     136 
     137################################# 
     138# max-tcp-connections   Maximum number of TCP connections 
     139# 
     140# max-tcp-connections=10 
     141 
     142################################# 
     143# module-dir    Default directory for modules 
     144# 
     145# module-dir=/usr/local/bin/../lib 
     146 
     147################################# 
     148# negquery-cache-ttl    Seconds to store packets in the PacketCache 
     149# 
     150# negquery-cache-ttl=60 
     151 
     152################################# 
     153# only-soa      Make sure that no SOA serial is less than this number 
     154# 
     155# only-soa=org 
     156 
     157################################# 
     158# out-of-zone-additional-processing     Do out of zone additional processing 
     159# 
     160# out-of-zone-additional-processing=no 
     161 
     162################################# 
     163# query-cache-ttl       Seconds to store packets in the PacketCache 
     164# 
     165# query-cache-ttl=20 
     166 
     167################################# 
     168# query-logging Hint backends that queries should be logged 
     169# 
     170# query-logging=no 
     171 
     172################################# 
     173# queue-limit   Maximum number of milliseconds to queue a query 
     174# 
     175# queue-limit=1500 
     176 
     177################################# 
     178# receiver-threads      Number of receiver threads to launch 
     179# 
     180# receiver-threads=1 
     181 
     182################################# 
     183# recursive-cache-ttl   Seconds to store packets in the PacketCache 
     184# 
     185# recursive-cache-ttl=10 
     186 
     187################################# 
     188# recursor      If recursion is desired, IP address of a recursing nameserver 
     189# 
     190# recursor=no 
     191 
     192################################# 
     193# setgid        If set, change group id to this gid for more security 
     194# 
     195# setgid= 
     196 
     197################################# 
     198# setuid        If set, change user id to this uid for more security 
     199# 
     200# setuid= 
     201 
     202################################# 
     203# skip-cname    Do not perform CNAME indirection for each query 
     204# 
     205# skip-cname=no 
     206 
     207################################# 
     208# slave Act as a slave 
     209# 
     210# slave=no 
     211 
     212################################# 
     213# slave-cycle-interval  Reschedule failed SOA serial checks once every .. seconds 
     214# 
     215# slave-cycle-interval=60 
     216 
     217################################# 
     218# smtpredirector        Our smtpredir MX host 
     219# 
     220# smtpredirector=a.misconfigured.powerdns.smtp.server 
     221 
     222################################# 
     223# soa-minimum-ttl       Default SOA mininum ttl 
     224# 
     225# soa-minimum-ttl=3600 
     226 
     227################################# 
     228# soa-serial-offset     Make sure that no SOA serial is less than this number 
     229# 
     230# soa-serial-offset=0 
     231 
     232################################# 
     233# socket-dir    Where the controlsocket will live 
     234# 
     235# socket-dir=/var/run 
     236 
     237################################# 
     238# strict-rfc-axfrs      Perform strictly rfc compliant axfrs (very slow) 
     239# 
     240# strict-rfc-axfrs=no 
     241 
     242################################# 
     243# urlredirector Where we send hosts to that need to be url redirected 
     244# 
     245# urlredirector=127.0.0.1 
     246 
     247################################# 
     248# use-logfile   Use a log file 
     249# 
     250# use-logfile=no 
     251 
     252################################# 
     253# webserver     Start a webserver for monitoring 
     254# 
     255# webserver=no 
     256 
     257################################# 
     258# webserver-address     IP Address of webserver to listen on 
     259# 
     260# webserver-address=127.0.0.1 
     261 
     262################################# 
     263# webserver-password    Password required for accessing the webserver 
     264# 
     265# webserver-password= 
     266 
     267################################# 
     268# webserver-port        Port of webserver to listen on 
     269# 
     270# webserver-port=8081 
     271 
     272################################# 
     273# webserver-print-arguments     If the webserver should print arguments 
     274# 
     275# webserver-print-arguments=no 
     276 
     277################################# 
     278# wildcard-url  Process URL and MBOXFW records 
     279# 
     280# wildcard-url=no 
     281 
     282################################# 
     283# wildcards     Honor wildcards in the database 
     284# 
     285# wildcards= 
     286 
     287 
  • trunk/pdns/pdns/pdns.in

    r2 r13  
     1#!/bin/sh 
    12# chkconfig: - 80 75 
    23# description: PDNS is a versatile high performance authoritative nameserver 
     4 
     5prefix=@prefix@ 
     6exec_prefix=@exec_prefix@ 
     7BINARYPATH=@bindir@ 
     8SOCKETPATH=@socketdir@ 
    39 
    410cd $SOCKETPATH 
     
    160166 
    161167        *) 
    162         echo pdns [start\|stop\|restart\|status\|dump\|show\|mrtg] 
     168        echo pdns [start\|stop\|restart\|status\|dump\|show\|mrtg\|cricket\|monitor] 
    163169 
    164170        ;;