diff options
Diffstat (limited to 'system/supervisor/supervisor.SlackBuild')
-rw-r--r-- | system/supervisor/supervisor.SlackBuild | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/system/supervisor/supervisor.SlackBuild b/system/supervisor/supervisor.SlackBuild index 3769f38f42..ae1c459ff3 100644 --- a/system/supervisor/supervisor.SlackBuild +++ b/system/supervisor/supervisor.SlackBuild @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright 2025 Andrzej Telszewski, Koszalin # Copyright 2014-2018 digwtx <wtx358@qq.com> # All rights reserved. # @@ -23,13 +24,11 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=supervisor -VERSION=${VERSION:-3.3.4} +VERSION=${VERSION:-4.2.5} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} -SRCNAM=supervisor - if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i586 ;; @@ -52,31 +51,30 @@ set -eu rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $SRCNAM-$VERSION -tar xvf $CWD/$SRCNAM-$VERSION.tar.gz -cd $SRCNAM-$VERSION + +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 {} \; +chmod -R a-st,u+rwX,go-w+rX . -rm -f setuptools/*.exe +python3 setup.py install --root=$PKG -mkdir -p $PKG/etc -cat $PRGNAM/skel/sample.conf > $PKG/etc/supervisord.conf.new +# NOTE: +# +# Some files and ideas come from Arch: +# https://gitlab.archlinux.org/archlinux/packaging/packages/supervisor/ -python2 setup.py install --root=$PKG +install -D -m 0600 $CWD/supervisord.conf $PKG/etc/supervisord.conf.new +mkdir -p $PKG/etc/supervisor.d +install -D -m 0644 $CWD/rc.supervisord $PKG/etc/rc.d/rc.supervisord.new +mkdir -p $PKG/var/log/supervisor mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a *.txt $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 0644 {} \; +cp -a {CHANGES,README}.rst {COPYRIGHT,LICENSES}.txt $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -mkdir -p $PKG/etc/rc.d -cat $CWD/rc.supervisord > $PKG/etc/rc.d/rc.supervisord - mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh |