diff --git a/stunnel.spec b/stunnel.spec index 61c9013..9e18fa8 100644 --- a/stunnel.spec +++ b/stunnel.spec @@ -34,6 +34,7 @@ Source3: sysconfig.syslog-stunnel Source4: stunnel.rc Source5: stunnel.service Patch0: stunnel-listenqueue-option.patch +Patch1: stunnel3-binpath.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: openssl openssl-devel zlib-devel BuildRequires: tcpd-devel @@ -66,6 +67,7 @@ stunnel. %prep %setup -q -n stunnel-5.00 %patch0 -p0 +%patch1 -p0 %build #autoreconf -fi diff --git a/stunnel3-binpath.patch b/stunnel3-binpath.patch new file mode 100644 index 0000000..0394ab1 --- /dev/null +++ b/stunnel3-binpath.patch @@ -0,0 +1,11 @@ +--- src/stunnel3.in ++++ src/stunnel3.in +@@ -22,7 +22,7 @@ + use Getopt::Std; + + # Configuration - path to stunnel (version >=4.05) +-$stunnel_bin='@prefix@/bin/stunnel'; ++$stunnel_bin='@prefix@/sbin/stunnel'; + + # stunnel3 script body begins here + ($read_fd, $write_fd)=POSIX::pipe();