2014-02-13 00:17:32 +01:00
|
|
|
# $NetBSD: Makefile,v 1.31 2014/02/12 23:18:26 tron Exp $
|
Import socat-1.3.2.2 from pkgsrc-wip. Provided by Adrian Portelli,
and slightly modified by me.
socat is a relay for bidirectional data transfer between two
independent data channels. Each of these data channels may be a file,
pipe, device (serial line etc. or a pseudo terminal), a socket (UNIX,
IP4, IP6 - raw, UDP, TCP), an SSL socket, proxy CONNECT connection, a
file descriptor (stdin etc.), the GNU line editor, a program, or a
combination of two of these. These modes include generation of
"listening" sockets, pipes and pseudo terminals.
2004-02-14 23:43:38 +01:00
|
|
|
|
2013-10-21 11:54:11 +02:00
|
|
|
DISTNAME= socat-1.7.2.2
|
2014-02-13 00:17:32 +01:00
|
|
|
PKGREVISION= 1
|
Import socat-1.3.2.2 from pkgsrc-wip. Provided by Adrian Portelli,
and slightly modified by me.
socat is a relay for bidirectional data transfer between two
independent data channels. Each of these data channels may be a file,
pipe, device (serial line etc. or a pseudo terminal), a socket (UNIX,
IP4, IP6 - raw, UDP, TCP), an SSL socket, proxy CONNECT connection, a
file descriptor (stdin etc.), the GNU line editor, a program, or a
combination of two of these. These modes include generation of
"listening" sockets, pipes and pseudo terminals.
2004-02-14 23:43:38 +01:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= http://www.dest-unreach.org/socat/download/
|
|
|
|
|
2009-07-17 20:00:13 +02:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
Import socat-1.3.2.2 from pkgsrc-wip. Provided by Adrian Portelli,
and slightly modified by me.
socat is a relay for bidirectional data transfer between two
independent data channels. Each of these data channels may be a file,
pipe, device (serial line etc. or a pseudo terminal), a socket (UNIX,
IP4, IP6 - raw, UDP, TCP), an SSL socket, proxy CONNECT connection, a
file descriptor (stdin etc.), the GNU line editor, a program, or a
combination of two of these. These modes include generation of
"listening" sockets, pipes and pseudo terminals.
2004-02-14 23:43:38 +01:00
|
|
|
HOMEPAGE= http://www.dest-unreach.org/socat/
|
|
|
|
COMMENT= "netcat++" (extended design, new implementation)
|
2009-07-19 14:08:12 +02:00
|
|
|
LICENSE= gnu-gpl-v2
|
Import socat-1.3.2.2 from pkgsrc-wip. Provided by Adrian Portelli,
and slightly modified by me.
socat is a relay for bidirectional data transfer between two
independent data channels. Each of these data channels may be a file,
pipe, device (serial line etc. or a pseudo terminal), a socket (UNIX,
IP4, IP6 - raw, UDP, TCP), an SSL socket, proxy CONNECT connection, a
file descriptor (stdin etc.), the GNU line editor, a program, or a
combination of two of these. These modes include generation of
"listening" sockets, pipes and pseudo terminals.
2004-02-14 23:43:38 +01:00
|
|
|
|
|
|
|
GNU_CONFIGURE= YES
|
2008-01-27 15:09:09 +01:00
|
|
|
ONLY_FOR_COMPILER= gcc # uses -Werror in the configure script
|
Import socat-1.3.2.2 from pkgsrc-wip. Provided by Adrian Portelli,
and slightly modified by me.
socat is a relay for bidirectional data transfer between two
independent data channels. Each of these data channels may be a file,
pipe, device (serial line etc. or a pseudo terminal), a socket (UNIX,
IP4, IP6 - raw, UDP, TCP), an SSL socket, proxy CONNECT connection, a
file descriptor (stdin etc.), the GNU line editor, a program, or a
combination of two of these. These modes include generation of
"listening" sockets, pipes and pseudo terminals.
2004-02-14 23:43:38 +01:00
|
|
|
|
2013-05-10 02:46:53 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
Import socat-1.3.2.2 from pkgsrc-wip. Provided by Adrian Portelli,
and slightly modified by me.
socat is a relay for bidirectional data transfer between two
independent data channels. Each of these data channels may be a file,
pipe, device (serial line etc. or a pseudo terminal), a socket (UNIX,
IP4, IP6 - raw, UDP, TCP), an SSL socket, proxy CONNECT connection, a
file descriptor (stdin etc.), the GNU line editor, a program, or a
combination of two of these. These modes include generation of
"listening" sockets, pipes and pseudo terminals.
2004-02-14 23:43:38 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-libwrap
|
|
|
|
CONFIGURE_ARGS+= --with-readline=${BUILDLINK_PREFIX.readline}
|
|
|
|
|
2013-05-10 02:46:53 +02:00
|
|
|
.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) && ${OPSYS} == "NetBSD"
|
|
|
|
# XXX Kludge -- the right fix is to make socat not depend on these constants.
|
|
|
|
CONFIGURE_ENV+= sc_cv_sys_crdly_shift=-1
|
|
|
|
CONFIGURE_ENV+= sc_cv_sys_tabdly_shift=-1
|
|
|
|
CONFIGURE_ENV+= sc_cv_sys_csize_shift=8
|
|
|
|
CONFIGURE_ENV+= ac_cv_ispeed_offset=9
|
|
|
|
.endif
|
|
|
|
|
Import socat-1.3.2.2 from pkgsrc-wip. Provided by Adrian Portelli,
and slightly modified by me.
socat is a relay for bidirectional data transfer between two
independent data channels. Each of these data channels may be a file,
pipe, device (serial line etc. or a pseudo terminal), a socket (UNIX,
IP4, IP6 - raw, UDP, TCP), an SSL socket, proxy CONNECT connection, a
file descriptor (stdin etc.), the GNU line editor, a program, or a
combination of two of these. These modes include generation of
"listening" sockets, pipes and pseudo terminals.
2004-02-14 23:43:38 +01:00
|
|
|
SUBST_CLASSES+= paths
|
Update to 1.4.3.1
> ####################### V 1.4.3.1:
>
> corrections:
> PROBLEM: UNIX socket listen accepted only one (or a few) connections.
> FIX: do not remove listening UNIX socket in child process
>
> PROBLEM: SIGSEGV when TCP part of SSL connect failed
> FIX: check ssl pointer before calling SSH_shutdown
>
> In debug mode, show connect client port even when connect fails
>
> ####################### V 1.4.3.0:
>
> new features:
> socat options -L, -W for application level locking
>
> options "lockfile", "waitlock" for address level locking
> (Stefan Luethje)
>
> option "readbytes" limits read length (Adam Osuchowski)
>
> option "retry" for unix-connect, unix-listen, tcp6-listen (Dale Dude)
> socat options -L, -W for application level locking
>
> options "lockfile", "waitlock" for address level locking
> (Stefan Luethje)
>
> option "readbytes" limits read length (Adam Osuchowski)
>
> option "retry" for unix-connect, unix-listen, tcp6-listen (Dale Dude)
>
> pty symlink, unix listen socket, and named pipe are per default removed
> after use; option unlink-close overrides this new behaviour and also
> controls removal of other socat generated files (Stefan Luethje)
>
> corrections:
> option "retry" did not work with tcp-listen
>
> EPIPE condition could result in a 100% CPU loop
>
> further changes:
> support systems without SHUT_RD etc.
> handle more size_t types
> try to find makedepend options with gcc 3 (richard/OpenMacNews)
2006-02-05 01:33:34 +01:00
|
|
|
SUBST_MESSAGE.paths= Fixing hardcoded paths.
|
Import socat-1.3.2.2 from pkgsrc-wip. Provided by Adrian Portelli,
and slightly modified by me.
socat is a relay for bidirectional data transfer between two
independent data channels. Each of these data channels may be a file,
pipe, device (serial line etc. or a pseudo terminal), a socket (UNIX,
IP4, IP6 - raw, UDP, TCP), an SSL socket, proxy CONNECT connection, a
file descriptor (stdin etc.), the GNU line editor, a program, or a
combination of two of these. These modes include generation of
"listening" sockets, pipes and pseudo terminals.
2004-02-14 23:43:38 +01:00
|
|
|
SUBST_STAGE.paths= post-patch
|
2007-04-09 11:47:48 +02:00
|
|
|
SUBST_FILES.paths= doc/socat.1
|
Import socat-1.3.2.2 from pkgsrc-wip. Provided by Adrian Portelli,
and slightly modified by me.
socat is a relay for bidirectional data transfer between two
independent data channels. Each of these data channels may be a file,
pipe, device (serial line etc. or a pseudo terminal), a socket (UNIX,
IP4, IP6 - raw, UDP, TCP), an SSL socket, proxy CONNECT connection, a
file descriptor (stdin etc.), the GNU line editor, a program, or a
combination of two of these. These modes include generation of
"listening" sockets, pipes and pseudo terminals.
2004-02-14 23:43:38 +01:00
|
|
|
SUBST_SED.paths= -e 's,/usr/,${PREFIX}/,g'
|
|
|
|
|
2008-10-25 20:21:18 +02:00
|
|
|
SUBST_CLASSES+= makefile
|
|
|
|
SUBST_MESSAGE.makefile= Fixing Makefile CCOPTS.
|
|
|
|
SUBST_STAGE.makefile= post-patch
|
|
|
|
SUBST_FILES.makefile= Makefile.in
|
|
|
|
SUBST_SED.makefile= -e '/CCOPTS/ s/-Wall -Wno-parentheses//'
|
|
|
|
|
2007-10-09 22:21:29 +02:00
|
|
|
.include "options.mk"
|
|
|
|
|
Import socat-1.3.2.2 from pkgsrc-wip. Provided by Adrian Portelli,
and slightly modified by me.
socat is a relay for bidirectional data transfer between two
independent data channels. Each of these data channels may be a file,
pipe, device (serial line etc. or a pseudo terminal), a socket (UNIX,
IP4, IP6 - raw, UDP, TCP), an SSL socket, proxy CONNECT connection, a
file descriptor (stdin etc.), the GNU line editor, a program, or a
combination of two of these. These modes include generation of
"listening" sockets, pipes and pseudo terminals.
2004-02-14 23:43:38 +01:00
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
|
|
.include "../../devel/readline/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|