This commit is contained in:
parent
ad5c9f8bd7
commit
4437538629
@ -3,7 +3,7 @@ haproxy:
|
||||
enabled: true
|
||||
pkgs:
|
||||
- haproxy
|
||||
- liblua5.3-dev
|
||||
- liblua5.4-dev
|
||||
- lua-filesystem
|
||||
- lua-socket
|
||||
- libcurl4-openssl-dev
|
||||
|
@ -4,7 +4,7 @@
|
||||
for i in $(ls *.c)
|
||||
do
|
||||
basename=$(echo ${i}|awk -F '.' '{ print $1}')
|
||||
sudo -u haproxy cc -I/usr/include/ -I/usr/include/lua5.3/ -fPIC -shared -o ${basename}.so ${i} -lcurl -ljansson -lmaxminddb
|
||||
sudo -u haproxy cc -I/usr/include/ -I/usr/include/lua5.4/ -fPIC -shared -o ${basename}.so ${i} -lcurl -ljansson -lmaxminddb
|
||||
done
|
||||
*/
|
||||
|
||||
@ -13,8 +13,8 @@ done
|
||||
#include <sys/socket.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <lua5.3/lua.h>
|
||||
#include <lua5.3/lauxlib.h>
|
||||
#include <lua5.4/lua.h>
|
||||
#include <lua5.4/lauxlib.h>
|
||||
#include <curl/curl.h>
|
||||
#include <maxminddb.h>
|
||||
#include <jansson.h>
|
||||
|
@ -3,7 +3,7 @@ local lfs = require("lfs")
|
||||
local modpath = "/etc/haproxy/mods"
|
||||
|
||||
local compile = {}
|
||||
local lua_version = "5.3"
|
||||
local lua_version = "5.4"
|
||||
local user = "haproxy"
|
||||
local group = "haproxy"
|
||||
local libs = {"-ljansson", "-lmaxminddb", "-lcurl"}
|
||||
|
Loading…
Reference in New Issue
Block a user