pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/mk



Module Name:    pkgsrc
Committed By:   wiz
Date:           Tue Apr 30 20:59:25 UTC 2024

Modified Files:
        pkgsrc/mk: bsd.pkg.mk

Log Message:
mk: by default, set non-existent proxies for http/https/ftp

This is a simple first step for disabling network access during
the configure/build/test stages. In pkgsrc, all files should be
fetched in the fetch stage.


To generate a diff of this commit:
cvs rdiff -u -r1.2053 -r1.2054 pkgsrc/mk/bsd.pkg.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/mk/bsd.pkg.mk
diff -u pkgsrc/mk/bsd.pkg.mk:1.2053 pkgsrc/mk/bsd.pkg.mk:1.2054
--- pkgsrc/mk/bsd.pkg.mk:1.2053 Sun Aug 20 18:38:37 2023
+++ pkgsrc/mk/bsd.pkg.mk        Tue Apr 30 20:59:25 2024
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.pkg.mk,v 1.2053 2023/08/20 18:38:37 tnn Exp $
+#      $NetBSD: bsd.pkg.mk,v 1.2054 2024/04/30 20:59:25 wiz Exp $
 #
 # This file is in the public domain.
 #
@@ -183,6 +183,13 @@ ALL_ENV+=  PATH=${PATH:Q}:${TOOLBASE}/bin
 ALL_ENV+=      PREFIX=${PREFIX}
 ALL_ENV+=      MAKELEVEL=0
 ALL_ENV+=      CONFIG_SITE=${PKGSRC_CONFIG_SITE:U}
+.if !defined(ALLOW_NETWORK_ACCESS)
+# try stopping downloads during configure/build/...
+ALL_ENV+=      ftp_proxy=downloads-forbidden-except-during-fetch
+ALL_ENV+=      http_proxy=downloads-forbidden-except-during-fetch
+ALL_ENV+=      https_proxy=downloads-forbidden-except-during-fetch
+ALL_ENV+=      no_proxy=
+.endif
 
 # This variable can be added to MAKE_ENV to ease installation of packages
 # that use BSD-style Makefiles.



Home | Main Index | Thread Index | Old Index