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.

48 lines
1.3 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=cgroupfs-mount
  3. PKG_VERSION:=1.4
  4. PKG_RELEASE:=1
  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. PKG_BUILD_PARALLEL:=1
  10. include $(INCLUDE_DIR)/package.mk
  11. define Package/cgroupfs-mount/config
  12. config CGROUPFS_MOUNT_CGROUPS
  13. depends on PACKAGE_cgroupfs-mount
  14. bool "Enable support for cgroups in the kernel"
  15. default y
  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))