Import of pkgsrc-2015Q1

This commit is contained in:
2015-04-22 14:34:26 +02:00
committed by Lionel Sambuc
parent 9a8c06dafb
commit 4af1cdf7a9
25114 changed files with 870550 additions and 795435 deletions

View File

@@ -1,4 +1,4 @@
# $NetBSD: bsd.fetch-vars.mk,v 1.16 2014/03/02 08:54:41 obache Exp $
# $NetBSD: bsd.fetch-vars.mk,v 1.19 2015/03/09 15:50:18 tnn Exp $
#
# This Makefile fragment is included separately by bsd.pkg.mk and
# defines some variables which must be defined earlier than where
@@ -37,7 +37,14 @@ _SYS_VARS.fetch= DEFAULT_DISTFILES
_DISTDIR= ${DISTDIR}/${DIST_SUBDIR}
.if defined(DISTNAME) && !empty(DISTNAME)
. if defined(GITHUB_TAG) && !empty(GITHUB_TAG:M[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9]*)
# If the github tag is a git hash (7 or more hex digits), encode it in the
# distfile name. It would be better to use ${_GITHUB_DEFAULT_DISTFILES} here,
# but that gets assigned much later.
DEFAULT_DISTFILES= ${DISTNAME}-${GITHUB_TAG}${EXTRACT_SUFX}
. else
DEFAULT_DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
. endif
.endif
DISTFILES?= ${DEFAULT_DISTFILES}

View File

@@ -1,4 +1,4 @@
# $NetBSD: bsd.fetch.mk,v 1.7 2009/07/15 09:40:30 joerg Exp $
# $NetBSD: bsd.fetch.mk,v 1.8 2015/03/07 14:17:52 tnn Exp $
#
# This Makefile fragment is included by bsd.pkg.mk and defines the
# relevant variables and targets for the "fetch" step.
@@ -38,3 +38,5 @@
.include "fetch.mk"
.include "fetch-list.mk"
.include "distclean.mk"
.include "github.mk"

View File

@@ -1,4 +1,4 @@
# $NetBSD: fetch.mk,v 1.63 2014/02/14 07:43:46 obache Exp $
# $NetBSD: fetch.mk,v 1.64 2014/10/07 07:27:18 tron Exp $
_MASTER_SITE_BACKUP= ${MASTER_SITE_BACKUP:=${DIST_SUBDIR}${DIST_SUBDIR:D/}}
_MASTER_SITE_OVERRIDE= ${MASTER_SITE_OVERRIDE:=${DIST_SUBDIR}${DIST_SUBDIR:D/}}
@@ -222,7 +222,7 @@ _FETCH_OUTPUT_ARGS.wget= -O
_FETCH_CMD.wget= ${TOOLS_PATH.wget}
_FETCH_BEFORE_ARGS.curl= ${PASSIVE_FETCH:D--ftp-pasv} \
--fail --insecure --location \
--fail --insecure --location --remote-time \
${FETCH_TIMEOUT:D--connect-timeout ${FETCH_TIMEOUT}} \
${FETCH_TIMEOUT:D--speed-time ${FETCH_TIMEOUT}} \
${FETCH_USE_IPV4_ONLY:D--ipv4}

73
mk/fetch/github.mk Normal file
View File

@@ -0,0 +1,73 @@
# $NetBSD: github.mk,v 1.8 2015/03/12 21:00:01 tnn Exp $
#
# github.com master site handling
#
# To use, set in Makefile:
#
# DISTNAME= exampleproject-1.2
# MASTER_SITES= ${MASTER_SITE_GITHUB:=accountname/}
#
# The following variables alter github.mk behavior:
#
# GITHUB_PROJECT defaults to PKGBASE
# GITHUB_TAG defaults to PKGVERSION_NOREV
# sometimes you want to override with v${PKGVERSION_NOREV}
# SHA-1 commit ids are also acceptable
# GITHUB_RELEASE defaults to not defined, set this to ${DISTNAME}
# when packaging a release not based on a git tag.
# GITHUB_TYPE overrides the autodetected MASTER_SITE URL scheme:
#
# "tag"
# This is the default when GITHUB_RELEASE is not defined. Example URL:
# http://github.com/acct/${GITHUB_PROJECT}/archive/{GITHUB_TAG}.tar.gz
#
# "release"
# This is the default when GITHUB_RELEASE is set. Example URL:
# http://github.com/acct/${GITHUB_PROJECT}/releases/download/${GITHUB_RELEASE}/${DISTNAME}.tar.gz
#
# Keywords: github
.if defined(MASTER_SITES) && !empty(MASTER_SITES:C,^https\://github.com/[-a-zA-Z0-9]*/$,match,:Mmatch)
_USE_GITHUB= YES
.endif
.if (defined(GITHUB_TAG) || defined(GITHUB_RELEASE)) && !defined(_USE_GITHUB)
PKG_FAIL_REASON+= "MASTER_SITES must match https://github.com/account/" \
"when GITHUB_TAG or GITHUB_RELEASE is in use." \
"For more information: make help topic=github"
.endif
.if defined(_USE_GITHUB) && !empty(_USE_GITHUB:M[yY][eE][sS])
GITHUB_PROJECT?= ${PKGBASE}
GITHUB_TAG?= ${PKGVERSION_NOREV}
. if !empty(GITHUB_TAG:Mmaster)
PKG_FAIL_REASON+= "master is not a valid tag name, use an explicit commit hash"
. endif
. if !defined(GITHUB_TYPE)
. if defined(GITHUB_RELEASE) && !empty(GITHUB_RELEASE)
GITHUB_TYPE= release
. else
GITHUB_TYPE= tag
. endif
. endif
. if defined(GITHUB_TAG) && !empty(GITHUB_TAG:M[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9]*)
# If the github tag is a git hash (7 or more hex digits), encode it in the
# distfile name.
_GITHUB_DEFAULT_DISTFILES= ${DISTNAME}-${GITHUB_TAG}${EXTRACT_SUFX}
. else
_GITHUB_DEFAULT_DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
. endif
. if !empty(GITHUB_TYPE:Mrelease)
SITES.${_GITHUB_DEFAULT_DISTFILES}= ${MASTER_SITES:=${GITHUB_PROJECT}/releases/download/${GITHUB_RELEASE}/}
. endif
. if !empty(GITHUB_TYPE:Mtag)
SITES.${_GITHUB_DEFAULT_DISTFILES}= -${MASTER_SITES:=${GITHUB_PROJECT}/archive/${GITHUB_TAG}${EXTRACT_SUFX}}
. endif
.endif

View File

@@ -1,8 +1,10 @@
# $NetBSD: sites.mk,v 1.99 2014/01/25 09:29:42 obache Exp $
# $NetBSD: sites.mk,v 1.126 2015/03/26 07:54:51 dsainty Exp $
#
# This Makefile fragment defines read-only MASTER_SITE_* variables
# representing some well-known master distribution sites for software.
#
# When variables are added or removed, the pkgsrc guide (build.xml)
# should also be updated.
MASTER_SITE_XCONTRIB+= \
ftp://ftp.gwdg.de/pub/x11/x.org/contrib/ \
@@ -17,10 +19,12 @@ MASTER_SITE_GNU+= \
ftp://ftp.kddlabs.co.jp/pub/gnu/gnu/ \
ftp://ftp.dti.ad.jp/pub/GNU/ \
ftp://mirrors.kernel.org/gnu/ \
ftp://ftp.sunet.se/pub/gnu/ \
ftp://ftp.lip6.fr/pub/gnu/ \
http://gd.tuwien.ac.at/gnu/gnusrc/
MASTER_SITE_GITHUB+= \
https://github.com/
MASTER_SITE_GNUSTEP+= \
ftp://ftp.gnustep.org/pub/gnustep/
@@ -64,7 +68,6 @@ MASTER_SITE_SUNSITE+= \
MASTER_SITE_GNOME+= \
http://ftp.gnome.org/pub/GNOME/ \
ftp://ftp.gnome.org/pub/GNOME/ \
ftp://ftp.sunet.se/pub/X11/GNOME/ \
http://ftp.tuwien.ac.at/hci/gnome.org/ \
ftp://ftp.cse.buffalo.edu/pub/Gnome/ \
ftp://ftp.dti.ad.jp/pub/X/gnome/ \
@@ -77,7 +80,7 @@ MASTER_SITE_KDE+= \
http://www.dnsbalance.ring.gr.jp/archives/X/kde/stable/ \
ftp://ftp.kddlabs.co.jp/pub/X/kde/stable/ \
http://mirrors.isc.org/pub/kde/stable/ \
ftp://ftp.gtlib.cc.gatech.edu/pub/kde/stable/ \
ftp://ftp.gtlib.gatech.edu/pub/kde/stable/ \
ftp://kde.mirrors.tds.net/pub/kde/stable/ \
http://gd.tuwien.ac.at/kde/stable/ \
ftp://ftp.solnet.ch/mirror/KDE/stable/ \
@@ -89,17 +92,15 @@ MASTER_SITE_SOURCEFORGE+= \
http://downloads.sourceforge.net/sourceforge/
MASTER_SITE_SOURCEFORGE_JP+= \
http://osdn.dl.sourceforge.jp/ \
http://jaist.dl.sourceforge.jp/ \
http://keihanna.dl.sourceforge.jp/ \
http://globalbase.dl.sourceforge.jp/ \
http://iij.dl.sourceforge.jp/ \
http://download.sourceforge.jp/
http://osdn.dl.sourceforge.jp/
MASTER_SITE_SUSE+= \
ftp://rpmfind.net/linux/SuSE-Linux/${MACHINE_ARCH}/update/${SUSE_VERSION}/ \
ftp://fr.rpmfind.net/linux/SuSE-Linux/${MACHINE_ARCH}/update/${SUSE_VERSION}/ \
ftp://fr2.rpmfind.net/linux/SuSE-Linux/${MACHINE_ARCH}/update/${SUSE_VERSION}/
ftp://rpmfind.net/linux/opensuse/update/${SUSE_VERSION}/${MACHINE_ARCH}/ \
ftp://fr.rpmfind.net/linux/opensuse/update/${SUSE_VERSION}/${MACHINE_ARCH}/ \
ftp://fr2.rpmfind.net/linux/opensuse/update/${SUSE_VERSION}/${MACHINE_ARCH}/
MASTER_SITE_MOZILLA_ALL+= \
http://download-origin.cdn.mozilla.net/pub/mozilla.org/ \
@@ -111,31 +112,20 @@ MASTER_SITE_MOZILLA_ALL+= \
MASTER_SITE_MOZILLA+= \
http://releases.mozilla.org/pub/mozilla.org/ \
http://mirror.atlanticmetro.net/mozilla/ \
ftp://releases.mozilla.org/pub/mozilla.org/ \
http://www.artfiles.org/mozilla.org/ \
http://ftp.plusline.de/mozilla/ \
http://ftp.sunet.se/pub/www/clients/mozilla.org/ \
http://mirror.switch.ch/ftp/mirror/mozilla/ \
http://mozmirror01.true.nl/pub/mozilla.org/ \
http://mirror.yandex.ru/mozilla/ \
http://ftp.cvut.cz/mozilla/ \
http://ftp.pwr.wroc.pl/pub/mozilla/ \
http://ftp.heanet.ie/mirrors/ftp.mozilla.org/pub/mozilla.org/ \
http://mozilla.c3sl.ufpr.br/releases/ \
http://mozilla.mirror.ac.za/ \
http://mozilla-mirror.naist.jp/ \
http://mirror.waia.asn.au/pub/mozilla/ \
http://mozilla.mirror.ihug.co.nz/ \
http://download-origin.cdn.mozilla.net/pub/mozilla.org/
# for Extended Support Release version
MASTER_SITE_MOZILLA_ESR+= \
http://download-origin.cdn.mozilla.net/pub/mozilla.org/ \
http://pv-mirror01.mozilla.org/pub/mozilla.org/ \
http://dm-download02.mozilla.org/pub/mozilla.org/ \
http://ftp.mozilla.org/pub/mozilla.org/ \
ftp://ftp.mozilla.org/pub/mozilla.org/
MASTER_SITE_XEMACS+= \
http://ftp.xemacs.org/pub/xemacs/ \
ftp://ftp.xemacs.org/pub/xemacs/ \
ftp://ftp.dti.ad.jp/pub/unix/editor/xemacs/ \
ftp://ftp.pasteur.fr/pub/computing/xemacs/ \
@@ -143,12 +133,13 @@ MASTER_SITE_XEMACS+= \
ftp://mirror.cict.fr/xemacs/ \
ftp://ftp.dnsbalance.ring.gr.jp/pub/text/xemacs/
# http://www.ibiblio.org/pub/mirrors/apache/ returns 200 for missing
# files, which is incompatible with resuming transfers.
MASTER_SITE_APACHE+= \
http://www.apache.org/dist/ \
http://www.eu.apache.org/dist/ \
http://apache.mirror.aussiehq.net.au/ \
http://apache.oregonstate.edu/ \
http://www.ibiblio.org/pub/mirrors/apache/ \
http://mirror.nyi.net/apache/ \
http://apache.mirrors.tds.net/ \
http://ftp.unicamp.br/pub/apache/ \
@@ -165,8 +156,6 @@ MASTER_SITE_APACHE+= \
ftp://ftp.twaren.net/Unix/Web/apache/
MASTER_SITE_MYSQL+= \
http://mysql.skynet.be/Downloads/ \
ftp://ftp.mysql.skynet.be/pub/ftp.mysql.com/Downloads/ \
http://mysql.mirror.kangaroot.net/Downloads/ \
ftp://mysql.mirror.kangaroot.net/pub/mysql/Downloads/ \
http://mysql.linux.cz/Downloads/ \
@@ -188,12 +177,9 @@ MASTER_SITE_MYSQL+= \
http://ftp.heanet.ie/mirrors/www.mysql.com/Downloads/ \
ftp://ftp.heanet.ie/mirrors/www.mysql.com/Downloads/ \
http://na.mirror.garr.it/mirrors/MySQL/Downloads/ \
http://mysql.proserve.nl/Downloads/ \
http://mysql.nfsi.pt/Downloads/ \
ftp://ftp.nfsi.pt/pub/mysql/Downloads/ \
http://mirrors.xservers.ro/mysql/Downloads/ \
http://ftp.sunet.se/pub/unix/databases/relational/mysql/Downloads/ \
ftp://ftp.sunet.se/pub/unix/databases/relational/mysql/Downloads/ \
http://mysql.dataphone.se/Downloads/ \
ftp://mirror2.dataphone.se/pub/mysql/Downloads/ \
ftp://ftp.solnet.ch/mirror/mysql/Downloads/ \
@@ -211,17 +197,12 @@ MASTER_SITE_MYSQL+= \
ftp://mirror.csclub.uwaterloo.ca/mysql/Downloads/ \
http://mirror.trouble-free.net/mysql_mirror/Downloads/ \
http://mysql.llarian.net/Downloads/ \
ftp://mysql.llarian.net/pub/mysql/Downloads/ \
ftp://mirror.anl.gov/pub/mysql/Downloads/ \
http://mirror.services.wisc.edu/mysql/Downloads/ \
ftp://mirror.services.wisc.edu/mirrors/mysql/Downloads/ \
http://mysql.he.net/Downloads/ \
http://mysql.mirrors.arminco.com/Downloads/ \
http://mysql.spd.co.il/Downloads/ \
http://ftp.iij.ad.jp/pub/db/mysql/Downloads/ \
ftp://ftp.iij.ad.jp/pub/db/mysql/Downloads/ \
http://mysql.oss.eznetsols.org/Downloads/ \
ftp://ftp.oss.eznetsols.org/mysql/Downloads/ \
http://mysql.cs.pu.edu.tw/Downloads/ \
http://mysql.ntu.edu.tw/Downloads/ \
ftp://ftp.ntu.edu.tw/pub/MySQL/Downloads/ \
@@ -264,16 +245,13 @@ MASTER_SITE_DEBIAN+= \
MASTER_SITE_OPENOFFICE+= \
http://mirrors.isc.org/pub/openoffice/ \
http://openoffice.mirrors.ilisys.com.au/ \
http://www.ibiblio.org/pub/mirrors/openoffice/ \
ftp://ftp.ussg.iu.edu/pub/openoffice/ \
http://gd.tuwien.ac.at/office/openoffice/ \
http://ftp.sh.cvut.cz/MIRRORS/OpenOffice/ \
ftp://ftp.funet.fi/pub/mirrors/openoffice.org/ \
ftp://sunsite.informatik.rwth-aachen.de/pub/mirror/OpenOffice/ \
ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/ftp.openoffice.org/ \
ftp://ftp.join.uni-muenster.de/pub/software/OpenOffice/ \
http://ftp.ntua.gr/pub/OpenOffice/ \
http://ftp.rhnet.is/pub/OpenOffice/ \
http://na.mirror.garr.it/mirrors/openoffice/ \
http://vlaai.snt.utwente.nl/pub/software/openoffice/ \
http://niihau.student.utwente.nl/openoffice/ \
@@ -281,9 +259,7 @@ MASTER_SITE_OPENOFFICE+= \
http://ftp.iasi.roedu.net/mirrors/openoffice.org/ \
ftp://ftp.arnes.si/packages/OpenOffice.org/ \
ftp://ftp.saix.net/pub/OpenOffice.org/ \
http://ftp.sunet.se/pub/Office/OpenOffice.org/ \
ftp://mirror.switch.ch/mirror/OpenOffice/ \
http://komo.vlsm.org/openoffice/ \
ftp://ftp.kddlabs.co.jp/office/openoffice/ \
ftp://ftp.dnsbalance.ring.gr.jp/pub/misc/openoffice/ \
ftp://ftp.kr.freebsd.org/pub/openoffice/
@@ -299,59 +275,8 @@ MASTER_SITE_IFARCHIVE+= \
http://ifarchive.heanet.ie/if-archive/ \
ftp://ftp.giga.or.at/pub/ifarchive/
### PGSQL list was last updated on 20110328
MASTER_SITE_PGSQL+= \
ftp://ftp5.ca.postgresql.org/mirrors/postgresql/ \
http://ftp2.cz.postgresql.org/pub/postgresql/ \
ftp://ftp2.cz.postgresql.org/pub/postgresql/ \
http://ftp.dk.postgresql.org/postgresql/ \
ftp://ftp.dk.postgresql.org/postgresql/ \
http://ftp.ee.postgresql.org/pub/postgresql/ \
ftp://ftp.fi.postgresql.org/pub/postgresql/ \
http://ftp4.fr.postgresql.org/pub/mirrors/postgresql/ \
ftp://ftp4.fr.postgresql.org/pub/mirrors/postgresql/ \
http://ftp3.de.postgresql.org/pub/Mirrors/ftp.postgresql.org/ \
ftp://ftp3.de.postgresql.org/pub/Mirrors/ftp.postgresql.org/ \
http://ftp8.de.postgresql.org/pub/misc/pgsql/ \
ftp://ftp8.de.postgresql.org/pub/misc/pgsql/ \
ftp://ftp7.de.postgresql.org/pub/ftp.postgresql.org/ \
ftp://ftp9.de.postgresql.org/unix/databases/postgresql/ \
http://ftp.gr.postgresql.org/pub/databases/postgresql/ \
ftp://ftp.gr.postgresql.org/pub/databases/postgresql/ \
http://ftp3.gr.postgresql.org/ \
ftp://ftp3.gr.postgresql.org/mirrors/postgresql/ \
http://ftp.ie.postgresql.org/mirrors/ftp.postgresql.org/pub/ \
ftp://ftp.ie.postgresql.org/mirrors/ftp.postgresql.org/pub/ \
http://ftp2.ie.postgresql.org/mirrors/ftp.postgresql.org/ \
ftp://ftp2.ie.postgresql.org/mirrors/ftp.postgresql.org/ \
http://ftp2.it.postgresql.org/mirrors/postgres/ \
ftp://ftp2.it.postgresql.org/mirrors/postgres/ \
ftp://ftp3.jp.postgresql.org/pub/db/postgresql/ \
ftp://ftp.lv.postgresql.org/mirrors/ftp.postgresql.org/ \
http://ftp2.nl.postgresql.org/ \
ftp://ftp2.nl.postgresql.org/mirror/postgresql/ \
ftp://ftp.nz.postgresql.org/postgresql/ \
http://ftp6.pl.postgresql.org/pub/postgresql/ \
ftp://ftp6.pl.postgresql.org/pub/postgresql/ \
http://ftp8.pl.postgresql.org/pub/postgresql/ \
ftp://ftp8.pl.postgresql.org/pub/postgresql/ \
ftp://ftp7.pl.postgresql.org/pub/mirror/ftp.postgresql.org/ \
http://ftp.pt.postgresql.org/pub/postgresql/ \
ftp://ftp.pt.postgresql.org/pub/postgresql/ \
ftp://ftp6.ro.postgresql.org/pub/mirrors/ftp.postgresql.org/ \
ftp://ftp3.ru.postgresql.org/pub/mirror/postgresql/pub/ \
ftp://ftp.si.postgresql.org/pub/mirrors/postgresql/ \
ftp://ftp.za.postgresql.org/mirror/ftp.postgresql.org/ \
http://ftp.se.postgresql.org/pub/databases/relational/postgresql/ \
ftp://ftp.se.postgresql.org/pub/databases/relational/postgresql/ \
http://ftp2.ch.postgresql.org/pub/mirrors/postgresql/ \
ftp://ftp2.ch.postgresql.org/pub/mirrors/postgresql/ \
ftp://ftp.ch.postgresql.org/mirror/postgresql/ \
http://ftp3.tw.postgresql.org/postgresql/ \
ftp://ftp3.tw.postgresql.org/postgresql/ \
ftp://ftp5.us.postgresql.org/pub/PostgreSQL/ \
http://ftp2.uk.postgresql.org/sites/ftp.postgresql.org/ \
ftp://ftp2.uk.postgresql.org/sites/ftp.postgresql.org/
http://ftp.postgresql.org/pub/
MASTER_SITE_GENTOO+= \
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ \
@@ -376,15 +301,13 @@ MASTER_SITE_GENTOO+= \
MASTER_SITE_XORG+= \
http://xorg.freedesktop.org/releases/individual/ \
ftp://ftp.x.org/pub/individual/ \
ftp://ftp.sunet.se/pub/X11/ftp.x.org/individual/
ftp://mirror.switch.ch/mirror/X11/pub/individual/
MASTER_SITE_FREEBSD+= \
ftp://ftp.FreeBSD.org/pub/FreeBSD/distfiles/ \
ftp://ftp.jp.FreeBSD.org/pub/FreeBSD/distfiles/
http://distcache.FreeBSD.org/ports-distfiles/
MASTER_SITE_FREEBSD_LOCAL+= \
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/ \
ftp://ftp.jp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/
http://distcache.FreeBSD.org/local-distfiles/
MASTER_SITE_NETLIB+= \
http://netlib.org/ \
@@ -392,16 +315,20 @@ MASTER_SITE_NETLIB+= \
http://www.netlib.no/netlib/ \
http://www.mirrorservice.org/sites/netlib.bell-labs.com/netlib/
MASTER_SITE_OPENBSD+= \
ftp://ftp.OpenBSD.org/pub/OpenBSD/ \
ftp://ftp3.usa.openbsd.org/pub/OpenBSD/ \
ftp://ftp.jaist.ac.jp/pub/OpenBSD/
MASTER_SITE_RUBYGEMS+= \
http://rubygems.org/gems/ \
http://gems.rubyforge.org/gems/
http://rubygems.org/downloads/ \
MASTER_SITE_HASKELL_HACKAGE+= \
http://hackage.haskell.org/package/
# The primary backup site.
MASTER_SITE_BACKUP?= \
ftp://ftp.fi.NetBSD.org/pub/NetBSD/packages/distfiles/ \
ftp://ftp.fr.NetBSD.org/pub/pkgsrc/distfiles/ \
http://ftp.fr.NetBSD.org/pub/pkgsrc/distfiles/ \
ftp://ftp.NetBSD.org/pub/pkgsrc/distfiles/ \
http://ftp.NetBSD.org/pub/pkgsrc/distfiles/ \
ftp://ftp.FreeBSD.org/pub/FreeBSD/distfiles/
http://ftp.NetBSD.org/pub/pkgsrc/distfiles/