3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/miniupnpd/default.nix
Andreas Rammhold addf1d5da3
miniupnpd: 2.0 -> 2.0.20171212 (fixes CVE-2017-1000494)
changelog since the last version bump:

  2017/12/12:
    Fix a few buffer overrun in SSDP and SOAP parsing

  2017/11/02:
    PCP : reset epoch after address change

  2017/05/26:
    merge https://github.com/miniupnp/miniupnp/tree/randomize_url branch

  2017/05/24:
    get SSDP packet receiving interface index and use it to check if the
      packet is from a LAN

  2017/03/13:
    default to client address for AddPortMapping when <NewInternalClient>
      is empty
    pass ext_if_name to add_pinhole()

  2016/12/23:
    Fix UDA-1.2.10 Man header empty or invalid

  2016/12/16:
    Do not try to open IPv6 sockets once it is disabled

  2016/12/01:
    Fix "AddPinhole Twice" test

  2016/11/11:
    fixes build for Solaris/SunOS

  2016/07/23:
    fixes build error on DragonFly BSD
2018-01-15 17:51:19 +01:00

30 lines
804 B
Nix

{ stdenv, fetchurl, iptables, libuuid, pkgconfig }:
assert stdenv.isLinux;
stdenv.mkDerivation rec {
name = "miniupnpd-2.0.20171212";
src = fetchurl {
url = "http://miniupnp.free.fr/files/download.php?file=${name}.tar.gz";
sha256 = "0jdcll1nd8jf356fpl0n2yw8sww58nfz6hkx052d77l34afq6sn7";
name = "${name}.tar.gz";
};
buildInputs = [ iptables libuuid ];
nativeBuildInputs= [ pkgconfig ];
makefile = "Makefile.linux";
buildFlags = [ "miniupnpd" "genuuid" ];
installFlags = [ "PREFIX=$(out)" "INSTALLPREFIX=$(out)" ];
meta = with stdenv.lib; {
homepage = http://miniupnp.free.fr/;
description = "A daemon that implements the UPnP Internet Gateway Device (IGD) specification";
platforms = platforms.linux;
maintainers = with maintainers; [ nckx ];
};
}