aboutsummaryrefslogtreecommitdiffstats
path: root/dns
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-02-15 05:41:38 +0800
committerpav <pav@FreeBSD.org>2005-02-15 05:41:38 +0800
commit6db24e8bbecb13698c36c4359935568fa5501f84 (patch)
treed0ecba7c221d2b0a0fa4a7d0515c783a72b742bf /dns
parent3f70d2d905fbddd1be1bcf3ae9a5721e352c405d (diff)
downloadfreebsd-ports-gnome-6db24e8bbecb13698c36c4359935568fa5501f84.tar.gz
freebsd-ports-gnome-6db24e8bbecb13698c36c4359935568fa5501f84.tar.zst
freebsd-ports-gnome-6db24e8bbecb13698c36c4359935568fa5501f84.zip
- Fix build on FreeBSD 6
PR: ports/77480 Submitted by: Ralf van der Enden <tremere@cainites.net> (maintainer)
Diffstat (limited to 'dns')
-rw-r--r--dns/powerdns-devel/Makefile4
-rw-r--r--dns/powerdns-devel/files/patch-pdns_logger_cc28
-rw-r--r--dns/powerdns-devel/files/patch-pdns_logger_hh11
-rw-r--r--dns/powerdns/Makefile4
-rw-r--r--dns/powerdns/files/patch-pdns_logger_cc28
-rw-r--r--dns/powerdns/files/patch-pdns_logger_hh11
6 files changed, 78 insertions, 8 deletions
diff --git a/dns/powerdns-devel/Makefile b/dns/powerdns-devel/Makefile
index 15d963048a0e..b07dff8d1f2f 100644
--- a/dns/powerdns-devel/Makefile
+++ b/dns/powerdns-devel/Makefile
@@ -32,10 +32,6 @@ LIBMAP_CONF= /etc/libmap.conf
.include <bsd.port.pre.mk>
-.if ${OSVERSION} >= 600000
-BROKEN= "Does not compile on FreeBSD 6.0"
-.endif
-
# use user config if possible
.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
diff --git a/dns/powerdns-devel/files/patch-pdns_logger_cc b/dns/powerdns-devel/files/patch-pdns_logger_cc
new file mode 100644
index 000000000000..cc60d58b45f7
--- /dev/null
+++ b/dns/powerdns-devel/files/patch-pdns_logger_cc
@@ -0,0 +1,28 @@
+--- pdns/logger.cc.orig Fri Feb 11 12:49:28 2005
++++ pdns/logger.cc Fri Feb 11 12:51:16 2005
+@@ -131,6 +131,25 @@
+ return *this;
+ }
+
++Logger& Logger::operator<<(long i)
++{
++ ostringstream tmp;
++ tmp<<i;
++
++ *this<<tmp.str();
++
++ return *this;
++}
++
++Logger& Logger::operator<<(unsigned long i)
++{
++ ostringstream tmp;
++ tmp<<i;
++
++ *this<<tmp.str();
++
++ return *this;
++}
+
+ Logger& Logger::operator<<(ostream & (&)(ostream &))
+ {
diff --git a/dns/powerdns-devel/files/patch-pdns_logger_hh b/dns/powerdns-devel/files/patch-pdns_logger_hh
new file mode 100644
index 000000000000..239e45f23376
--- /dev/null
+++ b/dns/powerdns-devel/files/patch-pdns_logger_hh
@@ -0,0 +1,11 @@
+--- pdns/logger.hh.orig Sat Jan 29 12:51:20 2005
++++ pdns/logger.hh Sat Jan 29 12:52:22 2005
+@@ -111,6 +111,8 @@
+ Logger& operator<<(const string &s); //!< log a string
+ Logger& operator<<(int); //!< log an int
+ Logger& operator<<(unsigned int); //!< log an unsigned int
++ Logger& operator<<(long); //!< log a long
++ Logger& operator<<(unsigned long); //!< log an unsigned long
+ Logger& operator<<(Urgency); //!< set the urgency, << style
+
+ #ifndef WIN32
diff --git a/dns/powerdns/Makefile b/dns/powerdns/Makefile
index 15d963048a0e..b07dff8d1f2f 100644
--- a/dns/powerdns/Makefile
+++ b/dns/powerdns/Makefile
@@ -32,10 +32,6 @@ LIBMAP_CONF= /etc/libmap.conf
.include <bsd.port.pre.mk>
-.if ${OSVERSION} >= 600000
-BROKEN= "Does not compile on FreeBSD 6.0"
-.endif
-
# use user config if possible
.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
diff --git a/dns/powerdns/files/patch-pdns_logger_cc b/dns/powerdns/files/patch-pdns_logger_cc
new file mode 100644
index 000000000000..cc60d58b45f7
--- /dev/null
+++ b/dns/powerdns/files/patch-pdns_logger_cc
@@ -0,0 +1,28 @@
+--- pdns/logger.cc.orig Fri Feb 11 12:49:28 2005
++++ pdns/logger.cc Fri Feb 11 12:51:16 2005
+@@ -131,6 +131,25 @@
+ return *this;
+ }
+
++Logger& Logger::operator<<(long i)
++{
++ ostringstream tmp;
++ tmp<<i;
++
++ *this<<tmp.str();
++
++ return *this;
++}
++
++Logger& Logger::operator<<(unsigned long i)
++{
++ ostringstream tmp;
++ tmp<<i;
++
++ *this<<tmp.str();
++
++ return *this;
++}
+
+ Logger& Logger::operator<<(ostream & (&)(ostream &))
+ {
diff --git a/dns/powerdns/files/patch-pdns_logger_hh b/dns/powerdns/files/patch-pdns_logger_hh
new file mode 100644
index 000000000000..239e45f23376
--- /dev/null
+++ b/dns/powerdns/files/patch-pdns_logger_hh
@@ -0,0 +1,11 @@
+--- pdns/logger.hh.orig Sat Jan 29 12:51:20 2005
++++ pdns/logger.hh Sat Jan 29 12:52:22 2005
+@@ -111,6 +111,8 @@
+ Logger& operator<<(const string &s); //!< log a string
+ Logger& operator<<(int); //!< log an int
+ Logger& operator<<(unsigned int); //!< log an unsigned int
++ Logger& operator<<(long); //!< log a long
++ Logger& operator<<(unsigned long); //!< log an unsigned long
+ Logger& operator<<(Urgency); //!< set the urgency, << style
+
+ #ifndef WIN32