packages/net/atlas-probe/Makefile
Josef Schlehofer cf65ca2db0
atlas-probe: update to version 2.4.1
Removed patches:
001-fix-stime-glibc-remove.patch - it is included in upstream
003-Fix-compilation-with-gcc11.patch - no longer necessary

Updated patches:
002-Avoid-problems-with-64-bit-time_t.patch

Refreshed patches:
004-Comment-out-librt-testing.patch

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2022-01-04 12:57:42 +01:00

71 lines
1.9 KiB
Makefile

#
# Copyright (C) 2019-2021 CZ.NIC z.s.p.o. (https://www.nic.cz/)
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=atlas-probe
PKG_VERSION:=2.4.1
PKG_RELEASE:=1
PKG_SOURCE:=ripe-atlas-probe-busybox-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/RIPE-NCC/ripe-atlas-probe-busybox/archive/v$(PKG_VERSION)
PKG_HASH:=e684bf617cdc502c20f97028726a93a4a0d21ad9f618b50eb07f999f1604ae65
PKG_BUILD_DIR:=$(BUILD_DIR)/ripe-atlas-probe-busybox-$(PKG_VERSION)
PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec1@gmail.com>
PKG_LICENSE:=GPL-2.0-or-later
PKG_LICENSE_FILES:=LICENSE
PKG_FIXUP:=autoreconf
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
define Package/atlas-probe
SECTION:=net
CATEGORY:=Network
TITLE:=RIPE Atlas probe measurement
DEPENDS:=+librt +libopenssl +openssh-client +sudo
USERID:=atlas=444:atlas=444
URL:=https://atlas.ripe.net/
endef
define Package/atlas-probe/description
RIPE Atlas is a global, open, distributed Internet measurement platform,
consisting of thousands of measurement devices that measure Internet
connectivity in real time.
endef
TARGET_CFLAGS += $(FPIC)
CONFIGURE_ARGS += \
--disable-shared \
--enable-static
CONFIGURE_PATH = libevent-2.1.11-stable
TARGET_LDFLAGS = -L$(PKG_BUILD_DIR)/$(CONFIGURE_PATH)/.libs
define Build/Compile
+$(MAKE_VARS) \
$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)/$(CONFIGURE_PATH) \
$(MAKE_FLAGS)
+$(MAKE_VARS) \
$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
$(MAKE_FLAGS)
endef
define Package/atlas-probe/install
+$(MAKE_VARS) \
$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
$(MAKE_FLAGS) CONFIG_PREFIX=$(1)/usr/libexec/atlas-probe install
$(INSTALL_DIR) $(1)/usr/libexec/atlas-probe/state
echo $(PKG_VERSION) > $(1)/usr/libexec/atlas-probe/state/VERSION
endef
$(eval $(call BuildPackage,atlas-probe))