| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile.common,v 1.6 2015/09/30 13:36:00 imil Exp $ | | 1 | # $NetBSD: Makefile.common,v 1.7 2015/10/12 14:53:17 jperkin Exp $ |
2 | # used by www/nginx/Makefile | | 2 | # used by www/nginx/Makefile |
3 | # used by www/nginx-devel/Makefile | | 3 | # used by www/nginx-devel/Makefile |
4 | | | 4 | |
5 | # Used by both www/nginx and www/nginx-devel | | 5 | # Used by both www/nginx and www/nginx-devel |
6 | # Do *not* add any version-specific data here, any change | | 6 | # Do *not* add any version-specific data here, any change |
7 | # in this file will affect both packages | | 7 | # in this file will affect both packages |
8 | | | 8 | |
9 | CATEGORIES= www | | 9 | CATEGORIES= www |
10 | MASTER_SITES= http://nginx.org/download/ | | 10 | MASTER_SITES= http://nginx.org/download/ |
11 | DISTFILES= ${DEFAULT_DISTFILES} | | 11 | DISTFILES= ${DEFAULT_DISTFILES} |
12 | | | 12 | |
13 | HOMEPAGE= http://nginx.org/ | | 13 | HOMEPAGE= http://nginx.org/ |
14 | COMMENT= Lightweight HTTP server and mail proxy server | | 14 | COMMENT= Lightweight HTTP server and mail proxy server |
| @@ -79,36 +79,43 @@ SUBST_CLASSES+= paths | | | @@ -79,36 +79,43 @@ SUBST_CLASSES+= paths |
79 | SUBST_STAGE.paths= pre-configure | | 79 | SUBST_STAGE.paths= pre-configure |
80 | SUBST_FILES.paths= conf/nginx.conf | | 80 | SUBST_FILES.paths= conf/nginx.conf |
81 | SUBST_SED.paths= -e 's,%%PKG_SYSCONFDIR%%,${PKG_SYSCONFDIR},g' | | 81 | SUBST_SED.paths= -e 's,%%PKG_SYSCONFDIR%%,${PKG_SYSCONFDIR},g' |
82 | SUBST_SED.paths+= -e 's,%%NGINX_LOGDIR%%,${NGINX_LOGDIR},g' | | 82 | SUBST_SED.paths+= -e 's,%%NGINX_LOGDIR%%,${NGINX_LOGDIR},g' |
83 | SUBST_SED.paths+= -e 's,%%NGINX_PIDDIR%%,${NGINX_PIDDIR},g' | | 83 | SUBST_SED.paths+= -e 's,%%NGINX_PIDDIR%%,${NGINX_PIDDIR},g' |
84 | SUBST_SED.paths+= -e 's,%%NGINX_USER%%,${NGINX_USER},g' | | 84 | SUBST_SED.paths+= -e 's,%%NGINX_USER%%,${NGINX_USER},g' |
85 | SUBST_SED.paths+= -e 's,%%NGINX_GROUP%%,${NGINX_GROUP},g' | | 85 | SUBST_SED.paths+= -e 's,%%NGINX_GROUP%%,${NGINX_GROUP},g' |
86 | | | 86 | |
87 | MESSAGE_SUBST+= NGINX_LOGDIR=${NGINX_LOGDIR} | | 87 | MESSAGE_SUBST+= NGINX_LOGDIR=${NGINX_LOGDIR} |
88 | MESSAGE_SUBST+= NGINX_PIDDIR=${NGINX_PIDDIR} | | 88 | MESSAGE_SUBST+= NGINX_PIDDIR=${NGINX_PIDDIR} |
89 | MESSAGE_SUBST+= NGINX_USER=${NGINX_USER} | | 89 | MESSAGE_SUBST+= NGINX_USER=${NGINX_USER} |
90 | MESSAGE_SUBST+= NGINX_GROUP=${NGINX_GROUP} | | 90 | MESSAGE_SUBST+= NGINX_GROUP=${NGINX_GROUP} |
91 | | | 91 | |
| | | 92 | .if ${OPSYS} == "Darwin" |
| | | 93 | SOEXT= bundle |
| | | 94 | .else |
| | | 95 | SOEXT= so |
| | | 96 | .endif |
| | | 97 | PLIST_SUBST+= SOEXT=${SOEXT} |
| | | 98 | |
92 | do-install: | | 99 | do-install: |
93 | ${INSTALL_PROGRAM} ${WRKSRC}/objs/nginx ${DESTDIR}${PREFIX}/sbin/nginx | | 100 | ${INSTALL_PROGRAM} ${WRKSRC}/objs/nginx ${DESTDIR}${PREFIX}/sbin/nginx |
94 | .for file in ${EGFILES} | | 101 | .for file in ${EGFILES} |
95 | ${INSTALL_DATA} ${WRKSRC}/conf/${file} ${DESTDIR}${EGDIR}/conf/${file} | | 102 | ${INSTALL_DATA} ${WRKSRC}/conf/${file} ${DESTDIR}${EGDIR}/conf/${file} |
96 | .endfor | | 103 | .endfor |
97 | ${INSTALL_DATA} ${WRKSRC}/html/50x.html ${DESTDIR}${EGDIR}/html/50x.html | | 104 | ${INSTALL_DATA} ${WRKSRC}/html/50x.html ${DESTDIR}${EGDIR}/html/50x.html |
98 | ${INSTALL_DATA} ${WRKSRC}/html/index.html ${DESTDIR}${EGDIR}/html/index.html | | 105 | ${INSTALL_DATA} ${WRKSRC}/html/index.html ${DESTDIR}${EGDIR}/html/index.html |
99 | ${INSTALL_MAN} ${WRKSRC}/man/nginx.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8 | | 106 | ${INSTALL_MAN} ${WRKSRC}/man/nginx.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8 |
100 | .if !empty(PKG_OPTIONS:Mnaxsi) | | 107 | .if !empty(PKG_OPTIONS:Mnaxsi) |
101 | ${INSTALL_DATA} ${WRKDIR}/${NAXSI_DISTNAME}/naxsi_config/naxsi_core.rules ${DESTDIR}${EGDIR}/conf | | 108 | ${INSTALL_DATA} ${WRKDIR}/${NAXSI_DISTNAME}/naxsi_config/naxsi_core.rules ${DESTDIR}${EGDIR}/conf |
102 | .endif | | 109 | .endif |
103 | .if !empty(PKG_OPTIONS:Mperl) | | 110 | .if !empty(PKG_OPTIONS:Mperl) |
104 | ${INSTALL_LIB_DIR} ${DESTDIR}${PERL5_INSTALLVENDORARCH}/auto/nginx | | 111 | ${INSTALL_LIB_DIR} ${DESTDIR}${PERL5_INSTALLVENDORARCH}/auto/nginx |
105 | ${INSTALL_LIB} ${WRKSRC}/objs/src/http/modules/perl/blib/arch/auto/nginx/nginx.so \ | | 112 | ${INSTALL_LIB} ${WRKSRC}/objs/src/http/modules/perl/blib/arch/auto/nginx/nginx.${SOEXT} \ |
106 | ${DESTDIR}${PERL5_INSTALLVENDORARCH}/auto/nginx | | 113 | ${DESTDIR}${PERL5_INSTALLVENDORARCH}/auto/nginx |
107 | ${INSTALL_DATA} ${WRKSRC}/objs/src/http/modules/perl/blib/lib/nginx.pm \ | | 114 | ${INSTALL_DATA} ${WRKSRC}/objs/src/http/modules/perl/blib/lib/nginx.pm \ |
108 | ${DESTDIR}${PERL5_INSTALLVENDORARCH} | | 115 | ${DESTDIR}${PERL5_INSTALLVENDORARCH} |
109 | .endif | | 116 | .endif |
110 | | | 117 | |
111 | | | 118 | |
112 | .include "../../devel/zlib/buildlink3.mk" | | 119 | .include "../../devel/zlib/buildlink3.mk" |
113 | .include "../../mk/bsd.pkg.mk" | | 120 | .include "../../mk/bsd.pkg.mk" |
114 | .include "../../www/nginx/Makefile.cflags" | | 121 | .include "../../www/nginx/Makefile.cflags" |