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.

47 lines
1.3 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=cgroupfs-mount
  3. PKG_RELEASE:=2
  4. PKG_SOURCE_PROTO:=git
  5. PKG_SOURCE_URL:=https://github.com/tianon/$(PKG_NAME)
  6. PKG_SOURCE_VERSION:=0549428171605eae3097a3e21bf7664845eac9e8
  7. PKG_SOURCE_DATE:=2020-06-26
  8. PKG_MIRROR_HASH:=ca217ffff5aa938149d2d8adfe15d800903d2fec180acb2400c36d62905988ea
  9. PKG_MAINTAINER:=Gerard Ryan <G.M0N3Y.2503@gmail.com>
  10. include $(INCLUDE_DIR)/package.mk
  11. define Package/cgroupfs-mount/config
  12. config CGROUPFS_MOUNT_KERNEL_CGROUPS
  13. bool "Enable kernel cgroups support"
  14. depends on PACKAGE_cgroupfs-mount
  15. default y if ( DOCKER_KERNEL_OPTIONS || LXC_KERNEL_OPTIONS )
  16. select KERNEL_CGROUPS
  17. endef
  18. define Package/cgroupfs-mount
  19. SECTION:=utils
  20. CATEGORY:=Utilities
  21. TITLE:=cgroup mount scripts
  22. DEPENDS:=+mount-utils
  23. MENU:=1
  24. endef
  25. define Package/cgroupfs-mount/description
  26. Simple scripts to properly mount the cgroupfs hierarchy, especially structured for Debian packaging
  27. endef
  28. Build/Compile=# Nothing to compile, just install the scripts
  29. define Package/cgroupfs-mount/install
  30. $(INSTALL_DIR) $(1)/usr/bin/
  31. $(INSTALL_BIN) $(PKG_BUILD_DIR)/cgroupfs-mount $(1)/usr/bin/
  32. $(INSTALL_BIN) $(PKG_BUILD_DIR)/cgroupfs-umount $(1)/usr/bin/
  33. $(INSTALL_DIR) $(1)/etc/init.d
  34. $(INSTALL_BIN) ./files/cgroupfs-mount.init $(1)/etc/init.d/cgroupfs-mount
  35. endef
  36. $(eval $(call BuildPackage,cgroupfs-mount))