xref: /buildroot/package/crun/crun.mk
  • Home
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • current directory
1################################################################################
2#
3# crun
4#
5################################################################################
6
7CRUN_VERSION = 1.12
8CRUN_SITE = https://github.com/containers/crun/releases/download/$(CRUN_VERSION)
9CRUN_DEPENDENCIES = host-pkgconf yajl
10
11CRUN_LICENSE = GPL-2.0+ (crun binary), LGPL-2.1+ (libcrun)
12CRUN_LICENSE_FILES = COPYING COPYING.libcrun
13CRUN_CPE_ID_VALID = YES
14
15CRUN_AUTORECONF = YES
16CRUN_CONF_OPTS = --disable-embedded-yajl
17
18ifeq ($(BR2_PACKAGE_ARGP_STANDALONE),y)
19CRUN_DEPENDENCIES += argp-standalone
20endif
21
22ifeq ($(BR2_PACKAGE_LIBCAP),y)
23CRUN_DEPENDENCIES += libcap
24CRUN_CONF_OPTS += --enable-caps
25else
26CRUN_CONF_OPTS += --disable-caps
27endif
28
29ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
30CRUN_DEPENDENCIES += libgcrypt
31endif
32
33ifeq ($(BR2_PACKAGE_LIBSECCOMP),y)
34CRUN_DEPENDENCIES += libseccomp
35CRUN_CONF_OPTS += --enable-seccomp
36else
37CRUN_CONF_OPTS += --disable-seccomp
38endif
39
40ifeq ($(BR2_PACKAGE_SYSTEMD),y)
41CRUN_CONF_OPTS += --enable-systemd
42CRUN_DEPENDENCIES += systemd host-pkgconf
43else
44CRUN_CONF_OPTS += --disable-systemd
45endif
46
47ifeq ($(BR2_PACKAGE_RUNC),)
48define CRUN_CREATE_SYMLINK
49	ln -sf crun $(TARGET_DIR)/usr/bin/runc
50endef
51CRUN_POST_INSTALL_TARGET_HOOKS += CRUN_CREATE_SYMLINK
52endif
53
54$(eval $(autotools-package))
55

Last Index update Fri Aug 22 08:59:00 CST 2025