# HG changeset patch # User Michael Schloh von Bennewitz # Date 1231458393 -3600 # Node ID 11a94c8e617e7911217cf2f02aa0ae05d2778bc8 # Parent d42d557c7a5a09328056e31d0aceb0b1a06c65f5 Port to Solaris and correct network header inclusion. diff -r d42d557c7a5a -r 11a94c8e617e stun/stun.patch --- a/stun/stun.patch Fri Jan 09 00:45:56 2009 +0100 +++ b/stun/stun.patch Fri Jan 09 00:46:33 2009 +0100 @@ -83,3 +83,15 @@ StunServerInfo info; bool ok = stunInitServer(info, myAddr, altAddr, myMediaPort, verbose); +Index: stun.cxx +diff -Nau stund.orig/stun.cxx stund/stun.cxx +--- stun.cxx.orig 2005-08-14 02:39:03.000000000 +0200 ++++ stun.cxx 2009-01-09 00:23:08.069498590 +0100 +@@ -16,6 +16,7 @@ + #include + #include + #include ++#include + #include + #include + #include diff -r d42d557c7a5a -r 11a94c8e617e stun/stun.spec --- a/stun/stun.spec Fri Jan 09 00:45:56 2009 +0100 +++ b/stun/stun.spec Fri Jan 09 00:46:33 2009 +0100 @@ -36,7 +36,7 @@ Group: VoIP License: Open Source Version: %{V_opkg} -Release: 20080101 +Release: 20090106 # list of sources Source0: http://switch.dl.sourceforge.net/stun/stund_%{V_dist}.tgz @@ -73,12 +73,24 @@ %prep %setup -q -n stund %patch -p0 + case "%{l_platform -t}" in + *-sunos* ) + %{l_shtool} subst \ + -e 's;^\(LDFLAGS\)+=.*;\1=;' \ + -e 's;^#\(LDFLAGS+=\) -lnsl -lsocket;\1-lsocket -lnsl;' \ + Makefile + ;; + * ) + %{l_shtool} subst \ + -e 's;^\(LDFLAGS\)+=.*;\1=;' \ + Makefile + ;; + esac %build %{l_make} %{l_mflags} \ CXX="%{l_cxx}" \ - CXXFLAGS="%{l_cxxflags -O}" \ - LDFLAGS="" + CXXFLAGS="%{l_cxxflags -O}" %install rm -rf $RPM_BUILD_ROOT