blob: 84024e22c2efb8e77cc3a68294f71ddc446bc945 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
|
# Contributor: Peter Shkenev <santurysim@gmail.com>
# Maintainer: Peter Shkenev <santurysim@gmail.com>
pkgname=trafficserver9
_pkgreal=trafficserver
pkgver=9.1.2
pkgrel=3
provides=trafficserver
pkgdesc="Fast, scalable and extensible HTTP/1.1 and HTTP/2 compliant caching proxy server"
url="https://trafficserver.apache.org"
arch="x86_64 aarch64 ppc64le" # other platforms are unsupported
license="Apache-2.0"
makedepends="
curl-dev
flex
hwloc-dev
libcap-dev
libtool
libunwind-dev
luajit-dev
ncurses-dev
openssl-dev>3
pcre-dev
perl
zlib-dev
"
options="!check" # test suite fails, reported to upstream
subpackages="
$pkgname-doc
$pkgname-dev
perl-$pkgname:perl_ts:noarch
$pkgname-openrc
$pkgname-utils
$pkgname-plugin-base:plugin_base
$pkgname-plugin-authproxy:plugin_authproxy
$pkgname-plugin-backgroundfetch:plugin_backgroundfetch
$pkgname-plugin-s3auth:plugin_s3auth
$pkgname-plugin-cachekey:plugin_cachekey
$pkgname-plugin-cachepromote:plugin_cachepromote
$pkgname-plugin-cacherangerequests:plugin_cacherangerequests
$pkgname-plugin-combohandler:plugin_combohandler
$pkgname-plugin-confremap:plugin_confremap
$pkgname-plugin-esi:plugin_esi
$pkgname-plugin-escalate:plugin_escalate
$pkgname-plugin-generator:plugin_generator
$pkgname-plugin-compress:plugin_compress
$pkgname-plugin-headerrewrite:plugin_headerrewrite
$pkgname-plugin-healthchecks:plugin_healthchecks
$pkgname-plugin-lua:plugin_lua
$pkgname-plugin-regexremap:plugin_regexremap
$pkgname-plugin-regexrevalidate:plugin_regexrevalidate
$pkgname-plugin-statsoverhttp:plugin_statsoverhttp
$pkgname-plugin-tcpinfo:plugin_tcpinfo
$pkgname-plugin-xdebug:plugin_xdebug
$pkgname-plugin-certifier:plugin_certifier
$pkgname-plugin-multiplexer:plugin_multiplexer
$pkgname-plugin-prefetch:plugin_prefetch
$pkgname-plugin-remappurge:plugin_remappurge
"
source="
https://dlcdn.apache.org/trafficserver/trafficserver-$pkgver.tar.bz2
10-fix-PATH_MAX-on-ppc64le.patch
20-adapt-trafficserver.patch
30-fix-perl-installation.patch
40-alpine-dir-layout.patch
no-execinfo.patch
trafficserver.initd
"
install="$pkgname.pre-install $pkgname.post-install"
builddir="$srcdir/$_pkgreal-$pkgver"
pkgusers="trafficserver"
pkggroups="trafficserver"
build() {
# Layout contains all dir variables
./configure \
--build=$CBUILD \
--host=$CHOST \
--enable-layout=Alpine \
--with-user=trafficserver \
--with-group=trafficserver
make
}
check() {
make check
}
package() {
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
install -Dm755 "$srcdir"/trafficserver.initd "$pkgdir"/etc/init.d/trafficserver
}
perl_ts() {
pkgdesc="Perl modules for managing Apache Traffic Server"
depends="perl $depends"
amove usr/lib/perl5
amove usr/share/perl5
}
plugin_base() {
pkgdesc="Apache Traffic Server plugin core libraries"
amove usr/lib/plugin*
amove usr/libexec/trafficserver/libloader.so
amove usr/libexec/trafficserver/server_push_preload.so
}
plugin_authproxy() {
pkgdesc="Apache Traffic Server AuthProxy plugin"
depends="$pkgname-plugin-base $depends"
amove usr/libexec/trafficserver/authproxy.so
}
plugin_backgroundfetch() {
pkgdesc="Apache Traffic Server Background Fetch plugin"
depends="$pkgname-plugin-base $depends"
amove usr/libexec/trafficserver/background_fetch.so
}
plugin_s3auth() {
pkgdesc="Apache Traffic Server AWS S3 Authentication plugin"
depends="$pkgname-plugin-base $depends"
amove usr/libexec/trafficserver/s3_auth.so
}
plugin_cachekey() {
pkgdesc="Apache Traffic Server Cache Key and Parent Selection URL Manipulation plugin"
depends="$pkgname-plugin-base $depends"
amove usr/libexec/trafficserver/cachekey.so
}
plugin_cachepromote() {
pkgdesc="Apache Traffic Server Cache Promotion Policies plugin"
depends="$pkgname-plugin-base $depends"
amove usr/libexec/trafficserver/cache_promote.so
}
plugin_cacherangerequests() {
pkgdesc="Apache Traffic Server Cache Range Requests plugin"
depends="$pkgname-plugin-base $depends"
amove usr/libexec/trafficserver/cache_range_requests.so
}
plugin_combohandler() {
pkgdesc="Apache Traffic Server Combo Handler plugin"
depends="$pkgname-plugin-base $depends"
amove usr/libexec/trafficserver/combo_handler.so
}
plugin_confremap() {
pkgdesc="Apache Traffic Server Configuration Remap plugin"
depends="$pkgname-plugin-base $depends"
amove usr/libexec/trafficserver/conf_remap.so
}
plugin_esi() {
pkgdesc="Apache Traffic Server ESI plugin"
depends="$pkgname-plugin-base $depends"
amove usr/libexec/trafficserver/esi.so
}
plugin_escalate() {
pkgdesc="Apache Traffic Server Escalate plugin"
depends="$pkgname-plugin-base $depends"
amove usr/libexec/trafficserver/escalate.so
}
plugin_generator() {
pkgdesc="Apache Traffic Server Generator plugin"
depends="$pkgname-plugin-base $depends"
amove usr/libexec/trafficserver/generator.so
}
plugin_compress() {
pkgdesc="Apache Traffic Server Compress plugin"
depends="$pkgname-plugin-base $depends"
amove usr/libexec/trafficserver/compress.so
}
plugin_headerrewrite() {
pkgdesc="Apache Traffic Server Header Rewrite plugin"
depends="$pkgname-plugin-base $depends"
amove usr/libexec/trafficserver/header_rewrite.so
}
plugin_healthchecks() {
pkgdesc="Apache Traffic Server Health Checks plugin"
depends="$pkgname-plugin-base $depends"
amove usr/libexec/trafficserver/healthchecks.so
}
plugin_lua() {
pkgdesc="Apache Traffic Server Lua plugin"
depends="$pkgname-plugin-base luajit $depends"
amove usr/libexec/trafficserver/tslua.so
}
plugin_regexremap() {
pkgdesc="Apache Traffic Server Regex Remap plugin"
depends="$pkgname-plugin-base $depends"
amove usr/libexec/trafficserver/regex_remap.so
}
plugin_regexrevalidate() {
pkgdesc="Apache Traffic Server Regex Revalidate plugin"
depends="$pkgname-plugin-base $depends"
amove usr/libexec/trafficserver/regex_revalidate.so
}
plugin_statsoverhttp() {
pkgdesc="Apache Traffic Server Stats over HTTP plugin"
depends="$pkgname-plugin-base $depends"
amove usr/libexec/trafficserver/stats_over_http.so
}
plugin_tcpinfo() {
pkgdesc="Apache Traffic Server TPCinfo plugin"
depends="$pkgname-plugin-base $depends"
amove usr/libexec/trafficserver/tcpinfo.so
}
plugin_xdebug() {
pkgdesc="Apache Traffic Server XDebug plugin"
depends="$pkgname-plugin-base $depends"
amove usr/libexec/trafficserver/xdebug.so
}
plugin_certifier() {
pkgdesc="Apache Traffic Server Certifier plugin"
depends="$pkgname-plugin-base $depends"
amove usr/libexec/trafficserver/certifier.so
}
plugin_multiplexer() {
pkgdesc="Apache Traffic Server Multiplexer plugin"
depends="$pkgname-plugin-base $depends"
amove usr/libexec/trafficserver/multiplexer.so
}
plugin_prefetch() {
pkgdesc="Apache Traffic Server Prefetch plugin"
depends="$pkgname-plugin-base $depends"
amove usr/libexec/trafficserver/prefetch.so
}
plugin_remappurge() {
pkgdesc="Apache Traffic Server Remap Purge plugin"
depends="$pkgname-plugin-base $depends"
amove usr/libexec/trafficserver/remap_purge.so
}
utils() {
pkgdesc="Apache Traffic Server auxiliary utils"
depends="curl $depends"
amove usr/bin/traffic_cache_tool
amove usr/bin/traffic_crashlog
amove usr/bin/traffic_layout
amove usr/bin/traffic_logcat
amove usr/bin/traffic_logstats
amove usr/bin/traffic_top
amove usr/bin/traffic_via
amove usr/bin/tspush
amove usr/bin/tsxs
}
sha512sums="
05ec110cd25f93861a1609608dd82030ed9b21cc561fb1a66c76c06317bc16235d79389a7ffc76218527d7b524585473897bee6e01529f1c8f4f1b844cde4359 trafficserver-9.1.2.tar.bz2
fbbe4fd4024b4656a3d4f67bdace7ae3a65892d40a92c67245e277520dfd53d5e9eb7934b2d213dfecc4de6895c63ec67cef0edee7b43ba28319cfaa3c75ddf3 10-fix-PATH_MAX-on-ppc64le.patch
f0641d9b6d263340c7b29e708cbf9cedcf74578ab77e425949bb7f9abc7a06f2a88cf2d4168d2936e8216a260c6bf3480f50390cd2cacc4afe69489b8bda4c64 20-adapt-trafficserver.patch
47d7d83be1e7798bb905c217efab9480aa6e6218eb09317c20c457f454895016a6104818d86223a051c8adc40f42c7436aa607f73e505c939bd2d5dd8e5efa45 30-fix-perl-installation.patch
791b5ea9620574b172587fb2fcde97da53ca4c4a64110f1e1e13b9e475ffa255753fd98933a2f0f1ef44a2bf7810f6828445147fc6dcc8a41869b62271a728ad 40-alpine-dir-layout.patch
f74e4dccfaed1861efb9b21510e7122bfb487c61361bd4795fb81a376521c37cd15e35e38863bec9e8419d7ac9669ca0978adab7e53b2aa85d73d8f474de84fc no-execinfo.patch
a4d2e91d92579ba8b0c5361b0f4fd490d7a90e8a170552428f4781432eca89503a87a2c6f571a342eb77db5a43baa03d779a1fbe37ce1f4bba24fe89d5c97e7d trafficserver.initd
"
|