mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-16 07:58:04 +00:00
4863a47167
Changelog: https://zookeeper.apache.org/doc/r3.6.2/releasenotes.html PR: 250373 Submitted by: Dmitry Wagin <dmitry.wagin@ya.ru> (maintainer) Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D26828
73 lines
1.9 KiB
Makefile
73 lines
1.9 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= zookeeper
|
|
PORTVERSION= 3.6.2
|
|
CATEGORIES= devel java
|
|
MASTER_SITES= APACHE/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
|
DISTNAME= apache-${PORTNAME}-${PORTVERSION}-bin
|
|
|
|
MAINTAINER= dmitry.wagin@ya.ru
|
|
COMMENT= Coordination Service for Distributed Applications
|
|
|
|
LICENSE= APACHE20
|
|
|
|
RUN_DEPENDS= libzookeeper>=${PORTVERSION}:devel/libzookeeper
|
|
|
|
ZOOKEEPER_CONFS?= configuration.xsl log4j.properties zoo.cfg
|
|
ZOOKEEPER_USER?= zookeeper
|
|
ZOOKEEPER_GROUP?= zookeeper
|
|
ZOOKEEPER_DBDIR?= /var/db/zookeeper
|
|
ZOOKEEPER_LOGDIR?= /var/log/zookeeper
|
|
|
|
USERS= ${ZOOKEEPER_USER}
|
|
GROUPS= ${ZOOKEEPER_GROUP}
|
|
|
|
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
|
|
|
|
USE_RC_SUBR= zookeeper
|
|
SUB_FILES= zookeeper zkCli.sh
|
|
SUB_LIST= JAVA=${JAVA} \
|
|
ZOOKEEPER_USER=${ZOOKEEPER_USER} \
|
|
ZOOKEEPER_GROUP=${ZOOKEEPER_GROUP} \
|
|
ZOOKEEPER_LOGDIR=${ZOOKEEPER_LOGDIR}
|
|
|
|
PLIST_SUB+= PORTVERSION=${PORTVERSION} \
|
|
ZOOKEEPER_USER=${ZOOKEEPER_USER} \
|
|
ZOOKEEPER_GROUP=${ZOOKEEPER_GROUP} \
|
|
ZOOKEEPER_DBDIR=${ZOOKEEPER_DBDIR} \
|
|
ZOOKEEPER_LOGDIR=${ZOOKEEPER_LOGDIR}
|
|
|
|
NO_BUILD= yes
|
|
NO_ARCH= yes
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 8+
|
|
JAVA_RUN= yes
|
|
|
|
PORTDOCS= *
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
post-extract:
|
|
@${REINPLACE_CMD} "/dataDir/s|=.*|=${ZOOKEEPER_DBDIR}|" ${WRKDIR}/${DISTNAME}/conf/zoo_sample.cfg
|
|
@${MV} ${WRKDIR}/${DISTNAME}/conf/zoo_sample.cfg ${WRKDIR}/${DISTNAME}/conf/zoo.cfg
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${ETCDIR}
|
|
.for f in ${ZOOKEEPER_CONFS}
|
|
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/conf/${f} ${STAGEDIR}${ETCDIR}/${f}.sample
|
|
.endfor
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
(cd ${WRKSRC}/lib && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} "-name *\.jar")
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/zkCli.sh ${STAGEDIR}${PREFIX}/bin/
|
|
|
|
${MKDIR} ${STAGEDIR}${ZOOKEEPER_LOGDIR}
|
|
${MKDIR} ${STAGEDIR}${ZOOKEEPER_DBDIR}
|
|
|
|
do-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
@(cd ${WRKDIR}/${DISTNAME}/docs && \
|
|
${TAR} -cf - . | ${TAR} -xf - -C ${STAGEDIR}${DOCSDIR})
|
|
|
|
.include <bsd.port.mk>
|