Description: Change references to the binary from stunnel to stunnel4 Forwarded: not-needed Author: Julien Lemoine Author: Luis Rodrigo Gallardo Cruz Last-Update: 2018-12-06 --- a/src/stunnel3.in +++ b/src/stunnel3.in @@ -22,7 +22,7 @@ use Getopt::Std; # Configuration - path to stunnel (version >=4.05) -$stunnel_bin='@bindir@/stunnel'; +$stunnel_bin='@bindir@/stunnel4'; # stunnel3 script body begins here ($read_fd, $write_fd)=POSIX::pipe(); --- a/tools/stunnel.init.in +++ b/tools/stunnel.init.in @@ -1,6 +1,6 @@ #! /bin/sh -e ### BEGIN INIT INFO -# Provides: stunnel +# Provides: stunnel4 # Required-Start: $local_fs $remote_fs # Required-Stop: $local_fs $remote_fs # Should-Start: $syslog @@ -21,8 +21,8 @@ . /lib/lsb/init-functions -DEFAULTPIDFILE="/var/run/stunnel.pid" -DAEMON=@bindir@/stunnel +DEFAULTPIDFILE="/var/run/stunnel4.pid" +DAEMON=@bindir@/stunnel4 NAME=stunnel DESC="TLS tunnels" OPTIONS="" @@ -48,9 +48,9 @@ startdaemons() { local res file args pidfile warn status - if ! [ -d /var/run/stunnel ]; then - rm -rf /var/run/stunnel - install -d -o stunnel -g stunnel /var/run/stunnel + if ! [ -d /var/run/stunnel4 ]; then + rm -rf /var/run/stunnel4 + install -d -o stunnel4 -g stunnel4 /var/run/stunnel4 fi if [ -n "$RLIMITS" ]; then ulimit $RLIMITS @@ -181,7 +181,7 @@ OPTIONS="-- $OPTIONS" fi -[ -f @sysconfdir@/default/stunnel ] && . @sysconfdir@/default/stunnel +[ -f @sysconfdir@/default/stunnel4 ] && . @sysconfdir@/default/stunnel4 # If the user want to manage a single tunnel, the conf file's name # is in $2. Otherwise, respect @sysconfdir@/default/stunnel4 setting. --- a/tools/script.sh +++ b/tools/script.sh @@ -2,7 +2,7 @@ REMOTE_HOST="www.mirt.net:443" echo "client script connecting $REMOTE_HOST" -/usr/local/bin/stunnel -fd 10 \ +/usr/bin/stunnel4 -fd 10 \ 11<&0 <