You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
2.5 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=podman
  3. PKG_VERSION:=2.1.1
  4. PKG_RELEASE:=4
  5. PKG_LICENSE:=Apache-2.0
  6. PKG_LICENSE_FILES:=LICENSE
  7. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  8. PKG_SOURCE_URL:=https://github.com/containers/podman/archive/v$(PKG_VERSION)
  9. PKG_HASH:=5ebaa6e0dbd7fd1863f70d2bc71dc8a94e195c3339c17e3cac4560c9ec5747f8
  10. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  11. PKG_BUILD_DEPENDS:=golang/host protobuf/host
  12. PKG_BUILD_PARALLEL:=1
  13. PKG_USE_MIPS16:=0
  14. GO_PKG:=github.com/containers/podman/
  15. GO_PKG_BUILD_PKG:=github.com/containers/podman/v2/cmd/podman/
  16. GO_PKG_TAGS=seccomp,exclude_graphdriver_devicemapper
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../../lang/golang/golang-package.mk
  19. define Download/default-registries
  20. URL:=https://raw.githubusercontent.com/projectatomic/registries/da9a9c87781823f45401ca49da04e269c9e3100e
  21. URL_FILE:=registries.fedora
  22. FILE:=registries.fedora-da9a9c8778
  23. HASH:=bc2b58c209aa8ca35b6814ec9a3c64716d4970b884ade460b65000e56024dfee
  24. endef
  25. define Download/default-policy
  26. URL:=https://raw.githubusercontent.com/containers/skopeo/362f70b056a1f5d2bd4184527a0ae0d20c4d35d3
  27. URL_FILE:=default-policy.json
  28. FILE:=default-policy.json-362f70b056
  29. HASH:=cddfaa8e6a7e5497b67cc0dd8e8517058d0c97de91bf46fff867528415f2d946
  30. endef
  31. define Package/podman
  32. SECTION:=utils
  33. CATEGORY:=Utilities
  34. TITLE:=Podman
  35. URL:=https://podman.io
  36. DEPENDS:=$(GO_ARCH_DEPENDS) +conmon +cni +cni-plugins +btrfs-progs +glib2 +gnupg2 +iptables +libgpg-error +libseccomp +libgpgme +nsenter +zoneinfo-simple
  37. endef
  38. define Package/podman/description
  39. Podman: A tool for managing OCI containers and pods
  40. endef
  41. define Package/podman/conffiles
  42. /etc/containers
  43. endef
  44. define Build/Prepare
  45. $(call Build/Prepare/Default)
  46. $(eval $(call Download,default-registries))
  47. $(eval $(call Download,default-policy))
  48. endef
  49. define Package/podman/install
  50. $(call GoPackage/Package/Install/Bin,$(1))
  51. $(INSTALL_DIR) $(1)/etc/containers
  52. $(INSTALL_CONF) $(DL_DIR)/default-policy.json-362f70b056 $(1)/etc/containers/policy.json
  53. $(INSTALL_CONF) $(DL_DIR)/registries.fedora-da9a9c8778 $(1)/etc/containers/registries.conf
  54. $(INSTALL_CONF) $(PKG_BUILD_DIR)/vendor/github.com/containers/storage/storage.conf $(1)/etc/containers/storage.conf
  55. $(INSTALL_CONF) ./files/containers.conf $(1)/etc/containers/containers.conf
  56. $(INSTALL_DIR) $(1)/etc/cni/net.d
  57. $(INSTALL_CONF) $(PKG_BUILD_DIR)/cni/87-podman-bridge.conflist $(1)/etc/cni/net.d/
  58. endef
  59. $(eval $(call GoBinPackage,podman))
  60. $(eval $(call BuildPackage,podman))