mirror of
https://github.com/kenzok8/small-package
synced 2025-01-07 07:06:58 +08:00
update 2024-12-20 04:21:37
This commit is contained in:
parent
a7b6ff9335
commit
d58fc0c7d7
@ -91,9 +91,6 @@ else ()
|
|||||||
message(STATUS "AddressSanitizer is disabled.")
|
message(STATUS "AddressSanitizer is disabled.")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ffunction-sections -fdata-sections")
|
|
||||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-gc-sections")
|
|
||||||
|
|
||||||
if (UA2F_CUSTOM_USER_AGENT)
|
if (UA2F_CUSTOM_USER_AGENT)
|
||||||
if (NOT UA2F_USER_AGENT_STRING)
|
if (NOT UA2F_USER_AGENT_STRING)
|
||||||
message(FATAL_ERROR "UA2F_USER_AGENT_STRING is not set")
|
message(FATAL_ERROR "UA2F_USER_AGENT_STRING is not set")
|
||||||
@ -154,7 +151,6 @@ if (UA2F_BUILD_TESTS)
|
|||||||
test/cache_test.cc
|
test/cache_test.cc
|
||||||
src/util.c
|
src/util.c
|
||||||
src/cache.c
|
src/cache.c
|
||||||
src/cli.c
|
|
||||||
)
|
)
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
ua2f_test
|
ua2f_test
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=UA2F
|
PKG_NAME:=UA2F
|
||||||
PKG_VERSION:=4.9.5
|
PKG_VERSION:=4.9.6
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_LICENSE:=GPL-3.0-only
|
PKG_LICENSE:=GPL-3.0-only
|
||||||
|
@ -1,12 +1,11 @@
|
|||||||
#include "cli.h"
|
#include "cli.h"
|
||||||
#include "handler.h"
|
#include "handler.h"
|
||||||
#include "statistics.h"
|
#include "statistics.h"
|
||||||
#include "third/nfqueue-mnl.h"
|
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
#ifdef UA2F_ENABLE_UCI
|
#ifdef UA2F_ENABLE_UCI
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
#include "third/nfqueue-mnl.h"
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
@ -1066,7 +1066,7 @@ end
|
|||||||
function get_version()
|
function get_version()
|
||||||
local version = sys.exec("opkg list-installed luci-app-passwall 2>/dev/null | awk '{print $3}'")
|
local version = sys.exec("opkg list-installed luci-app-passwall 2>/dev/null | awk '{print $3}'")
|
||||||
if not version or #version == 0 then
|
if not version or #version == 0 then
|
||||||
version = sys.exec("apk info luci-app-passwall 2>/dev/null | awk 'NR == 1 {print $1}' | cut -d'-' -f4-")
|
version = sys.exec("apk info -L luci-app-passwall 2>/dev/null | awk 'NR == 1 {print $1}' | cut -d'-' -f4-")
|
||||||
end
|
end
|
||||||
return version or ""
|
return version or ""
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user