### this file is sourced not run
PKGVER=1.9.9
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=nginx-$PKGVER.tar.gz
MD5SUM=02689bc9fa6cb8253a7b04f16c695c7c
SRC_URL=http://nginx.org/download/nginx-1.5.10.tar.gz
BUNDLE=

SLACKREQ='openssl libpcre zlib'
SLACKDESC="nginx: nginx $PKGVER (Web Server)  
nginx:  
nginx: Nginx (pronounced engine-x) is a free, open-source, high-performance 
nginx: HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server. 
nginx: Nginx is known for its high performance, stability, rich feature set, 
nginx: simple configuration, and low resource consumption.  
nginx: 
nginx: 
nginx: 
nginx: 
nginx:
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	CONFFLAGS="--prefix=/var/www \
	--conf-path=/etc/nginx/nginx.conf --sbin-path=/usr/sbin \
	--pid-path=/var/run/nginx.pid \
	--error-log-path=/var/log/nginx/error.log \
	--http-log-path=/var/log/nginx/access.log \
	--http-client-body-temp-path=/var/tmp/nginx/client \
	--http-proxy-temp-path=/var/tmp/nginx/proxy \
	--http-fastcgi-temp-path=/var/tmp/nginx/fastcgi \
	--http-uwsgi-temp-path=/var/tmp/nginx/uwsgi \
	--http-scgi-temp-path=/var/tmp/nginx/scgi \
	--user=webuser --group=webuser \
	--with-http_ssl_module --with-ipv6"
	mkdir -p /var/tmp/nginx/{client,proxy,fastcgi,uwsgi,scgi} /var/log/nginx/
	pkg_build_autoconf && pkg_build_slackdesc
}


