diff options
author | Pawel Pekala <pawel@FreeBSD.org> | 2014-04-04 18:52:40 +0000 |
---|---|---|
committer | Pawel Pekala <pawel@FreeBSD.org> | 2014-04-04 18:52:40 +0000 |
commit | 29a315904c2f489c2771dac98f671736a612ddea (patch) | |
tree | 8eff73691d4a34c0843302452c29d1f4a2bf1b9c /dns/dns_balance | |
parent | d9ff0842c4991764b368dc63f4af48ee16daacea (diff) | |
download | ports-29a315904c2f489c2771dac98f671736a612ddea.tar.gz ports-29a315904c2f489c2771dac98f671736a612ddea.zip |
- Add staging support
- Remove leading article from COMMENT
- Don't define ETCDIR, it's done by ports framework
- Define DOCS EXAMPLES options
Notes
Notes:
svn path=/head/; revision=350148
Diffstat (limited to 'dns/dns_balance')
-rw-r--r-- | dns/dns_balance/Makefile | 47 | ||||
-rw-r--r-- | dns/dns_balance/pkg-plist | 20 |
2 files changed, 23 insertions, 44 deletions
diff --git a/dns/dns_balance/Makefile b/dns/dns_balance/Makefile index c7c3043330c6..5df34186a837 100644 --- a/dns/dns_balance/Makefile +++ b/dns/dns_balance/Makefile @@ -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 -.endfor - -# -# Install library files -# - ${MKDIR} ${PREFIX}/lib/${PORTNAME} -.for FILE in ${LIBS} - ${INSTALL_DATA} ${WRKSRC}/${FILE} ${PREFIX}/lib/${PORTNAME}/ + ${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${ETCDIR}/${FILE}.dist .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> diff --git a/dns/dns_balance/pkg-plist b/dns/dns_balance/pkg-plist index dbe1c4fa3136..0af685e0f573 100644 --- a/dns/dns_balance/pkg-plist +++ b/dns/dns_balance/pkg-plist @@ -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%% |