Hi,

The following diff should make portroach to only check the cdn of
tryton.org and not the main site.

It seems the query is a bit intensive... we have 190 ports which are
been checking the same server, and portroach.openbsd.org is the main
consumer of bandwith for the server at downloads.tryton.org side.

Only querying downloads-cdn.tryton.org should be enough for portroach
(the tryton cdn is updated once a day).

$ cd /usr/ports/productivity/tryton/5.2/trytond && make show=PORTROACH
 limit:^5\.2 site:https://downloads-cdn.tryton.org/5.2/

Comments or ok ?
-- 
Sebastien Marie


diff c711fa76b04f8cd8c637656a18e6deb5de980e63 /home/semarie/repos/openbsd/ports
blob - 28e5353c2de0d42ae0ee4f09507f5785e054de67
file + productivity/tryton/5.0/Makefile.inc
--- productivity/tryton/5.0/Makefile.inc
+++ productivity/tryton/5.0/Makefile.inc
@@ -2,6 +2,6 @@
 
 TRYTON_VERSION =       5.0
 TRYTON_VERSION_COMPAT =        >=5.0,<5.1
-PORTROACH =            limit:^5\.0
+PORTROACH +=           limit:^5\.0
 
 .include "../Makefile.inc"
blob - 063ea631937bb37c87128d57d8280b0ba4fbd072
file + productivity/tryton/5.2/Makefile.inc
--- productivity/tryton/5.2/Makefile.inc
+++ productivity/tryton/5.2/Makefile.inc
@@ -2,6 +2,6 @@
 
 TRYTON_VERSION =       5.2
 TRYTON_VERSION_COMPAT =        >=5.2,<5.3
-PORTROACH =            limit:^5\.2
+PORTROACH +=           limit:^5\.2
 
 .include "../Makefile.inc"
blob - 8d6a5bc6b83281ead571be20ddc9f436782a6603
file + productivity/tryton/Makefile.inc
--- productivity/tryton/Makefile.inc
+++ productivity/tryton/Makefile.inc
@@ -14,6 +14,8 @@ MASTER_SITES =                
https://downloads-cdn.tryton.org/${VER
                        
https://downloads.tryton.org/${VERSION:C/^([0-9]+\.[0-9]+).*/\1/}/
 DIST_SUBDIR =          tryton
 
+PORTROACH +=           
site:https://downloads-cdn.tryton.org/${VERSION:C/^([0-9]+\.[0-9]+).*/\1/}/
+
 VERSION ?=             ${MODPY_EGG_VERSION}
 
 .if defined(TRYTON_MODULE)

Reply via email to