Ravenports generated: 13 Jan 2023 22:39
[ravenports.git] / bucket_12 / stunnel
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               stunnel
4 VERSION=                5.67
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.67.tar.gz:main
14 DF_INDEX=               1
15 SPKGS[standard]=        complete
16                         primary
17                         docs
18                         examples
19
20 OPTIONS_AVAILABLE=      none
21 OPTIONS_STANDARD=       none
22
23 USERS=                  stunnel
24 GROUPS=                 stunnel
25 USERGROUP_SPKG=         primary
26
27 USES=                   cpe libtool perl:build shebangfix ssl:openssl30
28
29 LICENSE=                GPLv2+:primary
30 LICENSE_TERMS=          primary:{{WRKSRC}}/COPYING.md
31 LICENSE_FILE=           GPLv2+:stock
32 LICENSE_SCHEME=         solo
33
34 FPC_EQUIVALENT=         security/stunnel
35 SHEBANG_FILES=          src/stunnel3.in
36
37 MUST_CONFIGURE=         gnu
38 CONFIGURE_ARGS=         --localstatedir=/var/tmp
39                         --enable-static
40                         --disable-systemd
41                         --with-ssl="{{OPENSSLBASE}}"
42                         --with-threads=pthread
43                         --enable-fips
44                         --enable-ipv6
45
46 INSTALL_TARGET=         install-strip
47 RC_SUBR=                stunnel:primary
48
49 LDFLAGS=                -lpthread
50
51 post-patch:
52         # place files under /var/tmp so that this can be run by an unprivileged
53         # user stunnel and group stunnel
54         ${REINPLACE_CMD} -E -e 's|\@prefix\@/var/lib/stunnel/|/var/tmp/stunnel|; \
55                 s|nobody|stunnel|;s|nogroup|stunnel|;s|;include |include |' \
56                 ${WRKSRC}/tools/stunnel.conf-sample.in
57         ${REINPLACE_CMD} -E -e 's|\$$\(prefix\)/var/run/stunnel/stunnel.pid|$$(localstatedir)/stunnel.pid|' \
58                 ${WRKSRC}/src/Makefile.in
59         ${FIND} ${WRKSRC} -type f -name Makefile.in | ${XARGS} \
60                 ${REINPLACE_CMD} -E \
61                 -e 's,@(ACLOCAL|AUTO(MAKE|CONF|HEADER))@,/usr/bin/true,' \
62                 -e 's,(COPYING|COPYRIGHT)[.]md,,g'
63         ${REINPLACE_CMD} -E -e \
64                 's|install-confDATA install-data-local|install-confDATA|g' \
65                 ${WRKSRC}/tools/Makefile.in
66         # don't add stack-protector
67         ${REINPLACE_CMD} -e 's|-fstack-protector||' ${WRKSRC}/configure
68         # relocate examples
69         ${REINPLACE_CMD} -E -e 's|\$$\(docdir\)/examples|${STD_EXAMPLESDIR}|g' \
70                 ${WRKSRC}/tools/Makefile.in
71
72 post-install:
73         ${MKDIR} ${STAGEDIR}${PREFIX}/etc/stunnel/conf.d/
74         ${INSTALL_DATA} ${FILESDIR}/pid.conf \
75                 ${STAGEDIR}${PREFIX}/etc/stunnel/conf.d/00-pid.conf
76
77 [FILE:440:descriptions/desc.primary]
78 The stunnel program is designed to work as SSL encryption wrapper between
79 remote client and local (inetd-startable) or remote server. The concept is
80 that having non-SSL aware daemons running on your system you can easily
81 setup them to communicate with clients over secure SSL channel.
82
83 stunnel can be used to add SSL functionality to commonly used inetd
84 daemons like POP-2, POP-3 and IMAP servers without any changes in the
85 programs' code.
86
87
88 [FILE:98:distinfo]
89 3086939ee6407516c59b0ba3fbf555338f9d52f459bcab6337c0f00e91ea8456       881256 stunnel-5.67.tar.gz
90
91
92 [FILE:176:manifests/plist.primary]
93 bin/
94  stunnel
95  stunnel3
96 etc/stunnel/stunnel.conf-sample
97 etc/stunnel/conf.d/00-pid.conf
98 lib/stunnel/
99  libstunnel.a
100  libstunnel.so
101 share/man/man8/
102  stunnel.8.gz
103  stunnel.pl.8.gz
104
105
106 [FILE:171:manifests/plist.docs]
107 share/doc/stunnel/
108  AUTHORS.md
109  BUGS.md
110  CREDITS.md
111  INSTALL.FIPS.md
112  INSTALL.W32.md
113  INSTALL.WCE.md
114  NEWS.md
115  PORTS.md
116  README.md
117  TODO.md
118  stunnel.html
119  stunnel.pl.html
120
121
122 [FILE:160:manifests/plist.examples]
123 share/examples/stunnel/
124  ca.html
125  ca.pl
126  importCA.html
127  importCA.sh
128  script.sh
129  stunnel.init
130  stunnel.logrotate
131  stunnel.rh.init
132  stunnel.service
133  stunnel.spec
134
135
136 [FILE:571:patches/patch-configure.ac]
137 --- configure.ac.orig   2022-09-15 20:13:24 UTC
138 +++ configure.ac
139 @@ -98,13 +98,6 @@ if test "$GCC" = yes; then
140      AX_APPEND_COMPILE_FLAGS([-Wno-long-long])
141      AX_APPEND_COMPILE_FLAGS([-Wno-deprecated-declarations])
142      AX_APPEND_COMPILE_FLAGS([-fPIE])
143 -    case "${host}" in
144 -        avr-*.* | powerpc-*-aix* | rl78-*.* | visium-*.*)
145 -            ;;
146 -        *)
147 -            AX_APPEND_COMPILE_FLAGS([-fstack-protector])
148 -            ;;
149 -    esac
150      AX_APPEND_LINK_FLAGS([-fPIE -pie])
151      AX_APPEND_LINK_FLAGS([-Wl,-z,relro])
152      AX_APPEND_LINK_FLAGS([-Wl,-z,now])
153
154
155 [FILE:27:files/pid.conf]
156 pid = /var/run/stunnel.pid
157
158
159 [FILE:912:files/stunnel.in]
160 #!/bin/sh
161
162 # PROVIDE: stunnel
163 # REQUIRE: NETWORKING SERVERS
164 # BEFORE: DAEMON
165 # KEYWORD: shutdown
166
167 #
168 # Add some of the following variables to /etc/rc.conf to configure stunnel:
169 # stunnel_enable (bool):        Set to "NO" by default.
170 #                               Set it to "YES" to enable stunnel.
171 # stunnel_config (str):         Default "%%ETCDIR%%/stunnel.conf"
172 #                               Set it to the full path to the config file
173 #                               that stunnel will use during the automated
174 #                               start-up.
175 # stunnel_pidfile (str):        Default "%%PREFIX%%/var/stunnel/stunnel.pid"
176 #                               Set it to the value of 'pid' in
177 #                               the stunnel.conf file.
178 #
179
180 . /etc/rc.subr
181
182 name="stunnel"
183 rcvar=stunnel_enable
184
185 load_rc_config $name
186
187 : ${stunnel_enable="NO"}
188 : ${stunnel_config="%%ETCDIR%%/${name}.conf"}
189 : ${stunnel_pidfile="/var/run/${name}.pid"}
190
191 command="%%PREFIX%%/bin/stunnel"
192 command_args=${stunnel_config}
193 pidfile=${stunnel_pidfile}
194
195 required_files="${stunnel_config}"
196
197 run_rc_command "$1"
198