diff options
Diffstat (limited to 'devel/zookeeper/Makefile')
-rw-r--r-- | devel/zookeeper/Makefile | 99 |
1 files changed, 22 insertions, 77 deletions
diff --git a/devel/zookeeper/Makefile b/devel/zookeeper/Makefile index 10f47257e408..c0cfdc7e283d 100644 --- a/devel/zookeeper/Makefile +++ b/devel/zookeeper/Makefile @@ -2,22 +2,18 @@ # $FreeBSD$ PORTNAME= zookeeper -PORTVERSION= 3.3.6 +PORTVERSION= 3.4.6 CATEGORIES= devel java MASTER_SITES= ${MASTER_SITE_APACHE} MASTER_SITE_SUBDIR= zookeeper/zookeeper-${PORTVERSION} MAINTAINER= skreuzer@FreeBSD.org -COMMENT= A Coordination Service for Distributed Applications +COMMENT= Service for maintaining distributed configuration, naming and locks LICENSE= APACHE20 LIB_DEPENDS= libcppunit.so:${PORTSDIR}/devel/cppunit -RUN_DEPENDS:= ${BUILD_DEPENDS} - -OPTIONS_DEFINE= C PYTHON -C_DESC= Build C library bindings and command line tool -OPTIONS_DEFAULT= C PYTHON DOC +RUN_DEPENDS= bash:${PORTSDIR}/shells/bash USE_JAVA= yes JAVA_VERSION= 1.7 @@ -26,14 +22,11 @@ JAVA_RUN= yes USE_RC_SUBR= zookeeper -ZOOKEEPER_LOGDIR= /var/log/${PORTNAME} -ZOOKEEPER_RUNDIR= /var/run/${PORTNAME} - -PYTHON_BINDING_WRKSRC= ${WRKSRC}/src/contrib/zkpython -PYDISTUTILS_PKGNAME= ZooKeeper -PYDISTUTILS_PKGVERSION= 0.4 +OPTIONS_DEFINE= DOC +DOC_DESC= Install documentation +OPTIONS_DEFAULT= DOC -CONFIGURE_WRKSRC= ${WRKSRC}/src/c +NO_BUILD= yes SCRIPTS= zkCleanup.sh \ zkCli.sh \ @@ -41,76 +34,28 @@ SCRIPTS= zkCleanup.sh \ zkServer.sh PORTDOCS= * -PLIST_SUB= PORTVERSION=${PORTVERSION} -SUB_LIST= ZOOKEEPER_LOGDIR=${ZOOKEEPER_LOGDIR} \ - ZOOKEEPER_RUNDIR=${ZOOKEEPER_RUNDIR} - -NO_STAGE= yes -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MPYTHON} -USE_PYTHON= 2 -BUILD_DEPENDS+= ant:${PORTSDIR}/devel/apache-ant -PLIST_SUB+= WITH_PYTHON="" -.else -PLIST_SUB+= WITH_PYTHON="@comment " -.endif - -.if ${PORT_OPTIONS:MC} -USE_AUTOTOOLS= automake autoconf libtool -USE_LDCONFIG= yes -PLIST_SUB+= WITH_C="" -.else -PLIST_SUB+= WITH_C="@comment " -.endif +PLIST_SUB= PORTNAME=${PORTNAME} \ + PORTVERSION=${PORTVERSION} \ + RESETPREFIX=${PREFIX} .include <bsd.port.pre.mk> -.if ${PORT_OPTIONS:MC} -#run-autotools: run-autotools-autoreconf - -#run-autotools-autoreconf: -run-autotools: - @cd ${CONFIGURE_WRKSRC} && \ - ${SETENV} ${AUTOTOOLS_ENV} ${AUTORECONF} -if -.endif - -post-patch: - @${REINPLACE_CMD} -e 's|executable="python"|executable="${PYTHON_CMD}"|' \ - ${PYTHON_BINDING_WRKSRC}/build.xml - -do-build: -.if ${PORT_OPTIONS:MC} - cd ${CONFIGURE_WRKSRC} && \ - ${MAKE} -.endif -.if ${PORT_OPTIONS:MPYTHON} - cd ${PYTHON_BINDING_WRKSRC} && \ - ant compile -.endif - do-install: - ${MKDIR} ${PREFIX}/${PORTNAME} - ${MKDIR} ${PREFIX}/${PORTNAME}/bin - ${MKDIR} ${ZOOKEEPER_LOGDIR} - ${MKDIR} ${ZOOKEEPER_RUNDIR} + ${MKDIR} ${STAGEDIR}${PREFIX}/${PORTNAME} + ${MKDIR} ${STAGEDIR}${PREFIX}/${PORTNAME}/bin .for f in ${SCRIPTS} - ${INSTALL_SCRIPT} ${WRKSRC}/bin/${f} ${PREFIX}/${PORTNAME}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/bin/${f} ${STAGEDIR}${PREFIX}/${PORTNAME}/bin .endfor - cd ${WRKSRC} && ${COPYTREE_SHARE} conf ${PREFIX}/${PORTNAME}/ - cd ${WRKSRC} && ${COPYTREE_SHARE} lib ${PREFIX}/${PORTNAME}/ - ${INSTALL_DATA} ${WRKSRC}/*.jar ${PREFIX}/${PORTNAME} -.if ${PORT_OPTIONS:MC} - cd ${CONFIGURE_WRKSRC} && \ - ${MAKE} install -.endif -.if ${PORT_OPTIONS:MPYTHON} - cd ${PYTHON_BINDING_WRKSRC} && \ - ant install -.endif + cd ${WRKSRC} && ${COPYTREE_SHARE} conf ${STAGEDIR}${PREFIX}/${PORTNAME}/ + cd ${WRKSRC} && ${COPYTREE_SHARE} lib ${STAGEDIR}${PREFIX}/${PORTNAME}/ + ${INSTALL_DATA} ${WRKSRC}/*.jar ${STAGEDIR}${PREFIX}/${PORTNAME} + +post-install: .if ${PORT_OPTIONS:MDOC} - ${MKDIR} ${DOCSDIR} - cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${DOCSDIR} + ${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} .endif + @${MKDIR} ${STAGEDIR}/var/log/${PORTNAME} + @${MKDIR} ${STAGEDIR}/var/run/${PORTNAME} .include <bsd.port.post.mk> |