pkgsrc-wip/nginx-devel/Makefile
Nikolay Kalev a0ea3f3c4b New development version with a lot of fixes in :
ngx_http_flv_module, sub_filter, SSI, proxy_pass

New added options and functionalities :
access_log, open_log_file_cache, key -g, option "Expect", ssl_dhparam, ssl_client_cert and others ..
2008-07-27 19:51:05 +00:00

63 lines
1.9 KiB
Makefile

# $NetBSD: Makefile,v 1.4 2008/07/27 19:51:05 rootcho Exp $
DISTNAME= nginx-0.7.6
PKGREVISION= 1
CATEGORIES= www
MASTER_SITES= http://sysoev.ru/nginx/
MAINTAINER= nkalev@securelabs.org
HOMEPAGE= http://nginx.net/
COMMENT= Lightweight HTTP server and mail proxy server
PKG_DESTDIR_SUPPORT= user-destdir
USE_PKGLOCALEDIR= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS+= --with-ld-opt=-L${PREFIX}/lib\ -Wl,-R${PREFIX}/lib
CONFIGURE_ARGS+= --prefix=${PREFIX}
CONFIGURE_ARGS+= --sbin-path=${PREFIX}/sbin
CONFIGURE_ARGS+= --conf-path=${PKG_SYSCONFDIR}/nginx.conf
CONFIGURE_ARGS+= --pid-path=${VARBASE}/run/nginx.pid
CONFIGURE_ARGS+= --error-log-path=${NGINX_LOGDIR}/error.log
CONFIGURE_ARGS+= --http-log-path=${NGINX_LOGDIR}/access.log
CONFIGURE_ARGS+= --with-mail
.include "../../mk/bsd.prefs.mk"
PKG_SYSCONFSUBDIR= nginx
NGINX_LOGDIR?= ${VARBASE}/log/nginx
EGDIR= ${PREFIX}/share/examples/nginx
EGFILES= fastcgi_params koi-utf koi-win mime.types nginx.conf win-utf
.for file in ${EGFILES}
CONF_FILES+= ${EGDIR}/conf/${file} ${PKG_SYSCONFDIR}/${file}
.endfor
RCD_SCRIPTS= nginx
INSTALLATION_DIRS= sbin share/examples/nginx/conf share/examples/nginx/html
OWN_DIRS= ${NGINX_LOGDIR}
BUILD_DEFS+= PKG_SYSCONFBASE NGINX_LOGDIR VARBASE
BUILD_TARGET= build
SUBST_CLASSES+= paths
SUBST_STAGE.paths= pre-configure
SUBST_FILES.paths= conf/nginx.conf
SUBST_SED.paths= -e 's,%%PKG_SYSCONFDIR%%,${PKG_SYSCONFDIR},g'
SUBST_SED.paths+= -e 's,%%NGINX_LOGDIR%%,${NGINX_LOGDIR},g'
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/objs/nginx ${DESTDIR}${PREFIX}/sbin/nginx
.for file in ${EGFILES}
${INSTALL_DATA} ${WRKSRC}/conf/${file} ${DESTDIR}${EGDIR}/conf/${file}
.endfor
${INSTALL_DATA} ${WRKSRC}/html/50x.html ${DESTDIR}${EGDIR}/html/50x.html
${INSTALL_DATA} ${WRKSRC}/html/index.html ${DESTDIR}${EGDIR}/html/index.html
.include "options.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"