mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
samba: cleanup build configuration
This commit is contained in:
parent
f576221832
commit
a41d96f45f
1 changed files with 67 additions and 13 deletions
|
@ -1,9 +1,40 @@
|
|||
{ lib, stdenv, fetchurl, python, pkgconfig, perl, libxslt, docbook_xsl, rpcgen
|
||||
{ stdenv
|
||||
, fetchurl
|
||||
, python
|
||||
, pkgconfig
|
||||
, 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_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
|
||||
|
||||
, enableLDAP ? false
|
||||
, enablePrinting ? false
|
||||
|
@ -16,7 +47,7 @@
|
|||
, enablePam ? (!stdenv.isDarwin)
|
||||
}:
|
||||
|
||||
with lib;
|
||||
with stdenv.lib;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "samba";
|
||||
|
@ -36,12 +67,33 @@ 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
|
||||
perl
|
||||
perl.pkgs.ParseYapp
|
||||
libxslt
|
||||
docbook_xsl
|
||||
docbook_xml_dtd_42
|
||||
] ++ optionals stdenv.isDarwin [
|
||||
rpcgen
|
||||
fixDarwinDylibNames
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
python readline popt iniparser jansson
|
||||
libbsd libarchive zlib fam libiconv gettext libunwind krb5Full gnutls
|
||||
python
|
||||
readline
|
||||
popt
|
||||
iniparser
|
||||
jansson
|
||||
libbsd
|
||||
libarchive
|
||||
zlib
|
||||
fam
|
||||
libiconv
|
||||
gettext
|
||||
libunwind
|
||||
krb5Full
|
||||
gnutls
|
||||
] ++ optionals stdenv.isLinux [ libaio liburing systemd ]
|
||||
++ optional enableLDAP openldap
|
||||
++ optional (enablePrinting && stdenv.isLinux) cups
|
||||
|
@ -67,7 +119,7 @@ stdenv.mkDerivation rec {
|
|||
"--with-static-modules=NONE"
|
||||
"--with-shared-modules=ALL"
|
||||
"--with-system-mitkrb5"
|
||||
"--with-system-mitkdc" krb5Full
|
||||
"--with-system-mitkdc=${krb5Full}"
|
||||
"--enable-fhs"
|
||||
"--sysconfdir=/etc"
|
||||
"--localstatedir=/var"
|
||||
|
@ -75,8 +127,10 @@ stdenv.mkDerivation rec {
|
|||
] ++ singleton (if enableDomainController
|
||||
then "--with-experimental-mit-ad-dc"
|
||||
else "--without-ad-dc")
|
||||
++ optionals (!enableLDAP) [ "--without-ldap" "--without-ads" ]
|
||||
++ optional (!enableAcl) "--without-acl-support"
|
||||
++ optionals (!enableLDAP) [
|
||||
"--without-ldap"
|
||||
"--without-ads"
|
||||
] ++ optional (!enableAcl) "--without-acl-support"
|
||||
++ optional (!enablePam) "--without-pam";
|
||||
|
||||
preBuild = ''
|
||||
|
|
Loading…
Reference in a new issue