| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.11 2010/07/18 01:28:43 joerg Exp $ | | 1 | # $NetBSD: Makefile,v 1.12 2010/07/18 01:33:20 joerg Exp $ |
2 | | | 2 | |
3 | DISTNAME= nginx-0.8.41 | | 3 | DISTNAME= nginx-0.8.41 |
4 | DISTFILES= ${DEFAULT_DISTFILES} | | 4 | DISTFILES= ${DEFAULT_DISTFILES} |
5 | CATEGORIES= www | | 5 | CATEGORIES= www |
6 | MASTER_SITES= http://sysoev.ru/nginx/ | | 6 | MASTER_SITES= http://sysoev.ru/nginx/ |
7 | | | 7 | |
8 | MAINTAINER= joerg@NetBSD.org | | 8 | MAINTAINER= joerg@NetBSD.org |
9 | HOMEPAGE= http://nginx.net/ | | 9 | HOMEPAGE= http://nginx.net/ |
10 | COMMENT= Lightweight HTTP server and mail proxy server | | 10 | COMMENT= Lightweight HTTP server and mail proxy server |
11 | LICENSE= 2-clause-bsd | | 11 | LICENSE= 2-clause-bsd |
12 | | | 12 | |
13 | PKG_DESTDIR_SUPPORT= user-destdir | | 13 | PKG_DESTDIR_SUPPORT= user-destdir |
14 | .include "../../mk/bsd.prefs.mk" | | 14 | .include "../../mk/bsd.prefs.mk" |
| @@ -51,27 +51,27 @@ CONFIGURE_ARGS+= --http-fastcgi-temp-pat | | | @@ -51,27 +51,27 @@ CONFIGURE_ARGS+= --http-fastcgi-temp-pat |
51 | PKG_SYSCONFSUBDIR= nginx | | 51 | PKG_SYSCONFSUBDIR= nginx |
52 | | | 52 | |
53 | EGDIR= ${PREFIX}/share/examples/nginx | | 53 | EGDIR= ${PREFIX}/share/examples/nginx |
54 | EGFILES+= fastcgi.conf fastcgi_params koi-utf koi-win \ | | 54 | EGFILES+= fastcgi.conf fastcgi_params koi-utf koi-win \ |
55 | mime.types nginx.conf win-utf | | 55 | mime.types nginx.conf win-utf |
56 | | | 56 | |
57 | .for file in ${EGFILES} | | 57 | .for file in ${EGFILES} |
58 | CONF_FILES+= ${EGDIR}/conf/${file} ${PKG_SYSCONFDIR}/${file} | | 58 | CONF_FILES+= ${EGDIR}/conf/${file} ${PKG_SYSCONFDIR}/${file} |
59 | .endfor | | 59 | .endfor |
60 | | | 60 | |
61 | RCD_SCRIPTS= nginx | | 61 | RCD_SCRIPTS= nginx |
62 | | | 62 | |
63 | INSTALLATION_DIRS= sbin share/examples/nginx/conf share/examples/nginx/html | | 63 | INSTALLATION_DIRS= sbin share/examples/nginx/conf share/examples/nginx/html |
64 | MAKE_DIR+= ${NGINX_PIDDIR} | | 64 | MAKE_DIRS+= ${NGINX_PIDDIR} |
65 | OWN_DIRS= ${NGINX_LOGDIR} | | 65 | OWN_DIRS= ${NGINX_LOGDIR} |
66 | OWN_DIRS_PERMS+= ${NGINX_DATADIR} ${NGINX_USER} ${NGINX_GROUP} 0700 | | 66 | OWN_DIRS_PERMS+= ${NGINX_DATADIR} ${NGINX_USER} ${NGINX_GROUP} 0700 |
67 | | | 67 | |
68 | BUILD_TARGET= build | | 68 | BUILD_TARGET= build |
69 | | | 69 | |
70 | SUBST_CLASSES+= paths | | 70 | SUBST_CLASSES+= paths |
71 | SUBST_STAGE.paths= pre-configure | | 71 | SUBST_STAGE.paths= pre-configure |
72 | SUBST_FILES.paths= conf/nginx.conf | | 72 | SUBST_FILES.paths= conf/nginx.conf |
73 | SUBST_SED.paths= -e 's,%%PKG_SYSCONFDIR%%,${PKG_SYSCONFDIR},g' | | 73 | SUBST_SED.paths= -e 's,%%PKG_SYSCONFDIR%%,${PKG_SYSCONFDIR},g' |
74 | SUBST_SED.paths+= -e 's,%%NGINX_LOGDIR%%,${NGINX_LOGDIR},g' | | 74 | SUBST_SED.paths+= -e 's,%%NGINX_LOGDIR%%,${NGINX_LOGDIR},g' |
75 | SUBST_SED.paths+= -e 's,%%NGINX_PIDDIR%%,${NGINX_PIDDIR},g' | | 75 | SUBST_SED.paths+= -e 's,%%NGINX_PIDDIR%%,${NGINX_PIDDIR},g' |
76 | SUBST_SED.paths+= -e 's,%%NGINX_USER%%,${NGINX_USER},g' | | 76 | SUBST_SED.paths+= -e 's,%%NGINX_USER%%,${NGINX_USER},g' |
77 | SUBST_SED.paths+= -e 's,%%NGINX_GROUP%%,${NGINX_GROUP},g' | | 77 | SUBST_SED.paths+= -e 's,%%NGINX_GROUP%%,${NGINX_GROUP},g' |