Commit Diff
Diff:
865e4ace54a95d4ce62427f7778efda25a83aa0b
fc0810ec6d65c8745af5243d70c5c46ac1cd0da4
Commit:
fc0810ec6d65c8745af5243d70c5c46ac1cd0da4
Tree:
4501bed726d82dfb527223718a6be8fb4377d8ff
Author:
pjp <pjp@delphinusdns.org>
Committer:
pjp <pjp@delphinusdns.org>
Date:
Wed Jul 15 07:39:38 2020 UTC
Message:
port to FreeBSD, libressl must be compiled from the ports now Update compatibility guide to FreeBSD 11.4 Update compatibility guide to OpenBSD 6.7 while we're there
blob - 3ed9e89efde4017540be66f57464e208df83495b
blob + 1e9b4ca33acd8b382a5692355d2d49d087aa80dc
--- README
+++ README
@@ -1,4 +1,4 @@
-$Id: README,v 1.44 2020/04/28 16:40:48 pjp Exp $
+$Id: README,v 1.45 2020/07/15 07:39:38 pjp Exp $
1. README
1.1 AUTHOR(S)
@@ -104,7 +104,11 @@ $ ./configure
$ vipw
## or
$ pw user add _ddd -m
+# install libressl from ports or pkg
+$ cd /usr/ports/security/libressl
+$ make install
## make the program
+$ cd delphinusdnsd
$ make
## install the binary (as root)
$ make install
@@ -160,11 +164,11 @@ it they can send patches for the Makefile.
------------------+--------------------+---------------------+
Operating System | makes and compiles | responds to queries |
------------------+--------------------+---------------------+
-FreeBSD 12.1 | yes | yes |
+FreeBSD 11.4 | yes | yes |
------------------+--------------------+---------------------+
NetBSD 8.1 | yes | yes |
------------------+--------------------+---------------------+
-OpenBSD 6.6 | yes | yes |
+OpenBSD 6.7 | yes | yes |
------------------+--------------------+---------------------+
Linux* | yes | yes |
------------------+--------------------+---------------------+
blob - 4431b2482a811a42b7b49f6d045599477ade77fb
blob + 3b1b600c2eb089cd3e2687edfee2be4d7f611ce5
--- delphinusdnsd/Makefile.freebsd
+++ delphinusdnsd/Makefile.freebsd
@@ -4,9 +4,9 @@ PROG=delphinusdnsd
SRCS=delphinusdnsd.c parse.y reply.c additional.c region.c log.c axfr.c filter.c ratelimit.c whitelist.c base64.c dnssec.c util.c ent.c db.c imsg-buffer.c imsg.c tsig.c raxfr.c forward.c cache.c
-CFLAGS= -Wall -g
+CFLAGS= -Wall -g -L/usr/local/lib
CFLAGS+= -I${.CURDIR}/..
-LDFLAGS= -Wall -g
+LDFLAGS= -Wall -g -L/usr/local/lib
LDADD= -lcrypto -lssl
LDLIBS=
blob - a923bf195fe9f59c80fef7bc33724b52cdd84f0a
blob + 685abed4268fed991fdc57adfdbb0dedce6e32cf
--- delphinusdnsd.c
+++ delphinusdnsd.c
@@ -27,7 +27,7 @@
*/
/*
- * $Id: delphinusdnsd.c,v 1.126 2020/07/14 16:14:35 pjp Exp $
+ * $Id: delphinusdnsd.c,v 1.127 2020/07/15 07:39:38 pjp Exp $
*/
@@ -4311,6 +4311,7 @@ bind_this_res(struct addrinfo *res, int shut)
dolog(LOG_INFO, "setsockopt: %s\n", strerror(errno));
}
+#ifndef __FreeBSD__
if (shut) {
if (shutdown(so, SHUT_RD) < 0) {
dolog(LOG_INFO, "shutdown: %s\n", strerror(errno));
@@ -4318,6 +4319,7 @@ bind_this_res(struct addrinfo *res, int shut)
exit(1);
}
}
+#endif
if (bind(so, res->ai_addr, res->ai_addrlen) < 0) {
dolog(LOG_INFO, "bind: %s\n", strerror(errno));
@@ -4367,6 +4369,7 @@ bind_this_pifap(struct ifaddrs *pifap, int shut, int s
}
+#ifndef __FreeBSD__
if (shut) {
if (shutdown(so, SHUT_RD) < 0) {
dolog(LOG_INFO, "shutdown: %s\n", strerror(errno));
@@ -4374,6 +4377,7 @@ bind_this_pifap(struct ifaddrs *pifap, int shut, int s
exit(1);
}
}
+#endif
if (bind(so, (struct sockaddr *)pifap->ifa_addr, salen) < 0) {
dolog(LOG_INFO, "bind: %s\n", strerror(errno));
repomaster@centroid.eu