Author: viric
Date: Wed Apr 20 20:55:46 2011
New Revision: 26912
URL: https://svn.nixos.org/websvn/nix/?rev=26912&sc=1

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

Added:
   nixpkgs/trunk/pkgs/tools/networking/wakelan/
   nixpkgs/trunk/pkgs/tools/networking/wakelan/default.nix
Modified:
   nixpkgs/trunk/pkgs/build-support/fetchurl/mirrors.nix
   nixpkgs/trunk/pkgs/top-level/all-packages.nix

Modified: nixpkgs/trunk/pkgs/build-support/fetchurl/mirrors.nix
==============================================================================
--- nixpkgs/trunk/pkgs/build-support/fetchurl/mirrors.nix       Wed Apr 20 
17:27:24 2011        (r26911)
+++ nixpkgs/trunk/pkgs/build-support/fetchurl/mirrors.nix       Wed Apr 20 
20:55:46 2011        (r26912)
@@ -246,4 +246,10 @@
     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/
+  ];
+
 }

Added: nixpkgs/trunk/pkgs/tools/networking/wakelan/default.nix
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/tools/networking/wakelan/default.nix     Wed Apr 20 
20:55:46 2011        (r26912)
@@ -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;
+  };
+}

Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix
==============================================================================
--- nixpkgs/trunk/pkgs/top-level/all-packages.nix       Wed Apr 20 17:27:24 
2011        (r26911)
+++ nixpkgs/trunk/pkgs/top-level/all-packages.nix       Wed Apr 20 20:55:46 
2011        (r26912)
@@ -1426,6 +1426,8 @@
 
   vlan = callPackage ../tools/networking/vlan { };
 
+  wakelan = callPackage ../tools/networking/wakelan { };
+
   w3cCSSValidator = callPackage ../tools/misc/w3c-css-validator {
     tomcat = tomcat6;
   };
_______________________________________________
nix-commits mailing list
nix-comm...@cs.uu.nl
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to