Upload Modules

This commit is contained in:
mxd
2026-05-17 11:34:54 +08:00
commit 9f28fed00a
171 changed files with 53743 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
ngx_addon_name=ngx_http_limit_req_rw_module
ngx_module_type=HTTP
ngx_module_name=ngx_http_limit_req_rw_module
ngx_module_srcs="$ngx_addon_dir/ngx_http_limit_req_rw_module.c"
# Detect platform
OS_NAME="$(uname -s)"
# Default values
MSGPACK_PKG_NAME=""
MSGPACK_VERSION=""
# Try to detect msgpack library
if pkg-config --exists 'msgpack-c'; then
MSGPACK_PKG_NAME="msgpack-c"
MSGPACK_VERSION="6.1.0" # Optional: only enforce version if strictly necessary
elif pkg-config --exists 'msgpack'; then
MSGPACK_PKG_NAME="msgpack"
MSGPACK_VERSION="3.1.0"
else
echo "Error: Neither 'msgpack-c' nor 'msgpack' pkg-config package found."
exit 1
fi
# Add flags
CFLAGS="$CFLAGS $(pkg-config --cflags "$MSGPACK_PKG_NAME")"
LDFLAGS="$LDFLAGS $(pkg-config --libs "$MSGPACK_PKG_NAME")"
CORE_LIBS="$CORE_LIBS $(pkg-config --libs "$MSGPACK_PKG_NAME")"
. auto/module