diff options
author | Dave Woodfall <dave@slackbuilds.org> | 2022-02-28 07:00:17 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-03-01 19:35:38 +0700 |
commit | 2d2427195c9cdbeb9a713632909d610894e3ba36 (patch) | |
tree | b72f3989c014ee594275dc50af5d212b793288cb | |
parent | 59677cfd76fecb1c323dcd37d320bdc87118f588 (diff) | |
download | slackbuilds-2d2427195c9cdbeb9a713632909d610894e3ba36.tar.gz |
network/etcd: Removed.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | network/etcd/README | 16 | ||||
-rw-r--r-- | network/etcd/README.SBo | 16 | ||||
-rw-r--r-- | network/etcd/doinst.sh | 27 | ||||
-rw-r--r-- | network/etcd/etcd.SlackBuild | 116 | ||||
-rw-r--r-- | network/etcd/etcd.info | 10 | ||||
-rw-r--r-- | network/etcd/etcd.logrotate | 7 | ||||
-rw-r--r-- | network/etcd/rc.etcd | 37 | ||||
-rw-r--r-- | network/etcd/slack-desc | 19 |
8 files changed, 0 insertions, 248 deletions
diff --git a/network/etcd/README b/network/etcd/README deleted file mode 100644 index 17acd9492d..0000000000 --- a/network/etcd/README +++ /dev/null @@ -1,16 +0,0 @@ -Etcd is a distributed reliable key-value store for the most critical -data of a distributed system, with a focus on being: - Simple: well-defined, user-facing API (gRPC) - Secure: automatic TLS with optional client cert authentication - Fast: benchmarked 10,000 writes/sec - Reliable: properly distributed using Raft - -Groupname and Username - -You must have the 'etcd' group and user to run this script, -for example: - - groupadd -g 355 etcd - useradd -d /var/lib/etcd -s /bin/sh -u 355 -g etcd etcd - -For some basic setup instructions, check the included 'README.SBo'. diff --git a/network/etcd/README.SBo b/network/etcd/README.SBo deleted file mode 100644 index 0f12c4c51e..0000000000 --- a/network/etcd/README.SBo +++ /dev/null @@ -1,16 +0,0 @@ -README.SBo -========== - -To start etcd automatically at system startup, add the following to -your /etc/rc.d/rc.local: - - if [ -x /etc/rc.d/rc.etcd ]; then - /etc/rc.d/rc.etcd start - fi - -To stop etcd automatically at system shutdown, add the following to -your /etc/rc.d/rc.local_shutdown: - - if [ -x /etc/rc.d/rc.etcd ]; then - /etc/rc.d/rc.etcd stop - fi diff --git a/network/etcd/doinst.sh b/network/etcd/doinst.sh deleted file mode 100644 index 45b0c62dd7..0000000000 --- a/network/etcd/doinst.sh +++ /dev/null @@ -1,27 +0,0 @@ -config() { - NEW="$1" - OLD="$(dirname $NEW)/$(basename $NEW .new)" - # If there's no config file by that name, mv it over: - if [ ! -r $OLD ]; then - mv $NEW $OLD - elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then - # toss the redundant copy - rm $NEW - fi - # Otherwise, we leave the .new copy for the admin to consider... -} - -preserve_perms() { - NEW="$1" - OLD="$(dirname $NEW)/$(basename $NEW .new)" - if [ -e $OLD ]; then - cp -a $OLD ${NEW}.incoming - cat $NEW > ${NEW}.incoming - mv ${NEW}.incoming $NEW - fi - config $NEW -} - -preserve_perms etc/rc.d/rc.etcd.new -config etc/etcd/etcd.conf.yml.new -config etc/logrotate.d/etcd.new diff --git a/network/etcd/etcd.SlackBuild b/network/etcd/etcd.SlackBuild deleted file mode 100644 index 51486d3dc3..0000000000 --- a/network/etcd/etcd.SlackBuild +++ /dev/null @@ -1,116 +0,0 @@ -#!/bin/bash - -# Slackware build script for etcd - -# Copyright 2018-2019 Thibaut Notteboom, Paris, FRANCE -# All rights reserved. -# -# Redistribution and use of this script, with or without modification, is -# permitted provided that the following conditions are met: -# -# 1. Redistributions of this script must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# 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=etcd -VERSION=${VERSION:-3.3.13} -BUILD=${BUILD:-1} -TAG=${TAG:-_SBo} -PKGTYPE=${PKGTYPE:-tgz} - -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i586 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac -fi - -# 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} - -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - -set -e - -if [ "$(grep ^etcd /etc/passwd)" = "" -o "$(grep ^etcd /etc/group)" = "" ] ; then - printf "\nYou must have a etcd user and group.\n\nExample:\n" - printf "\t# groupadd -g 355 etcd\n" - printf "\t# useradd -d /var/lib/etcd -s /bin/sh -u 355 -g etcd etcd\n\n" - exit 1 -fi - -rm -rf $PKG -mkdir -p $TMP $PKG $OUTPUT -cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION -chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; - -./build - -install -Dm755 bin/etcd $PKG/usr/bin/etcd -install -Dm755 bin/etcdctl $PKG/usr/bin/etcdctl - -install -Dm644 etcd.conf.yml.sample $PKG/etc/etcd/etcd.conf.yml.new -install -Dm644 $CWD/rc.etcd $PKG/etc/rc.d/rc.etcd.new -install -Dm644 $CWD/etcd.logrotate $PKG/etc/logrotate.d/etcd.new - -install -o etcd -g etcd -d $PKG/var/lib/etcd -install -o etcd -g etcd -d $PKG/var/log/etcd - -find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - LICENSE Documentation/* \ - $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -cat $CWD/README.SBo > $PKG/usr/doc/$PRGNAM-$VERSION/README.SBo - -mkdir -p $PKG/install -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 diff --git a/network/etcd/etcd.info b/network/etcd/etcd.info deleted file mode 100644 index 1842125887..0000000000 --- a/network/etcd/etcd.info +++ /dev/null @@ -1,10 +0,0 @@ -PRGNAM="etcd" -VERSION="3.3.13" -HOMEPAGE="https://github.com/coreos/etcd" -DOWNLOAD="https://github.com/coreos/etcd/archive/v3.3.13/etcd-3.3.13.tar.gz" -MD5SUM="07ef1b925ddc49ed96c5a8a9f2c7bb01" -DOWNLOAD_x86_64="" -MD5SUM_x86_64="" -REQUIRES="google-go-lang" -MAINTAINER="Thibaut Notteboom" -EMAIL="thibaut.notteboom@gmail.com" diff --git a/network/etcd/etcd.logrotate b/network/etcd/etcd.logrotate deleted file mode 100644 index 225b3a9e2d..0000000000 --- a/network/etcd/etcd.logrotate +++ /dev/null @@ -1,7 +0,0 @@ -/var/log/etcd/etcd.log { - copytruncate - daily - rotate 7 - compress - missingok -} diff --git a/network/etcd/rc.etcd b/network/etcd/rc.etcd deleted file mode 100644 index abd95ede02..0000000000 --- a/network/etcd/rc.etcd +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/sh - -ETCD_USER=etcd -ETCD_BIN=/usr/bin/etcd -ETCD_LOG_FILE=/var/log/etcd/etcd.log -ETCD_CONFIG_FILE=/etc/etcd/etcd.conf.yml - -etcd_start() { - echo "Starting the etcd service: $ETCD_BIN" - su - $ETCD_USER -c "$ETCD_BIN --config-file $ETCD_CONFIG_FILE >> $ETCD_LOG_FILE 2>&1 &" -} - -etcd_stop() { - echo "Stoping the etcd service: $ETCD_BIN" - killall etcd -} - -etcd_restart() { - etcd_stop - sleep 1 - etcd_start -} - -case "$1" in - 'start') - etcd_start - ;; - 'stop') - etcd_stop - ;; - 'restart') - etcd_restart - ;; - *) - echo "Usage: $0 start|stop|restart" - ;; -esac diff --git a/network/etcd/slack-desc b/network/etcd/slack-desc deleted file mode 100644 index d069a38a0e..0000000000 --- a/network/etcd/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. -# Line up the first '|' above the ':' following the base package name, and -# the '|' on the right side marks the last column you can put a character in. -# You must make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':' except on otherwise blank lines. - - |-----handy-ruler------------------------------------------------------| -etcd: etcd (key value store for shared configuration and service discovery) -etcd: -etcd: Etcd is a distributed reliable key-value store for the most critical -etcd: data of a distributed system, with a focus on being: -etcd: Simple: well-defined, user-facing API (gRPC) -etcd: Secure: automatic TLS with optional client cert authentication -etcd: Fast: benchmarked 10,000 writes/sec -etcd: Reliable: properly distributed using Raft -etcd: -etcd: -etcd: |