summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-04-01 07:55:40 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-04-01 07:55:40 +0000
commit4ac806ccc67cf9745ad76a224f26d259acb5ed85 (patch)
treeea2d55a8bca675cf1f890ef68498a6226d9a4ece /net
parentUpdate to 0.1.14 (diff)
New port: libconnect
This is the shared library which allows change IP-address from which netwoking application will be performing TCP-connection. This is extremely useful when you need to control this but programs you are using have no configuration options specifying to which IP-address they should bind. PR: ports/50436 Submitted by: Alex Semenyaka <alexs@snark.ratmir.ru>
Notes
Notes: svn path=/head/; revision=77899
Diffstat (limited to 'net')
-rw-r--r--net/Makefile1
-rw-r--r--net/libconnect/Makefile27
-rw-r--r--net/libconnect/distinfo1
-rw-r--r--net/libconnect/files/patch-aa11
-rw-r--r--net/libconnect/pkg-descr17
-rw-r--r--net/libconnect/pkg-plist6
6 files changed, 63 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index bddbbcafb9a4..ef62dd5d6d56 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -258,6 +258,7 @@
SUBDIR += ldapdiff
SUBDIR += ldapsdk
SUBDIR += lft
+ SUBDIR += libconnect
SUBDIR += libdnet
SUBDIR += libfreenet
SUBDIR += libicq
diff --git a/net/libconnect/Makefile b/net/libconnect/Makefile
new file mode 100644
index 000000000000..d74f8cb2a80a
--- /dev/null
+++ b/net/libconnect/Makefile
@@ -0,0 +1,27 @@
+# Ports collection makefile for: libconnect
+# Date created: Sat Mar 29 2003
+# Whom: Alex Semenyaka <alexs@snark.ratmir.ru>
+#
+# $FreeBSD$
+#
+
+PORTNAME= libconnect
+PORTVERSION= 1.0
+CATEGORIES= net
+MASTER_SITES= ftp://ftp.lexa.ru/pub/domestic/snar/ \
+ ftp://ftp.lucky.net/pub/unix/local/
+DISTNAME= ${PORTNAME}-${PORTVERSION}
+
+MAINTAINER= alexs@snark.rinet.ru
+COMMENT= Tell programs to which IP-address they should bind
+
+do-install:
+ -@${MKDIR} ${PREFIX}/lib
+ @${INSTALL_PROGRAM} ${WRKSRC}/libconnect.a ${PREFIX}/lib
+ @${INSTALL_PROGRAM} ${WRKSRC}/libconnect_p.a ${PREFIX}/lib
+ @${INSTALL_PROGRAM} ${WRKSRC}/libconnect.so.1 ${PREFIX}/lib
+ @${LN} -fs libconnect.so.1 ${PREFIX}/lib/libconnect.so
+ -@${MKDIR} ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/readme ${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/net/libconnect/distinfo b/net/libconnect/distinfo
new file mode 100644
index 000000000000..3d689a48c094
--- /dev/null
+++ b/net/libconnect/distinfo
@@ -0,0 +1 @@
+MD5 (libconnect-1.0.tar.gz) = 565c5308244f17bfb7f067299c6bd8f0
diff --git a/net/libconnect/files/patch-aa b/net/libconnect/files/patch-aa
new file mode 100644
index 000000000000..4eb109b1ca70
--- /dev/null
+++ b/net/libconnect/files/patch-aa
@@ -0,0 +1,11 @@
+--- connect.c.old Mon May 22 21:29:23 2000
++++ connect.c Fri Mar 28 22:32:33 2003
+@@ -32,7 +32,7 @@
+ static struct sockaddr_in tobi;
+
+ int
+-connect(int s, const struct sockaddr* re, int namelen)
++connect __P((int s, const struct sockaddr *re, socklen_t namelen))
+ {
+ struct sockaddr_in nm,*remo=(struct sockaddr_in*)re;
+ int nml;
diff --git a/net/libconnect/pkg-descr b/net/libconnect/pkg-descr
new file mode 100644
index 000000000000..86bdae04196f
--- /dev/null
+++ b/net/libconnect/pkg-descr
@@ -0,0 +1,17 @@
+This is the shared library which allows change IP-address from which
+will be performing TCP-connection of network applications. This is
+extremely useful when you need to control this but programs you are
+using have no configuration options specifying to which IP-address they
+should bind.
+
+To use this library you need only to set up environment variable CONN_ADDR
+to the IP-address to bind and then use LD_PRELOAD to pre-load this library
+for the application.
+
+Does not work with statically linked programs (there are not too much of
+them hopefully).
+
+FTP: ftp://ftp.lexa.ru/pub/domestic/snar/
+ ftp://ftp.lucky.net/pub/unix/local/
+
+Maintains: Alex Semenyaka (alexs@snark.rinet.ru)
diff --git a/net/libconnect/pkg-plist b/net/libconnect/pkg-plist
new file mode 100644
index 000000000000..af1e1d94d3c7
--- /dev/null
+++ b/net/libconnect/pkg-plist
@@ -0,0 +1,6 @@
+lib/libconnect.a
+lib/libconnect_p.a
+lib/libconnect.so.1
+lib/libconnect.so
+share/doc/libconnect/readme
+@dirrm share/doc/libconnect