# HG changeset patch # User Michael Schloh von Bennewitz # Date 1334332144 -7200 # Node ID 76ceb617f880335c2ff28cd1c11d67a896ec489c # Parent 0bc1d0d1fe3aaf9fbdf30f075eabf91321830e86 Update to latest (although not new) upstream vendor version. diff -r 0bc1d0d1fe3a -r 76ceb617f880 stun/stun.patch --- a/stun/stun.patch Fri Mar 30 18:55:41 2012 +0200 +++ b/stun/stun.patch Fri Apr 13 17:49:04 2012 +0200 @@ -1,22 +1,3 @@ -Index: client.cxx ---- client.cxx.orig 2005-08-14 02:43:10 +0200 -+++ client.cxx 2005-11-16 10:28:17 +0100 -@@ -178,13 +178,13 @@ - retval[nic] = 0x02; - break; - case StunTypeDependentFilter: -- cout << "Independedt Mapping, Address Dependendent Filter"; -+ cout << "Independedt Mapping, Address Dependent Filter"; - if ( presPort ) cout << ", preserves ports"; else cout << ", random port"; - if ( hairpin ) cout << ", will hairpin"; else cout << ", no hairpin"; - retval[nic] = 0x04; - break; - case StunTypePortDependedFilter: -- cout << "Indepndent Mapping, Port Dependent Filter"; -+ cout << "Independent Mapping, Port Dependent Filter"; - if ( presPort ) cout << ", preserves ports"; else cout << ", random port"; - if ( hairpin ) cout << ", will hairpin"; else cout << ", no hairpin"; - retval[nic] = 0x06; Index: server.cxx --- server.cxx.orig 2005-08-13 22:19:29 +0200 +++ server.cxx 2005-11-16 10:33:51 +0100 diff -r 0bc1d0d1fe3a -r 76ceb617f880 stun/stun.spec --- a/stun/stun.spec Fri Mar 30 18:55:41 2012 +0200 +++ b/stun/stun.spec Fri Apr 13 17:49:04 2012 +0200 @@ -21,10 +21,6 @@ ## SUCH DAMAGE. ## -# package version -%define V_dist 0.96_Aug13 -%define V_opkg 0.96 - # package information Name: stun Summary: STUN Client & Server @@ -35,11 +31,11 @@ Class: EVAL Group: VoIP License: Open Source -Version: %{V_opkg} -Release: 20090106 +Version: 0.97 +Release: 20120208 # list of sources -Source0: http://switch.dl.sourceforge.net/stun/stund_%{V_dist}.tgz +Source0: http://switch.dl.sourceforge.net/stun/stund-%{version}.tgz Source1: rc.stun Patch0: stun.patch @@ -65,7 +61,7 @@ %track prog stun = { - version = %{V_dist} + version = %{version} url = http://prdownloads.sourceforge.net/stun/ regex = stund_(.+?)\.tgz } @@ -77,7 +73,7 @@ *-sunos* ) %{l_shtool} subst \ -e 's;^\(LDFLAGS\)+=.*;\1=;' \ - -e 's;^#\(LDFLAGS+=\) -lnsl -lsocket;\1-lsocket -lnsl;' \ + -e 's;^#\(LDFLAGS+=\) -lnsl -lsocket;\1-lsocket -lnsl -ldl;' \ Makefile ;; * ) @@ -88,7 +84,7 @@ esac %build - %{l_make} %{l_mflags} \ + %{l_make} %{l_mflags -O} \ CXX="%{l_cxx}" \ CXXFLAGS="%{l_cxxflags -O}"