* update samba to 4.20.2-1

This commit is contained in:
Alexander Baldeck 2024-09-11 11:10:25 +02:00
parent 50dda36391
commit 0773a59a92
4 changed files with 108 additions and 59 deletions

103
samba/.SRCINFO Normal file
View File

@ -0,0 +1,103 @@
pkgbase = samba
pkgver = 4.20.2
pkgrel = 1
url = https://www.samba.org
arch = x86_64
license = GPL-3.0-or-later
makedepends = python
makedepends = python-markdown
makedepends = python-dnspython
makedepends = docbook-xsl
makedepends = pkg-config
makedepends = libbsd
makedepends = popt
makedepends = libcups
makedepends = readline
makedepends = tevent
makedepends = acl
makedepends = libldap
makedepends = libcap
makedepends = ldb
makedepends = krb5
makedepends = pam
makedepends = systemd
makedepends = gnutls
makedepends = talloc
makedepends = tdb
makedepends = dbus
makedepends = perl-parse-yapp
makedepends = libnsl
makedepends = libtirpc
makedepends = rpcsvc-proto
makedepends = jansson
makedepends = liburing
makedepends = perl-json
makedepends = glusterfs
optdepends = python-dnspython: samba_dnsupdate and samba_upgradedns in AD setup
optdepends = python-markdown: for samba-tool domain schemeupgrade
optdepends = glusterfs: for vfs_glusterfs support
source = https://us1.samba.org/samba/ftp/stable/samba-4.20.2.tar.gz
source = https://us1.samba.org/samba/ftp/stable/samba-4.20.2.tar.asc
source = samba.logrotate
source = samba.pam
source = samba.conf
validpgpkeys = 81F5E2832BD2545A1897B713AA99442FB680B620
sha512sums = ff2c24314c6a35cc42db36a9021241b1323e810bf746e3975bc103f26daf395cd3c32da72e7172e322dee480587bbb1daac939e9851ff65be493be6fb4fc3eda
sha512sums = SKIP
sha512sums = 2ba0691ded467e4d6e40821f6de58c00f8962209efe2e60284c0c87756ab471c22c3d63b77d506e48c90ed0d852a2a24e41be1d499cf74a73cb99da0b503c858
sha512sums = 1e6183ab0eb812b3ef687ac2c26ce78f7cb30540f606d20023669ac00ba04075487fb72e4dc89cc05dab0269ff6aca98fc1167cc75669c225b88b592482fbf67
sha512sums = e46ee848baabb261e7468ecee43aba4d001a24f86f5322ae522abdb75030fd0ebd9063b9df0be3576c4d1654d81331f5e389aee16ec2fa138259ae4728e94efc
pkgname = libwbclient
pkgdesc = winbind client library
depends = libbsd
pkgname = smbclient
pkgdesc = Tools to access a server's filespace and printers via SMB
depends = popt
depends = cifs-utils
depends = tdb
depends = ldb
depends = tevent
depends = python
depends = talloc
depends = readline
depends = gnutls
depends = libbsd
depends = libldap
depends = libcups
depends = libarchive
depends = libnsl
depends = jansson
depends = libldb.so
depends = libtdb.so
depends = libtevent.so
depends = libreadline.so
depends = icu
depends = libwbclient
pkgname = samba
pkgdesc = SMB Fileserver and AD Domain server
install = samba.install
depends = popt
depends = libcups
depends = libcap>=2.16
depends = gnutls>=2.4.1
depends = talloc
depends = ldb
depends = libbsd
depends = python
depends = tdb
depends = smbclient>=4.20.2
depends = gpgme
depends = libldb.so
depends = libtdb.so
depends = libtevent.so
depends = liburing
depends = libwbclient
optdepends = python-dnspython: netads_dns.py, dnsresolver.py and traffic_packets.py
optdepends = python-markdown: ms_schema_markdown.py and ms_forest_updates_markdown.py
optdepends = python-cryptography: lockout_tests.py gp_cert_auto_enroll_ext.py gpo.py and kcrypto.py
backup = etc/logrotate.d/samba
backup = etc/pam.d/samba
backup = etc/conf.d/samba

View File

@ -10,8 +10,8 @@
pkgbase=samba
pkgname=('libwbclient' 'smbclient' 'samba')
pkgver=4.20.1
pkgrel=2
pkgver=4.20.2
pkgrel=1
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url="https://www.samba.org"
license=('GPL-3.0-or-later')
@ -28,28 +28,15 @@ optdepends=(
source=(https://us1.samba.org/samba/ftp/stable/${pkgbase}-${pkgver}.tar{.gz,.asc}
samba.logrotate
samba.pam
samba.conf
ldb-2.5.2-skip-wav-tevent-check.patch
samba-4.18.4-pam.patch)
samba.conf)
validpgpkeys=('81F5E2832BD2545A1897B713AA99442FB680B620') #Samba Distribution Verification Key <samba-bugs@samba.org>
sha512sums=('bea2bacae5b3272045399057ddf88d8f38203dde04c718b0088fd45792cccd68047b413e66bca7418b19db8580879358b86531a8d6f2d76fbcd902c331050a84'
sha512sums=('ff2c24314c6a35cc42db36a9021241b1323e810bf746e3975bc103f26daf395cd3c32da72e7172e322dee480587bbb1daac939e9851ff65be493be6fb4fc3eda'
'SKIP'
'2ba0691ded467e4d6e40821f6de58c00f8962209efe2e60284c0c87756ab471c22c3d63b77d506e48c90ed0d852a2a24e41be1d499cf74a73cb99da0b503c858'
'1e6183ab0eb812b3ef687ac2c26ce78f7cb30540f606d20023669ac00ba04075487fb72e4dc89cc05dab0269ff6aca98fc1167cc75669c225b88b592482fbf67'
'e46ee848baabb261e7468ecee43aba4d001a24f86f5322ae522abdb75030fd0ebd9063b9df0be3576c4d1654d81331f5e389aee16ec2fa138259ae4728e94efc'
'19028447cbde09a425f1a07fe2d9a2a6f16cada1785e6e9684a8b573db5705b6694a29cd6f5480047360920562fcc654fc10faad39e73c565f7d475558cb57c8'
'5cb997276a35ad6a188801deac7ccaad0e1b8c92f2070fcac62513ea371afc1d9d3414550d3c65726a4a813a4a619ada25063a6d7f145243873c1d9ed6d9690f')
options=(!lto)
'e46ee848baabb261e7468ecee43aba4d001a24f86f5322ae522abdb75030fd0ebd9063b9df0be3576c4d1654d81331f5e389aee16ec2fa138259ae4728e94efc')
### UNINSTALL dmapi package before building!!!
prepare() {
cd samba-${pkgver}
patch -Np1 -i ${srcdir}/ldb-2.5.2-skip-wav-tevent-check.patch
patch -Np1 -i ${srcdir}/samba-4.18.4-pam.patch
}
# Use samba-pkg as a staging directory for the split packages
# (This is so RPATHS and symlinks are generated correctly via
# make install, but the otherwise unsplit pieces can be split)

View File

@ -1,12 +0,0 @@
--- ldb-1.3.6/lib/tevent/wscript
+++ ldb-1.3.6/lib/tevent/wscript
@@ -34,8 +34,7 @@
if conf.CHECK_BUNDLED_SYSTEM_PKG('tevent', minversion=VERSION,
onlyif='talloc', implied_deps='replace talloc'):
conf.define('USING_SYSTEM_TEVENT', 1)
- if not conf.env.disable_python and \
- conf.CHECK_BUNDLED_SYSTEM_PYTHON('pytevent', 'tevent', minversion=VERSION):
+ if not conf.env.disable_python:
conf.define('USING_SYSTEM_PYTEVENT', 1)
if conf.CHECK_FUNCS('epoll_create', headers='sys/epoll.h'):

View File

@ -1,29 +0,0 @@
--- a/source3/wscript
+++ b/source3/wscript
@@ -863,7 +863,7 @@
if conf.env.with_iconv:
conf.DEFINE('HAVE_ICONV', 1)
- if Options.options.with_pam:
+ if Options.options.with_pam != False:
use_pam=True
conf.CHECK_HEADERS('security/pam_appl.h pam/pam_appl.h')
if not conf.CONFIG_SET('HAVE_SECURITY_PAM_APPL_H') and not conf.CONFIG_SET('HAVE_PAM_PAM_APPL_H'):
@@ -940,6 +940,17 @@
"or headers not found. Use --without-pam to disable "
"PAM support.");
+ else:
+ Logs.warn("PAM disabled")
+ use_pam=False
+ conf.undefine('WITH_PAM')
+ conf.undefine('WITH_PAM_MODULES')
+ conf.undefine('HAVE_SECURITY_PAM_APPL_H')
+ conf.undefine('PAM_RHOST')
+ conf.undefine('PAM_TTY')
+ conf.undefine('HAVE_PAM_PAM_APPL_H')
+
+
seteuid = False
#