summaryrefslogtreecommitdiffstats
path: root/source/n/samba/samba.SlackBuild
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2023-02-01 05:29:53 +0000
committer Eric Hameleers <alien@slackware.com>2023-02-01 07:39:17 +0100
commit45d1307faeb72d3fefce6446c314c4b0d0d3a98a (patch)
tree1b34931315f4be5579bd08f1ff4191ede08cec57 /source/n/samba/samba.SlackBuild
parent6fa6b077d5cf04e14b46bc2c0520bea74a08986b (diff)
downloadcurrent-45d1307faeb72d3fefce6446c314c4b0d0d3a98a.tar.gz
current-45d1307faeb72d3fefce6446c314c4b0d0d3a98a.tar.xz
Wed Feb 1 05:29:53 UTC 202320230201052953
d/perl-5.36.0-x86_64-3.txz: Rebuilt. Upgraded: IO-Socket-SSL-2.081, Moo-2.005005, Path-Tiny-0.144, Sub-Quote-2.006008, Template-Toolkit-3.101, URI-5.17. Added: JSON-4.10 (needed to build Samba with --bundled-libraries=heimdal). kde/kstars-3.6.3-x86_64-1.txz: Upgraded. l/gjs-1.74.1-x86_64-1.txz: Upgraded. Compiled against mozjs102-102.7.0esr. l/mozjs102-102.7.0esr-x86_64-1.txz: Added. This is required by gjs-1.74.1 and polkit-122. l/mozjs78-78.15.0esr-x86_64-1.txz: Removed. l/polkit-122-x86_64-1.txz: Upgraded. Compiled against mozjs102-102.7.0esr.
Diffstat (limited to '')
-rwxr-xr-xsource/n/samba/samba.SlackBuild16
1 files changed, 13 insertions, 3 deletions
diff --git a/source/n/samba/samba.SlackBuild b/source/n/samba/samba.SlackBuild
index 47551db60..757ca4336 100755
--- a/source/n/samba/samba.SlackBuild
+++ b/source/n/samba/samba.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/bash
-# Copyright 2008, 2009, 2010, 2012, 2013, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 Patrick J. Volkerding, Sebeka, Minnesota, USA
+# Copyright 2008, 2009, 2010, 2012, 2013, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Patrick J. Volkerding, Sebeka, Minnesota, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -28,6 +28,16 @@ PKGNAM=samba
VERSION=${VERSION:-$(echo samba-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-1}
+# This option may also be set to "heimdal":
+KERBEROS=${KERBEROS:-mit}
+
+if [ "$KERBEROS" = "mit" ]; then
+ KERB_OPTIONS="--with-system-mitkrb5 --with-experimental-mit-ad-dc"
+elif [ "$KERBEROS" = "heimdal" ]; then
+ # Please note that this perl module will be required: https://metacpan.org/pod/JSON
+ KERB_OPTIONS="--bundled-libraries=heimdal"
+fi
+
if [ -e $CWD/machine.conf ]; then
. $CWD/machine.conf ]
elif [ -e /etc/slackbuild/machine.conf ]; then
@@ -102,7 +112,7 @@ find . \
# Choose correct options depending on whether PAM is installed:
if [ -L /lib${LIBDIRSUFFIX}/libpam.so.? ]; then
- PAM_OPTIONS="--with-pam --with-pammodulesdir=/lib${LIBDIRSUFFIX}/security --with-system-mitkrb5 --with-experimental-mit-ad-dc"
+ PAM_OPTIONS="--with-pam --with-pammodulesdir=/lib${LIBDIRSUFFIX}/security"
unset SHADOW_OPTIONS
else
unset PAM_OPTIONS
@@ -143,12 +153,12 @@ CFLAGS="$SLKCFLAGS" \
--with-ldap \
--with-ads \
--without-fam \
+ $KERB_OPTIONS \
$PAM_OPTIONS \
$SHADOW_OPTIONS \
--build=$TARGET || exit 1
# Gives errors:
#--builtin-libraries=replace,ccan \
- #--bundled-libraries=heimdal \
# Build with waf directly so that multiple jobs work.
# Script lifted from "./configure".