diff options
author | B. Watson <yalhcru@gmail.com> | 2022-04-13 11:42:07 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-04-16 12:11:24 +0700 |
commit | c567552b3937ba29392f9e3cdf9fb6f0bdaa5487 (patch) | |
tree | 528196e6ba84f04fa0cd3738a4131ddb9ceff8ba /system | |
parent | a4a7722ee29a1b6142d07b6dc3febfb753d96b1c (diff) | |
download | slackbuilds-c567552b3937ba29392f9e3cdf9fb6f0bdaa5487.tar.gz |
system/kafka: Fix symlink.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r-- | system/kafka/kafka.SlackBuild | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/system/kafka/kafka.SlackBuild b/system/kafka/kafka.SlackBuild index 9db0a55e62..40dd1abdb6 100644 --- a/system/kafka/kafka.SlackBuild +++ b/system/kafka/kafka.SlackBuild @@ -22,12 +22,16 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220413 bkw: Modified by SlackBuilds.org, BUILD=2: +# - relative config symlink. +# - i486 => i586. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=kafka VERSION=${VERSION:-0.11.0.0} SCALA_VERSION=2.12 -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -38,7 +42,7 @@ KAFKA_GID=${KAFKA_GID:-323} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -63,9 +67,6 @@ elif ! grep -q "^$KAFKA_GROUP:" /etc/group; then bailout 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 @@ -92,9 +93,9 @@ cd ${PRGNAM}_${SCALA_VERSION}-$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 \ + -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 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM/{libs,bin} install -m 644 libs/*.jar $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM/libs @@ -139,7 +140,7 @@ install -m 644 $CWD/kafka-env.sh $PKG/etc/$PRGNAM/kafka-env.sh.new ) ( cd $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM - ln -s /etc/kafka config + ln -s ../../../etc/kafka config ) chown -R $KAFKA_USER:$KAFKA_GROUP $PKG/etc/$PRGNAM |