summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-08-29 01:28:44 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-08-29 01:28:44 +0000
commit7576696d5d5491bd624ba917b81e7864d078babb (patch)
treee2ff72900af00772a59bfcb296fe31a19fd61db2 /net
parentFix RUN_DEPENDS. (diff)
Add libtcp4u, a library for easy writing socket-oriented applications.
Submitted by: Juraj Lutter <otis@wilbury.sk>
Notes
Notes: svn path=/head/; revision=117543
Diffstat (limited to 'net')
-rw-r--r--net/Makefile1
-rw-r--r--net/libtcp4u/Makefile28
-rw-r--r--net/libtcp4u/distinfo2
-rw-r--r--net/libtcp4u/files/patch-Unix::Makefile38
-rw-r--r--net/libtcp4u/pkg-descr9
-rw-r--r--net/libtcp4u/pkg-plist5
6 files changed, 83 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index 80420978d8b3..1bf0a3acb46b 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -289,6 +289,7 @@
SUBDIR += librsync
SUBDIR += libsocket++
SUBDIR += libsocketcpp
+ SUBDIR += libtcp4u
SUBDIR += libunp
SUBDIR += libunpipc
SUBDIR += libvncserver
diff --git a/net/libtcp4u/Makefile b/net/libtcp4u/Makefile
new file mode 100644
index 000000000000..8c0fd401a3fb
--- /dev/null
+++ b/net/libtcp4u/Makefile
@@ -0,0 +1,28 @@
+# New ports collection makefile for: libtcp4u
+# Date created: 27 November 2001
+# Whom: Juraj Lutter <otis@sk.freebsd.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= libtcp4u
+PORTVERSION= 3.3.1
+CATEGORIES= net devel
+MASTER_SITES= http://membres.lycos.fr/phjounin/zip/ \
+ ftp://ftp.wilbury.sk/pub/FreeBSD/local/distfiles/
+DISTNAME= tcp4u331
+
+MAINTAINER= otis@freebsd.sk
+COMMENT= TCP interface library
+
+WRKSRC= ${WRKDIR}/tcp4u.331/src
+PATCH_WRKSRC= ${WRKDIR}/tcp4u.331
+
+USE_REINPLACE= yes
+USE_ZIP= yes
+
+do-configure::
+ ${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/../Unix/Makefile
+ ${CP} ${WRKSRC}/../Unix/Makefile ${WRKSRC}
+
+.include <bsd.port.mk>
diff --git a/net/libtcp4u/distinfo b/net/libtcp4u/distinfo
new file mode 100644
index 000000000000..c1877190502c
--- /dev/null
+++ b/net/libtcp4u/distinfo
@@ -0,0 +1,2 @@
+MD5 (tcp4u331.zip) = 73a9534ae9b99461ae4067f20bc58b82
+SIZE (tcp4u331.zip) = 243862
diff --git a/net/libtcp4u/files/patch-Unix::Makefile b/net/libtcp4u/files/patch-Unix::Makefile
new file mode 100644
index 000000000000..1754b721ed7b
--- /dev/null
+++ b/net/libtcp4u/files/patch-Unix::Makefile
@@ -0,0 +1,38 @@
+--- Unix/Makefile.orig Tue Mar 24 12:13:02 1998
++++ Unix/Makefile Sat Dec 1 10:53:00 2001
+@@ -9,15 +9,18 @@
+ # Use :
+ # make install
+
+-DESTDIR = ../Unix/
+-COMPIL_FLAGS = -g
++PREFIX = %%PREFIX%%
++DESTDIRLIB = %%PREFIX%%/lib
++DESTDIRINC = %%PREFIX%%/include
++
++COMPIL_FLAGS = -O2
+
+
+ # SunOS: AR should be declared as ar r
+ AR = ar -r
+ # AR = ar r
+
+-INSTALL = cp -p
++INSTALL = cp -pR
+ RM = rm -f
+
+
+@@ -51,9 +54,10 @@
+ ranlib $@
+
+ install:: $(TEST_DIRECTORY) lib$(LIB_NAME).a
+- @if [ -d $(DESTDIR) ]; then set +x; \
+- else (set -x; $(MKDIRHIER) $(DESTDIR) $(DESTDIR)); fi
+- $(INSTALL) $(INSTLIBFLAGS) lib$(LIB_NAME).a $(DESTDIR)
++ @if [ -d $(DESTDIRLIB) ]; then set +x; \
++ else (set -x; $(MKDIRHIER) $(DESTDIRLIB) $(DESTDIRLIB)); fi
++ $(INSTALL) $(INSTLIBFLAGS) lib$(LIB_NAME).a $(DESTDIRLIB)
++ $(INSTALL) $(TCP4U_INC)/*4u.h $(DESTDIRINC)
+
+ test_directory:
+ @if [ ! -r tcp4u.c ]; then \
diff --git a/net/libtcp4u/pkg-descr b/net/libtcp4u/pkg-descr
new file mode 100644
index 000000000000..41a49cc9d4cb
--- /dev/null
+++ b/net/libtcp4u/pkg-descr
@@ -0,0 +1,9 @@
+Library for easy writing socket-oriented applications.
+Supports TCP and UDP protocols as well as some higher
+level protocols (HTTP, SMTP).
+Conctains tcp4u, http4u, tn4u, udp4u.
+
+WWW: http://membres.tripod.fr/phjounin/
+
+- otis
+otis@freebsd.sk
diff --git a/net/libtcp4u/pkg-plist b/net/libtcp4u/pkg-plist
new file mode 100644
index 000000000000..95f481685862
--- /dev/null
+++ b/net/libtcp4u/pkg-plist
@@ -0,0 +1,5 @@
+include/udp4u.h
+include/tcp4u.h
+include/smtp4u.h
+include/http4u.h
+lib/libtcp4ux.a