1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= SSL/TLS offloading and load-balancing proxy
8 HOMEPAGE= https://www.stunnel.org/
12 SITES[main]= https://www.stunnel.org/downloads/archive/5.x/
13 DISTFILE[1]= stunnel-5.70.tar.gz:main
15 SPKGS[standard]= complete
22 OPTIONS_AVAILABLE= none
23 OPTIONS_STANDARD= none
27 USERGROUP_SPKG= primary
29 USES= cpe libtool perl:build shebangfix ssl:openssl30
32 LICENSE= GPLv2+:primary
33 LICENSE_TERMS= primary:{{WRKSRC}}/COPYING.md
34 LICENSE_FILE= GPLv2+:stock
37 FPC_EQUIVALENT= security/stunnel
38 SHEBANG_FILES= src/stunnel3.in
41 CONFIGURE_ARGS= --localstatedir=/var/tmp
44 --with-ssl="{{OPENSSLBASE}}"
45 --with-threads=pthread
49 INSTALL_TARGET= install-strip
50 RC_SUBR= stunnel:primary
55 # place files under /var/tmp so that this can be run by an unprivileged
56 # user stunnel and group stunnel
57 ${REINPLACE_CMD} -E -e 's|\@prefix\@/var/lib/stunnel/|/var/tmp/stunnel|; \
58 s|nobody|stunnel|;s|nogroup|stunnel|;s|;include |include |' \
59 ${WRKSRC}/tools/stunnel.conf-sample.in
60 ${REINPLACE_CMD} -E -e 's|\$$\(prefix\)/var/run/stunnel/stunnel.pid|$$(localstatedir)/stunnel.pid|' \
61 ${WRKSRC}/src/Makefile.in
62 ${FIND} ${WRKSRC} -type f -name Makefile.in | ${XARGS} \
64 -e 's,@(ACLOCAL|AUTO(MAKE|CONF|HEADER))@,/usr/bin/true,' \
65 -e 's,(COPYING|COPYRIGHT)[.]md,,g'
66 ${REINPLACE_CMD} -E -e \
67 's|install-confDATA install-data-local|install-confDATA|g' \
68 ${WRKSRC}/tools/Makefile.in
69 # don't add stack-protector
70 ${REINPLACE_CMD} -e 's|-fstack-protector||' ${WRKSRC}/configure
72 ${REINPLACE_CMD} -E -e 's|\$$\(docdir\)/examples|${STD_EXAMPLESDIR}|g' \
73 ${WRKSRC}/tools/Makefile.in
76 ${MKDIR} ${STAGEDIR}${PREFIX}/etc/stunnel/conf.d/
77 ${INSTALL_DATA} ${FILESDIR}/pid.conf \
78 ${STAGEDIR}${PREFIX}/etc/stunnel/conf.d/00-pid.conf
80 [FILE:440:descriptions/desc.primary]
81 The stunnel program is designed to work as SSL encryption wrapper between
82 remote client and local (inetd-startable) or remote server. The concept is
83 that having non-SSL aware daemons running on your system you can easily
84 setup them to communicate with clients over secure SSL channel.
86 stunnel can be used to add SSL functionality to commonly used inetd
87 daemons like POP-2, POP-3 and IMAP servers without any changes in the
92 7bbc7b9e9a988d76301325db4c110ec360a98ffb8a221c7accbff9c0a8bae2f3 882920 stunnel-5.70.tar.gz
95 [FILE:113:manifests/plist.primary]
99 etc/stunnel/stunnel.conf-sample
100 etc/stunnel/conf.d/00-pid.conf
101 lib/stunnel/libstunnel.so
104 [FILE:25:manifests/plist.dev]
105 lib/stunnel/libstunnel.a
108 [FILE:171:manifests/plist.docs]
124 [FILE:160:manifests/plist.examples]
125 share/examples/stunnel/
138 [FILE:47:manifests/plist.man]
144 [FILE:569:patches/patch-configure.ac]
145 --- configure.ac.orig 2023-04-24 10:16:19 UTC
147 @@ -97,13 +97,6 @@ if test "$GCC" = yes; then
148 AX_APPEND_COMPILE_FLAGS([-Wconversion])
149 AX_APPEND_COMPILE_FLAGS([-Wno-deprecated-declarations])
150 AX_APPEND_COMPILE_FLAGS([-fPIE])
152 - avr-*.* | powerpc-*-aix* | rl78-*.* | visium-*.*)
155 - AX_APPEND_COMPILE_FLAGS([-fstack-protector])
158 AX_APPEND_LINK_FLAGS([-fPIE -pie])
159 AX_APPEND_LINK_FLAGS([-Wl,-z,relro])
160 AX_APPEND_LINK_FLAGS([-Wl,-z,now])
163 [FILE:27:files/pid.conf]
164 pid = /var/run/stunnel.pid
167 [FILE:912:files/stunnel.in]
171 # REQUIRE: NETWORKING SERVERS
176 # Add some of the following variables to /etc/rc.conf to configure stunnel:
177 # stunnel_enable (bool): Set to "NO" by default.
178 # Set it to "YES" to enable stunnel.
179 # stunnel_config (str): Default "%%ETCDIR%%/stunnel.conf"
180 # Set it to the full path to the config file
181 # that stunnel will use during the automated
183 # stunnel_pidfile (str): Default "%%PREFIX%%/var/stunnel/stunnel.pid"
184 # Set it to the value of 'pid' in
185 # the stunnel.conf file.
195 : ${stunnel_enable="NO"}
196 : ${stunnel_config="%%ETCDIR%%/${name}.conf"}
197 : ${stunnel_pidfile="/var/run/${name}.pid"}
199 command="%%PREFIX%%/bin/stunnel"
200 command_args=${stunnel_config}
201 pidfile=${stunnel_pidfile}
203 required_files="${stunnel_config}"