freebsd-ports/ports-mgmt
Kubilay Kocak 80991aee78 ports-mgmt/portscout: Make GitHub ports work, fix bugs
A number of people reported no updates being detected for ports using
USE_GITHUB=yes, even after originally adding the GitHub site handler in
r401037 [1]. Investigation revealed that the FindNewestFile subroutine
and the vercompare() method assumed (or are designed so) that responses
returned from site handlers will be in a normalised version format. For
site handlers that return 'versions', this works well. For the github
handler, in the fallback use of the API for fetching repository tags, it
does not.

Additionally it turns out, portscout currently only uses/stores a
normalized version ('ver') in its database, in its general design
attempt to be a generic version comparison tool

In particular, portscout does not reference or store PORTVERSION
or DISTVERSION{FULL}, so we have nothing 'canonical' to compare
the responses from Github (tags) against.

This change special-cases Github in the FindNewestFile subroutine, which
was obtained via Portroach [2] (OpenBSD's portscout fork).

Extending this, we also now only match version-esque looking strings
from the tag, in an attempt to normalise, because they come in many
forms, including {foo-}X.Y.Z{-bar}, foo_X_Y_Z, among others.

While I'm here,

* Fix copypasta of $github_client_id, when $github_client_secret was
  intended
* Add code to use authenticated requests for Github project tags in the
  fallback (to /releases) case.
* Add and update some more debug messages to help diagnosis of future
  issues

Special thank you's to:

 * matthew, allanjude, mandree, des, Brendan Molloy for your regex, perl
   help and moral support.

[1] http://svnweb.freebsd.org/changeset/ports/401037
[2] https://github.com/jasperla/portroach

Differential Revision:	D4780
2016-01-04 16:50:01 +00:00
..
chucky
dialog4ports Drop 8 support. 2015-10-15 14:55:14 +00:00
dialog4ports-static
distilator
fastest_sites
fbsdmon
freebsd-bugzilla-cli - Add PORTSDIR to RUN_DEPENDS: the PORTSDIR removal is planned after 2016Q1 branch created 2015-11-11 14:28:52 +00:00
genpatch Remove trailing whitespace from Makefiles, M-X. 2015-10-08 15:12:22 +00:00
genplist - Update maintainer mail address 2015-12-11 08:48:56 +00:00
hs-porte - Update The Glorious Glasgow Haskell Compiler to version 7.10.2 2015-08-20 23:02:14 +00:00
jailaudit
kpackagekit
lsknobs
managepkg Remove trailing whitespace from Makefiles, M-X. 2015-10-08 15:12:22 +00:00
mkreadmes Reset maintainer 2015-08-19 07:10:28 +00:00
octopkg - Update to 0.2.0 2015-08-10 17:39:39 +00:00
p5-FreeBSD-Portindex Update to 3.6 2015-10-18 13:21:17 +00:00
p5-FreeBSD-Ports
p5-FreeBSD-Ports-INDEXhash
packagekit Mark ignore, does not build with updated polkit. 2015-08-10 15:47:18 +00:00
packagekit-qt4
pchecker - Update to 1.18 2015-12-24 11:36:20 +00:00
pkg Update to 1.6.2 2015-11-23 21:56:14 +00:00
pkg-devel Remove cruft 2015-12-27 22:25:03 +00:00
pkg-plist - New maintainer: Torsten Zühlsdorff <ports@toco-domains.de> 2015-11-08 08:34:47 +00:00
pkg-rmleaf
pkg_cleanup - Mute extraction commands and do not use shell wildcards if possible 2015-09-05 11:19:17 +00:00
pkg_cutleaves Fix usage of ${PERL5}. 2015-12-17 17:19:48 +00:00
pkg_jail - update to 1.88 2015-10-25 19:06:52 +00:00
pkg_replace
pkg_rmleaves
pkg_search
pkg_tree Fix usage of ${PERL5}. 2015-12-17 17:19:48 +00:00
pkgcompare
pkgs_which
port-authoring-tools
port-maintenance-tools
portconf
portdowngrade
portell
portfind
portless
portlint Update to 2.16.8. 2015-12-19 21:16:07 +00:00
portmaster Remove obsolete pkg-message 2015-10-10 16:40:34 +00:00
portrac Mark as broken on sparc64: fails to build. 2015-09-25 21:30:34 +00:00
portscout ports-mgmt/portscout: Make GitHub ports work, fix bugs 2016-01-04 16:50:01 +00:00
portsearch
portshaker - replace whitespaces with tab 2015-12-30 15:42:37 +00:00
portshaker-config Bump portrevision 2015-09-25 11:29:43 +00:00
portsreinstall
porttools Update to 1.06 2015-11-05 20:34:14 +00:00
porttree Typos, whitespace and capitalization fixes (G-P). 2015-09-20 20:54:08 +00:00
portupdate-scan
portupgrade
portupgrade-devel
poudriere Revert usage of -x for rm(1) for now due to 9.x not having it. 2015-11-30 17:26:50 +00:00
poudriere-devel Fix default svn url for ports 2015-12-31 12:50:32 +00:00
psearch
py-pytoport - Update to 0.4.0 2016-01-03 13:50:13 +00:00
py-skog [NEW] ports-mgmt/py-skog: Generate visual dependency trees for FreeBSD ports 2016-01-03 05:47:42 +00:00
symports
tinderbox - Fix shebangs 2015-08-31 18:15:23 +00:00
tinderbox-devel - Fix shebangs 2015-09-15 16:20:58 +00:00
wanted-ports
xps
Makefile [NEW] ports-mgmt/py-skog: Generate visual dependency trees for FreeBSD ports 2016-01-03 05:47:42 +00:00