2010-07-28 12:55:54 +01:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
2016-09-07 18:23:38 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "stun";
|
|
|
|
version = "0.97";
|
2009-10-18 05:43:45 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-09-07 18:23:38 +01:00
|
|
|
url = "mirror://sourceforge/${pname}/stund-${version}.tgz";
|
|
|
|
sha256 = "1mxirnnqfqdwb9x8hfjjsscp6lx3468ph6ddx32l94ir46fbzqc3";
|
2009-10-18 05:43:45 +01:00
|
|
|
};
|
|
|
|
|
2016-09-07 18:23:38 +01:00
|
|
|
srcManpages = fetchurl {
|
|
|
|
url = "mirror://ubuntu/pool/universe/s/stun/stun_0.97~dfsg-2.debian.tar.xz";
|
|
|
|
name = "stun-debian.tar.xz";
|
|
|
|
sha256 = "1pr6zrdhia0aafsvywl1hrhlgl00vahp63bw1z2mzvdxri7q88f0";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "server" ];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
tar Jxvf ${srcManpages} debian/manpages
|
2016-12-19 13:35:01 +00:00
|
|
|
gzip -9n debian/manpages/stun.1
|
|
|
|
gzip -9n debian/manpages/stund.8
|
2009-10-18 05:43:45 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2016-09-07 18:23:38 +01:00
|
|
|
mkdir -p $out/bin $server/bin $out/man/man1 $server/man/man8
|
|
|
|
cp -v client $out/bin/stun
|
|
|
|
cp -v server $server/bin/stund
|
|
|
|
cp -v debian/manpages/stun.1.gz $out/man/man1
|
|
|
|
cp -v debian/manpages/stund.8.gz $server/man/man8
|
2009-10-18 05:43:45 +01:00
|
|
|
'';
|
|
|
|
|
2016-09-07 18:23:38 +01:00
|
|
|
meta = with stdenv.lib; {
|
2010-07-28 12:55:54 +01:00
|
|
|
description = "Stun server and test client";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://sourceforge.net/projects/stun/";
|
2016-09-07 18:23:38 +01:00
|
|
|
license = licenses.vsl10;
|
|
|
|
maintainers = with maintainers; [ marcweber obadz ];
|
|
|
|
platforms = platforms.linux;
|
2009-10-18 05:43:45 +01:00
|
|
|
};
|
|
|
|
}
|