FreeBSD Bugzilla – Attachment 146632 Details for
Bug 193229
Update dns/mDNSResponder_nss to support config file, strip module correctly, etc
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch against current port tree
mDNSResponder_nss_544_1.patch (text/plain), 2.93 KB, created by
Matthieu Volat
on 2014-09-01 18:08:04 UTC
(
hide
)
Description:
Patch against current port tree
Filename:
MIME Type:
Creator:
Matthieu Volat
Created:
2014-09-01 18:08:04 UTC
Size:
2.93 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 366878) >+++ Makefile (working copy) >@@ -1,22 +1,23 @@ > # $FreeBSD$ > >-PORTNAME= mDNSResponder_nss >+PORTNAME= mDNSResponder_nss > PORTVERSION= 544 >-CATEGORIES= dns net >+PORTREVISION= 1 >+CATEGORIES= dns net > MASTER_SITES= http://opensource.apple.com/tarballs/mDNSResponder/ >-DISTNAME= ${PORTNAME:S/_nss//}-${PORTVERSION} >+DISTNAME= ${PORTNAME:S/_nss//}-${PORTVERSION} > >-MAINTAINER= mazhe@alkumuna.eu >-COMMENT= Apple mDNS responder - FreeBSD nsswitch module >+MAINTAINER= mazhe@alkumuna.eu >+COMMENT= Apple mDNS responder - FreeBSD nsswitch module > >-LICENSE= APACHE20 BSD3CLAUSE >-LICENSE_COMB= dual >+LICENSE= APACHE20 BSD3CLAUSE >+LICENSE_COMB= dual > > LIB_DEPENDS= libdns_sd.so:${PORTSDIR}/net/mDNSResponder > >-CONFLICTS_INSTALL= nss_mdns-[0-9]* >+CONFLICTS_INSTALL=nss_mdns-[0-9]* > >-WRKSRC= ${WRKDIR}/${PORTNAME:S/_nss//}-${PORTVERSION} >+WRKSRC= ${WRKDIR}/${PORTNAME:S/_nss//}-${PORTVERSION} > > post-extract: > @${CP} ${FILESDIR}/nss_mdns_freebsd.c ${WRKSRC}/mDNSPosix >@@ -28,6 +29,9 @@ > (cd ${WRKSRC}/mDNSPosix && ${LD} -shared nss_mdns.o nss_mdns_freebsd.o \ > -o nss_mdns.so.1 -L${PREFIX}/lib -R${PREFIX}/lib -ldns_sd) > >+post-build: >+ ${STRIP_CMD} ${WRKSRC}/mDNSPosix/nss_mdns.so.1 >+ > do-install: > ${INSTALL_LIB} ${WRKSRC}/mDNSPosix/nss_mdns.so.1 ${STAGEDIR}${PREFIX}/lib > ${LN} -sf ${PREFIX}/lib/nss_mdns.so.1 ${STAGEDIR}${PREFIX}/lib/nss_mdns.so >@@ -36,6 +40,7 @@ > ${INSTALL_MAN} ${WRKSRC}/mDNSPosix/nss_mdns.conf.5 ${STAGEDIR}${MANPREFIX}/man/man5 > > post-install: >- ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/nss_mdns.so.1 >+ ${INSTALL_DATA} ${WRKSRC}/mDNSPosix/nss_mdns.conf \ >+ ${STAGEDIR}${PREFIX}/etc/nss_mdns.conf.sample > > .include <bsd.port.mk> >Index: files/nss_mdns_freebsd.c >=================================================================== >--- files/nss_mdns_freebsd.c (revision 366878) >+++ files/nss_mdns_freebsd.c (working copy) >@@ -76,14 +76,14 @@ > int *errnop; > int *h_errnop; > >- addr = va_arg(ap, const void *); >- addrlen = va_arg(ap, socklen_t); >- af = va_arg(ap, int); >- hptr = va_arg(ap, struct hostent *); >- buffer = va_arg(ap, char *); >- buflen = va_arg(ap, size_t); >- errnop = va_arg(ap, int *); >- h_errnop = va_arg(ap, int *); >+ addr = va_arg(ap, const void *); >+ addrlen = va_arg(ap, socklen_t); >+ af = va_arg(ap, int); >+ hptr = va_arg(ap, struct hostent *); >+ buffer = va_arg(ap, char *); >+ buflen = va_arg(ap, size_t); >+ errnop = va_arg(ap, int *); >+ h_errnop = va_arg(ap, int *); > > s = _nss_mdns_gethostbyaddr_r( > addr, addrlen, af, hptr, buffer, buflen, errnop, h_errnop); >@@ -110,8 +110,7 @@ > > for (addrp = host.h_addr_list; *addrp; addrp++) { > /* XXX this sucks, but get_ai is not public */ >- if (!inet_ntop(host.h_addrtype, *addrp, >- addrstr, sizeof(addrstr))) >+ if (!inet_ntop(host.h_addrtype, *addrp, addrstr, sizeof(addrstr))) > continue; > hints = *pai; > hints.ai_flags = AI_NUMERICHOST;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 193229
:
146632
|
146812
|
146814
|
146815