# criu Utilities to checkpoint and restore processes in userspace ^ runtime dependencies | libbsd (Libraries/Other) | ^ ::: | protobuf-c (Libraries/Other) | ^ ::: | libnet (Libraries/Networking) | ^ ::: | libnl (Libraries/Networking) | ^ ::: | gnutls (Libraries/Crypto) | ^ ::: | nftables (Networking applications) | ^ ::: | [[buildroot:libprotobuf-c]] | ^ make dependencies | asciidoc | ^ ::: | xmlto | ^ ::: | libnet1-dev | ^ ::: | python3-future | ^ ::: | libnl-3-dev | ^ ::: | libcap-dev | ^ ::: | libnftables-devlibbsd-dev | ^ ::: | libprotobuf-dev | ^ ::: | libprotobuf-c-dev | ^ ::: | protobuf-c-compiler | ^ ::: | protobuf-compiler | ^ ::: | python-protobuf | ``` mkdir /data/buildroot/package/criu cat > /data/buildroot/package/criu/Config.in<< 'EOF' config BR2_PACKAGE_CRIU bool "criu" depends on BR2_PACKAGE_LIBBSD depends on BR2_PACKAGE_LIBNET depends on BR2_PACKAGE_LIBNL depends on BR2_PACKAGE_NFTABLES depends on BR2_PACKAGE_GNUTLS depends on BR2_PACKAGE_LIBPROTOBUF_C depends on BR2_PACKAGE_NFTABLES help Utilities to checkpoint and restore processes in userspace EOF cat > /data/buildroot/package/criu/criu.mk<< 'EOF' ############################################################# # # criu # ############################################################# CRIU_VERSION = v3.16.1 CRIU_SITE = https://github.com/checkpoint-restore/criu.git CRIU_SITE_METHOD = git CRIU_DEPENDENCIES = libbsd libnet libnl gnutls nftables libprotobuf-c CRIU_INSTALL_STAGING = YES define CRIU_BUILD_CMDS cd $(@D)/ && \ make endef define CRIU_INSTALL_STAGING_CMDS install -Dm755 "$(@D)"/criu/criu "$(STAGING_DIR)"/usr/sbin/criu endef define CRIU_INSTALL_TARGET_CMDS install -Dm755 "$(@D)"/criu/criu "$(TARGET_DIR)"/usr/sbin/criu endef $(eval $(generic-package)) EOF sed -i '/menu "Custom packages"/a source "package/criu/Config.in' /data/buildroot/package/Config.in ```