PORTNAME= mDNSResponder PORTVERSION= 2200.80.16 CATEGORIES?= net dns MASTER_SITES= https://opensource.apple.com/tarballs/mDNSResponder/ MAINTAINER?= sunpoet@FreeBSD.org COMMENT?= Bonjour (zero-configuration networking) by Apple WWW?= https://developer.apple.com/bonjour/ \ https://github.com/apple-oss-distributions/mDNSResponder LICENSE= APACHE20 BSD3CLAUSE LICENSE_COMB= dual USES= compiler:c11 cpe gmake ALL_TARGET= all dnsextd BUILD_WRKSRC= ${WRKSRC}/mDNSPosix INSTALL_WRKSRC= ${WRKSRC}/mDNSPosix MAKE_ARGS= LDCONFIG=${TRUE} LOCALBASE=${PREFIX} MAN_PATH=${PREFIX}/share/man STRIP=${STRIP_CMD} os=freebsd MAKE_JOBS_UNSAFE= yes USE_LDCONFIG= yes USE_RC_SUBR= mdnsd mdnsresponderposix WRKSRC= ${WRKDIR}/mDNSResponder-mDNSResponder-${PORTVERSION} CPE_VENDOR= apple EXTRA_BIN= mDNSClientPosix mDNSNetMonitor mDNSProxyResponderPosix mDNSResponderPosix EXTRA_MAN1= dns-sd.1 EXTRA_MAN8= dnsextd.8 mDNSResponderPosix.8 EXTRA_SBIN= dnsextd CONFLICTS_INSTALL?= avahi-libdns openmdns # lib/libdns_sd.so.1 sbin/mdnsd OPTIONS_DEFINE= IPV6 post-patch: @${REINPLACE_CMD} -e '/^CFLAGS_DEBUG/ s|-Os|${CFLAGS}|' ${WRKSRC}/mDNSPosix/Makefile @${REINPLACE_CMD} -e 's|\(#define IPV6_2292_PKTINFO \).*|\1IPV6_PKTINFO|; s|\(#define IPV6_2292_HOPLIMIT \).*|\1IPV6_HOPLIMIT|' ${WRKSRC}/mDNSPosix/mDNSUNP.h @${MV} ${WRKSRC}/mDNSShared/mDNSResponder.8 ${WRKSRC}/mDNSShared/mDNSResponderPosix.8 post-patch-IPV6-off: @${REINPLACE_CMD} -e '/^CFLAGS_OS/ s|-DHAVE_IPV6|-UHAVE_IPV6|' ${WRKSRC}/mDNSPosix/Makefile post-install: cd ${WRKSRC}/mDNSPosix/build/prod/ && ${INSTALL_PROGRAM} ${EXTRA_BIN} ${STAGEDIR}${PREFIX}/bin/ cd ${WRKSRC}/mDNSShared/ && ${INSTALL_MAN} ${EXTRA_MAN1} ${STAGEDIR}${PREFIX}/share/man/man1/ cd ${WRKSRC}/mDNSShared/ && ${INSTALL_MAN} ${EXTRA_MAN8} ${STAGEDIR}${PREFIX}/share/man/man8/ cd ${WRKSRC}/mDNSPosix/build/prod/ && ${INSTALL_PROGRAM} ${EXTRA_SBIN} ${STAGEDIR}${PREFIX}/sbin/ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/dns-sd .include