diff options
author | edwin <edwin@FreeBSD.org> | 2003-04-01 07:55:40 +0000 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2003-04-01 07:55:40 +0000 |
commit | bd7dbfdbdf371aac33c0bb45adf3d6257e873ec2 (patch) | |
tree | 6d4b1eefeec773cb4aa3bbfbd7cfa2057878f5e4 /net/libconnect | |
parent | 487195a6ff5bd2a0c7f2d366f4e33bee24538fca (diff) | |
download | FreeBSD-ports-bd7dbfdbdf371aac33c0bb45adf3d6257e873ec2.zip FreeBSD-ports-bd7dbfdbdf371aac33c0bb45adf3d6257e873ec2.tar.gz |
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>
Diffstat (limited to 'net/libconnect')
-rw-r--r-- | net/libconnect/Makefile | 27 | ||||
-rw-r--r-- | net/libconnect/distinfo | 1 | ||||
-rw-r--r-- | net/libconnect/files/patch-aa | 11 | ||||
-rw-r--r-- | net/libconnect/pkg-descr | 17 | ||||
-rw-r--r-- | net/libconnect/pkg-plist | 6 |
5 files changed, 62 insertions, 0 deletions
diff --git a/net/libconnect/Makefile b/net/libconnect/Makefile new file mode 100644 index 0000000..d74f8cb --- /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 0000000..3d689a4 --- /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 0000000..4eb109b1 --- /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 0000000..86bdae0 --- /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 0000000..af1e1d9 --- /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 |