# Created by: Akinori MUSHA aka knu # $FreeBSD: head/dns/dns_balance/Makefile 514793 2019-10-19 12:21:22Z rakuco $ PORTNAME= dns_balance PORTVERSION= 2.1 CATEGORIES= dns MASTER_SITES= https://BSDforge.com/projects/source/dns/dns_balance/ MAINTAINER= portmaster@BSDforge.com COMMENT= Dynamic load-balancing DNS server LICENSE= BSD2CLAUSE USE_RUBY= yes USES= shebangfix tar:xz USE_RC_SUBR= dns_balance NO_BUILD= yes SHEBANG_FILES= ${WRKSRC}/dns_balance.rb \ ${WRKSRC}/sample/makedb.rb \ ${WRKSRC}/sample/make_namespace.rb ETCS= addrdb.rb \ namespace.rb LIBS= as_search.rb \ cache.rb \ datatype.rb \ log_writer.rb \ multilog.rb \ util.rb PLIST_SUB+= ETCDIR=${ETCDIR} SUB_LIST+= RUBY=${RUBY} OPTIONS_DEFINE= DOCS EXAMPLES post-patch: ${SED} -E -e "s,%%PREFIX%%,${PREFIX},g" \ -e "s,%%PORTNAME%%,${PORTNAME},g" \ -e "s,%%ETCDIR%%,${ETCDIR},g" \ ${WRKSRC}/dns_balance.rb > ${WRKSRC}/dns_balance do-install: ${INSTALL_SCRIPT} ${WRKSRC}/dns_balance ${STAGEDIR}${PREFIX}/sbin @${MKDIR} ${STAGEDIR}${ETCDIR} .for FILE in ${ETCS} ${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${ETCDIR}/${FILE}.dist .endfor @${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME} (cd ${WRKSRC} && ${INSTALL_DATA} ${LIBS} \ ${STAGEDIR}${PREFIX}/lib/${PORTNAME}) @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/sample/* ${STAGEDIR}${EXAMPLESDIR} @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README* ${WRKSRC}/Q_and_A* ${STAGEDIR}${DOCSDIR} .include