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.

60 lines
1.5 KiB

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