2015-11-23 21:05:51 -06:00
|
|
|
# Description: An HTTP and reverse proxy server
|
|
|
|
# URL: http://nginx.org/
|
|
|
|
# Maintainer: Matt Housh, jaeger at crux dot ninja
|
|
|
|
# Depends on: libpcre zlib openssl
|
2009-01-29 16:24:13 +11:00
|
|
|
|
|
|
|
name=nginx
|
2023-10-26 00:05:40 -05:00
|
|
|
version=1.25.3
|
2016-04-20 09:19:04 -05:00
|
|
|
release=1
|
2015-11-23 21:05:51 -06:00
|
|
|
source=(http://nginx.org/download/$name-$version.tar.gz \
|
|
|
|
$name.conf $name.rc)
|
2009-01-29 16:24:13 +11:00
|
|
|
|
|
|
|
build() {
|
2015-11-23 21:05:51 -06:00
|
|
|
cd $name-$version
|
|
|
|
./configure --prefix=/etc/$name \
|
|
|
|
--sbin-path=/usr/sbin/$name \
|
|
|
|
--conf-path=/etc/$name/$name.conf \
|
|
|
|
--error-log-path=/var/log/$name/error.log \
|
|
|
|
--http-log-path=/var/log/$name/access.log \
|
|
|
|
--pid-path=/var/run/$name.pid \
|
|
|
|
--lock-path=/var/lock/$name.pid \
|
|
|
|
--with-http_ssl_module \
|
|
|
|
--with-pcre \
|
|
|
|
--user=$name \
|
2016-10-12 14:01:43 -05:00
|
|
|
--group=$name
|
2015-11-23 21:05:51 -06:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2015-06-22 20:03:08 +10:00
|
|
|
|
2015-11-23 21:05:51 -06:00
|
|
|
install -d -m 0755 $PKG/var/log/$name
|
|
|
|
install -D -m 0644 -o root -g root $SRC/$name.conf \
|
|
|
|
$PKG/etc/$name/$name.conf
|
2015-06-22 20:03:08 +10:00
|
|
|
|
2015-11-23 21:05:51 -06:00
|
|
|
install -D -m 0755 -o root -g root $SRC/$name.rc \
|
|
|
|
$PKG/etc/rc.d/$name
|
2015-06-22 20:03:08 +10:00
|
|
|
|
2015-11-23 21:05:51 -06:00
|
|
|
find $PKG/etc/$name -name "*.default" -delete
|
|
|
|
|
|
|
|
chown $name:$name $PKG/var/log/$name
|
2009-01-29 16:24:13 +11:00
|
|
|
}
|