Bug 202340 - [PATCH] ports-mgmt/fastest_sites: use PORTSDIR to find where is the ports tree.
Summary: [PATCH] ports-mgmt/fastest_sites: use PORTSDIR to find where is the ports tree.
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Wesley Shields
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2015-08-15 02:28 UTC by Vinícius Zavam
Modified: 2017-05-02 08:57 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (wxs)


Attachments
[PATCH] ports-mgmt/fastest_sites: use PORTSDIR to find where is the ports tree. (589 bytes, patch)
2015-08-15 02:28 UTC, Vinícius Zavam
no flags Details | Diff
[PATCH] ports-mgmt/fastest_sites: use PORTSDIR to find where is the ports tree. (updated) (661 bytes, patch)
2015-08-22 02:43 UTC, Vinícius Zavam
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vinícius Zavam freebsd_committer freebsd_triage 2015-08-15 02:28:28 UTC
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)
 ...
Comment 1 Vinícius Zavam freebsd_committer freebsd_triage 2015-08-22 02:43:23 UTC
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.