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