Merge pull request #82509 from Izorkin/samba4
samba: build with profiling enabled
This commit is contained in:
commit
22ada10aed
@ -1,18 +1,23 @@
|
||||
{ stdenv, fetchurl, wafHook, pkgconfig, readline, libxslt
|
||||
, docbook_xsl, docbook_xml_dtd_42
|
||||
{ stdenv, fetchurl, pkgconfig
|
||||
, wafHook, python3, readline
|
||||
, libxslt, docbook_xsl, docbook_xml_dtd_45
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "tdb-1.3.18";
|
||||
name = "tdb-1.4.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://samba/tdb/${name}.tar.gz";
|
||||
sha256 = "1drnsdh1w0px35r0y7l7g59yvyr67mvcsdrli4wab0mwi07b8mn1";
|
||||
sha256 = "06waz0k50c7v3chd08mzp2rv7w4k4q9isbxx3vhlfpx1vy9q61f8";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgconfig wafHook ];
|
||||
nativeBuildInputs = [
|
||||
pkgconfig wafHook
|
||||
libxslt docbook_xsl docbook_xml_dtd_45
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
readline libxslt docbook_xsl docbook_xml_dtd_42
|
||||
python3 readline
|
||||
];
|
||||
|
||||
wafPath = "buildtools/bin/waf";
|
||||
|
@ -1,22 +1,44 @@
|
||||
{ lib, stdenv, fetchurl, python, pkgconfig, perl, libxslt, docbook_xsl, rpcgen
|
||||
{ stdenv
|
||||
, fetchurl
|
||||
, python
|
||||
, pkgconfig
|
||||
, bison
|
||||
, flex
|
||||
, perl
|
||||
, libxslt
|
||||
, docbook_xsl
|
||||
, rpcgen
|
||||
, fixDarwinDylibNames
|
||||
, docbook_xml_dtd_42, readline
|
||||
, popt, iniparser, libbsd, libarchive, libiconv, gettext
|
||||
, krb5Full, zlib, openldap, cups, pam, avahi, acl, libaio, liburing, fam, libceph, glusterfs
|
||||
, gnutls, ncurses, libunwind, systemd, jansson, lmdb, gpgme, libuuid
|
||||
, docbook_xml_dtd_45
|
||||
, readline
|
||||
, popt
|
||||
, libbsd
|
||||
, libarchive
|
||||
, zlib
|
||||
, liburing
|
||||
, fam
|
||||
, gnutls
|
||||
, libunwind
|
||||
, systemd
|
||||
, jansson
|
||||
, libtasn1
|
||||
, tdb
|
||||
, cmocka
|
||||
|
||||
, enableLDAP ? false
|
||||
, enablePrinting ? false
|
||||
, enableMDNS ? false
|
||||
, enableDomainController ? false
|
||||
, enableRegedit ? true
|
||||
, enableCephFS ? false
|
||||
, enableGlusterFS ? false
|
||||
, enableAcl ? (!stdenv.isDarwin)
|
||||
, enablePam ? (!stdenv.isDarwin)
|
||||
, enableLDAP ? false, openldap
|
||||
, enablePrinting ? false, cups
|
||||
, enableProfiling ? true
|
||||
, enableMDNS ? false, avahi
|
||||
, enableDomainController ? false, gpgme, lmdb
|
||||
, enableKerberos ? true, krb5Full
|
||||
, enableRegedit ? true, ncurses
|
||||
, enableCephFS ? false, libceph
|
||||
, enableGlusterFS ? false, glusterfs, libuuid
|
||||
, enableAcl ? (!stdenv.isDarwin), acl
|
||||
, enablePam ? (!stdenv.isDarwin), pam
|
||||
}:
|
||||
|
||||
with lib;
|
||||
with stdenv.lib;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "samba";
|
||||
@ -36,17 +58,40 @@ stdenv.mkDerivation rec {
|
||||
./4.x-fix-makeflags-parsing.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ pkgconfig perl perl.pkgs.ParseYapp libxslt docbook_xsl docbook_xml_dtd_42 ]
|
||||
++ optionals stdenv.isDarwin [ rpcgen fixDarwinDylibNames ];
|
||||
nativeBuildInputs = [
|
||||
pkgconfig
|
||||
bison
|
||||
flex
|
||||
perl
|
||||
perl.pkgs.ParseYapp
|
||||
libxslt
|
||||
docbook_xsl
|
||||
docbook_xml_dtd_45
|
||||
cmocka
|
||||
] ++ optionals stdenv.isDarwin [
|
||||
rpcgen
|
||||
fixDarwinDylibNames
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
python readline popt iniparser jansson
|
||||
libbsd libarchive zlib fam libiconv gettext libunwind krb5Full gnutls
|
||||
] ++ optionals stdenv.isLinux [ libaio liburing systemd ]
|
||||
python
|
||||
readline
|
||||
popt
|
||||
jansson
|
||||
libbsd
|
||||
libarchive
|
||||
zlib
|
||||
fam
|
||||
libunwind
|
||||
gnutls
|
||||
libtasn1
|
||||
tdb
|
||||
] ++ optionals stdenv.isLinux [ liburing systemd ]
|
||||
++ optional enableLDAP openldap
|
||||
++ optional (enablePrinting && stdenv.isLinux) cups
|
||||
++ optional enableMDNS avahi
|
||||
++ optionals enableDomainController [ gpgme lmdb ]
|
||||
++ optional enableKerberos krb5Full
|
||||
++ optional enableRegedit ncurses
|
||||
++ optional (enableCephFS && stdenv.isLinux) libceph
|
||||
++ optionals (enableGlusterFS && stdenv.isLinux) [ glusterfs libuuid ]
|
||||
@ -66,8 +111,6 @@ stdenv.mkDerivation rec {
|
||||
configureFlags = [
|
||||
"--with-static-modules=NONE"
|
||||
"--with-shared-modules=ALL"
|
||||
"--with-system-mitkrb5"
|
||||
"--with-system-mitkdc" krb5Full
|
||||
"--enable-fhs"
|
||||
"--sysconfdir=/etc"
|
||||
"--localstatedir=/var"
|
||||
@ -75,7 +118,13 @@ stdenv.mkDerivation rec {
|
||||
] ++ singleton (if enableDomainController
|
||||
then "--with-experimental-mit-ad-dc"
|
||||
else "--without-ad-dc")
|
||||
++ optionals (!enableLDAP) [ "--without-ldap" "--without-ads" ]
|
||||
++ optionals enableKerberos [
|
||||
"--with-system-mitkrb5"
|
||||
"--with-system-mitkdc=${krb5Full}"
|
||||
] ++ optionals (!enableLDAP) [
|
||||
"--without-ldap"
|
||||
"--without-ads"
|
||||
] ++ optional enableProfiling "--with-profiling-data"
|
||||
++ optional (!enableAcl) "--without-acl-support"
|
||||
++ optional (!enablePam) "--without-pam";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user