Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified)) by mollari.NetBSD.org (Postfix) with ESMTPS id D5A801A921F for ; Sat, 19 Mar 2022 00:23:57 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id DDFF384F1C; Sat, 19 Mar 2022 00:23:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 248BC84F05 for ; Sat, 19 Mar 2022 00:23:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 4i0RrKDclSlm for ; Sat, 19 Mar 2022 00:23:55 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 4DD1A84EF0 for ; Sat, 19 Mar 2022 00:23:55 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 416B1FB24; Sat, 19 Mar 2022 00:23:55 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1647649435267500" MIME-Version: 1.0 Date: Sat, 19 Mar 2022 00:23:55 +0000 From: "David H. Gutteridge" Subject: CVS commit: pkgsrc/www/nginx-devel To: pkgsrc-changes@NetBSD.org Reply-To: gutteridge@netbsd.org X-Mailer: log_accum Message-Id: <20220319002355.416B1FB24@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1647649435267500 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: gutteridge Date: Sat Mar 19 00:23:55 UTC 2022 Modified Files: pkgsrc/www/nginx-devel: Makefile Removed Files: pkgsrc/www/nginx-devel: Makefile.common Log Message: nginx-devel: merge all into Makefile now this isn't shared To generate a diff of this commit: cvs rdiff -u -r1.75 -r1.76 pkgsrc/www/nginx-devel/Makefile cvs rdiff -u -r1.1 -r0 pkgsrc/www/nginx-devel/Makefile.common Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1647649435267500 Content-Disposition: inline Content-Length: 4733 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/www/nginx-devel/Makefile diff -u pkgsrc/www/nginx-devel/Makefile:1.75 pkgsrc/www/nginx-devel/Makefile:1.76 --- pkgsrc/www/nginx-devel/Makefile:1.75 Thu Mar 17 03:03:14 2022 +++ pkgsrc/www/nginx-devel/Makefile Sat Mar 19 00:23:55 2022 @@ -1,9 +1,121 @@ -# $NetBSD: Makefile,v 1.75 2022/03/17 03:03:14 osa Exp $ +# $NetBSD: Makefile,v 1.76 2022/03/19 00:23:55 gutteridge Exp $ DISTNAME= nginx-1.21.6 +PKGREVISION= 5 +CATEGORIES= www +MASTER_SITES= http://nginx.org/download/ +DISTFILES= ${DEFAULT_DISTFILES} MAINTAINER= osa@NetBSD.org +HOMEPAGE= https://nginx.org/ +COMMENT= Lightweight HTTP server and mail proxy server +LICENSE= 2-clause-bsd -PKGREVISION= 5 -.include "../../www/nginx-devel/Makefile.common" +.include "../../mk/bsd.prefs.mk" + +NGINX_USER?= nginx +NGINX_GROUP?= nginx +NGINX_DATADIR?= ${VARBASE}/db/nginx +NGINX_LOGDIR?= ${VARBASE}/log/nginx +NGINX_PIDDIR?= ${VARBASE}/run + +BUILD_DEFS+= NGINX_DATADIR NGINX_LOGDIR NGINX_PIDDIR VARBASE + +PKG_USERS_VARS+= NGINX_USER +PKG_GROUPS_VARS+= NGINX_GROUP +PKG_GROUPS= ${NGINX_GROUP} +PKG_USERS= ${NGINX_USER}:${NGINX_GROUP} + +PKG_GECOS.${NGINX_USER}= NGINX server user +PKG_HOME.${NGINX_USER}= ${NGINX_DATADIR} +PKG_SHELL.${NGINX_USER}= ${NOLOGIN} + +USE_PKGLOCALEDIR= yes +HAS_CONFIGURE= yes +CONFIGURE_ARGS+= --user=${NGINX_USER} +CONFIGURE_ARGS+= --group=${NGINX_GROUP} +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=${NGINX_PIDDIR}/nginx.pid +CONFIGURE_ARGS+= --lock-path=${NGINX_DATADIR}/nginx.lock +CONFIGURE_ARGS+= --error-log-path=${NGINX_LOGDIR}/error.log +CONFIGURE_ARGS+= --http-log-path=${NGINX_LOGDIR}/access.log +CONFIGURE_ARGS+= --http-client-body-temp-path=${NGINX_DATADIR}/client_body_temp +CONFIGURE_ARGS+= --http-proxy-temp-path=${NGINX_DATADIR}/proxy_temp +CONFIGURE_ARGS+= --http-fastcgi-temp-path=${NGINX_DATADIR}/fstcgi_temp +CONFIGURE_ARGS+= --http-scgi-temp-path=${NGINX_DATADIR}/scgi_temp + +PKG_SYSCONFSUBDIR= nginx + +.include "options.mk" + +EGDIR= ${PREFIX}/share/examples/nginx +EGFILES+= fastcgi.conf fastcgi_params koi-utf koi-win \ + mime.types nginx.conf win-utf + +.for file in ${EGFILES} +CONF_FILES+= ${EGDIR}/conf/${file} ${PKG_SYSCONFDIR}/${file} +. if !empty(PKG_OPTIONS:Mnaxsi) +CONF_FILES+= ${EGDIR}/conf/naxsi_core.rules ${PKG_SYSCONFDIR}/naxsi_core.rules +. endif +.endfor + +RCD_SCRIPTS= nginx + +INSTALLATION_DIRS+= ${PKGMANDIR}/man8 sbin share/examples/nginx/conf \ + share/examples/nginx/html +MAKE_DIRS+= ${NGINX_PIDDIR} +OWN_DIRS= ${NGINX_LOGDIR} +OWN_DIRS_PERMS+= ${NGINX_DATADIR} ${NGINX_USER} ${NGINX_GROUP} 0700 + +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' +SUBST_SED.paths+= -e 's,%%NGINX_PIDDIR%%,${NGINX_PIDDIR},g' +SUBST_SED.paths+= -e 's,%%NGINX_USER%%,${NGINX_USER},g' +SUBST_SED.paths+= -e 's,%%NGINX_GROUP%%,${NGINX_GROUP},g' + +MESSAGE_SUBST+= NGINX_LOGDIR=${NGINX_LOGDIR} +MESSAGE_SUBST+= NGINX_PIDDIR=${NGINX_PIDDIR} +MESSAGE_SUBST+= NGINX_USER=${NGINX_USER} +MESSAGE_SUBST+= NGINX_GROUP=${NGINX_GROUP} + +.if ${OPSYS} == "Darwin" +SOEXT= bundle +.else +SOEXT= so +.endif +PLIST_SUBST+= SOEXT=${SOEXT} + +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 + ${INSTALL_MAN} ${WRKSRC}/objs/nginx.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8 +.if !empty(PKG_OPTIONS:Mnaxsi) + ${INSTALL_DATA} ${WRKDIR}/${NAXSI_DISTNAME}/naxsi_config/naxsi_core.rules ${DESTDIR}${EGDIR}/conf +.endif +.if !empty(PKG_OPTIONS:Mperl) + ${INSTALL_LIB_DIR} ${DESTDIR}${PERL5_INSTALLVENDORARCH}/auto/nginx + ${INSTALL_LIB} ${WRKSRC}/objs/src/http/modules/perl/blib/arch/auto/nginx/nginx.${SOEXT} \ + ${DESTDIR}${PERL5_INSTALLVENDORARCH}/auto/nginx + ${INSTALL_DATA} ${WRKSRC}/objs/src/http/modules/perl/blib/lib/nginx.pm \ + ${DESTDIR}${PERL5_INSTALLVENDORARCH} +.endif +.if !empty(PKG_OPTIONS:Mdso) + ${INSTALL_LIB_DIR} ${DESTDIR}${PREFIX}/libexec/nginx + (cd ${WRKSRC}/objs/ && ${FIND} . -name '*.so' -maxdepth 1 -type f \ + -exec ${INSTALL_PROGRAM} {} ${DESTDIR}${PREFIX}/libexec/nginx \;) +.endif + +.include "../../devel/zlib/buildlink3.mk" .include "../../mk/bsd.pkg.mk" --_----------=_1647649435267500--