diff options
Diffstat (limited to 'system/apptainer/apptainer.SlackBuild')
-rw-r--r-- | system/apptainer/apptainer.SlackBuild | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/system/apptainer/apptainer.SlackBuild b/system/apptainer/apptainer.SlackBuild index 7f60d6af736cd..be7130c529aec 100644 --- a/system/apptainer/apptainer.SlackBuild +++ b/system/apptainer/apptainer.SlackBuild @@ -76,6 +76,15 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +WITH_SUID=${WITH_SUID:-auto} + +if [ "$WITH_SUID" = "no" ] ; then + suid_option="--without-suid" +elif [ "$WITH_SUID" = "yes" ] ; then + suid_option="--with-suid" +else + suid_option="" +fi # this sets the go path without the needs of logout SBOGO=$(find /usr/lib${LIBDIRSUFFIX} -type f -name "go") @@ -88,6 +97,7 @@ PATH=$GOROOT/bin:$PATH \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ + $suid_option \ --mandir=/usr/man \ --docdir=/usr/doc/$PRGNAM-$VERSION |