blob: 6b4619ff5c2f078cf11d1c381181b2fac6034172 (
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
|
# Maintainer: Cameron Banta <cbanta@gmail.com>
# Contributor: Jeff Bilyk <jbilyk@gmail.com>
# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
# Contributor: Dennis Przytarski <dennis@przytarski.com>
pkgname=tengine
pkgver=2.3.2
pkgrel=0
pkgdesc="Lightweight HTTP and reverse proxy server. It is based on the Nginx HTTP server"
url="https://tengine.taobao.org/"
arch="all !aarch64"
license="BSD-2-Clause"
pkgusers="tengine"
pkggroups="tengine www-data"
options="!check" # Makefile test cmd does not work
replaces="nginx"
makedepends="linux-headers gd-dev geoip-dev libxml2-dev libxslt-dev
openssl-dev paxmark pcre-dev perl-dev pkgconf zlib-dev"
install="$pkgname.pre-install $pkgname.pre-upgrade"
subpackages="$pkgname-doc $pkgname-openrc"
source="http://tengine.taobao.org/download/tengine-$pkgver.tar.gz
tengine.initd
tengine.logrotate
"
build() {
./configure \
--prefix=/var/lib/$pkgname \
--sbin-path=/usr/sbin/$pkgname \
--conf-path=/etc/$pkgname/$pkgname.conf \
--pid-path=/run/$pkgname/$pkgname.pid \
--lock-path=/run/$pkgname/$pkgname.lock \
--http-client-body-temp-path=/var/tmp/$pkgname/client_body \
--http-proxy-temp-path=/var/tmp/$pkgname/proxy \
--http-fastcgi-temp-path=/var/tmp/$pkgname/fastcgi \
--http-uwsgi-temp-path=/var/tmp/$pkgname/uwsgi \
--http-scgi-temp-path=/var/tmp/$pkgname/scgi \
--with-perl_modules_path=/usr/lib/perl5/vendor_perl \
--user=$pkgusers \
--group=${pkggroups%% *} \
--with-file-aio \
--with-http_addition_module \
--with-http_auth_request_module \
--with-http_dav_module \
--with-http_degradation_module \
--with-http_flv_module \
--with-http_geoip_module \
--with-http_gunzip_module \
--with-http_gzip_static_module \
--with-http_image_filter_module \
--with-http_mp4_module \
--with-http_random_index_module \
--with-http_realip_module \
--with-http_secure_link_module \
--with-http_slice_module \
--with-http_ssl_module \
--with-http_stub_status_module \
--with-http_sub_module \
--with-http_perl_module \
--with-http_v2_module \
--with-http_xslt_module \
--with-ipv6 \
--with-mail \
--with-mail_ssl_module \
--with-pcre-jit \
--with-threads
make
}
package() {
make DESTDIR="$pkgdir" install
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
install -m644 -D "$srcdir"/$pkgname.logrotate "$pkgdir"/etc/logrotate.d/$pkgname
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
install -Dm644 README.markdown "$pkgdir"/usr/share/doc/$pkgname/README
}
sha512sums="237d78b0689a2c75a3699a23c81046167e06aa744ee86dc5646c603c7a43d92dd9c517f759cac1b335ff0fdcc5fc866f940f378520723ba04ca1d5fea72f2a6f tengine-2.3.2.tar.gz
3075188f052bf67b4079e78a8b0c56ede7cd8cee890031bf970e45fe8ebdc5739ef092de691108d78b8a111a07cfc98e7ff30234f6a8583db3c647e5fea7d109 tengine.initd
b0ad2fffe47210805ba09667dc40b09d30c7d1ff19fcb0fd4aa548355dcb992a2f9a7a9d3b0992a81e20eecbe37a91c3646b56324daf356c1d811e526fe663f3 tengine.logrotate"
|