freebsd-ports/dns/nss_mdns/Makefile
Stefan Eßer 5933ac0b09 */*: Remove redundant '-[0-9]*' from CONFLICTS_INSTALL
The conflict checks compare the patterns first against the package
names without version (as reported by "pkg query "%n"), then - if
there was no match - agsinst the full package names including the
version (as reported by "pkg query "%n-%v").

Approved by: portmgr (blanket)
2021-11-23 23:11:40 +01:00

51 lines
1.2 KiB
Makefile

# Created by: Bruce M. Simpson <bms@FreeBSD.org>
PORTNAME= nss_mdns
PORTVERSION= 0.14.1.20200624
CATEGORIES= dns
MAINTAINER= ashish@FreeBSD.org
COMMENT= NSS module implementing multicast DNS name resolution
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libavahi-client.so:net/avahi-app
USES= autoreconf gmake libtool pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= lathiat
GH_PROJECT= nss-mdns
GH_TAGNAME= 99c2f1c
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --localstatedir=/var \
--sysconfdir=/etc
INSTALL_TARGET= install-strip
CONFLICTS_INSTALL= mDNSResponder_nss
# TODO: Print a message about the etc directory used for mdns.allow
# being relative to ${PREFIX}.
PLIST_FILES= ${INSTALLED_MODULES:C/^/lib\//:C/$/.so.1/} \
${INSTALLED_MODULES:C/^/lib\//:C/$/.so/}
PORTDOCS= README.md
OPTIONS_DEFINE= DOCS
INSTALLED_MODULES= nss_mdns nss_mdns_minimal \
nss_mdns4 nss_mdns4_minimal \
nss_mdns6 nss_mdns6_minimal
post-install:
.for INSTALLED_MODULE in ${INSTALLED_MODULES}
${LN} -s ${INSTALLED_MODULE}.so.1 ${STAGEDIR}${PREFIX}/lib/${INSTALLED_MODULE}.so
.endfor
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}/
${INSTALL_DATA} ${INSTALL_WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>