Unverified Commit ead38268 authored by Pavol Rusnak's avatar Pavol Rusnak
Browse files

miniupnpd: 2.1.20190502 -> 2.3.1

parent 7cce48d5
Loading
Loading
Loading
Loading
+9 −9
Original line number Diff line number Diff line
{ stdenv, lib, fetchurl, iptables, libuuid, pkg-config
{ stdenv, lib, fetchurl, iptables, libuuid, openssl, pkg-config
, which, iproute2, gnused, coreutils, gawk, makeWrapper
, nixosTests
}:
@@ -8,20 +8,20 @@ let
in
stdenv.mkDerivation rec {
  pname = "miniupnpd";
  version = "2.1.20190502";
  version = "2.3.1";

  src = fetchurl {
    url = "http://miniupnp.free.fr/files/download.php?file=miniupnpd-${version}.tar.gz";
    sha256 = "1m8d0g9b0bjwsnqccw1yapp6n0jghmgzwixwjflwmvi2fi6hdp4b";
    name = "miniupnpd-${version}.tar.gz";
    url = "https://miniupnp.tuxfamily.org/files/miniupnpd-${version}.tar.gz";
    sha256 = "0crv975qqppnj27jba96yysq2911y49vjd74sp9vnjb54z0d9pyi";
  };

  buildInputs = [ iptables libuuid ];
  buildInputs = [ iptables libuuid openssl ];
  nativeBuildInputs= [ pkg-config makeWrapper ];

  makefile = "Makefile.linux";

  buildFlags = [ "miniupnpd" "genuuid" ];
  # ./configure is not a standard configure file, errors with:
  # Option not recognized : --prefix=
  dontAddPrefix = true;

  installFlags = [ "PREFIX=$(out)" "INSTALLPREFIX=$(out)" ];

@@ -37,7 +37,7 @@ stdenv.mkDerivation rec {
  };

  meta = with lib; {
    homepage = "http://miniupnp.free.fr/";
    homepage = "https://miniupnp.tuxfamily.org/";
    description = "A daemon that implements the UPnP Internet Gateway Device (IGD) specification";
    platforms = platforms.linux;
    license = licenses.bsd3;