Skip to content

Commit

Permalink
Add netavark package
Browse files Browse the repository at this point in the history
  • Loading branch information
j1nx committed Jan 22, 2024
1 parent f3d0679 commit 68dab30
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions package/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -2401,6 +2401,7 @@ endif
source "package/ndisc6/Config.in"
source "package/net-tools/Config.in"
source "package/netatalk/Config.in"
source "package/netavark/Config.in"
source "package/netcalc/Config.in"
source "package/netcat/Config.in"
source "package/netcat-openbsd/Config.in"
Expand Down
10 changes: 10 additions & 0 deletions package/netavark/Config.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
config BR2_PACKAGE_NETAVARK
bool "netavark"
depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
# depends on BR2_PACKAGE_PROTOBUF
select BR2_PACKAGE_HOST_CARGO
select BR2_PACKAGE_PROTOBUF
help
Netavark is a rust based network stack for containers.
It is being designed to work with Podman but is also
applicable for other OCI container management applications.
2 changes: 2 additions & 0 deletions package/netavark/netavark.hash
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Locally computed
sha256 2315eb0c9d028b99e795d2071666eaa95d2721e6c4cc52f70f62f67caddc2f8c netavark-1.9.0.tar.gz
19 changes: 19 additions & 0 deletions package/netavark/netavark.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
################################################################################
#
# netavark
#
################################################################################

NETAVARK_VERSION = 1.9.0
NETAVARK_SITE = $(call github,containers,netavark,v$(NETAVARK_VERSION))
NETAVARK_DEPENDENCIES = host-rustc host-pkgconf protobuf

NETAVARK_CARGO_ENV = PKG_CONFIG_ALLOW_CROSS=1

define NETAVARK_INSTALL_TARGET_CMDS
mkdir -p $(TARGET_DIR)/usr/libexec/podman
$(INSTALL) -D -m 0755 $(@D)/target/$(RUSTC_TARGET_NAME)/release/netavark \
$(TARGET_DIR)/usr/libexec/podman/netavark
endef

$(eval $(cargo-package))

0 comments on commit 68dab30

Please sign in to comment.