remctl: init at 3.18 (#350206)

This commit is contained in:
Stig 2024-10-27 10:29:35 +00:00 committed by GitHub
commit 0500adff80
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 109 additions and 0 deletions

View File

@ -0,0 +1,62 @@
{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
libevent,
krb5,
openssl,
perl,
pkg-config,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "remctl";
version = "3.18";
src = fetchFromGitHub {
owner = "rra";
repo = "remctl";
rev = "release/${finalAttrs.version}";
hash = "sha256-4KzNhFswNTwcXrDBAfRyr502zwRQ3FACV8gDfBm7M0A=";
};
# Fix references to /usr/bin/perl in tests and
# disable acl/localgroup test that does not work in sandbox.
postPatch = ''
patchShebangs tests
sed -i '\,server/acl/localgroup,d' tests/TESTS
'';
nativeBuildInputs = [
autoreconfHook
perl
pkg-config
];
buildInputs = [
krb5
libevent
openssl
];
# Invokes pod2man to create man pages required by Makefile.
preConfigure = ''
./bootstrap
'';
makeFlags = [
"LD=$(CC)"
"REMCTL_PERL_FLAGS='--prefix=$(out)'"
"REMCTL_PYTHON_INSTALL='--prefix=$(out)'"
];
checkTarget = "check-local";
meta = with lib; {
description = "Remote execution tool";
homepage = "https://www.eyrie.org/~eagle/software/remctl";
mainProgram = "remctl";
license = licenses.mit;
maintainers = teams.deshaw.members;
};
})

View File

@ -0,0 +1,20 @@
{
buildPerlModule,
remctl,
TestPod,
}:
buildPerlModule {
pname = "NetRemctl";
inherit (remctl) meta src version;
postPatch = ''
cp -R tests/tap/perl/Test perl/t/lib
cd perl
'';
buildInputs = [ remctl ];
checkInputs = [ TestPod ];
}

View File

@ -0,0 +1,21 @@
{
lib,
buildPythonPackage,
pythonOlder,
remctl-c, # remctl from pkgs, not from pythonPackages
typing,
}:
buildPythonPackage {
inherit (remctl-c)
meta
pname
src
version
;
setSourceRoot = "sourceRoot=$(echo */python)";
buildInputs = [ remctl-c ];
propagatedBuildInputs = lib.optionals (pythonOlder "3.5") [ typing ];
}

View File

@ -19100,6 +19100,8 @@ with self; {
};
};
NetRemctl = callPackage ../development/perl-modules/NetRemctl { };
NetServer = buildPerlPackage {
pname = "Net-Server";
version = "2.014";

View File

@ -13553,6 +13553,10 @@ self: super: with self; {
remarshal = callPackage ../development/python-modules/remarshal { };
remctl = callPackage ../development/python-modules/remctl {
remctl-c = pkgs.remctl;
};
remi = callPackage ../development/python-modules/remi { };
remote-pdb = callPackage ../development/python-modules/remote-pdb { };