From 4eadb3f154368ea9e5dd50d54a2a80bae52b8c81 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Fri, 18 Sep 2015 09:36:11 +0200 Subject: [PATCH] minissdpd: init at 1.4 --- pkgs/tools/networking/minissdpd/default.nix | 39 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 41 insertions(+) create mode 100644 pkgs/tools/networking/minissdpd/default.nix diff --git a/pkgs/tools/networking/minissdpd/default.nix b/pkgs/tools/networking/minissdpd/default.nix new file mode 100644 index 000000000000..82e26ad85c9d --- /dev/null +++ b/pkgs/tools/networking/minissdpd/default.nix @@ -0,0 +1,39 @@ +{ stdenv, fetchurl, libnfnetlink }: + +let + version = "1.4"; + name = "minissdpd-${version}"; +in stdenv.mkDerivation { + inherit name; + + src = fetchurl { + sha256 = "0450680b9hpr3z4dn6gy01clxdc17w0lmxcjx6kfj8ahsklwg8j6"; + url = "http://miniupnp.free.fr/files/download.php?file=${name}.tar.gz"; + name = "${name}.tar.gz"; + }; + + buildInputs = [ libnfnetlink ]; + + installFlags = "PREFIX=$(out) INSTALLPREFIX=$(out)"; + + enableParallelBuilding = true; + + doCheck = true; + + meta = with stdenv.lib; { + inherit version; + description = "Small daemon to speed up UPnP device discoveries"; + longDescription = '' + MiniSSDPd receives NOTIFY packets and stores (caches) that information + for later use by UPnP Control Points on the machine. MiniSSDPd receives + M-SEARCH packets and answers on behalf of the UPnP devices running on + the machine. Software must be patched in order to take advantage of + MiniSSDPd, and MiniSSDPd must be started before any other UPnP program. + ''; + homepage = http://miniupnp.free.fr/minissdpd.html; + downloadPage = http://miniupnp.free.fr/files/; + license = licenses.bsd3; + platforms = platforms.linux; + maintainers = with maintainers; [ nckx ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4694f6462293..d1bd21ae3245 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2204,6 +2204,8 @@ let libpng = libpng12; }; + minissdpd = callPackage ../tools/networking/minissdpd { }; + miniupnpc = callPackage ../tools/networking/miniupnpc { }; miniupnpd = callPackage ../tools/networking/miniupnpd { };