Adding 'wakelan', to use UDP wake on lan on ethernet.

svn path=/nixpkgs/trunk/; revision=26912
This commit is contained in:
Lluís Batlle i Rossell 2011-04-20 20:55:46 +00:00
parent 815c121458
commit ee8b05eb70
3 changed files with 37 additions and 0 deletions

View File

@ -246,4 +246,10 @@ rec {
ftp://ftp-archives.postgresql.org/pub/
];
metalab = [
ftp://mirrors.kernel.org/metalab/
ftp://ftp.gwdg.de/pub/linux/metalab/
ftp://ftp.xemacs.org/sites/metalab.unc.edu/
];
}

View File

@ -0,0 +1,29 @@
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "wakelan-1.1";
src = fetchurl {
url = "mirror://metalab/system/network/misc/${name}.tar.gz";
sha256 = "0vydqpf44146ir6k87gmqaq6xy66xhc1gkr3nsd7jj3nhy7ypx9x";
};
preInstall = ''
ensureDir $out/man/man1 $out/bin
'';
meta = {
description = "Send a wake-on-lan packet";
longDescription =
'' WakeLan sends a properly formatted UDP packet across the
network which will cause a wake-on-lan enabled computer to
power on.
'';
license = "GPLv2+";
maintainers = [ stdenv.lib.maintainers.viric ];
platforms = stdenv.lib.platforms.linux;
};
}

View File

@ -1426,6 +1426,8 @@ let
vlan = callPackage ../tools/networking/vlan { };
wakelan = callPackage ../tools/networking/wakelan { };
w3cCSSValidator = callPackage ../tools/misc/w3c-css-validator {
tomcat = tomcat6;
};