pkgsrc/net/socat/Makefile

45 lines
1.3 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.29 2013/07/15 02:02:27 ryoon Exp $
DISTNAME= socat-1.7.2.1
CATEGORIES= net
MASTER_SITES= http://www.dest-unreach.org/socat/download/
2009-07-17 20:00:13 +02:00
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.dest-unreach.org/socat/
COMMENT= "netcat++" (extended design, new implementation)
Update socat to 1.7.1.1. Add license. ChangeLog: V 1.7.1.1: corrections: corrected the "fixed possible SIGSEGV" fix because SIGSEGV still might occur under those conditions. Thanks to Toni Mattila for first reporting this problem. ftruncate64 cut its argument to 32 bits on systems with 32 bit long type socat crashed on systems without setenv() (esp. SunOS up to Solaris 9); thanks to Todd Stansell for reporting this bug with unidirectional EXEC and SYSTEM a close() operation was performed on a random number which could result in hanging e.a. fixed a compile problem caused by size_t/socklen_t mismatch on 64bit systems docu mentioned option so-bindtodev but correct name is so-bindtodevice. Thanks to Jim Zimmerman for reporting. docu changes: added environment variables example to doc/socat-multicast.html V 1.7.1.0: new features: address options shut-none, shut-down, and shut-close allow to control socat's half close behaviour with address option shut-null socat sends an empty packet to the peer to indicate EOF option null-eof changes the behaviour of sockets that receive an empty packet to see EOF instead of ignoring it introduced option names substuser-early and su-e, currently equivalent to option substuser (thanks to Mike Perry for providing the patch) corrections: fixed some typos and improved some comments V 1.7.0.1: corrections: fixed possible SIGSEGV in listening addresses when a new connection was reset by peer before the socket addresses could be retrieved. Thanks to Mike Perry for sending a patch. fixed a bug, introduced with version 1.7.0.0, that let client connections with option connect-timeout fail when the connections succeeded. Thanks to Bruno De Fraine for reporting this bug. option end-close "did not apply" to addresses PTY, SOCKET-CONNECT, and most UNIX-* and ABSTRACT-* half close of EXEC and SYSTEM addresses did not work for pipes and sometimes socketpair help displayed for some option a wrong type under some circumstances shutdown was called multiple times for the same fd
2009-07-19 14:08:12 +02:00
LICENSE= gnu-gpl-v2
GNU_CONFIGURE= YES
ONLY_FOR_COMPILER= gcc # uses -Werror in the configure script
.include "../../mk/bsd.prefs.mk"
CONFIGURE_ARGS+= --disable-libwrap
CONFIGURE_ARGS+= --with-readline=${BUILDLINK_PREFIX.readline}
.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
SUBST_CLASSES+= paths
SUBST_MESSAGE.paths= Fixing hardcoded paths.
SUBST_STAGE.paths= post-patch
SUBST_FILES.paths= doc/socat.1
SUBST_SED.paths= -e 's,/usr/,${PREFIX}/,g'
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//'
.include "options.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../devel/readline/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"