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.

53 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2019 CZ.NIC z.s.p.o. (http://www.nic.cz/)
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=measurement-kit
  9. PKG_VERSION:=0.10.4
  10. PKG_RELEASE=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/measurement-kit/measurement-kit/tar.gz/v$(PKG_VERSION)?
  13. PKG_HASH:=6ca0d9e7a9c1ff0ea8713bf59fde9f87365acdc4b784a5a4bb3f35a77bc4b775
  14. PKG_INSTALL:=1
  15. PKG_FIXUP:=autoreconf
  16. PKG_BUILD_PARALLEL:=1
  17. PKG_LICENSE:=BSD-2-Clause
  18. PKG_LICENSE_FILES:=LICENSE
  19. PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec@nic.cz>
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/measurement-kit
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=library for open network measurement
  25. URL:=https://measurement-kit.github.io/
  26. DEPENDS:=+libstdcpp +libcurl +libevent2-pthreads +libevent2-extra +libevent2-openssl +libevent2-core +libmaxminddb +ca-bundle
  27. endef
  28. define Package/measurement-kit/description
  29. Measurement Kit is a C++14 library that implements open network measurement methodologies (performance, censorship, etc.)
  30. endef
  31. CONFIGURE_ARGS+= --with-ca-bundle=/etc/ssl/cert.pem
  32. define Build/Configure
  33. ( cd $(PKG_BUILD_DIR); ./autogen.sh )
  34. $(call Build/Configure/Default)
  35. endef
  36. define Package/measurement-kit/install
  37. $(INSTALL_DIR) $(1)/usr/bin
  38. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/measurement_kit $(1)/usr/bin/
  39. endef
  40. $(eval $(call BuildPackage,measurement-kit))