pkgsrc/devel/zookeeper/Makefile
fhajny da2ec9aac6 Update devel/zookeeper to 3.4.10.
zookeeper 3.4.10

Sub-task
- Fix race condition in testWatchAutoResetWithPending

Bug
- CancelledKeyException in zookeeper branch-3.4
- Startup race in ZooKeeperServer
- Documentation copyright notice is out of date.
- NullPointerException when redo Command is passed negative value
- ServerConfig#parse(String[]) ignores tickTime
- Update NOTICE file with Netty notice in 3.4
- Revisit release note doc and remove the items which are not related to
  the released version
- Potential memory leak in recordio.c
- Modify Info.REVISION to adapt git repo
- PurgeTxnLog can inadvertently delete required txn log files
- ZooKeeper server should verify that dataDir and snapDir are writeable
  before starting
- SaslServerCallbackHandler#handleAuthorizeCallback() should log the
  exception
- correct a few spelling typos
- ZooTrace.logQuorumPacket does nothing
- Build failure in contrib/zkfuse with gcc 6.x
- Java target in branch 3.4 doesn't match documentation
- Missing src/pom.template in release
- Fix HierarchicalQuorumTest.java
- Fix compilation error in branch-3.4
- Large databases take a long time to regain a quorum
- Correct DataNode.getChildren() inconsistent behaviour.
- Fix Kerberos Authentication related test cases
- DOS attack on wchp/wchc four letter words (4lw)
- Eclipse ant task no longer determines correct classpath for tests
  after ZOOKEEPER-2689
- checkstyle broken on branch-3.4
- Regenerate documentation for branch-3.4 release
- MiniKdc test case intermittently failing due to principal not found in
  Kerberos database
- Patch for ZOOKEEPER-2693 introduces potential race condition

Improvement
- Add 'electionTimeTaken' value in LeaderMXBean and FollowerMXBean
- C unit test improvement: line break between 'ZooKeeper server started'
  and 'Running'
- Update gitignore to account for other file extensions
- Use TLS for downloading artifacts during build
- Add comments to testReadOnlySnapshotDir and testReadOnlyTxnLogDir
  indicating that the tests will fail when run as root
- Remove CHANGE.txt
- Make it optional to fail build on test failure

New Feature
- Support Quorum Peer mutual authentication via SASL

Test
- Flaky Test:
  org.apache.zookeeper.server.quorum.CnxManagerTest.testCnxFromFutureVersion
- Test Improvement by adding more QuorumPeer Auth related test cases
- Fix ServerConfigTest#testValidArguments test case failures
- ClientPortBindTest#testBindByAddress may fail due to "No such device"
  exception
- Port QA github pull request build to branch 3.4 and 3.5
- Flaky Test:
  org.apache.zookeeper.server.SessionTrackerTest.testAddSessionAfterSessionExpiry



zookeeper 3.4.9

Sub-task
- Login object in ZooKeeperSaslClient is static

Bug
- C client zookeeper_interest returning ZOK on Connection Loss
- zkperl: Segmentation fault if getting a node with null value
- ACL cache in DataTree never removes entries
- fsync.warningthresholdms in zoo.cfg not working
- Supported platforms is completely out of date
- Zookeeper service becomes unavailable when leader fails to write
  transaction log
- traceFile property is not used in the ZooKeeper, it should be removed
  from documentation
- Ant target generate-clover-reports is broken
- Prevent multiple initialization of login object in each
  ZooKeeperSaslClient instance
- recent commit broke findbugs qabot check
- Zookeeper trunk build is failing on windows
- getTGT() in Login.java mishandles confidential information
- Upgrade Netty version due to security vulnerability (CVE-2014-3488)
- Back-port ZOOKEEPER-1460 to 3.4 for IPv6 literal address support.
- documentation should refer to Java cli shell and not C cli shell
- Potential resource leak in C client when processing unexpected / out
  of order response

Improvement
- Make the three-node minimum more explicit in documentation and on
  website
- Licenses section missing from pom file
- upgrade ivy to recent version
- Simplify releasenotes creation for 3.4 branch - consistent with newer
  branches.
2017-09-06 11:12:19 +00:00

86 lines
3 KiB
Makefile

# $NetBSD: Makefile,v 1.5 2017/09/06 11:12:19 fhajny Exp $
#
.include "Makefile.common"
COMMENT= Highly reliable distributed coordination server
DISTFILES= ${DEFAULT_DISTFILES} ${DISTNAME}-deps.tar.gz
SITES.${DISTNAME}-deps.tar.gz= ftp://ftp.NetBSD.org/pub/NetBSD/misc/fhajny/
BUILD_DEPENDS+= apache-ant-[0-9]*:../../devel/apache-ant
BUILD_DEPENDS+= apache-ivy>=2.2.0:../../devel/apache-ivy
USE_JAVA= yes
USE_JAVA2= yes
USE_TOOLS+= bash:run pax
PKG_SYSCONFSUBDIR= zookeeper
.include "../../mk/bsd.prefs.mk"
ZK_DB?= ${VARBASE}/db/zookeeper
ZK_LOG?= ${VARBASE}/log/zookeeper
ZK_RUN?= ${VARBASE}/run/zookeeper
ZK_USER?= zookeeper
ZK_GROUP?= zookeeper
BUILD_DEFS+= VARBASE ZK_DB ZK_LOG ZK_RUN ZK_USER ZK_GROUP
PKG_GROUPS+= ${ZK_GROUP}
PKG_USERS+= ${ZK_USER}:${ZK_GROUP}
PKG_GECOS.${ZK_USER}= ZooKeeper Daemon User
PKG_HOME.${ZK_USER}= ${PREFIX}/share/zookeeper
PKG_SHELL.${ZK_USER}= ${BASH}
OWN_DIRS_PERMS+= ${ZK_DB} ${ZK_USER} ${ZK_GROUP} 755
OWN_DIRS_PERMS+= ${ZK_DB}/data ${ZK_USER} ${ZK_GROUP} 755
OWN_DIRS_PERMS+= ${ZK_LOG} ${ZK_USER} ${ZK_GROUP} 755
OWN_DIRS_PERMS+= ${ZK_RUN} ${ZK_USER} ${ZK_GROUP} 755
BUILDDIR= ${WRKSRC}/build/${DISTNAME}
EGDIR= share/examples/zookeeper
SUBST_CLASSES+= paths
SUBST_STAGE.paths= post-patch
SUBST_MESSAGE.paths= Fixing ZooKeeper default paths
SUBST_FILES.paths= conf/zoo_sample.cfg
SUBST_FILES.paths+= src/packages/templates/conf/zookeeper-env.sh
SUBST_VARS.paths+= PKG_JAVA_HOME ZK_DB ZK_LOG ZK_RUN
REPLACE_BASH= bin/zkCli.sh bin/zkEnv.sh bin/zkServer.sh
INSTALLATION_DIRS+= bin libexec sbin share/zookeeper ${EGDIR}
CONF_FILES+= ${EGDIR}/configuration.xsl ${PKG_SYSCONFDIR}/configuration.xsl
CONF_FILES+= ${EGDIR}/log4j.properties ${PKG_SYSCONFDIR}/log4j.properties
CONF_FILES+= ${EGDIR}/zoo.cfg ${PKG_SYSCONFDIR}/zoo.cfg
CONF_FILES_PERMS+= ${EGDIR}/zookeeper-env.sh ${PKG_SYSCONFDIR}/zookeeper-env.sh \
${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0755
FILES_SUBST+= ZK_USER=${ZK_USER} ZK_GROUP=${ZK_GROUP}
ANT_ARGS+= -Duser.home=${FAKEHOMEDIR} -Divy.home=${WRKDIR}/ivy
ANT_TARGET= bin-package
post-extract:
${LN} -s ${PREFIX}/lib/java/ant/ivy-*.jar ${WRKSRC}/src/java/lib/ivy-0.0.0.jar
do-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ant ${ANT_ARGS} ${ANT_TARGET}
do-install:
${INSTALL_SCRIPT} ${BUILDDIR}/bin/zkCli.sh ${DESTDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${BUILDDIR}/libexec/zkEnv.sh ${DESTDIR}${PREFIX}/libexec
${INSTALL_SCRIPT} ${BUILDDIR}/sbin/zkServer.sh ${DESTDIR}${PREFIX}/sbin
${INSTALL_DATA} ${BUILDDIR}/conf/configuration.xsl ${DESTDIR}${PREFIX}/${EGDIR}
${INSTALL_DATA} ${BUILDDIR}/conf/log4j.properties ${DESTDIR}${PREFIX}/${EGDIR}
${INSTALL_DATA} ${BUILDDIR}/conf/zoo_sample.cfg ${DESTDIR}${PREFIX}/${EGDIR}/zoo.cfg
${INSTALL_DATA} ${BUILDDIR}/share/zookeeper/templates/conf/zookeeper-env.sh \
${DESTDIR}${PREFIX}/${EGDIR}/zookeeper-env.sh
cd ${BUILDDIR}/share/zookeeper && ${PAX} -rw -pp * ${DESTDIR}${PREFIX}/share/zookeeper/
${RM} -f ${DESTDIR}${PREFIX}/share/zookeeper/templates/conf/zookeeper-env.sh.orig
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"