[Buildroot] [PATCH 5/9 v2] pkg-infra: add support for Gitorious as a forge

Yann E. MORIN yann.morin.1998 at free.fr
Sat Dec 6 11:13:55 UTC 2014

Similar to what we did for GitHub, add Gitorious as a known forge.

We need to specify the _UPSTREAM tarball name, because Gitorious uses a
custom naming scheme, whereby the basename of the archive only contains
the version string (plus the extension), but not the package name.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
Cc: Maxime Hadjinlian <maxime.hadjinlian at gmail.com>
Cc: Samuel Martin <s.martin49 at gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
Cc: Peter Korsgaard <jacmet at uclibc.org>
Cc: Thomas De Schampheleire <patrickdepinguin at gmail.com>
Cc: Arnout Vandecappelle <arnout at mind.be>
 package/pkg-generic.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk
index dd67b51..415574e 100644
--- a/package/pkg-generic.mk
+++ b/package/pkg-generic.mk
@@ -357,6 +357,10 @@ ifndef $(2)_SITE
 ifeq ($$($(2)_FORGE),github)
 $(2)_SITE = https://github.com/$$($(2)_FORGE_PATH)/archive/$$($(2)_VERSION)
 endif # github
+ifeq ($$($(2)_FORGE),gitorious)
+$(2)_SITE = https://gitorious.org/$$($(2)_FORGE_PATH)/archive/
+$(2)_UPSTREAM_SOURCE = $$($(2)_VERSION).tar.gz
+endif # github
 ifndef $(2)_SOURCE

More information about the buildroot mailing list