aboutsummaryrefslogtreecommitdiff
path: root/devel/libassa
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2003-12-25 08:28:12 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2003-12-25 08:28:12 +0000
commite71faa9e5ef31590fe9b7bf598d5a238d155b282 (patch)
tree213fd5f160bc1eaa93ae0239f2bcb56cf23d8580 /devel/libassa
parent97c5a4c99fcf2fec8dc4912f6d4f1c994a62462a (diff)
downloadports-e71faa9e5ef31590fe9b7bf598d5a238d155b282.tar.gz
ports-e71faa9e5ef31590fe9b7bf598d5a238d155b282.zip
add libassa 3.2.0
An C++ networking library and application framework
Notes
Notes: svn path=/head/; revision=96560
Diffstat (limited to 'devel/libassa')
-rw-r--r--devel/libassa/Makefile22
-rw-r--r--devel/libassa/distinfo1
-rw-r--r--devel/libassa/files/patch-assa:Connector.h20
-rw-r--r--devel/libassa/files/patch-assa:GenServer.cpp19
-rw-r--r--devel/libassa/files/patch-assa:Handlers.h11
-rw-r--r--devel/libassa/files/patch-assa:Socket.cpp10
-rw-r--r--devel/libassa/files/patch-ltmain.sh15
-rw-r--r--devel/libassa/files/patch-tests:ttcp_assa.cpp38
-rw-r--r--devel/libassa/pkg-descr6
-rw-r--r--devel/libassa/pkg-plist64
10 files changed, 206 insertions, 0 deletions
diff --git a/devel/libassa/Makefile b/devel/libassa/Makefile
new file mode 100644
index 000000000000..f709136d50a9
--- /dev/null
+++ b/devel/libassa/Makefile
@@ -0,0 +1,22 @@
+# ex:ts=8
+# Ports collection makefile for: libassa
+# Date created: Dec 24, 2003
+# Whom: ijliao
+#
+# $FreeBSD$
+#
+
+PORTNAME= libassa
+PORTVERSION= 3.2.0
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= An C++ networking library and application framework
+
+USE_GNOME= gnomehack
+GNU_CONFIGURE= yes
+INSTALLS_SHLIB= yes
+
+.include <bsd.port.mk>
diff --git a/devel/libassa/distinfo b/devel/libassa/distinfo
new file mode 100644
index 000000000000..06a505577f58
--- /dev/null
+++ b/devel/libassa/distinfo
@@ -0,0 +1 @@
+MD5 (libassa-3.2.0.tar.gz) = c935e06017ea5958f78271d3e8eec497
diff --git a/devel/libassa/files/patch-assa:Connector.h b/devel/libassa/files/patch-assa:Connector.h
new file mode 100644
index 000000000000..d6b1049ef3f5
--- /dev/null
+++ b/devel/libassa/files/patch-assa:Connector.h
@@ -0,0 +1,20 @@
+--- assa/Connector.h.orig Wed Dec 24 17:32:49 2003
++++ assa/Connector.h Wed Dec 24 17:34:16 2003
+@@ -407,7 +407,7 @@
+ int error;
+ int ret;
+ error = ret = errno = 0;
+- size_t n = sizeof (error);
++ socklen_t n = sizeof (error);
+
+ /* Always remove IO handler first. */
+ m_reactor->removeHandler (this, WRITE_EVENT);
+@@ -415,7 +415,7 @@
+ #if defined(linux)
+ ret = getsockopt (m_fd, SOL_SOCKET, SO_ERROR, (void*)&error, &n);
+ #else // Solaris 2.6
+- ret = getsockopt (m_fd, SOL_SOCKET, SO_ERROR, (char*)&error, (int*)&n);
++ ret = getsockopt (m_fd, SOL_SOCKET, SO_ERROR, (char*)&error, &n);
+ #endif
+
+ if (ret == 0) {
diff --git a/devel/libassa/files/patch-assa:GenServer.cpp b/devel/libassa/files/patch-assa:GenServer.cpp
new file mode 100644
index 000000000000..c8f336fdf2e1
--- /dev/null
+++ b/devel/libassa/files/patch-assa:GenServer.cpp
@@ -0,0 +1,19 @@
+--- assa/GenServer.cpp.orig Wed Dec 24 16:14:51 2003
++++ assa/GenServer.cpp Wed Dec 24 17:24:09 2003
+@@ -154,14 +154,14 @@
+
+ ignore_act.register_action( SIGPIPE );
+ ignore_act.register_action( SIGCHLD );
+- ignore_act.register_action( SIGCLD );
++// ignore_act.register_action( SIGCLD );
+ ignore_act.register_action( SIGALRM );
+
+ /**
+ * Catch SIGPOLL - sigPOLL handler just does nothing except
+ * of catching signal.
+ */
+- m_sig_dispatcher.install ( SIGPOLL, &m_sig_poll );
++ m_sig_dispatcher.install ( SIGIO, &m_sig_poll );
+
+ /**
+ * SIGINT is generated by the terminal driver when an interrupt
diff --git a/devel/libassa/files/patch-assa:Handlers.h b/devel/libassa/files/patch-assa:Handlers.h
new file mode 100644
index 000000000000..c82b0ef70c72
--- /dev/null
+++ b/devel/libassa/files/patch-assa:Handlers.h
@@ -0,0 +1,11 @@
+--- assa/Handlers.h.orig Wed Dec 24 17:02:53 2003
++++ assa/Handlers.h Wed Dec 24 17:22:41 2003
+@@ -256,7 +256,7 @@
+ int handle_signal ( int signum_ ) {
+ trace_with_mask("SIGPOLLHandler::handle_signal", SIGHAND);
+
+- return (signum_ == SIGPOLL) ? 0 : -1;
++ return (signum_ == SIGIO) ? 0 : -1;
+ }
+ };
+
diff --git a/devel/libassa/files/patch-assa:Socket.cpp b/devel/libassa/files/patch-assa:Socket.cpp
new file mode 100644
index 000000000000..da5c6dabdeb5
--- /dev/null
+++ b/devel/libassa/files/patch-assa:Socket.cpp
@@ -0,0 +1,10 @@
+--- assa/Socket.cpp.orig Wed Dec 24 17:28:22 2003
++++ assa/Socket.cpp Wed Dec 24 17:28:36 2003
+@@ -16,6 +16,7 @@
+
+ #include <sstream>
+ #include <rpc/rpc.h>
++#include <sys/ioctl.h>
+
+ #include "assa/Socket.h"
+
diff --git a/devel/libassa/files/patch-ltmain.sh b/devel/libassa/files/patch-ltmain.sh
new file mode 100644
index 000000000000..0ef72860b995
--- /dev/null
+++ b/devel/libassa/files/patch-ltmain.sh
@@ -0,0 +1,15 @@
+--- ltmain.sh.orig Thu Dec 25 16:06:09 2003
++++ ltmain.sh Thu Dec 25 16:06:24 2003
+@@ -4330,10 +4330,12 @@
+ fi
+
+ # Install the pseudo-library for information purposes.
++ if /usr/bin/false ; then
+ name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
+ instname="$dir/$name"i
+ $show "$install_prog $instname $destdir/$name"
+ $run eval "$install_prog $instname $destdir/$name" || exit $?
++ fi
+
+ # Maybe install the static library, too.
+ test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
diff --git a/devel/libassa/files/patch-tests:ttcp_assa.cpp b/devel/libassa/files/patch-tests:ttcp_assa.cpp
new file mode 100644
index 000000000000..ac0413440396
--- /dev/null
+++ b/devel/libassa/files/patch-tests:ttcp_assa.cpp
@@ -0,0 +1,38 @@
+--- tests/ttcp_assa.cpp.orig Wed Dec 24 17:39:58 2003
++++ tests/ttcp_assa.cpp Wed Dec 24 17:41:13 2003
+@@ -91,7 +91,7 @@
+ IPv4Socket* sock = 0; // Communication socket
+
+ struct sockaddr_in peer;
+-int peerlen;
++socklen_t peerlen;
+
+ int domain, fromlen;
+ int fd; /* fd of network socket */
+@@ -384,7 +384,7 @@
+ }
+ #else
+ if (getpeername(fd, (struct sockaddr*) &peer,
+- (int*) &peerlen) < 0) {
++ &peerlen) < 0) {
+ err("getpeername");
+ }
+ #endif /* defined(_POSIX_SOURCE) */
+@@ -783,7 +783,7 @@
+ Nread( int fd_, void* buf_, int count )
+ {
+ struct sockaddr_in from;
+- int len = sizeof(from);
++ socklen_t len = sizeof(from);
+ register int cnt;
+
+ if( udp )
+@@ -795,7 +795,7 @@
+ #else // _POSIX_SOURCE
+ cnt = recvfrom( fd_, (char*) buf_, count, 0,
+ (struct sockaddr*) &from,
+- (int*) &len );
++ &len );
+ #endif
+ numCalls++;
+ } else {
diff --git a/devel/libassa/pkg-descr b/devel/libassa/pkg-descr
new file mode 100644
index 000000000000..bf1fcafb1b09
--- /dev/null
+++ b/devel/libassa/pkg-descr
@@ -0,0 +1,6 @@
+ASSA is a UNIX/Linux Object-Oriented C++ networking (BSD sockets) library
+and application framework based on Adaptive Communication Patterns. ASSA is
+designed to improve productivity of writing network-oriented client/server
+applications.
+
+WWW: http://libassa.sourceforge.net/
diff --git a/devel/libassa/pkg-plist b/devel/libassa/pkg-plist
new file mode 100644
index 000000000000..06e94312486e
--- /dev/null
+++ b/devel/libassa/pkg-plist
@@ -0,0 +1,64 @@
+bin/assa-config
+bin/assa-genesis
+include/assa/Acceptor.h
+include/assa/Address.h
+include/assa/Assa.h
+include/assa/Assert.h
+include/assa/AutoPtr.h
+include/assa/CharInBuffer.h
+include/assa/CmdLineOpts.h
+include/assa/CommonUtils.h
+include/assa/ConUDPSocket.h
+include/assa/Connector.h
+include/assa/Destroyer.h
+include/assa/EventHandler.h
+include/assa/FdSet.h
+include/assa/FileLogger.h
+include/assa/Fork.h
+include/assa/GenServer.h
+include/assa/Handlers.h
+include/assa/INETAddress.h
+include/assa/IPv4Socket.h
+include/assa/IdSet.h
+include/assa/IniFile.h
+include/assa/LogMask.h
+include/assa/Logger.h
+include/assa/Logger_Impl.h
+include/assa/MaskSet.h
+include/assa/MemDump.h
+include/assa/PidFileLock.h
+include/assa/Pipe.h
+include/assa/PriorityQueue.h
+include/assa/PriorityQueue_Heap.h
+include/assa/PriorityQueue_Impl.h
+include/assa/PriorityQueue_STLPQ.h
+include/assa/Reactor.h
+include/assa/Regexp.h
+include/assa/RemoteLogger.h
+include/assa/Repository.h
+include/assa/Semaphore.h
+include/assa/ServiceHandler.h
+include/assa/SigAction.h
+include/assa/SigHandler.h
+include/assa/SigHandlers.h
+include/assa/SigHandlersList.h
+include/assa/SigSet.h
+include/assa/Singleton.h
+include/assa/Socket.h
+include/assa/Socketbuf.h
+include/assa/StdOutLogger.h
+include/assa/Streambuf.h
+include/assa/TimeVal.h
+include/assa/Timer.h
+include/assa/TimerCountdown.h
+include/assa/TimerQueue.h
+include/assa/UDPSocket.h
+include/assa/UNIXAddress.h
+include/assa/UnConUDPSocket.h
+include/assa/xdrIOBuffer.h
+@dirrm include/assa
+lib/libassa.a
+lib/libassa.so
+lib/libassa.so.3
+libdata/pkgconfig/assa.pc
+share/aclocal/assa.m4