Unverified Commit 0500adff authored by Stig's avatar Stig Committed by GitHub
Browse files

remctl: init at 3.18 (#350206)

parents 0c98c85c 100bad6a
Loading
Loading
Loading
Loading
+62 −0
Original line number Diff line number Diff line
{
  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;
  };
})
+20 −0
Original line number Diff line number Diff line
{
  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 ];
}
+21 −0
Original line number Diff line number Diff line
{
  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 ];
}
+2 −0
Original line number Diff line number Diff line
@@ -19100,6 +19100,8 @@ with self; {
    };
  };
  NetRemctl = callPackage ../development/perl-modules/NetRemctl { };
  NetServer = buildPerlPackage {
    pname = "Net-Server";
    version = "2.014";
+4 −0
Original line number Diff line number Diff line
@@ -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 { };