libsigar: add sigar libary 7099/head
authorAmol Bhave <ambhave@fb.com>
Mon, 24 Sep 2018 18:15:21 +0000 (11:15 -0700)
committerAmol Bhave <ambhave@fb.com>
Tue, 7 May 2019 01:34:17 +0000 (18:34 -0700)
sigar is a System Information Gatherer And Reporter library for C++
Adding the package so other C++ packages that depends on this library
can build.
This creates a libsigar.so shared library.

Signed-off-by: Amol Bhave <ambhave@fb.com>
libs/libsigar/Makefile [new file with mode: 0644]

diff --git a/libs/libsigar/Makefile b/libs/libsigar/Makefile
new file mode 100644 (file)
index 0000000..7a332e6
--- /dev/null
@@ -0,0 +1,40 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=libsigar
+PKG_SOURCE_DATE:=2017-02-21
+PKG_SOURCE_VERSION:=a6c61edf8c64e013411e8c9d753165cd03102c6e
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_DATE).tar.gz
+PKG_SOURCE_URL:=https://codeload.github.com/boundary/sigar/tar.gz/$(PKG_SOURCE_VERSION)?
+PKG_HASH:=5232f0fa994ab60ad4622364fad0297c0054e04f0cfec9c586b14e33bbc387da
+PKG_BUILD_DIR:=$(BUILD_DIR)/sigar-$(PKG_SOURCE_VERSION)
+
+PKG_LICENSE:=Apache-2.0
+PKG_LICENSE_FILE:=LICENSE
+
+include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/cmake.mk
+
+PKG_BUILD_PARALLEL:=1
+CMAKE_INSTALL:=1
+
+define Package/libsigar
+       SECTION:=libs
+       CATEGORY:=Libraries
+       TITLE:=System Information Gatherer And Reporter
+       URL:=https://github.com/boundary/sigar
+       DEPENDS:=+libtirpc
+       MAINTAINER:=Amol Bhave <ambhave@fb.com>
+endef
+
+define Package/libsigar/description
+       System Information Gatherer And Reporter
+endef
+
+define Package/libsigar/install
+       $(INSTALL_DIR) $(1)/usr/lib
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsigar.so* $(1)/usr/lib/
+endef
+
+$(eval $(call BuildPackage,libsigar))