mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- Add staging support
- Remove leading article from COMMENT - Don't define ETCDIR, it's done by ports framework - Define DOCS EXAMPLES options
This commit is contained in:
parent
d9ff0842c4
commit
29a315904c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=350148
@ -8,7 +8,7 @@ MASTER_SITES= http://www.netlab.is.tsukuba.ac.jp/~yokota/archive/
|
||||
DISTNAME= DNS-Balance-${PORTVERSION}
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= A dynamic load-balancing DNS server
|
||||
COMMENT= Dynamic load-balancing DNS server
|
||||
|
||||
USE_RUBY= yes
|
||||
USE_RC_SUBR= dns_balance
|
||||
@ -21,7 +21,6 @@ RUBY_SHEBANG_FILES= ${WRKSRC}/dns_balance.rb \
|
||||
|
||||
ETCS= addrdb.rb \
|
||||
namespace.rb
|
||||
ETCDIR= ${PREFIX}/etc/${PORTNAME}
|
||||
LIBS= as_search.rb \
|
||||
cache.rb \
|
||||
datatype.rb \
|
||||
@ -32,7 +31,8 @@ LIBS= as_search.rb \
|
||||
PLIST_SUB+= ETCDIR=${ETCDIR}
|
||||
SUB_LIST+= RUBY=${RUBY}
|
||||
|
||||
NO_STAGE= yes
|
||||
OPTIONS_DEFINE= DOCS EXAMPLES
|
||||
|
||||
post-patch:
|
||||
${SED} -E -e "s,%%PREFIX%%,${PREFIX},g" \
|
||||
-e "s,%%PORTNAME%%,${PORTNAME},g" \
|
||||
@ -40,38 +40,17 @@ post-patch:
|
||||
${WRKSRC}/dns_balance.rb > ${WRKSRC}/dns_balance
|
||||
|
||||
do-install:
|
||||
#
|
||||
# Install main executable
|
||||
#
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/dns_balance ${PREFIX}/sbin/
|
||||
#
|
||||
# Install sample configuration files
|
||||
#
|
||||
${MKDIR} ${PREFIX}/etc/${PORTNAME}
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/dns_balance ${STAGEDIR}${PREFIX}/sbin
|
||||
@${MKDIR} ${STAGEDIR}${ETCDIR}
|
||||
.for FILE in ${ETCS}
|
||||
${INSTALL_DATA} ${WRKSRC}/${FILE} ${ETCDIR}/${FILE}.dist
|
||||
. if !exists(${ETCDIR}/${FILE})
|
||||
${INSTALL_DATA} ${WRKSRC}/${FILE} ${ETCDIR}/${FILE}
|
||||
. endif
|
||||
${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${ETCDIR}/${FILE}.dist
|
||||
.endfor
|
||||
|
||||
#
|
||||
# Install library files
|
||||
#
|
||||
${MKDIR} ${PREFIX}/lib/${PORTNAME}
|
||||
.for FILE in ${LIBS}
|
||||
${INSTALL_DATA} ${WRKSRC}/${FILE} ${PREFIX}/lib/${PORTNAME}/
|
||||
.endfor
|
||||
|
||||
#
|
||||
# Install port's documentation
|
||||
#
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${EXAMPLESDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/sample/* ${EXAMPLESDIR}
|
||||
|
||||
${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README* ${WRKSRC}/Q_and_A* ${DOCSDIR}
|
||||
.endif
|
||||
@${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>
|
||||
|
@ -20,13 +20,13 @@ lib/dns_balance/util.rb
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README.dnsbalance+daemontools
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README.dnsbalance+daemontools.eng
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/addr
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/addr.ring
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/addr.ring.txt
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/make_namespace.rb
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/makedb.rb
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/makeringdb.rb
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/namespace.rb
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/namespace.txt
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/ringupdate.sh
|
||||
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/addr
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/addr.ring
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/addr.ring.txt
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/make_namespace.rb
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/makedb.rb
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/makeringdb.rb
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/namespace.rb
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/namespace.txt
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ringupdate.sh
|
||||
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
|
||||
|
Loading…
Reference in New Issue
Block a user