about summary refs log tree commit diff
path: root/pkgs/tools/networking/stun
diff options
context:
space:
mode:
authorMarc Weber <marco-oweber@gmx.de>2009-10-18 04:43:45 +0000
committerMarc Weber <marco-oweber@gmx.de>2009-10-18 04:43:45 +0000
commit1db4de344d9a78994796c8d3a4407c5f9f9784a3 (patch)
treec6b2959881223889f4c906f87d4733964c1d4f0c /pkgs/tools/networking/stun
parent84a2555b2c6afed3ed562ccbae03069bfcf25558 (diff)
downloadnixlib-1db4de344d9a78994796c8d3a4407c5f9f9784a3.tar
nixlib-1db4de344d9a78994796c8d3a4407c5f9f9784a3.tar.gz
nixlib-1db4de344d9a78994796c8d3a4407c5f9f9784a3.tar.bz2
nixlib-1db4de344d9a78994796c8d3a4407c5f9f9784a3.tar.lz
nixlib-1db4de344d9a78994796c8d3a4407c5f9f9784a3.tar.xz
nixlib-1db4de344d9a78994796c8d3a4407c5f9f9784a3.tar.zst
nixlib-1db4de344d9a78994796c8d3a4407c5f9f9784a3.zip
adding stun
svn path=/nixpkgs/trunk/; revision=17860
Diffstat (limited to 'pkgs/tools/networking/stun')
-rw-r--r--pkgs/tools/networking/stun/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/tools/networking/stun/default.nix b/pkgs/tools/networking/stun/default.nix
new file mode 100644
index 000000000000..8023175c52a2
--- /dev/null
+++ b/pkgs/tools/networking/stun/default.nix
@@ -0,0 +1,36 @@
+args: with args;
+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 = ''
+    ensureDir $out/{bin,man/man8,man/man1}
+    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 = {
+    description = "stun server and test client";
+    longDescription = "eg useful to debug voip trouble";
+    homepage = http://sourceforge.net/projects/stun/;
+    license = "Vovida 1.0"; # See any header file.
+    maintainers = [args.lib.maintainers.marcweber];
+    platforms = args.lib.platforms.linux;
+  };
+}