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.

46 lines
1.3 KiB

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