aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1997-02-08 07:54:07 +0800
committerobrien <obrien@FreeBSD.org>1997-02-08 07:54:07 +0800
commitcfe255407b428a242baf7e5bb2459a536b8e21c0 (patch)
tree9b7beffe70061141ed42018e16b3031c2e469480
parent42efbb1cfe7fb5cab31928d24b8a532c31ad826f (diff)
downloadfreebsd-ports-graphics-cfe255407b428a242baf7e5bb2459a536b8e21c0.tar.gz
freebsd-ports-graphics-cfe255407b428a242baf7e5bb2459a536b8e21c0.tar.zst
freebsd-ports-graphics-cfe255407b428a242baf7e5bb2459a536b8e21c0.zip
Socket++ is a iostream like C++ class library for the UNIX and INET
domains of sockets and protocols. Submitted by: Narvi <narvi@haldjas.folklore.ee> Closes-PR: ports/2532
-rw-r--r--net/libsocket++/Makefile32
-rw-r--r--net/libsocket++/distinfo1
-rw-r--r--net/libsocket++/files/Makefile.lib22
-rw-r--r--net/libsocket++/files/patch-aa14
-rw-r--r--net/libsocket++/files/patch-ab12
-rw-r--r--net/libsocket++/pkg-comment1
-rw-r--r--net/libsocket++/pkg-descr13
-rw-r--r--net/libsocket++/pkg-plist16
8 files changed, 111 insertions, 0 deletions
diff --git a/net/libsocket++/Makefile b/net/libsocket++/Makefile
new file mode 100644
index 00000000000..0cec5d8bcaf
--- /dev/null
+++ b/net/libsocket++/Makefile
@@ -0,0 +1,32 @@
+# ex:ts=8
+# Ports collection makefile for: libsocket++
+# Version required: 1.10
+# Date created: Sun Jan 19, 1997
+# Whom: Narvi <narvi@haldjas.folklore.ee>
+# David O'Brien (obrien@FreeBSD.org)
+#
+# $Id: Makefile,v 1.2 1997/01/25 18:08:40 obrien Exp $
+#
+
+DISTNAME= socket++-1.10
+PKGNAME= libsocket++-1.10
+CATEGORIES= net
+MASTER_SITES= ftp://ftp.fh-furtwangen.de/pub/C++-class-libraries/networking/
+
+MAINTAINER= narvi@haldjas.folklore.ee
+
+GNU_CONFIGURE= yes
+#NOPROFILE= true
+
+post-configure:
+ @${CP} ${FILESDIR}/Makefile.lib ${WRKSRC}/Makefile
+
+post-install:
+ @/sbin/ldconfig -m ${PREFIX}/lib
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${PREFIX}/share/doc/libsocket++
+ ${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/share/doc/libsocket++
+ ${INSTALL_MAN} ${WRKSRC}/socket++.ps ${PREFIX}/share/doc/libsocket++
+.endif
+
+.include <bsd.port.mk>
diff --git a/net/libsocket++/distinfo b/net/libsocket++/distinfo
new file mode 100644
index 00000000000..26f2d6e9e42
--- /dev/null
+++ b/net/libsocket++/distinfo
@@ -0,0 +1 @@
+MD5 (socket++-1.10.tar.gz) = ce338e33e76edc4b26cb40284947b3a0
diff --git a/net/libsocket++/files/Makefile.lib b/net/libsocket++/files/Makefile.lib
new file mode 100644
index 00000000000..c0126009099
--- /dev/null
+++ b/net/libsocket++/files/Makefile.lib
@@ -0,0 +1,22 @@
+SHLIB_MAJOR= 1
+SHLIB_MINOR= 10
+LIB= socket++
+LIBDIR= ${PREFIX}/lib
+INCDIR= ${PREFIX}/include
+INFODIR= ${PREFIX}/info
+CFLAGS+= -I.
+
+SRCS= sockstream.C sockinet.C sockunix.C pipestream.C Fork.C \
+ echo.C smtp.C ftp.C
+
+HEADERS=Fork.h echo.h ftp.h pipestream.h protocol.h smtp.h \
+ sockinet.h sockstream.h sockunix.h
+
+afterinstall:
+ ${INSTALL} ${COPY} -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE} \
+ ${HEADERS} ${INCDIR}
+ makeinfo --no-split socket++.texi
+ ${INSTALL} ${COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} \
+ socket++.info ${INFODIR}
+
+.include <bsd.lib.mk>
diff --git a/net/libsocket++/files/patch-aa b/net/libsocket++/files/patch-aa
new file mode 100644
index 00000000000..9dcf87b28b2
--- /dev/null
+++ b/net/libsocket++/files/patch-aa
@@ -0,0 +1,14 @@
+*** local.h Tue Oct 8 14:58:35 1996
+--- local.h Tue Oct 8 15:00:07 1996
+***************
+*** 75,81 ****
+--- 75,83 ----
+
+ #if !defined (__linux__)
+ extern "C" int gethostname (char* hostname, int len);
++ #if !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__))
+ extern char* SYS_SIGLIST [];
++ #endif
+ #endif
+
+ #ifdef __osf__
diff --git a/net/libsocket++/files/patch-ab b/net/libsocket++/files/patch-ab
new file mode 100644
index 00000000000..9bb01973dca
--- /dev/null
+++ b/net/libsocket++/files/patch-ab
@@ -0,0 +1,12 @@
+--- sockstream.h.orig Tue Oct 17 17:07:29 1995
++++ sockstream.h Wed Feb 5 14:04:17 1997
+@@ -119,7 +119,9 @@
+ msg_peek = MSG_PEEK,
+ msg_dontroute = MSG_DONTROUTE,
+
++#if !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__))
+ msg_maxiovlen = MSG_MAXIOVLEN
++#endif
+ };
+ enum shuthow {
+ shut_read,
diff --git a/net/libsocket++/pkg-comment b/net/libsocket++/pkg-comment
new file mode 100644
index 00000000000..ff3133940fc
--- /dev/null
+++ b/net/libsocket++/pkg-comment
@@ -0,0 +1 @@
+A C++ wrapper library to the sockets
diff --git a/net/libsocket++/pkg-descr b/net/libsocket++/pkg-descr
new file mode 100644
index 00000000000..28c2a757066
--- /dev/null
+++ b/net/libsocket++/pkg-descr
@@ -0,0 +1,13 @@
+Socket++ is a iostream like C++ class library for the UNIX and INET
+domains of sockets and protocols.
+
+Wrappers are also provided for pipe(), socketpair(), popen() and
+fork().
+
+Included are also "protocol" classes with two examples - echo and
+smtp (client only).
+
+Socket++ is covered by the GPL.
+
+-Sander
+sander@haldjas.folklore.ee
diff --git a/net/libsocket++/pkg-plist b/net/libsocket++/pkg-plist
new file mode 100644
index 00000000000..172e182a8b4
--- /dev/null
+++ b/net/libsocket++/pkg-plist
@@ -0,0 +1,16 @@
+lib/libsocket++.a
+lib/libsocket++.so.1.10
+lib/libsocket++_p.a
+@exec /sbin/ldconfig -m %D/lib
+include/Fork.h
+include/echo.h
+include/ftp.h
+include/pipestream.h
+include/protocol.h
+include/smtp.h
+include/sockinet.h
+include/sockstream.h
+include/sockunix.h
+info/socket++.info
+share/doc/libsocket++/README
+share/doc/libsocket++/socket++.ps