pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/socket++ Initial import of socket++ from pkgsrc-wi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1b4c1051f337
branches:  trunk
changeset: 491662:1b4c1051f337
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sun Mar 27 17:45:38 2005 +0000

description:
Initial import of socket++ from pkgsrc-wip, provided by David Price.

Socket++ is a C++ class library that provides you with an iostream based
interface to sockets.

diffstat:

 net/socket++/DESCR            |   2 ++
 net/socket++/Makefile         |  30 ++++++++++++++++++++++++++++++
 net/socket++/PLIST            |  14 ++++++++++++++
 net/socket++/distinfo         |   8 ++++++++
 net/socket++/patches/patch-aa |  14 ++++++++++++++
 net/socket++/patches/patch-ab |  22 ++++++++++++++++++++++
 net/socket++/patches/patch-ac |  14 ++++++++++++++
 net/socket++/patches/patch-ad |  34 ++++++++++++++++++++++++++++++++++
 8 files changed, 138 insertions(+), 0 deletions(-)

diffs (170 lines):

diff -r 98b2898ab9b7 -r 1b4c1051f337 net/socket++/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/socket++/DESCR        Sun Mar 27 17:45:38 2005 +0000
@@ -0,0 +1,2 @@
+Socket++ is a C++ class library that provides you with an iostream based
+interface to sockets.
diff -r 98b2898ab9b7 -r 1b4c1051f337 net/socket++/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/socket++/Makefile     Sun Mar 27 17:45:38 2005 +0000
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/03/27 17:45:38 wiz Exp $
+#
+
+DISTNAME=              socket++-1.12.10
+CATEGORIES=            net
+MASTER_SITES=          http://www.linuxhacker.at/linux/downloads/src/
+
+MAINTAINER=            mchittur%cs.nmsu.edu@localhost
+HOMEPAGE=              http://www.linuxhacker.at/socketxx/
+COMMENT=               C++ class library for UNIX Sockets with exception handling
+
+USE_BUILDLINK3=                YES
+USE_LIBTOOL=           YES
+AUTOMAKE_REQD=          1.4
+AUTOCONF_REQD=          2.50
+GNU_CONFIGURE=          YES
+USE_GNU_TOOLS+=                make
+TEST_DIRS=             ${WRKSRC}/test
+TEST_TARGET=           check
+
+pre-configure:
+               cd ${WRKSRC};                                           \
+               ${LOCALBASE}/bin/libtoolize --automake;                 \
+               ${ACLOCAL} -I .;                                        \
+               ${AUTOHEADER};                                          \
+               ${AUTOMAKE} --add-missing;                              \
+               ${AUTOCONF};                                            \
+
+.include "../../mk/automake.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 98b2898ab9b7 -r 1b4c1051f337 net/socket++/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/socket++/PLIST        Sun Mar 27 17:45:38 2005 +0000
@@ -0,0 +1,14 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/03/27 17:45:38 wiz Exp $
+include/socket++/echo.h
+include/socket++/fork.h
+include/socket++/ftp.h
+include/socket++/pipestream.h
+include/socket++/protocol.h
+include/socket++/sig.h
+include/socket++/smtp.h
+include/socket++/sockinet.h
+include/socket++/sockstream.h
+include/socket++/sockunix.h
+info/socket++.info
+lib/libsocket++.la
+@dirrm include/socket++
diff -r 98b2898ab9b7 -r 1b4c1051f337 net/socket++/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/socket++/distinfo     Sun Mar 27 17:45:38 2005 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/03/27 17:45:38 wiz Exp $
+
+SHA1 (socket++-1.12.10.tar.gz) = a59a6d30803a686b65f17f3dae1a67ec601fa5e9
+Size (socket++-1.12.10.tar.gz) = 62741 bytes
+SHA1 (patch-aa) = e8f2e2d4b77edeb82402df1ca6a4492ce7c4be92
+SHA1 (patch-ab) = 2fa03c7ee83dca495db14887e3c179388f71c71a
+SHA1 (patch-ac) = a7e48aa5795fd4d78bc2d133e72c51417172b6f9
+SHA1 (patch-ad) = 7f0ffbf79592b340a45f2c7868b7a6904a63c9f3
diff -r 98b2898ab9b7 -r 1b4c1051f337 net/socket++/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/socket++/patches/patch-aa     Sun Mar 27 17:45:38 2005 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/03/27 17:45:38 wiz Exp $
+
+--- socket++/local.h.orig      2003-03-14 19:02:40.000000000 +0100
++++ socket++/local.h
+@@ -90,7 +90,9 @@ extern "C" unsigned long inet_addr (cons
+ extern "C" char* inet_ntoa (in_addr ina);
+ 
+ #if !defined (__linux__)
++#if !defined (__NetBSD__)
+   extern "C" int gethostname (char* hostname, int len);
++#endif
+ #if !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__))
+   extern char* SYS_SIGLIST [];
+ #endif
diff -r 98b2898ab9b7 -r 1b4c1051f337 net/socket++/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/socket++/patches/patch-ab     Sun Mar 27 17:45:38 2005 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-ab,v 1.1.1.1 2005/03/27 17:45:38 wiz Exp $
+
+--- test/Makefile.in.orig      2003-03-18 16:47:57.000000000 +0100
++++ test/Makefile.in
+@@ -40,7 +40,7 @@ DEPEND_SOURCES = $(srcdir)/*.C
+ .SUFFIXES: .o .C .cc
+ 
+ .cc.o .C.o:
+-      $(CXX) -c $(CXXFLAGS) -I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../socket++ $<
++      $(LIBTOOL) --mode=compile $(CXX) -c $(CXXFLAGS) -I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../socket++ $<
+ 
+ .PHONY: check
+ check: testall.out
+@@ -62,7 +62,7 @@ testall.out: $(TESTS)
+       ./testall > testall.out
+ 
+ $(TESTS): $(TESTOBJS)
+-      $(CXX) $(CXXFLAGS) -o $@ $@.o $(LIBS)
++      $(LIBTOOL) --mode=link $(CXX) $(CXXFLAGS) -o $@ $@.o $(LIBS)
+ 
+ update-version:
+       for i in $(TESTSRCS); \
diff -r 98b2898ab9b7 -r 1b4c1051f337 net/socket++/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/socket++/patches/patch-ac     Sun Mar 27 17:45:38 2005 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-ac,v 1.1.1.1 2005/03/27 17:45:38 wiz Exp $
+
+--- test/tcftp.C.orig  2003-03-14 19:26:07.000000000 +0100
++++ test/tcftp.C
+@@ -9,9 +9,6 @@
+ 
+ #include <socket++/ftp.h>
+ 
+-// sunos does not prototype this in stdio.h
+-extern "C" char* getpass (char* prompt); 
+-
+ int main (int ac, char** av)
+ {
+   // this is an ftp client
diff -r 98b2898ab9b7 -r 1b4c1051f337 net/socket++/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/socket++/patches/patch-ad     Sun Mar 27 17:45:38 2005 +0000
@@ -0,0 +1,34 @@
+$NetBSD: patch-ad,v 1.1.1.1 2005/03/27 17:45:38 wiz Exp $
+
+--- test/tsig-0.C.orig 2003-03-14 19:26:07.000000000 +0100
++++ test/tsig-0.C
+@@ -9,6 +9,7 @@
+ #include <iostream>
+ #include <socket++/sig.h>
+ #include <unistd.h>
++#include <signal.h>
+ 
+ using namespace std;
+ 
+@@ -29,9 +30,11 @@ using namespace std;
+       
+       // cout << "Pending signals = " << hex << sig::nal.pending () << dec << endl; // commented out by LN
+                       sigset_t set;
++#ifdef _SIGSET_NWORDS
+                       for (unsigned int i=0; i<_SIGSET_NWORDS; i++) {
+                               cout << "sigset[" << i << "]: " << set.__val[i] << endl;
+                       }
++#endif
+                       for (unsigned int i=1; i<15; i++) {
+                               cout << "ispending(" << i << "): " << sig::nal.ispending (i) << endl;
+                       }
+@@ -58,7 +61,9 @@ int main (int ac, char** av)
+   sig::nal.set (SIGQUIT, &squit);
+   */
+ 
++#ifdef _SIGSET_NWORDS
+       cout << "SIGSET_NWORDS: " << _SIGSET_NWORDS << endl;
++#endif
+   try {
+     hnd illegal (300);
+   }



Home | Main Index | Thread Index | Old Index