aboutsummaryrefslogtreecommitdiff
path: root/dns/powerdns/files
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2003-07-25 17:03:06 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2003-07-25 17:03:06 +0000
commit5f64c809314abd688b8252e4bbe33df172df9d42 (patch)
tree79f2a71676684d96cf2bca798e088765c5f71c13 /dns/powerdns/files
parentf154f2e82622104005017851bc330189a9f019a2 (diff)
downloadports-5f64c809314abd688b8252e4bbe33df172df9d42.tar.gz
ports-5f64c809314abd688b8252e4bbe33df172df9d42.zip
- Update to 2.9.10 (fixes a core-dump problem when adding new zone-records)
- pdns_recursor will only be built on FreeBSD 5.0 and above (4.x lacks support for get/set/makecontext functions) - Patched pdns/pdns_recursor.cc to add .pid support PR: 54379 Submitted by: tremere@cainites.net
Notes
Notes: svn path=/head/; revision=85584
Diffstat (limited to 'dns/powerdns/files')
-rw-r--r--dns/powerdns/files/patch-modules_ldapbackend_powerldap.cc12
-rw-r--r--dns/powerdns/files/patch-pdns_pdns_recursor.cc48
2 files changed, 48 insertions, 12 deletions
diff --git a/dns/powerdns/files/patch-modules_ldapbackend_powerldap.cc b/dns/powerdns/files/patch-modules_ldapbackend_powerldap.cc
deleted file mode 100644
index 27faef6f3c45..000000000000
--- a/dns/powerdns/files/patch-modules_ldapbackend_powerldap.cc
+++ /dev/null
@@ -1,12 +0,0 @@
-*** modules/ldapbackend/powerldap.cc.orig Thu Mar 13 20:49:23 2003
---- modules/ldapbackend/powerldap.cc Thu Mar 13 20:49:46 2003
-***************
-*** 3,9 ****
-
- #include <map>
- #include <vector>
-- // #include <crypt.h>
- #include <exception>
- #include <stdexcept>
- #include <string>
---- 3,8 ----
diff --git a/dns/powerdns/files/patch-pdns_pdns_recursor.cc b/dns/powerdns/files/patch-pdns_pdns_recursor.cc
new file mode 100644
index 000000000000..9457ac61f8a8
--- /dev/null
+++ b/dns/powerdns/files/patch-pdns_pdns_recursor.cc
@@ -0,0 +1,48 @@
+--- pdns/pdns_recursor.cc.orig Thu Jul 3 10:30:03 2003
++++ pdns/pdns_recursor.cc Thu Jul 10 16:45:27 2003
+@@ -35,6 +35,10 @@
+ #include "statbag.hh"
+ #include "arguments.hh"
+ #include "syncres.hh"
++#include <fcntl.h>
++#include <fstream>
++
++string s_programname="pdns_recursor";
+
+ #ifndef WIN32
+ extern "C" {
+@@ -129,6 +133,17 @@
+ cache[toLower(qname)+"|"+qt.getName()]=content;
+ }
+
++static void writePid(void)
++{
++ string fname=arg()["socket-dir"]+"/"+s_programname+".pid";
++ ofstream of(fname.c_str());
++ if(of)
++ of<<getpid()<<endl;
++ else
++ L<<Logger::Error<<"Requested to write pid for "<<getpid()<<" to "<<fname<<"
++failed: "<<strerror(errno)<<endl;
++}
++
+ void init(void)
+ {
+ // prime root cache
+@@ -394,6 +409,7 @@
+ arg().set("daemon","Operate as a daemon")="yes";
+ arg().set("quiet","Suppress logging of questions and answers")="off";
+ arg().set("config-dir","Location of configuration directory (recursor.conf)")=SYSCONFDIR;
++ arg().set("socket-dir","Where the controlsocket will live")=LOCALSTATEDIR;
+ arg().setCmd("help","Provide a helpful message");
+ L.toConsole(Logger::Warning);
+ arg().laxParse(argc,argv); // do a lax parse
+@@ -433,6 +449,8 @@
+ daemonize();
+ }
+ signal(SIGUSR1,usr1Handler);
++
++ writePid();
+ #endif
+
+ vector<TCPConnection> tcpconnections;