summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorwiz <wiz>2005-03-27 17:45:38 +0000
committerwiz <wiz>2005-03-27 17:45:38 +0000
commita91a04a962d1dfe1414212e808ecb2f6d0f5424f (patch)
tree11fb1c9bc9a59fd8ac54e826a02af2b57392b29a /net
parent7f7c9861d94c63df5da2437309cdeddc1472ef3b (diff)
downloadpkgsrc-a91a04a962d1dfe1414212e808ecb2f6d0f5424f.tar.gz
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 (limited to 'net')
-rw-r--r--net/socket++/DESCR2
-rw-r--r--net/socket++/Makefile30
-rw-r--r--net/socket++/PLIST14
-rw-r--r--net/socket++/distinfo8
-rw-r--r--net/socket++/patches/patch-aa14
-rw-r--r--net/socket++/patches/patch-ab22
-rw-r--r--net/socket++/patches/patch-ac14
-rw-r--r--net/socket++/patches/patch-ad34
8 files changed, 138 insertions, 0 deletions
diff --git a/net/socket++/DESCR b/net/socket++/DESCR
new file mode 100644
index 00000000000..10d7c7766c4
--- /dev/null
+++ b/net/socket++/DESCR
@@ -0,0 +1,2 @@
+Socket++ is a C++ class library that provides you with an iostream based
+interface to sockets.
diff --git a/net/socket++/Makefile b/net/socket++/Makefile
new file mode 100644
index 00000000000..f2b90bb404c
--- /dev/null
+++ b/net/socket++/Makefile
@@ -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
+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 --git a/net/socket++/PLIST b/net/socket++/PLIST
new file mode 100644
index 00000000000..e1eac5fadab
--- /dev/null
+++ b/net/socket++/PLIST
@@ -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 --git a/net/socket++/distinfo b/net/socket++/distinfo
new file mode 100644
index 00000000000..5051ba54a7e
--- /dev/null
+++ b/net/socket++/distinfo
@@ -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 --git a/net/socket++/patches/patch-aa b/net/socket++/patches/patch-aa
new file mode 100644
index 00000000000..c7ed572d74e
--- /dev/null
+++ b/net/socket++/patches/patch-aa
@@ -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 --git a/net/socket++/patches/patch-ab b/net/socket++/patches/patch-ab
new file mode 100644
index 00000000000..7c16ab65128
--- /dev/null
+++ b/net/socket++/patches/patch-ab
@@ -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 --git a/net/socket++/patches/patch-ac b/net/socket++/patches/patch-ac
new file mode 100644
index 00000000000..c4ce309fc60
--- /dev/null
+++ b/net/socket++/patches/patch-ac
@@ -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 --git a/net/socket++/patches/patch-ad b/net/socket++/patches/patch-ad
new file mode 100644
index 00000000000..75a44299232
--- /dev/null
+++ b/net/socket++/patches/patch-ad
@@ -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);
+ }