diff options
Diffstat (limited to 'system/zookeeper')
-rw-r--r-- | system/zookeeper/README | 4 | ||||
-rw-r--r-- | system/zookeeper/zookeeper.SlackBuild | 18 | ||||
-rw-r--r-- | system/zookeeper/zookeeper.info | 4 |
3 files changed, 18 insertions, 8 deletions
diff --git a/system/zookeeper/README b/system/zookeeper/README index ed9fb00d94..d1763b0ead 100644 --- a/system/zookeeper/README +++ b/system/zookeeper/README @@ -1,6 +1,6 @@ ZooKeeper is a centralized service for maintaining configuration -information, naming, providing distributed synchronization, and providing -group services. +information, naming, providing distributed synchronization, and +providing group services. All of these kinds of services are used in some form or another by distributed applications. Each time they are implemented there is a diff --git a/system/zookeeper/zookeeper.SlackBuild b/system/zookeeper/zookeeper.SlackBuild index 97cd5e2af4..ee370b0736 100644 --- a/system/zookeeper/zookeeper.SlackBuild +++ b/system/zookeeper/zookeeper.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for Apache Zookeeper @@ -22,10 +22,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=zookeeper VERSION=${VERSION:-3.4.10} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} ZOOKEEPER_USER=${ZOOKEEPER_USER:-zookeeper} ZOOKEEPER_UID=${ZOOKEEPER_UID:-322} @@ -34,7 +37,7 @@ ZOOKEEPER_GID=${ZOOKEEPER_GID:-322} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -58,7 +61,14 @@ elif ! grep -q "^$ZOOKEEPER_GROUP:" /etc/group; then bailout fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -137,4 +147,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/system/zookeeper/zookeeper.info b/system/zookeeper/zookeeper.info index c542fd647b..d7b9659009 100644 --- a/system/zookeeper/zookeeper.info +++ b/system/zookeeper/zookeeper.info @@ -1,10 +1,10 @@ PRGNAM="zookeeper" VERSION="3.4.10" HOMEPAGE="https://zookeeper.apache.org/" -DOWNLOAD="http://www.us.apache.org/dist/zookeeper/zookeeper-3.4.10/zookeeper-3.4.10.tar.gz" +DOWNLOAD="https://archive.apache.org/dist/zookeeper/zookeeper-3.4.10/zookeeper-3.4.10.tar.gz" MD5SUM="e4cf1b1593ca870bf1c7a75188f09678" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="jdk" +REQUIRES="zulu-openjdk8" MAINTAINER="Andre Barboza" EMAIL="bmg.andre@gmail.com" |