mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
inetutils: cleanup
- supports darwin (only when servers are disabled) - pass SUIDMODE= to avoid setuid - add myself as maintainer
This commit is contained in:
parent
8838533ec1
commit
85e1f22b98
1 changed files with 9 additions and 14 deletions
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchurl, ncurses, perl, help2man }:
|
||||
{ stdenv, lib, fetchurl, ncurses, perl, help2man }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "inetutils-1.9.4";
|
||||
|
@ -16,25 +16,20 @@ stdenv.mkDerivation rec {
|
|||
buildInputs = [ ncurses /* for `talk' */ perl /* for `whois' */ help2man ];
|
||||
|
||||
configureFlags = [ "--with-ncurses-include-dir=${ncurses.dev}/include" ]
|
||||
++ stdenv.lib.optionals stdenv.hostPlatform.isMusl [ # Musl doesn't define rcmd
|
||||
++ lib.optionals stdenv.hostPlatform.isMusl [ # Musl doesn't define rcmd
|
||||
"--disable-rcp"
|
||||
"--disable-rsh"
|
||||
"--disable-rlogin"
|
||||
"--disable-rexec"
|
||||
];
|
||||
] ++ lib.optional stdenv.isDarwin "--disable-servers";
|
||||
|
||||
# Test fails with "UNIX socket name too long", probably because our
|
||||
# $TMPDIR is too long.
|
||||
#doCheck = true;
|
||||
doCheck = false;
|
||||
|
||||
installFlags = [ "SUIDMODE=" ];
|
||||
|
||||
postInstall = ''
|
||||
# XXX: These programs are normally installed setuid but since it
|
||||
# fails, they end up being non-executable, hence this hack.
|
||||
chmod +x $out/bin/{ping,ping6,${stdenv.lib.optionalString (!stdenv.hostPlatform.isMusl) ''rcp,rlogin,rsh,''}traceroute}
|
||||
'';
|
||||
|
||||
meta = {
|
||||
meta = with lib; {
|
||||
description = "Collection of common network programs";
|
||||
|
||||
longDescription =
|
||||
|
@ -45,9 +40,9 @@ stdenv.mkDerivation rec {
|
|||
'';
|
||||
|
||||
homepage = http://www.gnu.org/software/inetutils/;
|
||||
license = stdenv.lib.licenses.gpl3Plus;
|
||||
license = licenses.gpl3Plus;
|
||||
|
||||
maintainers = [ ];
|
||||
platforms = stdenv.lib.platforms.gnu ++ stdenv.lib.platforms.linux;
|
||||
maintainers = with maintainers; [ matthewbauer ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue