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.

70 lines
1.8 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:=1
  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.pavlinec@nic.cz>
  16. PKG_LICENSE:=GPL-2.0-or-later
  17. PKG_LICENSE_FILES:=LICENSE
  18. PKG_FIXUP:=autoreconf
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/atlas-probe
  21. SECTION:=net
  22. CATEGORY:=Network
  23. TITLE:=RIPE Atlas probe measurement
  24. DEPENDS:=+librt +libopenssl +openssh-client +sudo
  25. USERID:=atlas=444:atlas=444
  26. URL:=https://atlas.ripe.net/
  27. endef
  28. define Package/atlas-probe/description
  29. RIPE Atlas is a global, open, distributed Internet measurement platform,
  30. consisting of thousands of measurement devices that measure Internet
  31. connectivity in real time.
  32. endef
  33. TARGET_CFLAGS += $(FPIC)
  34. CONFIGURE_ARGS += \
  35. --disable-shared \
  36. --enable-static
  37. CONFIGURE_PATH = libevent-2.1.11-stable
  38. TARGET_LDFLAGS = -L$(PKG_BUILD_DIR)/$(CONFIGURE_PATH)/.libs
  39. define Build/Compile
  40. +$(MAKE_VARS) \
  41. $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)/$(CONFIGURE_PATH) \
  42. $(MAKE_FLAGS)
  43. +$(MAKE_VARS) \
  44. $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
  45. $(MAKE_FLAGS)
  46. endef
  47. define Package/atlas-probe/install
  48. +$(MAKE_VARS) \
  49. $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
  50. $(MAKE_FLAGS) CONFIG_PREFIX=$(1)/usr/libexec/atlas-probe install
  51. $(INSTALL_DIR) $(1)/usr/libexec/atlas-probe/state
  52. echo $(PKG_VERSION) > $(1)/usr/libexec/atlas-probe/state/VERSION
  53. endef
  54. $(eval $(call BuildPackage,atlas-probe))