2012-04-17 13:00:28 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.52 2012/04/17 13:00:28 gsoares Exp $
|
2007-09-04 21:58:26 +00:00
|
|
|
|
2007-12-31 02:20:01 +00:00
|
|
|
COMMENT= robust and small HTTP server and mail proxy server
|
2007-09-04 21:58:26 +00:00
|
|
|
|
2012-04-17 13:00:28 +00:00
|
|
|
DISTNAME= nginx-1.0.15
|
2007-09-04 21:58:26 +00:00
|
|
|
CATEGORIES= www
|
|
|
|
|
2011-05-17 03:31:00 +00:00
|
|
|
HOMEPAGE= http://nginx.org/
|
2007-09-04 21:58:26 +00:00
|
|
|
|
2011-04-09 01:21:55 +00:00
|
|
|
MAINTAINER= William Yodlowsky <william@openbsd.org>
|
2007-09-04 21:58:26 +00:00
|
|
|
|
|
|
|
# BSD-like
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2010-08-31 20:05:21 +00:00
|
|
|
WANTLIB= c crypto pcre ssl z
|
2007-09-04 21:58:26 +00:00
|
|
|
|
2011-05-17 03:31:00 +00:00
|
|
|
MASTER_SITES= http://nginx.org/download/
|
2007-09-04 21:58:26 +00:00
|
|
|
|
2010-11-22 08:36:47 +00:00
|
|
|
LIB_DEPENDS= devel/pcre
|
2007-09-04 21:58:26 +00:00
|
|
|
|
|
|
|
NGINX_DIR= /var/nginx
|
2007-12-31 02:20:01 +00:00
|
|
|
SUBST_VARS= NGINX_DIR
|
2007-09-04 21:58:26 +00:00
|
|
|
|
|
|
|
CONFIGURE_STYLE= simple
|
2007-12-31 02:20:01 +00:00
|
|
|
CONFIGURE_ARGS= --prefix=${SYSCONFDIR}/nginx \
|
|
|
|
--conf-path=${SYSCONFDIR}/nginx/nginx.conf \
|
2007-09-04 21:58:26 +00:00
|
|
|
--sbin-path=${PREFIX}/sbin/nginx \
|
|
|
|
--pid-path=/var/run/nginx.pid \
|
2012-02-19 15:02:08 +00:00
|
|
|
--lock-path=/var/run/nginx.lock \
|
2007-09-04 21:58:26 +00:00
|
|
|
--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 08:18:18 +00:00
|
|
|
--http-scgi-temp-path=${NGINX_DIR}/tmp/scgi_temp \
|
|
|
|
--http-uwsgi-temp-path=${NGINX_DIR}/tmp/uwsgi_temp \
|
2012-02-19 15:02:08 +00:00
|
|
|
--http-log-path=/var/www/logs/access.log \
|
|
|
|
--error-log-path=/var/www/logs/error.log \
|
|
|
|
--user=www \
|
|
|
|
--group=www \
|
2010-09-25 03:34:40 +00:00
|
|
|
--with-http_gzip_static_module \
|
2007-09-04 21:58:26 +00:00
|
|
|
--with-http_ssl_module \
|
|
|
|
--with-http_stub_status_module \
|
2011-10-13 12:09:57 +00:00
|
|
|
--with-http_mp4_module \
|
2007-12-31 02:20:01 +00:00
|
|
|
--with-mail \
|
2009-06-24 07:38:30 +00:00
|
|
|
--with-mail_ssl_module \
|
|
|
|
--with-ipv6
|
2007-12-31 02:20:01 +00:00
|
|
|
|
2011-05-17 03:31:00 +00:00
|
|
|
FLAVORS= passenger
|
2009-08-20 20:40:11 +00:00
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mpassenger}
|
2010-11-08 23:50:31 +00:00
|
|
|
CONFIGURE_ARGS += --add-module=${LOCALBASE}/lib/phusion-passenger/ext/nginx
|
2011-12-13 18:39:38 +00:00
|
|
|
BUILD_DEPENDS += www/ruby-passenger,-main
|
|
|
|
RUN_DEPENDS += ruby-passenger-*|ruby19-passenger-*:www/ruby-passenger,-main
|
2010-11-08 23:50:31 +00:00
|
|
|
WANTLIB += m pthread stdc++
|
2009-08-20 20:40:11 +00:00
|
|
|
.endif
|
|
|
|
|
2007-09-04 21:58:26 +00:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
ALL_TARGET=
|
|
|
|
|
|
|
|
pre-configure:
|
2009-06-23 20:24:12 +00:00
|
|
|
@${SUBST_CMD} ${WRKBUILD}/conf/nginx.conf
|
2007-09-04 21:58:26 +00:00
|
|
|
|
|
|
|
do-install:
|
2007-12-31 02:20:01 +00:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/nginx/
|
2007-09-04 21:58:26 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/objs/nginx ${PREFIX}/sbin
|
2011-05-17 03:31:00 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/objs/nginx.8 ${PREFIX}/man/man8/
|
2010-11-10 08:18:18 +00:00
|
|
|
.for i in koi-win koi-utf win-utf mime.types nginx.conf \
|
|
|
|
fastcgi_params scgi_params uwsgi_params
|
2007-09-04 21:58:26 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/conf/${i} ${PREFIX}/share/nginx/
|
|
|
|
.endfor
|
2007-12-31 02:20:01 +00:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/nginx/html/
|
2007-09-04 21:58:26 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/html/* ${PREFIX}/share/nginx/html/
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|