aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2009-12-14 15:13:07 +0800
committervanilla <vanilla@FreeBSD.org>2009-12-14 15:13:07 +0800
commitd016ec267cec5924efff152a3e87f4f127960160 (patch)
treef40a2f40c03081750ed0377677789f375077da7d /net
parent0947b8f339df0caaa7d74e8258c199d3c1320f5c (diff)
downloadfreebsd-ports-gnome-d016ec267cec5924efff152a3e87f4f127960160.tar.gz
freebsd-ports-gnome-d016ec267cec5924efff152a3e87f4f127960160.tar.zst
freebsd-ports-gnome-d016ec267cec5924efff152a3e87f4f127960160.zip
Upgrade to 0.9.5.
Diffstat (limited to 'net')
-rw-r--r--net/spserver/Makefile4
-rw-r--r--net/spserver/distinfo6
-rw-r--r--net/spserver/files/patch-speventcb.cpp78
-rw-r--r--net/spserver/files/patch-spioutils.cpp10
-rw-r--r--net/spserver/files/patch-spserver_Makefile12
5 files changed, 28 insertions, 82 deletions
diff --git a/net/spserver/Makefile b/net/spserver/Makefile
index b505bd7f7817..da04e35029fa 100644
--- a/net/spserver/Makefile
+++ b/net/spserver/Makefile
@@ -6,8 +6,8 @@
#
PORTNAME= spserver
-PORTVERSION= 0.9.4
-PORTREVISION= 3
+PORTVERSION= 0.9.5
+PORTREVISION= 0
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
DISTNAME= ${PORTNAME}-${PORTVERSION}.src
diff --git a/net/spserver/distinfo b/net/spserver/distinfo
index 385dc4d6ea4f..fe40208128c8 100644
--- a/net/spserver/distinfo
+++ b/net/spserver/distinfo
@@ -1,3 +1,3 @@
-MD5 (spserver-0.9.4.src.tar.gz) = 57cf674e7a32c80f31bb6523dd75f5ce
-SHA256 (spserver-0.9.4.src.tar.gz) = 64e0ade0dafb611ab65db3c78a0acd4c0e5120fc377612a34c9ddb2897e0c271
-SIZE (spserver-0.9.4.src.tar.gz) = 120187
+MD5 (spserver-0.9.5.src.tar.gz) = ea5a84a490bbd97535c7773649300f1c
+SHA256 (spserver-0.9.5.src.tar.gz) = 551c280faf06aa03e9ad988fcec6afc23e7e3314da2926e5e04c573e6cfeede5
+SIZE (spserver-0.9.5.src.tar.gz) = 122869
diff --git a/net/spserver/files/patch-speventcb.cpp b/net/spserver/files/patch-speventcb.cpp
index 34ebbc9a0810..4b9d1ad3c622 100644
--- a/net/spserver/files/patch-speventcb.cpp
+++ b/net/spserver/files/patch-speventcb.cpp
@@ -1,66 +1,6 @@
---- spserver/speventcb.cpp.orig 2008-10-23 22:08:00.000000000 +0800
-+++ spserver/speventcb.cpp 2009-07-02 11:44:48.000000000 +0800
-@@ -177,14 +177,16 @@
- addEvent( session, EV_READ, -1 );
- } else {
- int saved = errno;
-- sp_syslog( LOG_NOTICE, "session(%d.%d) read error, errno %d, status %d",
-- sid.mKey, sid.mSeq, errno, session->getStatus() );
-+ if( 0 != errno ) {
-+ sp_syslog( LOG_WARNING, "session(%d.%d) read error, errno %d, status %d",
-+ sid.mKey, sid.mSeq, errno, session->getStatus() );
-+ }
-
- if( EAGAIN != saved ) {
- if( 0 == session->getRunning() ) {
- SP_EventHelper::doError( session );
- } else {
-- addEvent( session, EV_READ, -1 );
-+ //addEvent( session, EV_READ, -1 );
- sp_syslog( LOG_NOTICE, "session(%d.%d) busy, process session error later",
- sid.mKey, sid.mSeq );
- }
-@@ -196,7 +198,7 @@
- if( 0 == session->getRunning() ) {
- SP_EventHelper::doTimeout( session );
- } else {
-- addEvent( session, EV_READ, -1 );
-+ //addEvent( session, EV_READ, -1 );
- sp_syslog( LOG_NOTICE, "session(%d.%d) busy, process session timeout later",
- sid.mKey, sid.mSeq );
- }
-@@ -230,7 +232,7 @@
- sid.mKey, sid.mSeq, errno, session->getStatus(), session->getOutList()->getCount() );
- SP_EventHelper::doError( session );
- } else {
-- addEvent( session, EV_WRITE, -1 );
-+ //addEvent( session, EV_WRITE, -1 );
- sp_syslog( LOG_NOTICE, "session(%d.%d) busy, process session error later, errno [%d]",
- sid.mKey, sid.mSeq, errno );
- }
-@@ -244,10 +246,10 @@
- if( SP_Session::eExit == session->getStatus() ) {
- ret = -1;
- if( 0 == session->getRunning() ) {
-- sp_syslog( LOG_NOTICE, "session(%d.%d) normal exit", sid.mKey, sid.mSeq );
-+ sp_syslog( LOG_WARNING, "session(%d.%d) normal exit", sid.mKey, sid.mSeq );
- SP_EventHelper::doClose( session );
- } else {
-- addEvent( session, EV_WRITE, -1 );
-+ //addEvent( session, EV_WRITE, -1 );
- sp_syslog( LOG_NOTICE, "session(%d.%d) busy, terminate session later",
- sid.mKey, sid.mSeq );
- }
-@@ -269,7 +271,7 @@
- if( 0 == session->getRunning() ) {
- SP_EventHelper::doTimeout( session );
- } else {
-- addEvent( session, EV_WRITE, -1 );
-+ //addEvent( session, EV_WRITE, -1 );
- sp_syslog( LOG_NOTICE, "session(%d.%d) busy, process session timeout later",
- sid.mKey, sid.mSeq );
- }
-@@ -409,7 +411,7 @@
+--- spserver/speventcb.cpp.orig 2009-12-13 10:02:38.000000000 +0800
++++ spserver/speventcb.cpp 2009-12-14 14:11:18.000000000 +0800
+@@ -422,7 +422,7 @@ void SP_EventHelper :: doWork( SP_Sessio
char buffer[ 16 ] = { 0 };
session->getInBuffer()->take( buffer, sizeof( buffer ) );
sp_syslog( LOG_WARNING, "session(%d.%d) status is %d, ignore [%s...] (%dB)",
@@ -69,7 +9,7 @@
session->getInBuffer()->reset();
}
}
-@@ -473,7 +475,7 @@
+@@ -486,7 +486,7 @@ void SP_EventHelper :: error( void * arg
sp_syslog( LOG_WARNING, "session(%d.%d) error, r %d(%d), w %d(%d), i %d, o %d, s %d(%d)",
sid.mKey, sid.mSeq, session->getTotalRead(), session->getReading(),
session->getTotalWrite(), session->getWriting(),
@@ -78,7 +18,7 @@
eventArg->getSessionManager()->getCount(), eventArg->getSessionManager()->getFreeCount() );
// onResponse will ignore this session, so it's safe to destroy session here
-@@ -524,8 +526,8 @@
+@@ -537,8 +537,8 @@ void SP_EventHelper :: timeout( void * a
sp_syslog( LOG_WARNING, "session(%d.%d) timeout, r %d(%d), w %d(%d), i %d, o %d, s %d(%d)",
sid.mKey, sid.mSeq, session->getTotalRead(), session->getReading(),
session->getTotalWrite(), session->getWriting(),
@@ -89,12 +29,8 @@
// onResponse will ignore this session, so it's safe to destroy session here
session->getHandler()->close();
-@@ -553,10 +555,10 @@
- SP_EventArg * eventArg = (SP_EventArg*)session->getArg();
- SP_Sid_t sid = session->getSid();
-
-- sp_syslog( LOG_NOTICE, "session(%d.%d) close, r %d(%d), w %d(%d), i %d, o %d, s %d(%d)",
-+ sp_syslog( LOG_WARNING, "session(%d.%d) close, r %d(%d), w %d(%d), i %d, o %d, s %d(%d)",
+@@ -569,7 +569,7 @@ void SP_EventHelper :: myclose( void * a
+ sp_syslog( LOG_DEBUG, "session(%d.%d) close, r %d(%d), w %d(%d), i %d, o %d, s %d(%d)",
sid.mKey, sid.mSeq, session->getTotalRead(), session->getReading(),
session->getTotalWrite(), session->getWriting(),
- session->getInBuffer()->getSize(), session->getOutList()->getCount(),
diff --git a/net/spserver/files/patch-spioutils.cpp b/net/spserver/files/patch-spioutils.cpp
new file mode 100644
index 000000000000..09e73039d576
--- /dev/null
+++ b/net/spserver/files/patch-spioutils.cpp
@@ -0,0 +1,10 @@
+--- spserver/spioutils.cpp.orig 2009-12-14 14:44:52.000000000 +0800
++++ spserver/spioutils.cpp 2009-12-14 14:45:13.000000000 +0800
+@@ -8,6 +8,7 @@
+ #include <errno.h>
+ #include <string.h>
+ #include <assert.h>
++#include <sys/stat.h>
+
+ #include "spporting.hpp"
+
diff --git a/net/spserver/files/patch-spserver_Makefile b/net/spserver/files/patch-spserver_Makefile
index eab6e0ce4ae0..f79d0ba501b4 100644
--- a/net/spserver/files/patch-spserver_Makefile
+++ b/net/spserver/files/patch-spserver_Makefile
@@ -1,13 +1,13 @@
---- spserver/Makefile.orig 2008-06-27 23:18:18.000000000 +0800
-+++ spserver/Makefile 2008-09-30 10:39:35.000000000 +0800
-@@ -11,8 +11,8 @@
+--- spserver/Makefile.orig 2009-12-13 10:02:38.000000000 +0800
++++ spserver/Makefile 2009-12-14 14:43:58.000000000 +0800
+@@ -11,8 +11,8 @@ LINKER = $(CC)
LINT = lint -c
RM = /bin/rm -f
-LIBEVENT_INCL = -I$(HOME)/libevent/
--LIBEVENT_LIB = -L$(HOME)/libevent -levent
-+LIBEVENT_INCL = -I/usr/local/include
-+LIBEVENT_LIB = -L. -L/usr/local/lib -levent
+-LIBEVENT_LIB = -L$(HOME)/libevent -levent -lrt
++LIBEVENT_INCL = -I%PREFIX%/include
++LIBEVENT_LIB = -L%PREFIX%/lib -levent
CFLAGS += $(LIBEVENT_INCL)
LDFLAGS += $(LIBEVENT_LIB)