From 67601d53b1e75ab5461362b0d0374deef121f227 Mon Sep 17 00:00:00 2001 From: Jan Pavlinec Date: Mon, 14 Jan 2019 13:37:27 +0100 Subject: [PATCH 1/2] libmaxminddb: add new package (dependency for measurement-kit) Signed-off-by: Jan Pavlinec --- libs/libmaxminddb/Makefile | 53 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 libs/libmaxminddb/Makefile diff --git a/libs/libmaxminddb/Makefile b/libs/libmaxminddb/Makefile new file mode 100644 index 000000000..72cbaff33 --- /dev/null +++ b/libs/libmaxminddb/Makefile @@ -0,0 +1,53 @@ +# +# Copyright (C) 2019 CZ.NIC z.s.p.o. (http://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:=libmaxminddb +PKG_VERSION:=1.3.2 +PKG_RELEASE=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://github.com/maxmind/libmaxminddb/releases/download/$(PKG_VERSION)/ +PKG_HASH:=e6f881aa6bd8cfa154a44d965450620df1f714c6dc9dd9971ad98f6e04f6c0f0 + +PKG_INSTALL:=1 +PKG_FIXUP:=autoreconf +PKG_BUILD_PARALLEL:=1 +PKG_LICENSE:=Apache-2.0 +PKG_LICENSE_FILES:=LICENSE + +PKG_MAINTAINER:=Jan Pavlinec + +include $(INCLUDE_DIR)/package.mk + +define Package/libmaxminddb + SECTION:=libs + CATEGORY:=Libraries + TITLE:=A library for working with MaxMind DB files + URL:=https://maxmind.github.io/libmaxminddb/ +endef + +define Package/libmaxminddb/description + The libmaxminddb library provides functions for working MaxMind DB files. +endef + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/ + $(INSTALL_DIR) $(1)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmaxminddb.{a,so*} $(1)/usr/lib/ +endef + +define Package/libmaxminddb/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mmdblookup $(1)/usr/bin/ + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmaxminddb.so* $(1)/usr/lib/ +endef + +$(eval $(call BuildPackage,libmaxminddb)) From ac31c353c80d79f9fabf9323b35c88c683e2c039 Mon Sep 17 00:00:00 2001 From: Jan Pavlinec Date: Mon, 14 Jan 2019 13:37:01 +0100 Subject: [PATCH 2/2] measurement-kit: add new package Signed-off-by: Jan Pavlinec --- libs/measurement-kit/Makefile | 53 +++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 libs/measurement-kit/Makefile diff --git a/libs/measurement-kit/Makefile b/libs/measurement-kit/Makefile new file mode 100644 index 000000000..56a5d53e6 --- /dev/null +++ b/libs/measurement-kit/Makefile @@ -0,0 +1,53 @@ +# +# Copyright (C) 2019 CZ.NIC z.s.p.o. (http://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:=measurement-kit +PKG_VERSION:=0.9.2 +PKG_RELEASE=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://codeload.github.com/measurement-kit/measurement-kit/tar.gz/v$(PKG_VERSION)? +PKG_HASH:=b8e2624ba496c47164f3c15d35bb5e0a6c0f5e03b603e60ed9769156b1c7d82d + +PKG_INSTALL:=1 +PKG_FIXUP:=autoreconf +PKG_BUILD_PARALLEL:=1 + +PKG_LICENSE:=BSD-2-Clause +PKG_LICENSE_FILES:=LICENSE + +PKG_MAINTAINER:=Jan Pavlinec + +include $(INCLUDE_DIR)/package.mk + +define Package/measurement-kit + SECTION:=libs + CATEGORY:=Libraries + TITLE:=C++14 library that implements open network measurement methodologies + URL:=https://measurement-kit.github.io/ + DEPENDS:=+libstdcpp +libcurl +libevent2-pthreads +libevent2-extra +libevent2-openssl +libevent2-core +libmaxminddb +ca-bundle +endef + +define Package/measurement-kit/description + Measurement Kit is a C++14 library that implements open network measurement methodologies (performance, censorship, etc.) +endef + +CONFIGURE_ARGS+= --with-ca-bundle=/etc/ssl/cert.pem + +define Build/Configure + ( cd $(PKG_BUILD_DIR); ./autogen.sh ) + $(call Build/Configure/Default) +endef + +define Package/measurement-kit/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/measurement_kit $(1)/usr/bin/ +endef + +$(eval $(call BuildPackage,measurement-kit))