mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
krb5Full: turn into alias
This commit is contained in:
parent
d4ec6e6fe5
commit
c7930769a7
12 changed files with 42 additions and 42 deletions
|
@ -82,8 +82,8 @@ in {
|
||||||
|
|
||||||
kerberos = mkOption {
|
kerberos = mkOption {
|
||||||
type = types.package;
|
type = types.package;
|
||||||
default = pkgs.krb5Full;
|
default = pkgs.krb5;
|
||||||
defaultText = literalExpression "pkgs.krb5Full";
|
defaultText = literalExpression "pkgs.krb5";
|
||||||
example = literalExpression "pkgs.heimdal";
|
example = literalExpression "pkgs.heimdal";
|
||||||
description = lib.mdDoc ''
|
description = lib.mdDoc ''
|
||||||
The Kerberos implementation that will be present in
|
The Kerberos implementation that will be present in
|
||||||
|
|
|
@ -33,7 +33,7 @@ let
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
config = mkIf (cfg.enable && kerberos == pkgs.krb5Full) {
|
config = mkIf (cfg.enable && kerberos == pkgs.krb5) {
|
||||||
systemd.services.kadmind = {
|
systemd.services.kadmind = {
|
||||||
description = "Kerberos Administration Daemon";
|
description = "Kerberos Administration Daemon";
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
|
|
@ -9,7 +9,7 @@ import ../make-test-python.nix ({pkgs, ...}: {
|
||||||
};
|
};
|
||||||
krb5 = {
|
krb5 = {
|
||||||
enable = true;
|
enable = true;
|
||||||
kerberos = pkgs.krb5Full;
|
kerberos = pkgs.krb5;
|
||||||
libdefaults = {
|
libdefaults = {
|
||||||
default_realm = "FOO.BAR";
|
default_realm = "FOO.BAR";
|
||||||
};
|
};
|
||||||
|
|
|
@ -11,7 +11,7 @@ import ../make-test-python.nix ({ pkgs, ...} : {
|
||||||
{ pkgs, ... }: {
|
{ pkgs, ... }: {
|
||||||
krb5 = {
|
krb5 = {
|
||||||
enable = true;
|
enable = true;
|
||||||
kerberos = pkgs.krb5Full;
|
kerberos = pkgs.krb5;
|
||||||
libdefaults = {
|
libdefaults = {
|
||||||
default_realm = "ATHENA.MIT.EDU";
|
default_realm = "ATHENA.MIT.EDU";
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, git
|
, git
|
||||||
, gitpython
|
, gitpython
|
||||||
, krb5Full
|
, krb5
|
||||||
, mock
|
, mock
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
@ -23,7 +23,7 @@ buildPythonPackage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
krb5Full
|
krb5
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
, six
|
, six
|
||||||
, decorator
|
, decorator
|
||||||
, nose
|
, nose
|
||||||
, krb5Full
|
, krb5
|
||||||
, GSS
|
, GSS
|
||||||
, parameterized
|
, parameterized
|
||||||
, shouldbe
|
, shouldbe
|
||||||
|
@ -30,12 +30,12 @@ buildPythonPackage rec {
|
||||||
# It's used to locate headers
|
# It's used to locate headers
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace setup.py \
|
substituteInPlace setup.py \
|
||||||
--replace 'get_output(f"{kc} gssapi --prefix")' '"${lib.getDev krb5Full}"'
|
--replace 'get_output(f"{kc} gssapi --prefix")' '"${lib.getDev krb5}"'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cython
|
cython
|
||||||
krb5Full
|
krb5
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, substituteAll
|
, substituteAll
|
||||||
, krb5Full
|
, krb5
|
||||||
, findutils
|
, findutils
|
||||||
, which
|
, which
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
@ -23,9 +23,9 @@ buildPythonPackage rec {
|
||||||
patches = [
|
patches = [
|
||||||
(substituteAll {
|
(substituteAll {
|
||||||
src = ./fix-paths.patch;
|
src = ./fix-paths.patch;
|
||||||
inherit findutils krb5Full;
|
inherit findutils krb5;
|
||||||
# krb5-config is in dev output
|
# krb5-config is in dev output
|
||||||
krb5FullDev = krb5Full.dev;
|
krb5Dev = krb5.dev;
|
||||||
which = "${which}/bin/which";
|
which = "${which}/bin/which";
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
|
@ -7,13 +7,13 @@ index e289fac..e2f486a 100644
|
||||||
# if there was no LD_LIBRARY_PATH, or the above failed
|
# if there was no LD_LIBRARY_PATH, or the above failed
|
||||||
if _PLUGIN_DIR is None:
|
if _PLUGIN_DIR is None:
|
||||||
- lib_dir = os.path.join(get_output('krb5-config --prefix'), 'lib64')
|
- lib_dir = os.path.join(get_output('krb5-config --prefix'), 'lib64')
|
||||||
+ lib_dir = os.path.join(get_output('@krb5FullDev@/bin/krb5-config --prefix'), 'lib64')
|
+ lib_dir = os.path.join(get_output('@krb5Dev@/bin/krb5-config --prefix'), 'lib64')
|
||||||
_PLUGIN_DIR = _decide_plugin_dir(_find_plugin_dirs_installed(lib_dir))
|
_PLUGIN_DIR = _decide_plugin_dir(_find_plugin_dirs_installed(lib_dir))
|
||||||
|
|
||||||
# /usr/lib64 seems only to be distinct on Fedora/RHEL/Centos family
|
# /usr/lib64 seems only to be distinct on Fedora/RHEL/Centos family
|
||||||
if _PLUGIN_DIR is None:
|
if _PLUGIN_DIR is None:
|
||||||
- lib_dir = os.path.join(get_output('krb5-config --prefix'), 'lib')
|
- lib_dir = os.path.join(get_output('krb5-config --prefix'), 'lib')
|
||||||
+ lib_dir = os.path.join(get_output('@krb5FullDev@/bin/krb5-config --prefix'), 'lib')
|
+ lib_dir = os.path.join(get_output('@krb5Dev@/bin/krb5-config --prefix'), 'lib')
|
||||||
_PLUGIN_DIR = _decide_plugin_dir(_find_plugin_dirs_installed(lib_dir))
|
_PLUGIN_DIR = _decide_plugin_dir(_find_plugin_dirs_installed(lib_dir))
|
||||||
|
|
||||||
if _PLUGIN_DIR is not None:
|
if _PLUGIN_DIR is not None:
|
||||||
|
@ -53,7 +53,7 @@ index 161e5ad..9f50049 100644
|
||||||
if provider_cls == K5Realm:
|
if provider_cls == K5Realm:
|
||||||
krb5_config = _discover_path('krb5-config',
|
krb5_config = _discover_path('krb5-config',
|
||||||
- '/usr/bin/krb5-config', kwargs)
|
- '/usr/bin/krb5-config', kwargs)
|
||||||
+ '@krb5Full@/bin/krb5-config', kwargs)
|
+ '@krb5@/bin/krb5-config', kwargs)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
krb5_version = subprocess.check_output(
|
krb5_version = subprocess.check_output(
|
||||||
|
@ -62,7 +62,7 @@ index 161e5ad..9f50049 100644
|
||||||
if 'heimdal' in krb5_version.lower() or (
|
if 'heimdal' in krb5_version.lower() or (
|
||||||
sys.platform == 'darwin' and
|
sys.platform == 'darwin' and
|
||||||
- krb5_config == '/usr/bin/krb5-config'):
|
- krb5_config == '/usr/bin/krb5-config'):
|
||||||
+ krb5_config == '@krb5Full@/bin/krb5-config'):
|
+ krb5_config == '@krb5@/bin/krb5-config'):
|
||||||
provider_cls = HeimdalRealm
|
provider_cls = HeimdalRealm
|
||||||
else:
|
else:
|
||||||
provider_cls = MITRealm
|
provider_cls = MITRealm
|
||||||
|
@ -78,14 +78,14 @@ index 161e5ad..9f50049 100644
|
||||||
- ('kprop', 'kprop', '/usr/sbin/kprop'),
|
- ('kprop', 'kprop', '/usr/sbin/kprop'),
|
||||||
- ('_kinit', 'kinit', '/usr/bin/kinit'),
|
- ('_kinit', 'kinit', '/usr/bin/kinit'),
|
||||||
- ('_klist', 'klist', '/usr/bin/klist'),
|
- ('_klist', 'klist', '/usr/bin/klist'),
|
||||||
+ ('kdb5_util', 'kdb5_util', '@krb5Full@/bin/kdb5_util'),
|
+ ('kdb5_util', 'kdb5_util', '@krb5@/bin/kdb5_util'),
|
||||||
+ ('krb5kdc', 'krb5kdc', '@krb5Full@/bin/kdb5kdc'),
|
+ ('krb5kdc', 'krb5kdc', '@krb5@/bin/kdb5kdc'),
|
||||||
+ ('kadmin', 'kadmin', '@krb5Full@/bin/admin'),
|
+ ('kadmin', 'kadmin', '@krb5@/bin/admin'),
|
||||||
+ ('kadmin_local', 'kadmin.local', '@krb5Full@/bin/kadmin.local'),
|
+ ('kadmin_local', 'kadmin.local', '@krb5@/bin/kadmin.local'),
|
||||||
+ ('kadmind', 'kadmind', '@krb5Full@/bin/kadmind'),
|
+ ('kadmind', 'kadmind', '@krb5@/bin/kadmind'),
|
||||||
+ ('kprop', 'kprop', '@krb5Full@/bin/kprop'),
|
+ ('kprop', 'kprop', '@krb5@/bin/kprop'),
|
||||||
+ ('_kinit', 'kinit', '@krb5Full@/bin/kinit'),
|
+ ('_kinit', 'kinit', '@krb5@/bin/kinit'),
|
||||||
+ ('_klist', 'klist', '@krb5Full@/bin/klist'),
|
+ ('_klist', 'klist', '@krb5@/bin/klist'),
|
||||||
]
|
]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
@ -95,15 +95,15 @@ index 161e5ad..9f50049 100644
|
||||||
('krb5kdc', 'kdc', os.path.join(base, 'kdc')),
|
('krb5kdc', 'kdc', os.path.join(base, 'kdc')),
|
||||||
- ('kadmin', 'kadmin', '/usr/bin/kadmin'),
|
- ('kadmin', 'kadmin', '/usr/bin/kadmin'),
|
||||||
- ('kadmin_local', 'kadmin', '/usr/bin/kadmin'),
|
- ('kadmin_local', 'kadmin', '/usr/bin/kadmin'),
|
||||||
+ ('kadmin', 'kadmin', '@krb5Full@/bin/kadmin'),
|
+ ('kadmin', 'kadmin', '@krb5@/bin/kadmin'),
|
||||||
+ ('kadmin_local', 'kadmin', '@krb5Full@/bin/kadmin'),
|
+ ('kadmin_local', 'kadmin', '@krb5@/bin/kadmin'),
|
||||||
('kadmind', 'kadmind', os.path.join(base, 'kadmind')),
|
('kadmind', 'kadmind', os.path.join(base, 'kadmind')),
|
||||||
- ('_kinit', 'kinit', '/usr/bin/kinit'),
|
- ('_kinit', 'kinit', '/usr/bin/kinit'),
|
||||||
- ('_klist', 'klist', '/usr/bin/klist'),
|
- ('_klist', 'klist', '/usr/bin/klist'),
|
||||||
- ('_ktutil', 'ktutil', '/usr/bin/ktutil'),
|
- ('_ktutil', 'ktutil', '/usr/bin/ktutil'),
|
||||||
+ ('_kinit', 'kinit', '@krb5Full@/bin/kinit'),
|
+ ('_kinit', 'kinit', '@krb5@/bin/kinit'),
|
||||||
+ ('_klist', 'klist', '@krb5Full@/bin/klist'),
|
+ ('_klist', 'klist', '@krb5@/bin/klist'),
|
||||||
+ ('_ktutil', 'ktutil', '@krb5Full@/bin/ktutil'),
|
+ ('_ktutil', 'ktutil', '@krb5@/bin/ktutil'),
|
||||||
]
|
]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
@ -116,7 +116,7 @@ index 3c64b9e..59da1ab 100644
|
||||||
global _KRB_VERSION
|
global _KRB_VERSION
|
||||||
if _KRB_VERSION is None:
|
if _KRB_VERSION is None:
|
||||||
- _KRB_VERSION = _utils.get_output("krb5-config --version")
|
- _KRB_VERSION = _utils.get_output("krb5-config --version")
|
||||||
+ _KRB_VERSION = _utils.get_output("@krb5FullDev@/bin/krb5-config --version")
|
+ _KRB_VERSION = _utils.get_output("@krb5Dev@/bin/krb5-config --version")
|
||||||
_KRB_VERSION = _KRB_VERSION.split(' ')[-1].split('.')
|
_KRB_VERSION = _KRB_VERSION.split(' ')[-1].split('.')
|
||||||
|
|
||||||
def make_ext_test(func):
|
def make_ext_test(func):
|
||||||
|
|
|
@ -729,6 +729,7 @@ mapAliases ({
|
||||||
kodiPlainWayland = kodi-wayland;
|
kodiPlainWayland = kodi-wayland;
|
||||||
kodiPlugins = kodiPackages; # Added 2021-03-09;
|
kodiPlugins = kodiPackages; # Added 2021-03-09;
|
||||||
kramdown-rfc2629 = rubyPackages.kramdown-rfc2629; # Added 2021-03-23
|
kramdown-rfc2629 = rubyPackages.kramdown-rfc2629; # Added 2021-03-23
|
||||||
|
krb5Full = krb5;
|
||||||
krename-qt5 = throw "'krename-qt5' has been renamed to/replaced by 'krename'"; # Converted to throw 2022-02-22
|
krename-qt5 = throw "'krename-qt5' has been renamed to/replaced by 'krename'"; # Converted to throw 2022-02-22
|
||||||
krita-beta = krita; # moved from top-level 2021-12-23
|
krita-beta = krita; # moved from top-level 2021-12-23
|
||||||
kube-aws = throw "kube-aws is deprecated and archived by upstream"; # Added 2022-04-05
|
kube-aws = throw "kube-aws is deprecated and archived by upstream"; # Added 2022-04-05
|
||||||
|
|
|
@ -19996,7 +19996,6 @@ with pkgs;
|
||||||
krb5 = callPackage ../development/libraries/kerberos/krb5.nix {
|
krb5 = callPackage ../development/libraries/kerberos/krb5.nix {
|
||||||
inherit (buildPackages.darwin) bootstrap_cmds;
|
inherit (buildPackages.darwin) bootstrap_cmds;
|
||||||
};
|
};
|
||||||
krb5Full = krb5;
|
|
||||||
libkrb5 = krb5.override { type = "lib"; };
|
libkrb5 = krb5.override { type = "lib"; };
|
||||||
|
|
||||||
kronosnet = callPackage ../development/libraries/kronosnet { };
|
kronosnet = callPackage ../development/libraries/kronosnet { };
|
||||||
|
|
|
@ -1207,15 +1207,15 @@ let
|
||||||
url = "mirror://cpan/authors/id/S/SJ/SJQUINNEY/Authen-Krb5-Admin-0.17.tar.gz";
|
url = "mirror://cpan/authors/id/S/SJ/SJQUINNEY/Authen-Krb5-Admin-0.17.tar.gz";
|
||||||
hash = "sha256-XdScrNmD79YajD8aVlcbtzeF6xVZCLXXvsl+7XjfDFQ=";
|
hash = "sha256-XdScrNmD79YajD8aVlcbtzeF6xVZCLXXvsl+7XjfDFQ=";
|
||||||
};
|
};
|
||||||
propagatedBuildInputs = [ pkgs.krb5Full.dev AuthenKrb5 ];
|
propagatedBuildInputs = [ pkgs.krb5.dev AuthenKrb5 ];
|
||||||
# The following ENV variables are required by Makefile.PL to find
|
# The following ENV variables are required by Makefile.PL to find
|
||||||
# programs in krb5Full.dev. It is not enough to just specify the
|
# programs in krb5.dev. It is not enough to just specify the
|
||||||
# path to krb5-config as this tool returns the prefix of krb5Full,
|
# path to krb5-config as this tool returns the prefix of krb5,
|
||||||
# which implies a working value for KRB5_LIBDIR, but not the others.
|
# which implies a working value for KRB5_LIBDIR, but not the others.
|
||||||
perlPreHook = ''
|
perlPreHook = ''
|
||||||
export KRB5_CONFTOOL=${pkgs.krb5Full.dev}/bin/krb5-config
|
export KRB5_CONFTOOL=${pkgs.krb5.dev}/bin/krb5-config
|
||||||
export KRB5_BINDIR=${pkgs.krb5Full.dev}/bin
|
export KRB5_BINDIR=${pkgs.krb5.dev}/bin
|
||||||
export KRB5_INCDIR=${pkgs.krb5Full.dev}/include
|
export KRB5_INCDIR=${pkgs.krb5.dev}/include
|
||||||
'';
|
'';
|
||||||
# Tests require working Kerberos infrastructure so replace with a
|
# Tests require working Kerberos infrastructure so replace with a
|
||||||
# simple attempt to exercise the module.
|
# simple attempt to exercise the module.
|
||||||
|
@ -10529,8 +10529,8 @@ let
|
||||||
url = "mirror://cpan/authors/id/A/AG/AGROLMS/GSSAPI-0.28.tar.gz";
|
url = "mirror://cpan/authors/id/A/AG/AGROLMS/GSSAPI-0.28.tar.gz";
|
||||||
hash = "sha256-fY8se2F2L7TsctLsKBKQ8vh/nH0pgnPaRSVDKmXncNY=";
|
hash = "sha256-fY8se2F2L7TsctLsKBKQ8vh/nH0pgnPaRSVDKmXncNY=";
|
||||||
};
|
};
|
||||||
propagatedBuildInputs = [ pkgs.krb5Full.dev ];
|
propagatedBuildInputs = [ pkgs.krb5.dev ];
|
||||||
makeMakerFlags = [ "--gssapiimpl" "${pkgs.krb5Full.dev}" ];
|
makeMakerFlags = [ "--gssapiimpl" "${pkgs.krb5.dev}" ];
|
||||||
meta = {
|
meta = {
|
||||||
description = "Perl extension providing access to the GSSAPIv2 library";
|
description = "Perl extension providing access to the GSSAPIv2 library";
|
||||||
license = with lib.licenses; [ artistic1 gpl1Plus ];
|
license = with lib.licenses; [ artistic1 gpl1Plus ];
|
||||||
|
|
|
@ -4046,7 +4046,7 @@ self: super: with self; {
|
||||||
gspread = callPackage ../development/python-modules/gspread { };
|
gspread = callPackage ../development/python-modules/gspread { };
|
||||||
|
|
||||||
gssapi = callPackage ../development/python-modules/gssapi {
|
gssapi = callPackage ../development/python-modules/gssapi {
|
||||||
inherit (pkgs) krb5Full;
|
inherit (pkgs) krb5;
|
||||||
inherit (pkgs.darwin.apple_sdk.frameworks) GSS;
|
inherit (pkgs.darwin.apple_sdk.frameworks) GSS;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -4940,7 +4940,7 @@ self: super: with self; {
|
||||||
jxmlease = callPackage ../development/python-modules/jxmlease { };
|
jxmlease = callPackage ../development/python-modules/jxmlease { };
|
||||||
|
|
||||||
k5test = callPackage ../development/python-modules/k5test {
|
k5test = callPackage ../development/python-modules/k5test {
|
||||||
inherit (pkgs) krb5Full findutils which;
|
inherit (pkgs) krb5 findutils which;
|
||||||
};
|
};
|
||||||
|
|
||||||
kaa-base = callPackage ../development/python-modules/kaa-base { };
|
kaa-base = callPackage ../development/python-modules/kaa-base { };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue