Changeset 741

Show
Ignore:
Timestamp:
04/19/06 15:57:02 (7 years ago)
Author:
ahu
Message:

fixes for easier packaging

Location:
trunk/pdns/pdns
Files:
1 added
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/Makefile-recursor

    r737 r741  
    11# user editable stuff: 
    22SBINDIR=/usr/sbin/ 
     3BINDIR=/usr/bin/ 
     4CONFIGDIR="/etc/powerdns/" 
    35OPTFLAGS?=-O3 
    46CXXFLAGS:= $(CXXFLAGS) -Wall $(OPTFLAGS) $(PROFILEFLAGS) 
     
    3436 
    3537install: all 
     38        -mkdirhier $(DESTDIR)/$(SBINDIR) 
    3639        install -s pdns_recursor $(DESTDIR)/$(SBINDIR) 
    37         install -s rec_control $(DESTDIR)/$(SBINDIR) 
     40        mkdirhier $(DESTDIR)/$(BINDIR) 
     41        install -s rec_control $(DESTDIR)/$(BINDIR) 
     42        -mkdirhier $(DESTDIR)/$(CONFIGDIR) 
     43        ./pdns_recursor --config > $(DESTDIR)/$(CONFIGDIR)/recursor.conf 
     44         
    3845 
    3946clean: 
  • trunk/pdns/pdns/pdns_recursor.cc

    r740 r741  
    11751175    ::arg().set("server-id", "Returned when queried for 'server.id' TXT, defaults to hostname")=""; 
    11761176    ::arg().set("remotes-ringbuffer-entries", "maximum number of packets to store statistics for")="0"; 
    1177     ::arg().set("version-string", "maximum number of packets to store statistics for")="PowerDNS Recursor "VERSION" $Id$"; 
     1177    ::arg().set("version-string", "string reported on version.pdns or version.bind")="PowerDNS Recursor "VERSION" $Id$"; 
    11781178    ::arg().set("allow-from", "If set, only allow these comma separated netmasks to recurse")="127.0.0.0/8, 10.0.0.0/8, 192.168.0.0/16, 172.16.0.0/12"; 
    11791179    ::arg().set("max-tcp-per-client", "If set, maximum number of TCP sessions per client (IP address)")="0"; 
     
    11831183 
    11841184    ::arg().setCmd("help","Provide a helpful message"); 
     1185    ::arg().setCmd("config","Output blank configuration"); 
    11851186    L.toConsole(Logger::Warning); 
    11861187    ::arg().laxParse(argc,argv); // do a lax parse 
     
    12011202      exit(99); 
    12021203    } 
     1204 
     1205    if(::arg().mustDo("config")) { 
     1206      cout<<::arg().configstring()<<endl; 
     1207      exit(0); 
     1208    } 
     1209 
    12031210 
    12041211    L.setName("pdns_recursor");