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.

66 lines
1.7 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libcgroup
  3. PKG_VERSION:=0.41
  4. PKG_RELEASE:=3
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  6. PKG_SOURCE_URL:=@SF/libcg
  7. PKG_HASH:=e4e38bdc7ef70645ce33740ddcca051248d56b53283c0dc6d404e17706f6fb51
  8. PKG_MAINTAINER:=Daniel Danzberger <daniel@dd-wrt.com>
  9. PKG_LICENSE:=LGPL-2.1-or-later
  10. PKG_LICENSE_FILES:=COPYING
  11. PKG_FIXUP:=autoreconf
  12. PKG_INSTALL:=1
  13. PKG_BUILD_PARALLEL:=1
  14. include $(INCLUDE_DIR)/package.mk
  15. define Package/libcgroup
  16. TITLE:=CGroup config and exec library
  17. SECTION:=libs
  18. CATEGORY:=Libraries
  19. DEPENDS:=+USE_MUSL:musl-fts +@KERNEL_CGROUPS
  20. endef
  21. define Package/cgroup-tools
  22. TITLE:=CGroup config and exec tools
  23. DEPENDS:=+libcgroup
  24. CATEGORY:=Utilities
  25. endef
  26. define Package/libcgroup/description
  27. Helpers utils for working with cgroups.
  28. endef
  29. CONFIGURE_ARGS += \
  30. --enable-tools \
  31. --enable-shared \
  32. --disable-daemon \
  33. --disable-pam
  34. TARGET_LDFLAGS += $(if $(CONFIG_USE_MUSL),-lfts)
  35. define Build/InstallDev
  36. $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib $(1)/usr/lib/pkgconfig
  37. $(CP) $(PKG_INSTALL_DIR)/usr/include/libcgroup.h $(1)/usr/include
  38. $(CP) $(PKG_INSTALL_DIR)/usr/include/libcgroup $(1)/usr/include
  39. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcgroup.so* $(1)/usr/lib
  40. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libcgroup.pc $(1)/usr/lib/pkgconfig/
  41. endef
  42. define Package/libcgroup/install
  43. $(INSTALL_DIR) $(1)/usr/lib
  44. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcgroup.so* $(1)/usr/lib
  45. endef
  46. define Package/cgroup-tools/install
  47. $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/sbin
  48. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin
  49. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin
  50. endef
  51. $(eval $(call BuildPackage,libcgroup))
  52. $(eval $(call BuildPackage,cgroup-tools))