blob: 8b28fee2f2ae402e5aa2e8d32f859a49c38f0382 (
plain)
1 # Description: Ultra fast HTTP and mail proxy server
2 # URL: http://nginx.net/
3 # Maintainer: Mikhail Kolesnik, mike at openbunker dot org
4 # Depends on: perl libpcre openssl
5
6 name=nginx
7 version=0.8.54
8 release=1
9 source=(http://sysoev.ru/$name/$name-$version.tar.gz \
10 $name.conf \
11 $name)
12
13 build() {
14 cd $name-$version
15 ./configure --prefix=/etc/$name \
16 --sbin-path=/usr/bin/$name \
17 --conf-path=/etc/$name/$name.conf \
18 --pid-path=/var/run/$name.pid \
19 --lock-path=/var/lock/$name.lock \
20 --http-client-body-temp-path=/var/spool/$name/client_body_temp \
21 --http-proxy-temp-path=/var/spool/$name/proxy_temp \
22 --http-fastcgi-temp-path=/var/spool/$name/fastcgi_temp \
23 --http-uwsgi-temp-path=/var/spool/$name/uwscgi_temp \
24 --http-scgi-temp-path=/var/spool/$name/scgi_temp \
25 --error-log-path=/var/log/$name \
26 --http-log-path=/var/log/$name/access.log \
27 --error-log-path=/var/log/$name/error.log \
28 --user=$name \
29 --group=$name \
30 --with-pcre \
31 --with-zlib-asm=pentiumpro \
32 --with-http_gzip_static_module \
33 --with-http_ssl_module \
34 --with-http_realip_module \
35 --with-http_addition_module \
36 --with-http_sub_module \
37 --with-http_flv_module \
38 --with-http_stub_status_module \
39 --with-http_perl_module
40 make
41 make DESTDIR=$PKG install
42
43 mkdir -p $PKG/var/spool/$name/{client_body_temp,fastcgi_temp,uwscgi_temp,scgi_temp,proxy_temp}
44 chown $name:0 $PKG/var/spool/$name/{client_body_temp,fastcgi_temp,uwscgi_temp,scgi_temp,proxy_temp}
45 chmod 700 $PKG/var/spool/$name/{client_body_temp,fastcgi_temp,uwscgi_temp,scgi_temp,proxy_temp}
46
47 touch $PKG/var/log/$name/access.log
48 touch $PKG/var/log/$name/error.log
49
50 install -m 644 $SRC/$name.conf $PKG/etc/$name/$name.conf
51 install -D -m 755 $SRC/$name $PKG/etc/rc.d/$name
52
53 rm -f $PKG/etc/$name/*.default
54
55 find $PKG/usr/lib/perl5 -name .packlist -exec rm {} \;
56 find $PKG/usr/lib/perl5 -name perllocal.pod -exec rm {} \;
57 find $PKG/usr/lib/perl5 -depth -type d -empty -exec rm -rf {} \;
58 find $PKG/usr/lib/perl5 -name "*.bs" -exec rm {} \;
59 }
|