Ravenports generated: 03 Aug 2023 23:53
[ravenports.git] / bucket_12 / stunnel
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               stunnel
4 VERSION=                5.70
5 KEYWORDS=               security
6 VARIANTS=               standard
7 SDESC[standard]=        SSL/TLS offloading and load-balancing proxy
8 HOMEPAGE=               https://www.stunnel.org/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            https://www.stunnel.org/downloads/archive/5.x/
13 DISTFILE[1]=            stunnel-5.70.tar.gz:main
14 DF_INDEX=               1
15 SPKGS[standard]=        complete
16                         primary
17                         dev
18                         docs
19                         examples
20                         man
21
22 OPTIONS_AVAILABLE=      none
23 OPTIONS_STANDARD=       none
24
25 USERS=                  stunnel
26 GROUPS=                 stunnel
27 USERGROUP_SPKG=         primary
28
29 USES=                   cpe libtool perl:build shebangfix ssl:openssl30
30                         mbsdfix
31
32 LICENSE=                GPLv2+:primary
33 LICENSE_TERMS=          primary:{{WRKSRC}}/COPYING.md
34 LICENSE_FILE=           GPLv2+:stock
35 LICENSE_SCHEME=         solo
36
37 FPC_EQUIVALENT=         security/stunnel
38 SHEBANG_FILES=          src/stunnel3.in
39
40 MUST_CONFIGURE=         gnu
41 CONFIGURE_ARGS=         --localstatedir=/var/tmp
42                         --enable-static
43                         --disable-systemd
44                         --with-ssl="{{OPENSSLBASE}}"
45                         --with-threads=pthread
46                         --enable-fips
47                         --enable-ipv6
48
49 INSTALL_TARGET=         install-strip
50 RC_SUBR=                stunnel:primary
51
52 LDFLAGS=                -lpthread
53
54 post-patch:
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} \
63                 ${REINPLACE_CMD} -E \
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
71         # relocate examples
72         ${REINPLACE_CMD} -E -e 's|\$$\(docdir\)/examples|${STD_EXAMPLESDIR}|g' \
73                 ${WRKSRC}/tools/Makefile.in
74
75 post-install:
76         ${MKDIR} ${STAGEDIR}${PREFIX}/etc/stunnel/conf.d/
77         ${INSTALL_DATA} ${FILESDIR}/pid.conf \
78                 ${STAGEDIR}${PREFIX}/etc/stunnel/conf.d/00-pid.conf
79
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.
85
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
88 programs' code.
89
90
91 [FILE:98:distinfo]
92 7bbc7b9e9a988d76301325db4c110ec360a98ffb8a221c7accbff9c0a8bae2f3       882920 stunnel-5.70.tar.gz
93
94
95 [FILE:113:manifests/plist.primary]
96 bin/
97  stunnel
98  stunnel3
99 etc/stunnel/stunnel.conf-sample
100 etc/stunnel/conf.d/00-pid.conf
101 lib/stunnel/libstunnel.so
102
103
104 [FILE:25:manifests/plist.dev]
105 lib/stunnel/libstunnel.a
106
107
108 [FILE:171:manifests/plist.docs]
109 share/doc/stunnel/
110  AUTHORS.md
111  BUGS.md
112  CREDITS.md
113  INSTALL.FIPS.md
114  INSTALL.W32.md
115  INSTALL.WCE.md
116  NEWS.md
117  PORTS.md
118  README.md
119  TODO.md
120  stunnel.html
121  stunnel.pl.html
122
123
124 [FILE:160:manifests/plist.examples]
125 share/examples/stunnel/
126  ca.html
127  ca.pl
128  importCA.html
129  importCA.sh
130  script.sh
131  stunnel.init
132  stunnel.logrotate
133  stunnel.rh.init
134  stunnel.service
135  stunnel.spec
136
137
138 [FILE:47:manifests/plist.man]
139 share/man/man8/
140  stunnel.8.gz
141  stunnel.pl.8.gz
142
143
144 [FILE:569:patches/patch-configure.ac]
145 --- configure.ac.orig   2023-04-24 10:16:19 UTC
146 +++ configure.ac
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])
151 -    case "${host}" in
152 -        avr-*.* | powerpc-*-aix* | rl78-*.* | visium-*.*)
153 -            ;;
154 -        *)
155 -            AX_APPEND_COMPILE_FLAGS([-fstack-protector])
156 -            ;;
157 -    esac
158      AX_APPEND_LINK_FLAGS([-fPIE -pie])
159      AX_APPEND_LINK_FLAGS([-Wl,-z,relro])
160      AX_APPEND_LINK_FLAGS([-Wl,-z,now])
161
162
163 [FILE:27:files/pid.conf]
164 pid = /var/run/stunnel.pid
165
166
167 [FILE:912:files/stunnel.in]
168 #!/bin/sh
169
170 # PROVIDE: stunnel
171 # REQUIRE: NETWORKING SERVERS
172 # BEFORE: DAEMON
173 # KEYWORD: shutdown
174
175 #
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
182 #                               start-up.
183 # stunnel_pidfile (str):        Default "%%PREFIX%%/var/stunnel/stunnel.pid"
184 #                               Set it to the value of 'pid' in
185 #                               the stunnel.conf file.
186 #
187
188 . /etc/rc.subr
189
190 name="stunnel"
191 rcvar=stunnel_enable
192
193 load_rc_config $name
194
195 : ${stunnel_enable="NO"}
196 : ${stunnel_config="%%ETCDIR%%/${name}.conf"}
197 : ${stunnel_pidfile="/var/run/${name}.pid"}
198
199 command="%%PREFIX%%/bin/stunnel"
200 command_args=${stunnel_config}
201 pidfile=${stunnel_pidfile}
202
203 required_files="${stunnel_config}"
204
205 run_rc_command "$1"
206