## Do several path fixups, removing unneeded @prefix@s --- a/tools/stunnel.conf-sample.in +++ b/tools/stunnel.conf-sample.in @@ -3,14 +3,14 @@ ; Please make sure you understand them (especially the effect of the chroot jail) ; Certificate/key is needed in server mode and optional in client mode -cert = @prefix@/etc/stunnel/mail.pem -;key = @prefix@/etc/stunnel/mail.pem +cert = @sysconfdir@/stunnel/stunnel.pem +;key = @sysconfdir@/stunnel/stunnel.pem ; Protocol version (all, SSLv2, SSLv3, TLSv1) sslVersion = SSLv3 ; Some security enhancements for UNIX systems - comment them out on Win32 -chroot = @prefix@/var/lib/stunnel/ +chroot = @localstatedir@ setuid = nobody setgid = @DEFAULT_GROUP@ ; PID is created inside the chroot jail @@ -30,16 +30,16 @@ socket = r:TCP_NODELAY=1 ; CApath is located inside chroot jail ;CApath = /certs ; It's often easier to use CAfile -;CAfile = @prefix@/etc/stunnel/certs.pem +;CAfile = @sysconfdir@/stunnel/certs.pem ; Don't forget to c_rehash CRLpath ; CRLpath is located inside chroot jail ;CRLpath = /crls ; Alternatively you can use CRLfile -;CRLfile = @prefix@/etc/stunnel/crls.pem +;CRLfile = @sysconfdir@/stunnel/crls.pem ; Some debugging stuff useful for troubleshooting ;debug = 7 -;output = stunnel.log +;output = @localstatedir@/log/stunnel.log ; Use it for client mode ;client = yes