Commit graph

11 commits

Author SHA1 Message Date
rillig
3866b420a6 mk/fetch/github.mk: document that PKGBASE influences GitHub variables
See https://mail-index.netbsd.org/pkgsrc-users/2018/07/thread1.html#027251
2018-08-01 18:01:32 +00:00
rillig
81c4fbd48d mk/fetch: add documentation for show-all-github 2018-04-08 20:39:47 +00:00
tnn
351c726fe7 Don't encode the github tag into the distfile name if we are packaging
a github release and the release version happens to look like a tag.
(a date like 20150714 could be misinterpreted as a git "short SHA")
2015-10-19 14:24:26 +00:00
tnn
68a7fc3fdc '-' is a valid character in github account names 2015-03-12 21:00:01 +00:00
tnn
976b7a048b Use SITES.${_GITHUB_DEFAULT_DISTFILES} instead of ugly := assignment
to MASTER_SITES which could conceivably break some use cases.
Also add comment in bsd.fetch-vars.mk.
2015-03-09 15:50:18 +00:00
tnn
5239c0ecd1 MASTER_SITE_GITHUB goes in sites.mk 2015-03-09 13:10:45 +00:00
tnn
c9632aa0f3 Address issues raised by agc@ to make the github master site handling
more pkgsrcesque.

1) turn _USE_GITHUB into an internal infrastructure variable
2) put back MASTER_SITES in packages' Makefiles.
3) encode the account in the master site URL, remove GH_ACCOUNT
4) rename GH_PROJECT to GITHUB_PROJECT
5) rename GH_TAGNAME to GITHUB_TAG and allow it to accept commit hash
   as well as tag. GH_COMMIT is gone.
6) turn on this functionality when MASTER_SITES matches a predefined github
   pattern instead of via explicit USE_GITHUB setting.
2015-03-07 21:14:32 +00:00
tnn
a687a51ddc use https. Unconditionally gets redirected to https, so saves a redirect. 2015-03-07 16:54:28 +00:00
tnn
c6ef0cef20 improve inline documentation 2015-03-07 16:17:42 +00:00
tnn
7daa17b76d add keyword for make help 2015-03-07 15:31:52 +00:00
tnn
a5c5eb95d9 Adopt USE_GITHUB from FreeBSD ports to make github MASTER_SITE
handling less painful.
See: https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/makefile-distfiles.html#makefile-master_sites-github

To use, set in Makefile:

DISTNAME=	exampleproject-1.2
USE_GITHUB=	YES

The following variables alter USE_GITHUB behavior:

GH_ACCOUNT	defaults to PKGBASE
GH_PROJECT	defaults to PKGBASE
GH_TAGNAME	defaults to PKGVERSION_NOREV
		(sometimes you want to override with v${PKGVERSION_NOREV})
GH_COMMIT	explicit commit hash if no tag is available
GH_RELEASE	default empty, may be set to ${DISTNAME} for example
GH_TYPE		overrides the autodetected MASTER_SITE URL scheme
2015-03-07 14:17:51 +00:00