Index: en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml =================================================================== --- en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml +++ en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml @@ -1721,7 +1721,7 @@ GH - /${GH_ACCOUNT}/${GH_PROJECT}/legacy.tar.gz/${GH_TAGNAME}?dummy=/ + /${GH_ACCOUNT}/${GH_PROJECT}/tar.gz/${GH_TAGNAME}?dummy=/ @@ -1806,7 +1806,6 @@ Variable Description Default - Mandatory @@ -1815,8 +1814,7 @@ GH_ACCOUNT Account name of the GitHub user hosting the project - none - Mandatory + ${PORTNAME} @@ -1830,21 +1828,10 @@ GH_TAGNAME Name of the tag to download (2.0.1, hash, ...) Using the name of a branch here is incorrect. It is - possible to do - GH_TAGNAME=${GH_COMMIT} to do a + also possible to use the hash of a commit id to do a snapshot ${DISTVERSION} - - - GH_COMMIT - first 7 digits of the commit that generated - GH_TAGNAME (see - git-describe(1)) - none - Mandatory - @@ -1863,13 +1850,12 @@ PORTVERSION= 1.2.7 USE_GITHUB= yes -GH_ACCOUNT= freebsd -GH_COMMIT= f53e577 +GH_ACCOUNT= freebsd It will automatically have MASTER_SITES set to GH GHC and WRKSRC to - ${WRKDIR}/freebsd-pkg-f53e577. + ${WRKDIR}/pkg-1.2.7. @@ -1889,13 +1875,12 @@ USE_GITHUB= yes GH_ACCOUNT= freebsd GH_PROJECT= pkg -GH_TAGNAME= ${GH_COMMIT} -GH_COMMIT= 6dbb17b +GH_TAGNAME= 6dbb17b It will automatically have MASTER_SITES set to GH GHC and WRKSRC to - ${WRKDIR}/freebsd-pkg-6dbb17b. + ${WRKDIR}/pkg-6dbb17b.