de5e3b65d9
Changelog:
https://github.com/haesbaert/mdnsd/releases/tag/0.8
https://github.com/haesbaert/mdnsd/releases/tag/0.9
Major changes:
* Move mdnsl into a static libmdns library
* Silently ignore T_NULL RR records generated by legacy Airdrop on macOS
* Update rr_type_name to produce "NULL" as the name of type T_NULL(10)
* Allow us to reflect PTR packets between two interfaces/networks in the daemon.
* Fix RR leaks from cache_process()
Port changes:
* Reorder Makefile to make portlint happy
* Take port maintenership
54 lines
1.2 KiB
Makefile
54 lines
1.2 KiB
Makefile
PORTNAME= openmdns
|
|
DISTVERSION= 0.9
|
|
CATEGORIES= net
|
|
|
|
MAINTAINER= rodrigo@FreeBSD.org
|
|
COMMENT= Multicast DNS and Service Discovery daemon
|
|
WWW= http://www.haesbaert.org/openmdns/
|
|
|
|
LICENSE= ISCL
|
|
|
|
USES= localbase uidfix
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= haesbaert
|
|
GH_PROJECT= mdnsd
|
|
|
|
USE_RC_SUBR= mdnsd
|
|
MAKE_ARGS= BINDIR="${PREFIX}/sbin" \
|
|
MANDIR="${PREFIX}/share/man/man"
|
|
MAKE_ENV= LDADD="${LIBS}"
|
|
CFLAGS+= -D__dead=__dead2
|
|
LDFLAGS+= -Wl,--as-needed # -lutil
|
|
LIBS+= -lopenbsd
|
|
|
|
CONFLICTS_INSTALL= mDNSResponder # sbin/mdnsd
|
|
|
|
SUB_LIST= COMMENT="${COMMENT}"
|
|
|
|
USERS= _mdnsd
|
|
GROUPS= _mdnsd
|
|
|
|
PLIST_FILES= sbin/mdnsctl \
|
|
sbin/mdnsd \
|
|
share/man/man8/mdnsctl.8.gz \
|
|
share/man/man8/mdnsd.8.gz
|
|
PORTDOCS= *
|
|
|
|
OPTIONS_DEFINE= DOCS STATIC
|
|
|
|
STATIC_BUILD_DEPENDS= ${LOCALBASE}/lib/libevent.a:devel/libevent \
|
|
${LOCALBASE}/lib/libopenbsd.a:devel/libopenbsd
|
|
STATIC_LIB_DEPENDS_OFF= libevent.so:devel/libevent \
|
|
libopenbsd.so:devel/libopenbsd
|
|
STATIC_MAKE_ENV= NO_SHARED=1
|
|
|
|
post-patch:
|
|
# warning: duplicate script for target "maninstall" ignored
|
|
@${REINPLACE_CMD} '/bsd\.man\.mk/d' ${WRKSRC}/*/Makefile
|
|
|
|
post-install-DOCS-on:
|
|
(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
|
|
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|