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.

71 lines
1.9 KiB

  1. #
  2. # Copyright (C) 2019-2021 CZ.NIC z.s.p.o. (https://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:=atlas-probe
  9. PKG_VERSION:=2.2.1
  10. PKG_RELEASE:=3
  11. PKG_SOURCE:=ripe-atlas-probe-busybox-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://github.com/RIPE-NCC/ripe-atlas-probe-busybox/archive/v$(PKG_VERSION)
  13. PKG_HASH:=c5a3aca026cd1a3b93a77b159b36cd7a1098eb6d90e9ae4a69872cd7a419a87b
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/ripe-atlas-probe-busybox-$(PKG_VERSION)
  15. PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec1@gmail.com>
  16. PKG_LICENSE:=GPL-2.0-or-later
  17. PKG_LICENSE_FILES:=LICENSE
  18. PKG_FIXUP:=autoreconf
  19. PKG_BUILD_PARALLEL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/atlas-probe
  22. SECTION:=net
  23. CATEGORY:=Network
  24. TITLE:=RIPE Atlas probe measurement
  25. DEPENDS:=+librt +libopenssl +openssh-client +sudo
  26. USERID:=atlas=444:atlas=444
  27. URL:=https://atlas.ripe.net/
  28. endef
  29. define Package/atlas-probe/description
  30. RIPE Atlas is a global, open, distributed Internet measurement platform,
  31. consisting of thousands of measurement devices that measure Internet
  32. connectivity in real time.
  33. endef
  34. TARGET_CFLAGS += $(FPIC)
  35. CONFIGURE_ARGS += \
  36. --disable-shared \
  37. --enable-static
  38. CONFIGURE_PATH = libevent-2.1.11-stable
  39. TARGET_LDFLAGS = -L$(PKG_BUILD_DIR)/$(CONFIGURE_PATH)/.libs
  40. define Build/Compile
  41. +$(MAKE_VARS) \
  42. $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)/$(CONFIGURE_PATH) \
  43. $(MAKE_FLAGS)
  44. +$(MAKE_VARS) \
  45. $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
  46. $(MAKE_FLAGS)
  47. endef
  48. define Package/atlas-probe/install
  49. +$(MAKE_VARS) \
  50. $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
  51. $(MAKE_FLAGS) CONFIG_PREFIX=$(1)/usr/libexec/atlas-probe install
  52. $(INSTALL_DIR) $(1)/usr/libexec/atlas-probe/state
  53. echo $(PKG_VERSION) > $(1)/usr/libexec/atlas-probe/state/VERSION
  54. endef
  55. $(eval $(call BuildPackage,atlas-probe))