Skip to content

Commit b5942a3

Browse files
committed
upgrade maxmind/libmaxminddb to 1.11.0
1 parent a0b919d commit b5942a3

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
package = "lua-resty-maxminddb"
2+
version = "1.3.4-1"
3+
supported_platforms = {"linux", "macosx"}
4+
5+
source = {
6+
url = "git://github.com/anjia0532/lua-resty-maxminddb",
7+
tag = "v1.3.4"
8+
}
9+
10+
description = {
11+
summary = "About A Lua library for reading MaxMind's Geolocation database",
12+
detailed = [[
13+
lua-resty-maxminddb - A Lua library for reading MaxMind's Geolocation database format (aka mmdb or geoip2).
14+
]],
15+
homepage = "https://github.com/anjia0532/lua-resty-maxminddb",
16+
license = "Apache License 2.0"
17+
}
18+
dependencies = {
19+
"lua >= 5.1, < 5.2"
20+
-- If you depend on other rocks, add them here
21+
}
22+
build = {
23+
type = "command",
24+
build_command = [[
25+
wget -O libmaxminddb-1.11.0.tar.gz \
26+
https://github.com/maxmind/libmaxminddb/releases/download/1.11.0/libmaxminddb-1.11.0.tar.gz && \
27+
tar zxf libmaxminddb-1.11.0.tar.gz && \
28+
cd libmaxminddb-1.11.0 && \
29+
./configure && \
30+
$(MAKE) -j && \
31+
$(MAKE) check
32+
]],
33+
install = {
34+
lua = {
35+
["resty.maxminddb"] = "lib/resty/maxminddb.lua",
36+
},
37+
lib = {
38+
["libmaxminddb.so"] = "libmaxminddb-1.11.0/src/.libs/libmaxminddb.so.0.0.7",
39+
["libmaxminddb.so.0 "] = "libmaxminddb-1.11.0/src/.libs/libmaxminddb.so.0.0.7",
40+
["libmaxminddb.so.0.0.7"] = "libmaxminddb-1.11.0/src/.libs/libmaxminddb.so.0.0.7",
41+
},
42+
},
43+
install_command = "cd libmaxminddb-1.11.0 && $(MAKE) install"
44+
}

0 commit comments

Comments
 (0)