2018-04-26 23:09:30 +00:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, libcap }:
|
2016-07-09 10:49:04 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "smcroute-${version}";
|
2018-06-19 06:11:05 +00:00
|
|
|
version = "2.4.1";
|
2016-07-09 10:49:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "troglobit";
|
|
|
|
repo = "smcroute";
|
|
|
|
rev = version;
|
2018-06-19 06:11:05 +00:00
|
|
|
sha256 = "0wh7c15lglcgiap9pplqpd5abnxhfx3vh0nqjzvfnl82hwhnld1z";
|
2016-07-09 10:49:04 +00:00
|
|
|
};
|
|
|
|
|
2018-04-26 23:09:30 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
|
|
buildInputs = [ libcap ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--localstatedir=/var"
|
|
|
|
"--with-systemd=\$(out)/lib/systemd/system"
|
|
|
|
];
|
2016-07-09 10:49:04 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Static multicast routing daemon";
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = http://troglobit.com/smcroute.html;
|
2016-07-09 10:49:04 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ fpletz ];
|
|
|
|
platforms = with platforms; (linux ++ freebsd ++ netbsd ++ openbsd);
|
|
|
|
};
|
|
|
|
}
|