atlas-probe: update to 2.6.3
[feed/packages.git] / net / atlas-probe / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=atlas-probe
11 PKG_RELEASE:=1
12
13 PKG_SOURCE_PROTO:=git
14 PKG_SOURCE_VERSION:=2.6.3
15 PKG_SOURCE_URL:=https://github.com/RIPE-NCC/ripe-atlas-probe-busybox
16 PKG_MIRROR_HASH:=f53a2b29fedc2b6a44880b6f75b433e7cc0a51d6dc643bff86539f78b5aa653e
17
18 PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec1@gmail.com>
19 PKG_LICENSE:=GPL-2.0-or-later
20 PKG_LICENSE_FILES:=LICENSE
21
22 PKG_FIXUP:=autoreconf
23 PKG_BUILD_PARALLEL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/atlas-probe
28 SECTION:=net
29 CATEGORY:=Network
30 TITLE:=RIPE Atlas probe measurement
31 DEPENDS:=+librt +libopenssl +openssh-client +sudo
32 USERID:=atlas=444:atlas=444
33 URL:=https://atlas.ripe.net/
34 endef
35
36 define Package/atlas-probe/description
37 RIPE Atlas is a global, open, distributed Internet measurement platform,
38 consisting of thousands of measurement devices that measure Internet
39 connectivity in real time.
40 endef
41
42 TARGET_CFLAGS += $(FPIC)
43
44 CONFIGURE_ARGS += \
45 --disable-shared \
46 --enable-static
47
48 CONFIGURE_PATH = libevent-2.1.11-stable
49
50 TARGET_LDFLAGS = -L$(PKG_BUILD_DIR)/$(CONFIGURE_PATH)/.libs
51
52 define Build/Compile
53 +$(MAKE_VARS) \
54 $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)/$(CONFIGURE_PATH) \
55 $(MAKE_FLAGS)
56 +$(MAKE_VARS) \
57 $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
58 $(MAKE_FLAGS)
59 endef
60
61 define Package/atlas-probe/install
62 +$(MAKE_VARS) \
63 $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
64 $(MAKE_FLAGS) CONFIG_PREFIX=$(1)/usr/libexec/atlas-probe install
65 $(INSTALL_DIR) $(1)/usr/libexec/atlas-probe/state
66 echo $(PKG_VERSION) > $(1)/usr/libexec/atlas-probe/state/VERSION
67 endef
68
69 $(eval $(call BuildPackage,atlas-probe))