summaryrefslogtreecommitdiffstats
path: root/system/slackrepo/slackrepo.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/slackrepo/slackrepo.SlackBuild')
-rw-r--r--system/slackrepo/slackrepo.SlackBuild7
1 files changed, 5 insertions, 2 deletions
diff --git a/system/slackrepo/slackrepo.SlackBuild b/system/slackrepo/slackrepo.SlackBuild
index ec0e5506e0..aed39e8448 100644
--- a/system/slackrepo/slackrepo.SlackBuild
+++ b/system/slackrepo/slackrepo.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for slackrepo
# Copyright 2017-2022 Andrew Clemons, Wellington New Zealand
+# Copyright 2022-2024 Andrew Clemons, Tokyo Japan
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=slackrepo
-VERSION=${VERSION:-20220513}
+VERSION=${VERSION:-20240420}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -64,7 +65,7 @@ install -m0755 $PRGNAM $PKG/usr/sbin
(
cd $PKG/usr/bin
- ln -s ../sbin/slackrepo
+ ln -s ../sbin/slackrepo slackrepo
)
sed -i "s/%PKGID%/$PRGNAM-$VERSION/" $PKG/usr/sbin/$PRGNAM
@@ -72,6 +73,8 @@ sed -i "s/%PKGID%/$PRGNAM-$VERSION/" $PKG/usr/sbin/$PRGNAM
mkdir -p $PKG/etc
cp -a etc $PKG/etc/$PRGNAM
mv $PKG/etc/$PRGNAM/sudoers.d $PKG/etc/
+chmod 0750 $PKG/etc/sudoers.d
+chmod 0640 $PKG/etc/sudoers.d/$PRGNAM
find $PKG/etc -type f -print0 | xargs -0 -I xx mv xx xx.new