Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #78574 from bachp/samba-4.11.5

samba: 4.10.11 -> 4.11.5

authored by Niklas Hambüchen and committed by GitHub 6f1095b0 34c71aa7

+10 -8
+10 -8
pkgs/servers/samba/4.x.nix
··· 1 - { lib, stdenv, fetchurl, python, pkgconfig, perl, libxslt, docbook_xsl, rpcgen 2 , fixDarwinDylibNames 3 , docbook_xml_dtd_42, readline 4 , popt, iniparser, libbsd, libarchive, libiconv, gettext ··· 20 21 stdenv.mkDerivation rec { 22 pname = "samba"; 23 - version = "4.10.11"; 24 25 src = fetchurl { 26 url = "mirror://samba/pub/samba/stable/${pname}-${version}.tar.gz"; 27 - sha256 = "157qvz8x2s7994rzxhcmpc79cfk86zc0rq5qwg8alvjcw0r457v0"; 28 }; 29 30 outputs = [ "out" "dev" "man" ]; ··· 34 ./patch-source3__libads__kerberos_keytab.c.patch 35 ./4.x-no-persistent-install-dynconfig.patch 36 ./4.x-fix-makeflags-parsing.patch 37 ]; 38 39 nativeBuildInputs = optionals stdenv.isDarwin [ rpcgen fixDarwinDylibNames ]; ··· 41 buildInputs = [ 42 python pkgconfig perl libxslt docbook_xsl docbook_xml_dtd_42 /* 43 docbook_xml_dtd_45 */ readline popt iniparser jansson 44 - libbsd libarchive zlib fam libiconv gettext libunwind krb5Full 45 ] ++ optionals stdenv.isLinux [ libaio systemd ] 46 ++ optional enableLDAP openldap 47 ++ optional (enablePrinting && stdenv.isLinux) cups 48 ++ optional enableMDNS avahi 49 - ++ optionals enableDomainController [ gnutls gpgme lmdb ] 50 ++ optional enableRegedit ncurses 51 ++ optional (enableCephFS && stdenv.isLinux) libceph 52 ++ optionals (enableGlusterFS && stdenv.isLinux) [ glusterfs libuuid ] ··· 61 sed -i "s,\(XML_CATALOG_FILES=\"\),\1$XML_CATALOG_FILES ,g" buildtools/wafsamba/wafsamba.py 62 63 patchShebangs ./buildtools/bin 64 - '' + optionalString stdenv.isDarwin '' 65 - substituteInPlace libcli/dns/wscript_build \ 66 - --replace "bld.SAMBA_BINARY('resolvconftest'" "True or bld.SAMBA_BINARY('resolvconftest'" 67 ''; 68 69 configureFlags = [
··· 1 + { lib, stdenv, fetchurl, fetchpatch, python, pkgconfig, perl, libxslt, docbook_xsl, rpcgen 2 , fixDarwinDylibNames 3 , docbook_xml_dtd_42, readline 4 , popt, iniparser, libbsd, libarchive, libiconv, gettext ··· 20 21 stdenv.mkDerivation rec { 22 pname = "samba"; 23 + version = "4.11.5"; 24 25 src = fetchurl { 26 url = "mirror://samba/pub/samba/stable/${pname}-${version}.tar.gz"; 27 + sha256 = "0gyr773dl0krcra6pvyp8i9adj3r16ihrrm2b71c0974cbzrkqpk"; 28 }; 29 30 outputs = [ "out" "dev" "man" ]; ··· 34 ./patch-source3__libads__kerberos_keytab.c.patch 35 ./4.x-no-persistent-install-dynconfig.patch 36 ./4.x-fix-makeflags-parsing.patch 37 + (fetchpatch { 38 + name = "test-oLschema2ldif-fmemopen.patch"; 39 + url = "https://gitlab.com/samba-team/samba/commit/5e517e57c9d4d35e1042a49d3592652b05f0c45b.patch"; 40 + sha256 = "1bbldf794svsdvcbp649imghmj0jck7545d3k9xs953qkkgwkbxi"; 41 + }) 42 ]; 43 44 nativeBuildInputs = optionals stdenv.isDarwin [ rpcgen fixDarwinDylibNames ]; ··· 46 buildInputs = [ 47 python pkgconfig perl libxslt docbook_xsl docbook_xml_dtd_42 /* 48 docbook_xml_dtd_45 */ readline popt iniparser jansson 49 + libbsd libarchive zlib fam libiconv gettext libunwind krb5Full gnutls 50 ] ++ optionals stdenv.isLinux [ libaio systemd ] 51 ++ optional enableLDAP openldap 52 ++ optional (enablePrinting && stdenv.isLinux) cups 53 ++ optional enableMDNS avahi 54 + ++ optionals enableDomainController [ gpgme lmdb ] 55 ++ optional enableRegedit ncurses 56 ++ optional (enableCephFS && stdenv.isLinux) libceph 57 ++ optionals (enableGlusterFS && stdenv.isLinux) [ glusterfs libuuid ] ··· 66 sed -i "s,\(XML_CATALOG_FILES=\"\),\1$XML_CATALOG_FILES ,g" buildtools/wafsamba/wafsamba.py 67 68 patchShebangs ./buildtools/bin 69 ''; 70 71 configureFlags = [