diff --git a/DEVELOPERS b/DEVELOPERS index 1b756e60e3..103b5f223c 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -532,6 +532,7 @@ F: package/python-pylibftdi/ N: Christian Stewart F: package/batman-adv/ F: package/containerd/ +F: package/crun/ F: package/delve/ F: package/docker-cli/ F: package/docker-compose/ diff --git a/package/Config.in b/package/Config.in index 57c0e7959a..afe2dcc21d 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2571,6 +2571,7 @@ menu "System tools" source "package/coreutils/Config.in" source "package/cpulimit/Config.in" source "package/cpuload/Config.in" + source "package/crun/Config.in" source "package/daemon/Config.in" source "package/dc3dd/Config.in" source "package/dcron/Config.in" diff --git a/package/crun/Config.in b/package/crun/Config.in new file mode 100644 index 0000000000..5aca10dcdb --- /dev/null +++ b/package/crun/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_CRUN + bool "crun" + select BR2_PACKAGE_YAJL # libocispec + help + crun is a fast and low-memory OCI Container Runtime in C. + + https://github.com/containers/crun diff --git a/package/crun/crun.hash b/package/crun/crun.hash new file mode 100644 index 0000000000..de61310e08 --- /dev/null +++ b/package/crun/crun.hash @@ -0,0 +1,4 @@ +# Locally computed +sha256 acd24012daa951cf1674b20b2d5f87975d5d6c8e8c80bfe12e4cffa3495cae67 crun-1.5.tar.gz +sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING +sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 COPYING.libcrun diff --git a/package/crun/crun.mk b/package/crun/crun.mk new file mode 100644 index 0000000000..c92e6e5605 --- /dev/null +++ b/package/crun/crun.mk @@ -0,0 +1,38 @@ +################################################################################ +# +# crun +# +################################################################################ + +CRUN_VERSION = 1.5 +CRUN_SITE = https://github.com/containers/crun/releases/download/$(CRUN_VERSION) +CRUN_DEPENDENCIES = host-pkgconf yajl + +CRUN_LICENSE = GPL-2.0+ (crun binary), LGPL-2.1+ (libcrun) +CRUN_LICENSE_FILES = COPYING COPYING.libcrun + +CRUN_AUTORECONF = YES +CRUN_CONF_OPTS = --disable-embedded-yajl + +ifeq ($(BR2_PACKAGE_LIBCAP),y) +CRUN_DEPENDENCIES += libcap +CRUN_CONF_OPTS += --enable-caps +else +CRUN_CONF_OPTS += --disable-caps +endif + +ifeq ($(BR2_PACKAGE_LIBSECCOMP),y) +CRUN_DEPENDENCIES += libseccomp +CRUN_CONF_OPTS += --enable-seccomp +else +CRUN_CONF_OPTS += --disable-seccomp +endif + +ifeq ($(BR2_PACKAGE_SYSTEMD),y) +CRUN_CONF_OPTS += --enable-systemd +CRUN_DEPENDENCIES += systemd host-pkgconf +else +CRUN_CONF_OPTS += --disable-systemd +endif + +$(eval $(autotools-package))