2012-07-11 21:03:43 +00:00
|
|
|
# Template file for 'nginx'
|
|
|
|
pkgname=nginx
|
2012-11-13 16:33:33 +00:00
|
|
|
version=1.2.5
|
2012-08-08 08:37:49 +00:00
|
|
|
revision=1
|
2012-09-30 08:21:55 +00:00
|
|
|
makedepends="pcre-devel>=8.30 openssl-devel"
|
2012-07-11 21:03:43 +00:00
|
|
|
short_desc="A high performance web server and a reverse proxy server"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="Simplified BSD"
|
|
|
|
homepage="http://nginx.org"
|
|
|
|
distfiles="http://nginx.org/download/nginx-$version.tar.gz"
|
2012-11-13 16:33:33 +00:00
|
|
|
checksum=87392b8ebc3a763589bdf3f0578cad323bb4ddd327a84243eb4a8babbbd79ddd
|
2012-07-11 21:03:43 +00:00
|
|
|
long_desc="
|
|
|
|
Sed, the GNU Stream Editor, copies the named files (standard input default)
|
|
|
|
to the standard output, edited according to a script of commands."
|
|
|
|
|
|
|
|
conf_files="
|
|
|
|
/etc/nginx/fastcgi.conf
|
|
|
|
/etc/nginx/fastcgi_params
|
|
|
|
/etc/nginx/koi-win
|
|
|
|
/etc/nginx/koi-utf
|
|
|
|
/etc/nginx/mime.types
|
|
|
|
/etc/nginx/nginx.conf
|
|
|
|
/etc/nginx/scgi_params
|
|
|
|
/etc/nginx/uwsgi_params
|
|
|
|
/etc/nginx/win-utf
|
|
|
|
/etc/logrotate.d/nginx"
|
|
|
|
|
|
|
|
system_accounts="nginx"
|
|
|
|
nginx_homedir="/var/tmp/nginx"
|
|
|
|
|
|
|
|
systemd_services="nginx.service on"
|
|
|
|
|
|
|
|
make_dirs="
|
2012-07-11 21:17:27 +00:00
|
|
|
/var/log/nginx 0750 root root
|
2012-07-11 21:03:43 +00:00
|
|
|
/var/tmp 1777 root root
|
|
|
|
/var/tmp/nginx 0750 root root"
|
|
|
|
|
|
|
|
do_configure() {
|
|
|
|
local cfgdir=/etc/nginx
|
|
|
|
local tmpdir=/var/tmp/nginx
|
|
|
|
|
|
|
|
./configure --prefix=${cfgdir} \
|
|
|
|
--conf-path=${cfgdir}/nginx.conf \
|
|
|
|
--sbin-path=/usr/sbin/nginx \
|
|
|
|
--pid-path=/run/nginx.pid \
|
|
|
|
--lock-path=/var/lock/nginx.lock \
|
|
|
|
--user=nginx --group=nginx \
|
|
|
|
--http-log-path=/var/log/nginx/access.log \
|
|
|
|
--error-log-path=/var/log/nginx/error.log \
|
|
|
|
--http-client-body-temp-path=${tmpdir}/client-body \
|
|
|
|
--http-proxy-temp-path=${tmpdir}/proxy \
|
|
|
|
--http-fastcgi-temp-path=${tmpdir}/fastcgi \
|
|
|
|
--http-scgi-temp-path=${tmpdir}/scgi \
|
|
|
|
--http-uwsgi-temp-path=${tmpdir}/uwsgi \
|
|
|
|
--with-imap --with-imap_ssl_module \
|
|
|
|
--with-ipv6 --with-pcre-jit \
|
|
|
|
--with-file-aio \
|
|
|
|
--with-http_dav_module \
|
|
|
|
--with-http_gzip_static_module \
|
|
|
|
--with-http_realip_module \
|
|
|
|
--with-http_ssl_module \
|
|
|
|
--with-http_stub_status_module
|
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
make ${makejobs}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
make DESTDIR=$DESTDIR install
|
|
|
|
|
|
|
|
vinstall ${FILESDIR}/nginx.logrotate 644 etc/logrotate.d nginx
|
|
|
|
|
|
|
|
sed -e 's|\<user\s\+\w\+;|user html;|g' \
|
|
|
|
-e '44s|html|/usr/share/nginx/html|' \
|
|
|
|
-e '54s|html|/usr/share/nginx/html|' \
|
|
|
|
-i $DESTDIR/etc/nginx/nginx.conf
|
|
|
|
rm $DESTDIR/etc/nginx/*.default
|
|
|
|
|
|
|
|
vmkdir usr/share/nginx
|
|
|
|
mv $DESTDIR/etc/nginx/html/ $DESTDIR/usr/share/nginx
|
|
|
|
|
|
|
|
vinstall ${FILESDIR}/nginx.service 644 usr/lib/systemd/system
|
|
|
|
vinstall LICENSE 644 usr/share/licenses/nginx
|
|
|
|
}
|