Skip to content
Snippets Groups Projects
Verified Commit a47a336b authored by Jan Pavlinec's avatar Jan Pavlinec
Browse files

patches/packages: backport git-lfs and gitlab-runner packages

These packages are necessary for running Gitlab CI on Omnia/Mox.
This should help knot-resolver team to test kresd on
different architectures.
parent 38bd58e0
Branches
Tags
2 merge requests!377Turris OS 5.2 (HBK),!305patches/packages: backport git-lfs and gitlab-runner packages
From 16766d48033dd9ce6f13e6ff02e0ae1464f44d56 Mon Sep 17 00:00:00 2001
From: Jan Pavlinec <jan.pavlinec@nic.cz>
Date: Mon, 16 Nov 2020 12:15:01 +0100
Subject: [PATCH] git-lfs: add new package
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
---
net/git-lfs/Makefile | 46 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
create mode 100644 net/git-lfs/Makefile
diff --git a/net/git-lfs/Makefile b/net/git-lfs/Makefile
new file mode 100644
index 00000000000..88bfa7e6325
--- /dev/null
+++ b/net/git-lfs/Makefile
@@ -0,0 +1,46 @@
+#
+# Copyright (C) 2020 CZ.NIC, z. s. p. o. (https://www.nic.cz/)
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=git-lfs
+PKG_VERSION:=2.12.1
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://codeload.github.com/git-lfs/git-lfs/tar.gz/v$(PKG_VERSION)?
+PKG_HASH:=2b2e70f1233f7efe9a010771510391a07527ec7c0af721ecf8edabac5d60f62b
+
+PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec@nic.cz>
+PKG_LICENSE:=MIT
+PKG_LICENSE_FILES:=LICENSE.md
+
+PKG_BUILD_DEPENDS:=golang/host
+PKG_BUILD_PARALLEL:=1
+PKG_USE_MIPS16:=0
+
+GO_PKG:=github.com/git-lfs/git-lfs
+
+include $(INCLUDE_DIR)/package.mk
+include ../../lang/golang/golang-package.mk
+
+define Package/git-lfs
+ SECTION:=net
+ CATEGORY:=Network
+ TITLE:=Git Large File Storage
+ URL:=https://git-lfs.github.com
+ DEPENDS:=$(GO_ARCH_DEPENDS) +git
+endef
+
+define Package/git-lfs/description
+ Git Large File Storage (LFS) replaces large files such as audio samples,
+ videos, datasets, and graphics with text pointers inside Git, while storing
+ the file contents on a remote server like GitHub.com or GitHub Enterprise.
+endef
+
+$(eval $(call GoBinPackage,git-lfs))
+$(eval $(call BuildPackage,git-lfs))
From 947ac8c53558a288e0e8f10b0faf2198e614e75f Mon Sep 17 00:00:00 2001
From: Jan Pavlinec <jan.pavlinec@nic.cz>
Date: Sun, 15 Nov 2020 12:28:54 +0100
Subject: [PATCH] gitlab-runner: add new package
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
---
devel/gitlab-runner/Makefile | 47 ++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
create mode 100644 devel/gitlab-runner/Makefile
diff --git a/devel/gitlab-runner/Makefile b/devel/gitlab-runner/Makefile
new file mode 100644
index 00000000000..6902772abfc
--- /dev/null
+++ b/devel/gitlab-runner/Makefile
@@ -0,0 +1,47 @@
+#
+# Copyright (C) 2020 CZ.NIC, z. s. p. o. (https://www.nic.cz/)
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=gitlab-runner
+PKG_VERSION:=13.5.0
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://gitlab.com/gitlab-org/gitlab-runner/-/archive/v$(PKG_VERSION)
+PKG_HASH:=765c1556ed9dd4c1b36f9946224c62f068b171e2c1581eeb8f71055327d8a274
+
+PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec@nic.cz>
+PKG_LICENSE:=MIT
+PKG_LICENSE_FILES:=LICENSE
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/gitlab-runner-v$(PKG_VERSION)
+PKG_BUILD_DEPENDS:=golang/host
+PKG_BUILD_PARALLEL:=1
+PKG_USE_MIPS16:=0
+GO_PKG:=gitlab.com/gitlab-org/gitlab-runner
+
+include $(INCLUDE_DIR)/package.mk
+include ../../lang/golang/golang-package.mk
+
+define Package/gitlab-runner
+ SECTION:=devel
+ CATEGORY:=Development
+ TITLE:=Runner for CI/CD
+ URL:=https://docs.gitlab.com/runner
+ DEPENDS:= \
+ $(GO_ARCH_DEPENDS) \
+ @!(mips||mipsel) # Disabled because of docker engine error https://gitlab.com/gitlab-org/gitlab-runner/-/issues/27234
+endef
+
+define Package/gitlab-runner/description
+ GitLab Runner is an application that works with
+ GitLab CI/CD to run jobs in a pipeline.
+endef
+
+$(eval $(call GoBinPackage,gitlab-runner))
+$(eval $(call BuildPackage,gitlab-runner))
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment