blob: 6b24805e574403bf612e939c2d3b646ac63dd3ba (
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
|
# Maintainer: Cameron Banta <cbanta@gmail.com>
# Contributor: Jeff Bilyk <jbilyk@gmail.com>
# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
pkgname=nginx
pkgver=1.6.0
_nginxrtmpver=1.1.0
pkgrel=3
pkgdesc="lightweight HTTP and reverse proxy server"
url="http://www.nginx.org"
arch="all"
license="Custom"
install="$pkgname.pre-install $pkgname.pre-upgrade"
makedepends="pcre-dev openssl-dev zlib-dev"
subpackages="$pkgname-doc $pkgname-vim:vim"
source="http://nginx.org/download/$pkgname-$pkgver.tar.gz
nginx-rtmp-module-$_nginxrtmpver.tar.gz::https://github.com/arut/nginx-rtmp-module/archive/v$_nginxrtmpver.tar.gz
musl-crypt-fix.patch
ipv6.patch
nginx.initd
nginx.logrotate
"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
./configure \
--prefix=/usr \
--conf-path=/etc/$pkgname/$pkgname.conf \
--pid-path=/var/run/$pkgname.pid \
--lock-path=/var/run/$pkgname.lock \
--error-log-path=/var/log/$pkgname/error.log \
--http-log-path=/var/log/$pkgname/access.log \
--http-client-body-temp-path=/tmp/$pkgname/client-body \
--http-proxy-temp-path=/tmp/$pkgname/proxy \
--http-fastcgi-temp-path=/tmp/$pkgname/fastcgi \
--user=nginx \
--group=nginx \
--with-ipv6 \
--with-pcre-jit \
--with-http_ssl_module \
--with-http_gzip_static_module \
--with-http_spdy_module \
--with-mail \
--with-mail_ssl_module \
--add-module="$srcdir/nginx-rtmp-module-$_nginxrtmpver" \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
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 -m644 -D LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
install -m644 -D man/$pkgname.8 "$pkgdir"/usr/share/man/man8/$pkgname.8
}
vim() {
local t
depends=""
pkgdesc="Vim syntax for Nginx"
arch="noarch"
for t in ftdetect syntax indent; do
install -Dm644 "$_builddir"/contrib/vim/$t/$pkgname.vim \
"$subpkgdir"/usr/share/vim/vimfiles/$t/$pkgname.vim
done
}
md5sums="8efa354f1c3c2ccf434a50d3fbe82340 nginx-1.6.0.tar.gz
ef72159bfdba7a9b0759bd93979d2d4a nginx-rtmp-module-1.1.0.tar.gz
3aeb488921109e60d02ed64d36790aeb musl-crypt-fix.patch
801a87f7f9d27f8ad85b41a78b4c4461 ipv6.patch
9f5db5e24ce9f671978eb3b1b5e6e817 nginx.initd
d3f30c25c84c55252a6babd9e9b0325b nginx.logrotate"
sha256sums="943ad757a1c3e8b3df2d5c4ddacc508861922e36fa10ea6f8e3a348fc9abfc1a nginx-1.6.0.tar.gz
d57da822b632b52435b159f6358de9474917786f709e197b1e2a81fe7d289d75 nginx-rtmp-module-1.1.0.tar.gz
8c398640bd379c1c6a2fafcd2b3848a72902e47924e8e2490b312c141eec5d70 musl-crypt-fix.patch
a24ef5843ae0afa538b00c37eb7da7870f9d7f146f52a9668678f7296cf71d9b ipv6.patch
4feea52915e03ab14ad985254b81a762ee29b9553993b63dd49bedb24a3ae416 nginx.initd
6b89872994508cc7b4b225bca3301d7942767f37b8b691134141d95995740890 nginx.logrotate"
sha512sums="715b3aa6012e2e29f3b4e6affff4641de0958faa25c0acedb8091b0f4c8506a8912a7e507bcb1f89fc5fe0a1233ab7770dc6ed742698874f43af72b7d08e48f7 nginx-1.6.0.tar.gz
fa5ca550939981f2ca0e7669b5357caec49836807c4789d0b8c23fd3fb6e8694374f1eb46f31dc3c7114a90fe87053fc3905b9a70a0a74082db8d003795d8136 nginx-rtmp-module-1.1.0.tar.gz
21114c775e4bdd1f7b8b9abc143284945e96ed1d8c49904ddf918abad87b16253f918ba47976cd2df32f0fdb8a7dad399d4200e879db2da6cf93a28aab236a75 musl-crypt-fix.patch
68d64a84568ec2df0366925ab282a05ebe21a85044b6c7844a47573cfd8cc8ed119cc772358bc3fff36e2d4fdf583a730592825f5f98632993ca86d1f8438d5f ipv6.patch
3f302d782f81cb70634bcdf079c842b0783d8d492c3d2a9bb8e54aae0392818ee8ab2d85d2b718a3563c48edeb349f8443487d631310fcca7b70f91967417d47 nginx.initd
fda91710185d6b801dd746c8c3678b5719b408de0b715bef7b1985f1ee17db1e8378d440759ea6234b1f70454a35870a2917bd1d6cd309ddc70e1c066fc8d4b8 nginx.logrotate"
|