While I'm here, pick up various changes from PR's:
- convert the startup script to the new style[2], but do not yet enable
USE_RC_SUBR; a repo-copy of stunnel.sh to stunnel.in should be done first
- use ETCDIR instead of PREFIX/etc/stunnel everywhere[3]
- wave a magic wand over the startup script generation process to mimic
the changes that will be done by USE_RC_SUBR after the repo-copy
Prompted by: Damian Wiest <dwiest@vailsys.com> and
Luis Rodrigo Gallardo Cruz <rodrigo@nul-unu.com> on
the stunnel-users mailing list [1]
PR: 119655 [2] - only the changes to the startup script
116773 [3] - only the ETCDIR part
Submitted by: Jason DiCioccio <jd@ods.org> [2],
Alexander Logvinov <ports@logvinov.com> [3]
Remove our local patches for ucontext/pthread/fork model choice, since
this is handled by a configure argument now.
Note that ucontext is not supported on FreeBSD versions less than 5.0.
PR: 83245 (mostly)
Submitted by: Vasil Dimov <vd@datamax.bg>
Michael Trojnara[1].
Also, add the build-time WITH_FORK, WITH_PTHREAD, and WITH_UCONTEXT knobs
to control the stunnel threading model used, based on Vasil Dimov's PR's
with some modifications [2].
While I'm here, add in a <sys/types.h> inclusion that seems to be needed
for <ucontext.h> at least on FreeBSD 6.0/sparc64.
Reported by: many
Pointy hat to: roam (myself) for both not noticing this and then letting
it linger for a while
Obtained from: Michael Trojnara's BSD patch from
<53594c631989fde6ca0bdb3435b93dfe@mirt.net> [1]
PR: 81289, 82202 [2]
Submitted by: Vasil Dimov
buffer to hold a numeric IPv4/v6 address. Of course, IPv6 addresses may
be a bit longer than 20 characters :)
A-ha! moment during: discussion with the stunnel author
temporarily aliased to EAI_NONAME.
No PORTREVISION bump, since this is a no-op on earlier and later versions,
and it didn't build at all until now on the affected versions.
Reported by: Bretislav Kubesa <bretislav.kubesa@centrum.cz>
- enable the new IPv6 functionality when WITH_IPV6 is defined;
- at last move over to libtool-1.5 and get rid of the .la file;
- update the WITH_STUNNEL_SSL_ENGINE message to also mention FreeBSD 6.x;
- remove the obsolete sock_ioctlsocket() definition from patch-aa;
- fix a couple of getnameinfo(3)-related buglets;
- fix a poll(2)-related buglet: it seems FreeBSD insists (correctly) that
INFTIM passed to poll(2) should be -1, not just any negative value.
PR: 75519 (somewhat)
Submitted by: Dan Langille <dan@langille.org>
that the OpenSSL ENGINE code is, well, somewhat less than stellar,
especially in combo with malloc's 'j' option. Even without it, though,
there are some problems that I don't have time to look into right now.
So, disable the OpenSSL ENGINE activation on FreeBSD 5.x, unless
the WITH_STUNNEL_SSL_ENGINE knob is turned on. Also, while I'm here,
fix the CONFIGURE_TARGET so the GNU configure script does not complain
quite so loudly. Bump PORTREVISION for the functionality change
(well, I guess you could say "not working" -> "working" is a functionality
change ;)
*** WARNING WARNING WARNING ***
The stunnel invocation has changed! The program no longer accepts
command-line options, but is controlled by a config file instead.
Please refer to the stunnel(8) manual page for more information.
PR: 42249
Submitted by: Dan Langille <dan@langille.org>, lioux
Changelog for version 3.20, 2001.08.15, urgency: LOW:
* setsockopt() optlen set according to the optval for Solaris.
* Minor NetBSD compatibility fixes by Martti Kuparinen.
* Minor MSVC6 compatibility fixes by Patrick Mayweg.
* SSL close_notify timeout reduced to 10 seconds of inactivity.
* Socket close instead of reset on close_notify timeout.
* Some source arrangement and minor bugfixes.
PR: 29766
Submitted by: maintainer