2010-07-28 13:55:54 +02:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
2009-10-18 06:43:45 +02:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "stun-0.96.dfsg-5";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = mirror://debian/pool/main/s/stun/stun_0.96.dfsg.orig.tar.gz;
|
|
|
|
sha256 = "09bnb3p6h8fhsskdp4wrl9hhml1va0xb28fkwgyzs32q2333pgz4";
|
|
|
|
};
|
|
|
|
|
|
|
|
# make it compile on x86_64-linux:
|
|
|
|
postUnpack = ''
|
|
|
|
sed -i 's@|| defined(__i386__)@|| defined(__x86_64__) || defined(__i386__)@' stund/stun.cxx
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/{bin,man/man8,man/man1}
|
2009-10-18 06:43:45 +02:00
|
|
|
cp client $out/bin/stun
|
|
|
|
cp server $out/bin/stund
|
|
|
|
cp debian/manpages/stund.8 $out/man/man8
|
|
|
|
cp debian/manpages/stun.1 $out/man/man1
|
|
|
|
'';
|
|
|
|
|
|
|
|
patches = fetchurl {
|
|
|
|
url = mirror://debian/pool/main/s/stun/stun_0.96.dfsg-5.diff.gz;
|
|
|
|
sha256 = "0a6iig58zykdab89b99v1w4fn3gf2d8wz9c01vx2zvlg22gyji0l";
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
2010-07-28 13:55:54 +02:00
|
|
|
description = "Stun server and test client";
|
2009-10-18 06:43:45 +02:00
|
|
|
homepage = http://sourceforge.net/projects/stun/;
|
|
|
|
license = "Vovida 1.0"; # See any header file.
|
2010-07-28 13:55:54 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.marcweber ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2009-10-18 06:43:45 +02:00
|
|
|
};
|
|
|
|
}
|