Skip to content

Commit

Permalink
Merge Official Source
Browse files Browse the repository at this point in the history
Signed-off-by: Tianling Shen <[email protected]>
  • Loading branch information
1715173329 committed Nov 11, 2024
2 parents 3871024 + ca503cc commit 36c63c3
Show file tree
Hide file tree
Showing 28 changed files with 195 additions and 111 deletions.
15 changes: 10 additions & 5 deletions admin/openwisp-config/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=openwisp-config
PKG_VERSION:=1.1.0
PKG_RELEASE:=1
PKG_RELEASE:=2

PKG_MAINTAINER:=Federico Capoano <[email protected]>
PKG_LICENSE:=GPL-3.0-or-later
Expand Down Expand Up @@ -38,23 +38,24 @@ endef

define Package/openwisp-config/conffiles
/etc/config/openwisp
/etc/openwisp/
endef

define Package/openwisp-config/install
$(INSTALL_DIR) \
$(1)/usr/sbin \
$(1)/etc/init.d \
$(1)/etc/config \
$(1)/etc/openwisp \
$(1)/usr/lib/openwisp-config \
$(1)/usr/lib/lua/openwisp

$(INSTALL_BIN) \
$(PKG_BUILD_DIR)/openwisp-config/files/openwisp.agent \
$(1)/usr/sbin/openwisp_config
$(1)/usr/sbin/openwisp-config

$(INSTALL_BIN) \
$(PKG_BUILD_DIR)/openwisp-config/files/openwisp.init \
$(1)/etc/init.d/openwisp_config
$(1)/etc/init.d/openwisp-config

$(INSTALL_CONF) $(PKG_BUILD_DIR)/openwisp-config/files/openwisp.config \
$(1)/etc/config/openwisp
Expand Down Expand Up @@ -95,7 +96,11 @@ define Package/openwisp-config/install
$(PKG_BUILD_DIR)/openwisp-config/files/sbin/openwisp-get-address.lua \
$(1)/usr/sbin/openwisp-get-address

$(CP) $(PKG_BUILD_DIR)/VERSION $(1)/etc/openwisp/
$(INSTALL_BIN) \
$(PKG_BUILD_DIR)/openwisp-config/files/sbin/openwisp-get-random-number.lua \
$(1)/usr/sbin/openwisp-get-random-number

$(CP) $(PKG_BUILD_DIR)/VERSION $(1)/usr/lib/openwisp-config/
endef

$(eval $(call BuildPackage,openwisp-config))
9 changes: 9 additions & 0 deletions admin/openwisp-monitoring/Config.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
menu "netjson-monitoring Configuration"

config NETJSON_MONITORING_IWINFO
bool "Enable rpcd-mod-iwinfo"
default y
help
Whether to include the rpcd-mod-iwinfo dependency (enabled by default).

endmenu
27 changes: 21 additions & 6 deletions admin/openwisp-monitoring/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=openwisp-monitoring
PKG_VERSION:=0.2.0
PKG_RELEASE:=1
PKG_RELEASE:=2

PKG_MAINTAINER:=Federico Capoano <[email protected]>
PKG_LICENSE:=GPL-3.0-or-later
Expand All @@ -30,14 +30,19 @@ define Package/openwisp-monitoring
endef

define Package/netjson-monitoring
TITLE:=NetJson Monitoring
TITLE:=NetJSON Monitoring
CATEGORY:=Administration
SECTION:=admin
SUBMENU:=openwisp
DEPENDS:=+libubus-lua +lua-cjson +rpcd +rpcd-mod-iwinfo
DEPENDS:=+libubus-lua +lua-cjson +rpcd
DEPENDS+=+NETJSON_MONITORING_IWINFO:rpcd-mod-iwinfo
URL:=http://openwisp.org
endef

define Package/netjson-monitoring/config
source "$(SOURCE)/Config.in"
endef

define Build/Compile
endef

Expand All @@ -50,7 +55,7 @@ define Package/netjson-monitoring/install
$(1)/usr/sbin \
$(1)/usr/libexec \
$(1)/usr/lib/lua/openwisp-monitoring \
$(1)/etc/openwisp-monitoring
$(1)/usr/lib/openwisp-monitoring

$(INSTALL_BIN) \
$(PKG_BUILD_DIR)/openwisp-monitoring/files/sbin/netjson-monitoring.lua \
Expand Down Expand Up @@ -88,7 +93,12 @@ define Package/netjson-monitoring/install
$(PKG_BUILD_DIR)/openwisp-monitoring/files/lib/openwisp-monitoring/wifi.lua \
$(1)/usr/lib/lua/openwisp-monitoring/wifi.lua

$(CP) $(PKG_BUILD_DIR)/VERSION $(1)/etc/openwisp-monitoring/
# Iwinfo is enabled by default unless specified otherwise
ifeq ($(CONFIG_NETJSON_MONITORING_IWINFO), y)
$(CP) $(PKG_BUILD_DIR)/openwisp-monitoring/files/lib/openwisp-monitoring/iwinfo.lua $(1)/usr/lib/lua/openwisp-monitoring/iwinfo.lua
endif

$(CP) $(PKG_BUILD_DIR)/VERSION $(1)/usr/lib/openwisp-monitoring/

endef

Expand All @@ -97,7 +107,8 @@ define Package/openwisp-monitoring/install
$(1)/usr/sbin \
$(1)/etc/init.d \
$(1)/etc/config \
$(1)/etc/openwisp-monitoring
$(1)/usr/lib/openwisp-monitoring \
$(1)/etc/hotplug.d/openwisp

$(INSTALL_BIN) \
$(PKG_BUILD_DIR)/openwisp-monitoring/files/monitoring.agent \
Expand All @@ -107,6 +118,10 @@ define Package/openwisp-monitoring/install
$(PKG_BUILD_DIR)/openwisp-monitoring/files/monitoring.init \
$(1)/etc/init.d/openwisp-monitoring

$(INSTALL_BIN) \
$(PKG_BUILD_DIR)/openwisp-monitoring/files/openwisp-monitoring.hotplug \
$(1)/etc/hotplug.d/openwisp/openwisp-monitoring

$(INSTALL_CONF) \
$(PKG_BUILD_DIR)/openwisp-monitoring/files/monitoring.config \
$(1)/etc/config/openwisp-monitoring
Expand Down
8 changes: 4 additions & 4 deletions lang/lua-eco/Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=lua-eco
PKG_VERSION:=3.6.0
PKG_VERSION:=3.6.1
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL=https://github.com/zhaojh329/lua-eco/releases/download/v$(PKG_VERSION)
PKG_HASH:=0fdcd8eb9e93f2d1f0ff2132298faae2e13a8bfd676bd91db4d53e48917d6a74
PKG_HASH:=8bfd5a85a699c0ff1ba760e121f3955e817a66335be6587ef930ec61638e5ae3

PKG_MAINTAINER:=Jianhui Zhao <[email protected]>
PKG_LICENSE:=MIT
Expand Down Expand Up @@ -98,11 +98,11 @@ define Package/lua-eco/install
$(INSTALL_DIR) $(1)/usr/bin $(1)/usr/local/lib/lua/5.3/eco/core \
$(1)/usr/lib $(1)/usr/local/lib/lua/5.3/eco/encoding
$(INSTALL_BIN) $(PKG_BUILD_DIR)/eco $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/libeco.so $(1)/usr/lib
$(INSTALL_BIN) $(PKG_BUILD_DIR)/libeco.so* $(1)/usr/lib
$(INSTALL_BIN) $(PKG_BUILD_DIR)/bufio.so $(1)/usr/local/lib/lua/5.3/eco
$(INSTALL_DATA) $(PKG_BUILD_DIR)/hex.lua $(1)/usr/local/lib/lua/5.3/eco/encoding
$(INSTALL_BIN) $(PKG_BUILD_DIR)/{time,bufio,sys,file}.so $(1)/usr/local/lib/lua/5.3/eco/core
$(INSTALL_DATA) $(PKG_BUILD_DIR)/{time,sys,file,sync}.lua $(1)/usr/local/lib/lua/5.3/eco
$(INSTALL_DATA) $(PKG_BUILD_DIR)/{time,sys,file,sync,channel}.lua $(1)/usr/local/lib/lua/5.3/eco
endef

define Package/lua-eco-log/install
Expand Down
6 changes: 3 additions & 3 deletions lang/luajit2/Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=luajit2
PKG_SOURCE_DATE:=2024-08-15
PKG_SOURCE_DATE:=2024-11-04
PKG_VERSION:=2.1.$(subst -,.,$(PKG_SOURCE_DATE))
PKG_RELEASE:=1

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/openresty/luajit2
PKG_SOURCE_VERSION:=33d6b04681d2f079a6d013988a426a841c52e29e
PKG_MIRROR_HASH:=cb6687203153fd6b2f730e899728a911f8b7094f296cc11ca0f2b20ce849f952
PKG_SOURCE_VERSION:=24d0c668883b65b13c8b5357805c6d4113e0ba6a
PKG_MIRROR_HASH:=d4e2743d7e92be51b1773fba997564a5b229f1b1cb2f3863bb7e27d4fd8a5cdb

PKG_MAINTAINER:=Javier Marcet <[email protected]>
PKG_LICENSE:=MIT
Expand Down
25 changes: 25 additions & 0 deletions lang/node/patches/999-fix_building_with_system_icu_76.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
From 54299ac3a3d4e4520b8604dce43c2584092ccde2 Mon Sep 17 00:00:00 2001
From: Michael Cho <[email protected]>
Date: Sun, 27 Oct 2024 10:08:07 -0400
Subject: [PATCH] build: fix building with system icu 76

ICU 76 decided to reduce overlinking[^1] thus `icu-i18n` will no longer
add `icu-uc` when linking to shared libraries. This results in undefined
symbols/references when trying to build with system ICU 76.

[^1]: unicode-org/icu@199bc82
---
configure.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- a/configure.py
+++ b/configure.py
@@ -1829,7 +1829,7 @@ def configure_intl(o):
elif with_intl == 'system-icu':
# ICU from pkg-config.
o['variables']['v8_enable_i18n_support'] = 1
- pkgicu = pkg_config('icu-i18n')
+ pkgicu = pkg_config(['icu-i18n', 'icu-uc'])
if not pkgicu[0]:
error('''Could not load pkg-config data for "icu-i18n".
See above errors or the README.md.''')
2 changes: 1 addition & 1 deletion lang/python/python3-version.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# Note: keep in sync with setuptools & pip
PYTHON3_VERSION_MAJOR:=3
PYTHON3_VERSION_MINOR:=11
PYTHON3_VERSION_MICRO:=9
PYTHON3_VERSION_MICRO:=10

PYTHON3_VERSION:=$(PYTHON3_VERSION_MAJOR).$(PYTHON3_VERSION_MINOR)

Expand Down
4 changes: 2 additions & 2 deletions lang/python/python3/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ include $(TOPDIR)/rules.mk
include ../python3-version.mk

PKG_NAME:=python3
PKG_RELEASE:=2
PKG_RELEASE:=1
PKG_VERSION:=$(PYTHON3_VERSION).$(PYTHON3_VERSION_MICRO)

PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://www.python.org/ftp/python/$(PKG_VERSION)
PKG_HASH:=9b1e896523fc510691126c864406d9360a3d1e986acbda59cda57b5abda45b87
PKG_HASH:=07a4356e912900e61a15cb0949a06c4a05012e213ecd6b4e84d0f67aabbee372

PKG_MAINTAINER:=Jeffery To <[email protected]>
PKG_LICENSE:=Python-2.0.1 0BSD
Expand Down
4 changes: 2 additions & 2 deletions libs/icu/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=icu4c
MAJOR_VERSION:=75
MAJOR_VERSION:=76
MINOR_VERSION:=1
PKG_VERSION:=$(MAJOR_VERSION).$(MINOR_VERSION)
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(MAJOR_VERSION)_$(MINOR_VERSION)-src.tgz
PKG_SOURCE_URL:=https://github.com/unicode-org/icu/releases/download/release-$(MAJOR_VERSION)-$(MINOR_VERSION)
PKG_HASH:=cb968df3e4d2e87e8b11c49a5d01c787bd13b9545280fc6642f826527618caef
PKG_HASH:=dfacb46bfe4747410472ce3e1144bf28a102feeaa4e3875bac9b4c6cf30f4f3e

PKG_LICENSE:=ICU
PKG_LICENSE_FILES:=LICENSE
Expand Down
2 changes: 1 addition & 1 deletion libs/icu/patches/001-change_optimization_option.patch
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- a/runConfigureICU
+++ b/runConfigureICU
@@ -255,8 +255,8 @@ case $platform in
@@ -254,8 +254,8 @@ case $platform in
THE_COMP="the GNU C++"
CC=gcc; export CC
CXX=g++; export CXX
Expand Down
2 changes: 1 addition & 1 deletion libs/icu/patches/010-max_align_t.patch
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
if (ut == nullptr) {
--- a/tools/toolutil/toolutil.cpp
+++ b/tools/toolutil/toolutil.cpp
@@ -267,7 +267,7 @@ struct UToolMemory {
@@ -337,7 +337,7 @@ struct UToolMemory {
char name[64];
int32_t capacity, maxCapacity, size, idx;
void *array;
Expand Down
3 changes: 2 additions & 1 deletion libs/libgcrypt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,14 @@ CONFIGURE_ARGS += \
TARGET_CFLAGS += $(FPIC)

define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/bin $(2)/bin $(1)/usr/include $(1)/usr/lib $(1)/usr/share/aclocal
$(INSTALL_DIR) $(1)/usr/bin $(2)/bin $(1)/usr/include $(1)/usr/lib/pkgconfig $(1)/usr/share/aclocal
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/libgcrypt-config $(1)/usr/bin/
$(CP) $(PKG_INSTALL_DIR)/usr/include/gcrypt*.h $(1)/usr/include/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgcrypt.{la,a,so*} $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/share/aclocal/libgcrypt.m4 $(1)/usr/share/aclocal/
$(SED) 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' $(1)/usr/bin/libgcrypt-config
$(LN) ../../usr/bin/libgcrypt-config $(2)/bin/libgcrypt-config
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc $(1)/usr/lib/pkgconfig
endef

define Package/libgcrypt/install
Expand Down
2 changes: 1 addition & 1 deletion mail/pigeonhole/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=dovecot-pigeonhole
PKG_VERSION_PLUGIN:=0.5.21
PKG_VERSION_DOVECOT:=$(shell make --no-print-directory -C ../dovecot/ val.PKG_VERSION V=s)
PKG_VERSION:=$(PKG_VERSION_DOVECOT)-$(PKG_VERSION_PLUGIN)
PKG_VERSION:=$(PKG_VERSION_DOVECOT).$(PKG_VERSION_PLUGIN)
PKG_RELEASE:=1

DOVECOT_VERSION:=2.3
Expand Down
2 changes: 1 addition & 1 deletion net/atlas-probe/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=atlas-probe
PKG_VERSION:=2.6.3
PKG_RELEASE:=2
PKG_RELEASE:=3

PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=$(PKG_VERSION)
Expand Down
10 changes: 10 additions & 0 deletions net/atlas-probe/patches/020-gcc14.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- a/networking/telnetd.c
+++ b/networking/telnetd.c
@@ -133,6 +133,7 @@
#include <string.h>
#include <unistd.h>
#include <linux/reboot.h>
+#include <sys/reboot.h>

#define LOGIN_PREFIX "Atlas probe, see http://atlas.ripe.net/\r\n\r\n"
#define LOGIN_PROMPT " login: "
4 changes: 2 additions & 2 deletions net/croc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=croc
PKG_VERSION:=10.0.13
PKG_VERSION:=10.1.0
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/schollz/croc/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=69a7e60811b97d3f6e2ceac4d24fc52596ec8982039811fb5894ef78f2dedc77
PKG_HASH:=0968f28c0d46ff181173ae1613aea5c55757384e3c1358917f78bf0ce595d151

PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE
Expand Down
Loading

0 comments on commit 36c63c3

Please sign in to comment.