tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: github download recipe
On Wed, Sep 19, 2012 at 12:55 AM, OBATA Akio <obache%netbsd.org@localhost>
wrote:
> On Wed, 19 Sep 2012 12:01:08 +0900, matthew sporleder
> <msporleder%gmail.com@localhost>
> wrote:
>
>> the following seems to work for using github:
>>
>> DISTNAME= fail2ban-fail2ban-sdist-0.8.5-0-g6c07999
>> #filename github would eventually give you without .tar.gz
>>
>> MASTER_SITES=
>> https://nodeload.github.com/fail2ban/fail2ban/tarball/sdist/0.8.5?
>> #use ? to stop the url -- in this case the tag name is 'sdist/0.8.5'
>> so don't let the extra / confuse you
>>
>
> For such case, you can put "-" prefix on the URL.
> i.e.
> MASTER_SITES=-https://nodeload.github.com/fail2ban/fail2ban/tarball/sdist/0.8.5
>
>
>> FETCH_USING= curl
>> FETCH_OUTPUT_ARGS= ${DISTNAME}
>
>
> For this case, you can use http instead of https, then curl will not be
> required.
> (and FETCH_OUTPUT_ARGS should not be set here)
PKGNAME= ${PYPKGPREFIX}-fail2ban
DISTNAME= fail2ban-fail2ban-sdist-0.8.5-0-g6c07999
MASTER_SITES=
-http://nodeload.github.com/fail2ban/fail2ban/tarball/sdist/0.8.5
#note -http
WRKSRC= ${WRKDIR}/fail2ban-fail2ban-4f733aa
#had to set wrksrc because the tar name does not seem to match the distname
from mk/fetch/fetch -- is this documented anywhere in pkgsrc.txt?
Any ideas how we could get this into fetch.mk so pkgsrc could do some
of this stuff for us?
while ${TEST} $# -gt 0; do
site="$1"; shift
case "$site" in
-*)
url=${site#-}
;;
*)
url=$site$file
;;
esac
Home |
Main Index |
Thread Index |
Old Index