From 82abef659be153290edce111f2840bedd5f29db4 Mon Sep 17 00:00:00 2001 From: LEAN-ESX Date: Fri, 25 Oct 2019 07:21:06 -0700 Subject: [PATCH] python3: add new packages --- libs/libmaxminddb/Makefile | 53 ++++++++++++++++++++++++++++++++++++++ libs/oniguruma/Makefile | 53 ++++++++++++++++++++++++++++++++++++++ net/obfsproxy/Makefile | 26 +++++++++++-------- 3 files changed, 121 insertions(+), 11 deletions(-) create mode 100644 libs/libmaxminddb/Makefile create mode 100644 libs/oniguruma/Makefile diff --git a/libs/libmaxminddb/Makefile b/libs/libmaxminddb/Makefile new file mode 100644 index 00000000..72cbaff3 --- /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)) diff --git a/libs/oniguruma/Makefile b/libs/oniguruma/Makefile new file mode 100644 index 00000000..f782705b --- /dev/null +++ b/libs/oniguruma/Makefile @@ -0,0 +1,53 @@ +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=oniguruma +PKG_VERSION:=6.9.3 +PKG_RELEASE:=1 + +PKG_SOURCE:=onig-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://codeload.github.com/kkos/oniguruma/tar.gz/v$(PKG_VERSION)? +PKG_HASH:=dc6dec742941e24b761cea1b9a2f12e750879107ae69fd80ae1046459d4fb1db + +PKG_MAINTAINER:=Eneas U de Queiroz +PKG_LICENSE:=BSD-2-Clause +PKG_LICENSE_FILES:=COPYING +PKG_CPE_ID:=cpe:/a:oniguruma_project:oniguruma + +PKG_INSTALL:=1 +PKG_FIXUP:=autoreconf + +include $(INCLUDE_DIR)/package.mk + +define Package/oniguruma + SECTION:=libs + CATEGORY:=Libraries + TITLE:=Regular expression library for different character encodings + URL:=https://github.com/kkos/oniguruma + ABI_VERSION:=5 +endef + +define Package/oniguruma/description + Oniguruma is a modern and flexible regular expressions library. + It encompasses features from different regular expression implementations that + traditionally exist in different languages. + + Character encoding can be specified per regular expression object. +endef + +define Package/oniguruma/install + $(INSTALL_DIR) $(1)/usr/lib + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libonig.so.$(ABI_VERSION) $(1)/usr/lib/ +endef + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/{include,lib} + $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/ + $(SED) 's,/usr,$(STAGING_DIR)/usr,g' $(1)/usr/lib/pkgconfig/oniguruma.pc +endef + +$(eval $(call BuildPackage,oniguruma)) diff --git a/net/obfsproxy/Makefile b/net/obfsproxy/Makefile index fbf308e4..cca8f2b7 100644 --- a/net/obfsproxy/Makefile +++ b/net/obfsproxy/Makefile @@ -9,10 +9,10 @@ include $(TOPDIR)/rules.mk PKG_NAME:=obfsproxy PKG_VERSION:=0.2.13 -PKG_RELEASE:=1 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz -PKG_SOURCE_URL:=https://pypi.python.org/packages/source/o/obfsproxy +PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/o/obfsproxy PKG_HASH:=1e26c2faef1cfcf856ddf60e9647058a7c78fb0d47f05b58a0f847ed7cc41a66 PKG_LICENSE:=BSD-3-Clause @@ -23,11 +23,18 @@ include $(INCLUDE_DIR)/package.mk include ../../lang/python/python-package.mk define Package/obfsproxy - SECTION:=net - CATEGORY:=Network - TITLE:=A pluggable transport proxy written in Python - URL:=https://www.torproject.org/projects/obfsproxy.html.en - DEPENDS:=+python-light +python-crypto +python-pyptlib +python-setuptools +python-yaml +twisted + SECTION:=net + CATEGORY:=Network + TITLE:=A pluggable transport proxy written in Python + URL:=https://gitweb.torproject.org/pluggable-transports/obfsproxy.git/ + DEPENDS:= \ + +python-light \ + +python-crypto \ + +python-pyptlib \ + +python-setuptools \ + +python-twisted \ + +python-yaml + VARIANT:=python endef define Package/obfsproxy/description @@ -42,10 +49,6 @@ define Package/obfsproxy/conffiles /etc/config/obfsproxy endef -define Build/Compile - $(call Build/Compile/PyMod,,install --prefix="/usr" --root="$(PKG_INSTALL_DIR)") -endef - define PyPackage/obfsproxy/install $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/obfsproxy $(1)/usr/bin/ @@ -57,3 +60,4 @@ endef $(eval $(call PyPackage,obfsproxy)) $(eval $(call BuildPackage,obfsproxy)) +$(eval $(call BuildPackage,obfsproxy-src))