2010-11-10 03:18:18 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.33 2010/11/10 08:18:18 sthen Exp $
|
2007-09-04 17:58:26 -04:00
|
|
|
|
2007-12-30 21:20:01 -05:00
|
|
|
COMMENT= robust and small HTTP server and mail proxy server
|
2007-09-04 17:58:26 -04:00
|
|
|
|
2010-11-03 21:41:11 -04:00
|
|
|
DISTNAME= nginx-0.8.53
|
2007-09-04 17:58:26 -04:00
|
|
|
CATEGORIES= www
|
|
|
|
|
2010-11-10 03:18:18 -05:00
|
|
|
REVISION= 2
|
2010-11-04 03:39:44 -04:00
|
|
|
|
2007-09-04 17:58:26 -04:00
|
|
|
HOMEPAGE= http://nginx.net/
|
|
|
|
|
2009-05-21 07:44:08 -04:00
|
|
|
MAINTAINER= William Yodlowsky <bsd@openbsd.rutgers.edu>
|
2007-09-04 17:58:26 -04:00
|
|
|
|
|
|
|
# BSD-like
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2010-08-31 16:05:21 -04:00
|
|
|
WANTLIB= c crypto pcre ssl z
|
2007-09-04 17:58:26 -04:00
|
|
|
|
|
|
|
MASTER_SITES= http://sysoev.ru/nginx/
|
|
|
|
|
2010-11-04 19:33:45 -04:00
|
|
|
LIB_DEPENDS= ::devel/pcre
|
2007-09-04 17:58:26 -04:00
|
|
|
|
|
|
|
NGINX_DIR= /var/nginx
|
2007-12-30 21:20:01 -05:00
|
|
|
SUBST_VARS= NGINX_DIR
|
2007-09-04 17:58:26 -04:00
|
|
|
|
|
|
|
CONFIGURE_STYLE= simple
|
2007-12-30 21:20:01 -05:00
|
|
|
CONFIGURE_ARGS= --prefix=${SYSCONFDIR}/nginx \
|
|
|
|
--conf-path=${SYSCONFDIR}/nginx/nginx.conf \
|
2007-09-04 17:58:26 -04:00
|
|
|
--sbin-path=${PREFIX}/sbin/nginx \
|
|
|
|
--pid-path=/var/run/nginx.pid \
|
|
|
|
--lock-path=${NGINX_DIR}/tmp/nginx.lock \
|
|
|
|
--http-client-body-temp-path=${NGINX_DIR}/tmp/client_body_temp \
|
|
|
|
--http-proxy-temp-path=${NGINX_DIR}/tmp/proxy_temp \
|
|
|
|
--http-fastcgi-temp-path=${NGINX_DIR}/tmp/fastcgi_temp \
|
2010-11-10 03:18:18 -05:00
|
|
|
--http-scgi-temp-path=${NGINX_DIR}/tmp/scgi_temp \
|
|
|
|
--http-uwsgi-temp-path=${NGINX_DIR}/tmp/uwsgi_temp \
|
2007-09-04 17:58:26 -04:00
|
|
|
--http-log-path=/var/log/nginx/access.log \
|
|
|
|
--error-log-path=/var/log/nginx/error.log \
|
|
|
|
--user=_nginx \
|
|
|
|
--group=_nginx \
|
2010-09-24 23:34:40 -04:00
|
|
|
--with-http_gzip_static_module \
|
2007-09-04 17:58:26 -04:00
|
|
|
--with-http_ssl_module \
|
|
|
|
--with-http_stub_status_module \
|
2007-12-30 21:20:01 -05:00
|
|
|
--with-mail \
|
2009-06-24 03:38:30 -04:00
|
|
|
--with-mail_ssl_module \
|
|
|
|
--with-ipv6
|
2007-12-30 21:20:01 -05:00
|
|
|
|
2009-08-20 16:40:11 -04:00
|
|
|
FLAVORS= passenger
|
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mpassenger}
|
2010-11-08 18:50:31 -05:00
|
|
|
CONFIGURE_ARGS += --add-module=${LOCALBASE}/lib/phusion-passenger/ext/nginx
|
|
|
|
BUILD_DEPENDS += ::www/ruby-passenger
|
|
|
|
RUN_DEPENDS += ::www/ruby-passenger
|
|
|
|
WANTLIB += m pthread stdc++
|
2009-08-20 16:40:11 -04:00
|
|
|
.endif
|
|
|
|
|
2007-09-04 17:58:26 -04:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
ALL_TARGET=
|
|
|
|
|
|
|
|
pre-configure:
|
2009-06-23 16:24:12 -04:00
|
|
|
@${SUBST_CMD} ${WRKBUILD}/conf/nginx.conf
|
2007-09-04 17:58:26 -04:00
|
|
|
|
|
|
|
do-install:
|
2007-12-30 21:20:01 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/nginx/
|
2007-09-04 17:58:26 -04:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/objs/nginx ${PREFIX}/sbin
|
2010-11-10 03:18:18 -05:00
|
|
|
.for i in koi-win koi-utf win-utf mime.types nginx.conf \
|
|
|
|
fastcgi_params scgi_params uwsgi_params
|
2007-09-04 17:58:26 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/conf/${i} ${PREFIX}/share/nginx/
|
|
|
|
.endfor
|
2007-12-30 21:20:01 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/nginx/html/
|
2007-09-04 17:58:26 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/html/* ${PREFIX}/share/nginx/html/
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|