1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00
freebsd-ports/dns/dns_balance/Makefile
Pawel Pekala 29a315904c - Add staging support
- Remove leading article from COMMENT
- Don't define ETCDIR, it's done by ports framework
- Define DOCS EXAMPLES options
2014-04-04 18:52:40 +00:00

57 lines
1.4 KiB
Makefile

# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$
PORTNAME= dns_balance
PORTVERSION= 2.0
CATEGORIES= dns
MASTER_SITES= http://www.netlab.is.tsukuba.ac.jp/~yokota/archive/
DISTNAME= DNS-Balance-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Dynamic load-balancing DNS server
USE_RUBY= yes
USE_RC_SUBR= dns_balance
NO_BUILD= yes
RUBY_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 <bsd.port.mk>