├── Makefile └── README.md /Makefile: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-only 2 | # 3 | # Copyright (C) 2020 jerryk 4 | # Copyright (C) 2021 ImmortalWrt.org 5 | 6 | include $(TOPDIR)/rules.mk 7 | 8 | PKG_NAME:=lua-maxminddb 9 | PKG_VERSION:=0.2 10 | PKG_RELEASE:=$(AUTORELEASE) 11 | 12 | PKG_SOURCE_PROTO:=git 13 | PKG_SOURCE_URL:=https://github.com/fabled/lua-maxminddb.git 14 | PKG_SOURCE_DATE:=2019-03-14 15 | PKG_SOURCE_VERSION:=93da9f4e6c814c3a23044dd2cdd22d4a6b4f665b 16 | PKG_MIRROR_HASH:=b99ef18516b705b3e73b15a9d5ddc99add359299b52639fe3c81dd761591d9d9 17 | 18 | PKG_LICENSE:=MIT 19 | PKG_LICENSE_FILE:=LICENSE 20 | PKG_MAINTAINER:=fabled 21 | 22 | PKG_BUILD_PARALLEL:=1 23 | 24 | include $(INCLUDE_DIR)/package.mk 25 | 26 | define Package/lua-maxminddb 27 | SUBMENU:=Lua 28 | SECTION:=lang 29 | CATEGORY:=Languages 30 | TITLE:=libmaxminddb bindings for lua 31 | URL:=https://github.com/jerrykuku/lua-maxminddb 32 | DEPENDS:=+lua +libmaxminddb 33 | endef 34 | 35 | TARGET_CFLAGS += $(FPIC) 36 | 37 | MAKE_VARS += LUA_PKG=lua 38 | 39 | define Package/lua-maxminddb/install 40 | $(INSTALL_DIR) $(1)/usr/lib/lua 41 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/maxminddb.so $(1)/usr/lib/lua/ 42 | endef 43 | 44 | $(eval $(call BuildPackage,lua-maxminddb)) 45 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # MaxMind DB Reader for Lua 2 | 3 | Embed in openwrt 4 | --------------------------------------------------------------------------------