- Fix link pointing to STAGEDIR after install, this fixes runtime error:
/jline.jar:/usr/local/share/java/classes/zookeeper.jar: org.apache.zookeeper.server.quorum.QuorumPeerMain /usr/local/etc/zookeeper/zoo.cfg"' Error: Could not find or load main class org.apache.zookeeper.server.quorum.QuorumPeerMain - Add NO_ARCH - There's no need to include bsd.port.pre.mk - Use options helper - Remove deprecated @dirrmtry from pkg-plist PR: 206739 Submitted by: myself Approved by: maintainer MFH: 2016Q1
This commit is contained in:
parent
446cdc5a70
commit
608e3ae09e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=407552
2 changed files with 6 additions and 7 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
PORTNAME= zookeeper
|
||||
PORTVERSION= 3.4.7
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= devel java
|
||||
MASTER_SITES= ${MASTER_SITE_APACHE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}/current
|
||||
|
@ -37,6 +38,7 @@ PLIST_SUB+= PORTVERSION=${PORTVERSION} \
|
|||
JAVALIBDIR=${JAVALIBDIR}
|
||||
|
||||
NO_BUILD= yes
|
||||
NO_ARCH= yes
|
||||
USE_JAVA= yes
|
||||
JAVA_VERSION= 1.7
|
||||
JAVA_VENDOR= openjdk
|
||||
|
@ -45,8 +47,6 @@ USE_RC_SUBR= zookeeper
|
|||
|
||||
PORTDOCS= *
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
post-extract:
|
||||
@${REINPLACE_CMD} "/dataDir/s|=.*|=${ZOOKEEPER_DBDIR}|" ${WRKDIR}/${DISTNAME}/conf/zoo_sample.cfg
|
||||
@${RM} ${WRKDIR}/${DISTNAME}/conf/zoo_sample.cfg.bak
|
||||
|
@ -54,7 +54,8 @@ post-extract:
|
|||
do-install:
|
||||
${CP} -Rp ${WRKDIR}/${DISTNAME}/conf/ ${STAGEDIR}${ETCDIR}
|
||||
${INSTALL_DATA} ${ZOOKEEPER_JAR} ${STAGEDIR}${JAVALIBDIR}
|
||||
${LN} -nfs ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
|
||||
(cd ${STAGEDIR}/${JAVAJARDIR} && ${LN} -nfs \
|
||||
${PORTNAME}-${PORTVERSION}.jar ${PORTNAME}.jar)
|
||||
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/zkCli.sh ${STAGEDIR}${PREFIX}/bin/
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/zkServer.sh ${STAGEDIR}${PREFIX}/bin/
|
||||
|
@ -62,10 +63,9 @@ do-install:
|
|||
${MKDIR} ${STAGEDIR}${ZOOKEEPER_LOGDIR}
|
||||
${MKDIR} ${STAGEDIR}${ZOOKEEPER_DBDIR}
|
||||
|
||||
.if (PORT_OPTIONS:MDOCS)
|
||||
do-install-DOCS-on:
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
@(cd ${WRKDIR}/${DISTNAME}/docs && \
|
||||
${TAR} -cf - . | ${TAR} -xf - -C ${STAGEDIR}${DOCSDIR})
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -5,6 +5,5 @@ bin/zkServer.sh
|
|||
%%ETCDIR%%/log4j.properties
|
||||
%%ETCDIR%%/configuration.xsl
|
||||
%%ETCDIR%%/zoo_sample.cfg
|
||||
@dirrmtry %%ETCDIR%%
|
||||
@dir(zookeeper,zookeeper,755) %%ZOOKEEPER_LOGDIR%%
|
||||
@dir(zookeeper,zookeeper,755) %%ZOOKEEPER_DBDIR%%
|
||||
|
|
Loading…
Reference in a new issue