diff options
Diffstat (limited to 'network/munge')
-rw-r--r-- | network/munge/README | 8 | ||||
-rw-r--r-- | network/munge/etc.default.munge | 13 | ||||
-rw-r--r-- | network/munge/munge.SlackBuild | 41 | ||||
-rw-r--r-- | network/munge/munge.info | 6 |
4 files changed, 50 insertions, 18 deletions
diff --git a/network/munge/README b/network/munge/README index 3d3792de7a..7a6632501a 100644 --- a/network/munge/README +++ b/network/munge/README @@ -11,14 +11,14 @@ by a shared cryptographic key. Clients within this security realm can create and validate credentials without the use of root privileges, reserved ports, or platform-specific methods. -On most platforms, the munged daemon does not require root privileges to run. -If possible, you should run the daemon as a non-privileged user. +On most platforms, the munged daemon does not require root privileges to +run. If possible, you should run the daemon as a non-privileged user. This can be specified in the init script /etc/rc.d/rc.munge. # groupadd -g 310 munge # useradd -u 310 -d /var/lib/munge -s /bin/false -g munge munge -After installation a secret key file needs to be created. Follow instructions -from: +After installation a secret key file needs to be created. Follow +instructions from: https://github.com/dun/munge/wiki/Installation-Guide#creating-a-secret-key diff --git a/network/munge/etc.default.munge b/network/munge/etc.default.munge new file mode 100644 index 0000000000..70f9a98b85 --- /dev/null +++ b/network/munge/etc.default.munge @@ -0,0 +1,13 @@ +# MUNGE configuration + +# Pass additional command-line options to munged. +# OPTIONS="--key-file=/etc/munge/munge.key --num-threads=2" + +# Adjust the scheduling priority of munged. +# NICE= + +# Execute munged under another username. +# USER="munge" + +# Execute munged under another groupname. +# GROUP="munge" diff --git a/network/munge/munge.SlackBuild b/network/munge/munge.SlackBuild index 714c768926..ba623c7452 100644 --- a/network/munge/munge.SlackBuild +++ b/network/munge/munge.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for Munge -# Copyright 2015 Emmanuel N. Millan, Mendoza, Argentina. +# Copyright 2015-2024 Emmanuel N. Millan, Mendoza, Argentina. # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,13 +22,18 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220308 bkw: Modified by SlackBuilds.org: fix build on 15.0. + +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=munge -VERSION=${VERSION:-0.5.13} -BUILD=${BUILD:-1} +VERSION=${VERSION:-0.5.16} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} DOCS="AUTHORS COPYING COPYING.LESSER DISCLAIMER.LLNS DISCLAIMER.UC \ - HISTORY INSTALL JARGON META NEWS PLATFORMS QUICKSTART README README.MULTILIB" + HISTORY JARGON KEYS NEWS PLATFORMS QUICKSTART README README.MULTILIB THANKS" if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -38,7 +43,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +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} @@ -68,9 +77,9 @@ 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 \ + -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 {} \+ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -85,15 +94,23 @@ CXXFLAGS="$SLKCFLAGS" \ --host=$ARCH-slackware-linux make -make install DESTDIR=$PKG +make install-strip DESTDIR=$PKG # Remove systemd files rm -rf $PKG/usr/lib/systemd/ mv $PKG/etc/rc.d/init.d/munge $PKG/etc/rc.d/rc.munge.new -mv $PKG/etc/default/munge $PKG/etc/default/munge.new rm -rf $PKG/etc/rc.d/init.d/ +# 20220308 bkw: sometimes, this file doesn't exist. but sometimes it +# does. no idea why, no time to deal with it, just add it to git and +# always install it. +#mv $PKG/etc/default/munge $PKG/etc/default/munge.new + +rm -rf $PKG/etc/default/ # might or might not exist... +mkdir -p $PKG/etc/default/ +cat $CWD/etc.default.munge > $PKG/etc/default/munge.new + find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done @@ -101,9 +118,11 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +rm -f $PKG/usr/lib*/*.la + 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:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/network/munge/munge.info b/network/munge/munge.info index acebdf893e..7419b7fca8 100644 --- a/network/munge/munge.info +++ b/network/munge/munge.info @@ -1,8 +1,8 @@ PRGNAM="munge" -VERSION="0.5.13" +VERSION="0.5.16" HOMEPAGE="https://dun.github.io/munge/" -DOWNLOAD="https://github.com/dun/munge/releases/download/munge-0.5.13/munge-0.5.13.tar.xz" -MD5SUM="9204f34aac7f0cc50880196f4a8f5f33" +DOWNLOAD="https://github.com/dun/munge/releases/download/munge-0.5.16/munge-0.5.16.tar.xz" +MD5SUM="c68e5226f075d240582113396ccb1fcb" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |