diff options
author | pav <pav@FreeBSD.org> | 2005-08-12 06:17:34 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2005-08-12 06:17:34 +0800 |
commit | 18056e5782fdb7fcd8a0be83a3048b90ced1b6be (patch) | |
tree | cba1d437437342fab789f36e027108b48c29a760 /sysutils/lookupd | |
parent | 4359b71ba0c38c8eef5228f910b7f05cd3931f40 (diff) | |
download | freebsd-ports-gnome-18056e5782fdb7fcd8a0be83a3048b90ced1b6be.tar.gz freebsd-ports-gnome-18056e5782fdb7fcd8a0be83a3048b90ced1b6be.tar.zst freebsd-ports-gnome-18056e5782fdb7fcd8a0be83a3048b90ced1b6be.zip |
- Unbreak on 6.X
PR: ports/84780
Submitted by: Marcus Grando <marcus@corp.grupos.com.br>
Approved by: portmgr (marcus)
Diffstat (limited to 'sysutils/lookupd')
-rw-r--r-- | sysutils/lookupd/Makefile | 5 | ||||
-rw-r--r-- | sysutils/lookupd/files/patch-modules-dns-resolv-getaddrinfo.c | 18 | ||||
-rw-r--r-- | sysutils/lookupd/files/patch-modules-dns-resolv-res_send.c | 20 |
3 files changed, 39 insertions, 4 deletions
diff --git a/sysutils/lookupd/Makefile b/sysutils/lookupd/Makefile index 33a2062436a2..312fe83ab2cb 100644 --- a/sysutils/lookupd/Makefile +++ b/sysutils/lookupd/Makefile @@ -17,6 +17,7 @@ USE_RC_SUBR= yes PKGMESSAGE= ${WRKDIR}/pkg-message STARTUPSCRIPT= ${WRKDIR}/lookupd.sh +MAKE_ENV= WARNS=0 MAN5= lookupd.conf.5 MAN8= lookupd.8 @@ -33,8 +34,4 @@ post-install: IGNORE= This version of lookupd is only supported on FreeBSD 5.1 or later .endif -.if ${OSVERSION} > 600021 -BROKEN= "Does not compile on FreeBSD >= 6.x" -.endif - .include <bsd.port.post.mk> diff --git a/sysutils/lookupd/files/patch-modules-dns-resolv-getaddrinfo.c b/sysutils/lookupd/files/patch-modules-dns-resolv-getaddrinfo.c new file mode 100644 index 000000000000..5dbc09dd8fc2 --- /dev/null +++ b/sysutils/lookupd/files/patch-modules-dns-resolv-getaddrinfo.c @@ -0,0 +1,18 @@ +--- modules/dns/resolv/getaddrinfo.c.orig Fri Jul 2 15:28:07 2004 ++++ modules/dns/resolv/getaddrinfo.c Wed Aug 10 18:07:12 2005 +@@ -339,6 +339,7 @@ + #define MATCH(x, y, w) \ + ((x) == (y) || (/*CONSTCOND*/(w) && ((x) == ANY || (y) == ANY))) + ++#if __FreeBSD_version < 501000 + char * + gai_strerror(ecode) + int ecode; +@@ -351,6 +352,7 @@ + } + return "Unknown error"; + } ++#endif + + void + freeaddrinfo(ai) diff --git a/sysutils/lookupd/files/patch-modules-dns-resolv-res_send.c b/sysutils/lookupd/files/patch-modules-dns-resolv-res_send.c new file mode 100644 index 000000000000..439505022b0f --- /dev/null +++ b/sysutils/lookupd/files/patch-modules-dns-resolv-res_send.c @@ -0,0 +1,20 @@ +--- modules/dns/resolv/res_send.c.orig Fri Jul 2 15:31:44 2004 ++++ modules/dns/resolv/res_send.c Wed Aug 10 18:09:22 2005 +@@ -201,7 +201,7 @@ + if (_res.options & RES_DEBUG) { + if (getnameinfo(address, address->sa_len, abuf, sizeof(abuf), + pbuf, sizeof(pbuf), +- NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID) != 0) { ++ NI_NUMERICHOST | NI_NUMERICSERV ) != 0) { + strncpy(abuf, "?", sizeof(abuf)); + strncpy(pbuf, "?", sizeof(pbuf)); + } +@@ -475,7 +475,7 @@ + } + Dprint((_res.options & RES_DEBUG) && + getnameinfo(nsap, salen, abuf, sizeof(abuf), +- NULL, 0, NI_NUMERICHOST | NI_WITHSCOPEID) == 0, ++ NULL, 0, NI_NUMERICHOST ) == 0, + (stdout, ";; Querying server (# %d) address = %s\n", + ns + 1, abuf)); + |