blob: 6acabcabb887d192f1aa47e70571dda9e00ed7eb (
plain)
1 # Description: An HTTP and reverse proxy server
2 # URL: http://nginx.org/
3 # Maintainer: Matt Housh, jaeger at crux dot ninja
4 # Depends on: libpcre zlib openssl
5
6 name=nginx
7 version=1.11.6
8 release=1
9 source=(http://nginx.org/download/$name-$version.tar.gz \
10 $name.conf $name.rc)
11
12 build() {
13 cd $name-$version
14 ./configure --prefix=/etc/$name \
15 --sbin-path=/usr/sbin/$name \
16 --conf-path=/etc/$name/$name.conf \
17 --error-log-path=/var/log/$name/error.log \
18 --http-log-path=/var/log/$name/access.log \
19 --pid-path=/var/run/$name.pid \
20 --lock-path=/var/lock/$name.pid \
21 --with-http_ssl_module \
22 --with-pcre \
23 --user=$name \
24 --group=$name
25 make
26 make DESTDIR=$PKG install
27
28 install -d -m 0755 $PKG/var/log/$name
29 install -D -m 0644 -o root -g root $SRC/$name.conf \
30 $PKG/etc/$name/$name.conf
31
32 install -D -m 0755 -o root -g root $SRC/$name.rc \
33 $PKG/etc/rc.d/$name
34
35 find $PKG/etc/$name -name "*.default" -delete
36
37 chown $name:$name $PKG/var/log/$name
38 }
|