From ee8b05eb7091233086333c6980b2e10cf83004ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Wed, 20 Apr 2011 20:55:46 +0000 Subject: [PATCH] Adding 'wakelan', to use UDP wake on lan on ethernet. svn path=/nixpkgs/trunk/; revision=26912 --- pkgs/build-support/fetchurl/mirrors.nix | 6 +++++ pkgs/tools/networking/wakelan/default.nix | 29 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 37 insertions(+) create mode 100644 pkgs/tools/networking/wakelan/default.nix diff --git a/pkgs/build-support/fetchurl/mirrors.nix b/pkgs/build-support/fetchurl/mirrors.nix index fe5a0c9356bd..7ff9899dced3 100644 --- a/pkgs/build-support/fetchurl/mirrors.nix +++ b/pkgs/build-support/fetchurl/mirrors.nix @@ -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/ + ]; + } diff --git a/pkgs/tools/networking/wakelan/default.nix b/pkgs/tools/networking/wakelan/default.nix new file mode 100644 index 000000000000..6cc18ec8678f --- /dev/null +++ b/pkgs/tools/networking/wakelan/default.nix @@ -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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7b299c060c27..0f69620505df 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1426,6 +1426,8 @@ let vlan = callPackage ../tools/networking/vlan { }; + wakelan = callPackage ../tools/networking/wakelan { }; + w3cCSSValidator = callPackage ../tools/misc/w3c-css-validator { tomcat = tomcat6; };