Created attachment 159891 [details] [PATCH] ports-mgmt/fastest_sites: use PORTSDIR to find where is the ports tree. Allow users to use it with a "non-default" PORTSDIR value. First test went well with a patched version of 'fastest_sites' running under FreeBSD 11.0-CURRENT r284645 (amd64). # pkg info -d fastest_sites fastest_sites-20110317: python27-2.7.10 BEFORE: # fastest_sites > fsites.conf make: cannot open /usr/ports/Makefile. Traceback (most recent call last): File "/usr/local/bin/fastest_sites", line 145, in <module> fd = open(sites_mk, "r") IOError: [Errno 2] No such file or directory: '\nmake: stopped in /root/Mk/bsd.sites.mk' # grep PORTSDIR /etc/make.conf PORTSDIR=/panzer/ports # make -V PORTSDIR /panzer/ports AFTER: # fastest_sites > fsites.conf => Checking servers for MASTER_SITE_GENTOO (59 servers) => Checking servers for MASTER_SITE_TCLTK (8 servers) => Checking servers for MASTER_SITE_APACHE (26 servers) => Checking servers for MASTER_SITE_EASYSW (4 servers) => Checking servers for MASTER_SITE_PACKETSTORM (15 servers) ...
Created attachment 160200 [details] [PATCH] ports-mgmt/fastest_sites: use PORTSDIR to find where is the ports tree. (updated) This patch updates the last one, and considers bug #191106.