blob: b3395720b667221dc7e46d9c1febd8d5a47ed767 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
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
WWW= https://www.netlab.cs.tsukuba.ac.jp/~yokota/izumi/dns_balance/
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 <bsd.port.mk>
|