Thu Sep 3 09:48:07 2020 UTC ()
nginx: Replace hardcoded /usr/pkg for all modules.


(jperkin)
diff -r1.18 -r1.19 pkgsrc/www/nginx/Makefile.common
diff -r1.74 -r1.75 pkgsrc/www/nginx/distinfo
diff -r1.57 -r1.58 pkgsrc/www/nginx/options.mk
diff -r1.2 -r0 pkgsrc/www/nginx/patches/patch-auto_lib_pcre_conf

cvs diff -r1.18 -r1.19 pkgsrc/www/nginx/Attic/Makefile.common (expand / switch to context diff)
--- pkgsrc/www/nginx/Attic/Makefile.common 2020/04/27 05:07:25 1.18
+++ pkgsrc/www/nginx/Attic/Makefile.common 2020/09/03 09:48:07 1.19
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.18 2020/04/27 05:07:25 rillig Exp $
+# $NetBSD: Makefile.common,v 1.19 2020/09/03 09:48:07 jperkin Exp $
 # used by www/nginx/Makefile
 # used by www/nginx-devel/Makefile
 
@@ -74,12 +74,6 @@
 OWN_DIRS_PERMS+=	${NGINX_DATADIR} ${NGINX_USER} ${NGINX_GROUP} 0700
 
 BUILD_TARGET=		build
-
-SUBST_CLASSES+=		prefix
-SUBST_STAGE.prefix=	pre-configure
-SUBST_FILES.prefix=	auto/lib/pcre/conf
-SUBST_VARS.prefix=	PREFIX
-SUBST_NOOP_OK.prefix=	yes # not needed for nginx>=17
 
 SUBST_CLASSES+=		paths
 SUBST_STAGE.paths=	pre-configure

cvs diff -r1.74 -r1.75 pkgsrc/www/nginx/distinfo (expand / switch to context diff)
--- pkgsrc/www/nginx/distinfo 2020/08/16 21:54:08 1.74
+++ pkgsrc/www/nginx/distinfo 2020/09/03 09:48:07 1.75
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.74 2020/08/16 21:54:08 wiz Exp $
+$NetBSD: distinfo,v 1.75 2020/09/03 09:48:07 jperkin Exp $
 
 SHA1 (array-var-nginx-module-0.05.tar.gz) = c69fac77814947009ab783a471783b3c95a63a26
 RMD160 (array-var-nginx-module-0.05.tar.gz) = 89bd4efc04864e3e90781588a337338951ec8733
@@ -55,5 +55,4 @@
 SHA1 (patch-aa) = 47f0c19b47b115f00ea6e9432d5bb12058c3bc1c
 SHA1 (patch-ab) = 7d126a4372aa8575ef01a4bfd9aec9898861c763
 SHA1 (patch-auto_cc_conf) = 5e6a479ba419cd16dedeb3b4c47dc685d126ef6a
-SHA1 (patch-auto_lib_pcre_conf) = 8cf03fe38e7f75ef6892cc8b93be5cb18c381e97
 SHA1 (patch-src_event_modules_ngx__eventport__module.c) = c8e919f48d68bd5bffc4ad11d9c79dc6da3a0de2

cvs diff -r1.57 -r1.58 pkgsrc/www/nginx/options.mk (expand / switch to context diff)
--- pkgsrc/www/nginx/options.mk 2020/08/16 21:54:08 1.57
+++ pkgsrc/www/nginx/options.mk 2020/09/03 09:48:07 1.58
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.57 2020/08/16 21:54:08 wiz Exp $
+# $NetBSD: options.mk,v 1.58 2020/09/03 09:48:07 jperkin Exp $
 
 PKG_OPTIONS_VAR=	PKG_OPTIONS.nginx
 PKG_SUPPORTED_OPTIONS=	array-var auth-request dav debug echo encrypted-session \
@@ -35,11 +35,21 @@
 .include "../../security/openssl/buildlink3.mk"
 CONFIGURE_ARGS+=	--with-mail_ssl_module
 CONFIGURE_ARGS+=	--with-http_ssl_module
+SUBST_CLASSES+=		fix-ssl
+SUBST_STAGE.fix-ssl=	pre-configure
+SUBST_FILES.fix-ssl=	auto/lib/openssl/conf
+SUBST_SED.fix-ssl=	-e 's,/usr/pkg,${BUILDLINK_PREFIX.openssl},g'
+SUBST_NOOP_OK.fix-ssl=	yes
 .endif
 
 .if !empty(PKG_OPTIONS:Mpcre)
 .include "../../devel/pcre/buildlink3.mk"
 CONFIGURE_ARGS+=	--with-pcre-jit
+SUBST_CLASSES+=		fix-pcre
+SUBST_STAGE.fix-pcre=	pre-configure
+SUBST_FILES.fix-pcre=	auto/lib/pcre/conf
+SUBST_SED.fix-pcre=	-e 's,/usr/pkg,${BUILDLINK_PREFIX.pcre},g'
+SUBST_NOOP_OK.fix-pcre=	yes
 .else
 CONFIGURE_ARGS+=	--without-pcre
 CONFIGURE_ARGS+=	--without-http_rewrite_module
@@ -50,6 +60,11 @@
 CONFIGURE_ARGS+=	--add-module=../${DAV_EXT_DISTNAME}
 .include "../../textproc/libxslt/buildlink3.mk"
 .include "../../textproc/libxml2/buildlink3.mk"
+SUBST_CLASSES+=		fix-xslt
+SUBST_STAGE.fix-xslt=	pre-configure
+SUBST_FILES.fix-xslt=	auto/lib/libxslt/conf
+SUBST_SED.fix-xslt=	-e 's,/usr/pkg,${BUILDLINK_PREFIX.libxslt},g'
+SUBST_NOOP_OK.fix-xslt=	yes
 .endif
 .if !empty(PKG_OPTIONS:Mdav) || make(makesum) || make(mdi)
 DAV_EXT_VERSION=		3.0.0
@@ -66,6 +81,11 @@
 .if !empty(PKG_OPTIONS:Mgeoip)
 .include "../../net/GeoIP/buildlink3.mk"
 CONFIGURE_ARGS+=	--with-http_geoip_module
+SUBST_CLASSES+=		fix-geo
+SUBST_STAGE.fix-geo=	pre-configure
+SUBST_FILES.fix-geo=	auto/lib/geoip/conf
+SUBST_SED.fix-geo=	-e 's,/usr/pkg,${BUILDLINK_PREFIX.GeoIP},g'
+SUBST_NOOP_OK.fix-geo=	yes
 .endif
 
 .if !empty(PKG_OPTIONS:Mhttp2)
@@ -210,6 +230,11 @@
 .if !empty(PKG_OPTIONS:Mimage-filter)
 .include "../../graphics/gd/buildlink3.mk"
 CONFIGURE_ARGS+=	--with-http_image_filter_module
+SUBST_CLASSES+=		fix-gd
+SUBST_STAGE.fix-gd=	pre-configure
+SUBST_FILES.fix-gd=	auto/lib/libgd/conf
+SUBST_SED.fix-gd=	-e 's,/usr/pkg,${BUILDLINK_PREFIX.gd},g'
+SUBST_NOOP_OK.fix-gd=	yes
 .endif
 
 .if !empty(PKG_OPTIONS:Mslice)

File Deleted: pkgsrc/www/nginx/patches/Attic/patch-auto_lib_pcre_conf