summaryrefslogtreecommitdiffstats
path: root/system/usermin/usermin.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/usermin/usermin.SlackBuild')
-rw-r--r--system/usermin/usermin.SlackBuild19
1 files changed, 13 insertions, 6 deletions
diff --git a/system/usermin/usermin.SlackBuild b/system/usermin/usermin.SlackBuild
index 929600e09b..3bd8f88367 100644
--- a/system/usermin/usermin.SlackBuild
+++ b/system/usermin/usermin.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for usermin
-# Copyright 2014-2018 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
+# Copyright 2014-2024 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,14 +22,21 @@
# 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=usermin
-VERSION=${VERSION:-1.780}
+VERSION=${VERSION:-2.005}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
ARCH=noarch
-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}
@@ -107,7 +114,7 @@ find $PKG/etc/usermin -type f -exec sed -i "s:$PKG::g" {} \;
# make it only accessible by localhost
echo 'allow=127.0.0.1' >> $PKG/etc/usermin/miniserv.conf
-CONFIG="postgresql telnet file fetchmail usermount forward schedule language filter theme cron \
+CONFIG="postgresql telnet fetchmail usermount forward schedule language filter theme cron \
ssh proc tunnel spam gnupg plan man commands chfn shell htaccess at mailcap mailbox \
htaccess-htpasswd changepass procmail cshrc mysql quota updown"
for L in $CONFIG
@@ -128,4 +135,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