Community maintained packages for ImmortalWrt.
Revision | c7f6c835d0dbbbe4674b295c15f69481822607da (tree) |
---|---|
Time | 2022-12-06 02:07:06 |
Author | Tianling Shen <cnsztl@immo...> |
Commiter | Tianling Shen |
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
@@ -6,7 +6,7 @@ | ||
6 | 6 | include $(TOPDIR)/rules.mk |
7 | 7 | |
8 | 8 | PKG_NAME:=php |
9 | -PKG_VERSION:=7.4.32 | |
9 | +PKG_VERSION:=7.4.33 | |
10 | 10 | PKG_RELEASE:=1 |
11 | 11 | |
12 | 12 | PKG_MAINTAINER:=Michael Heimpold <mhei@heimpold.de> |
@@ -16,7 +16,7 @@ PKG_CPE_ID:=cpe:/a:php:php | ||
16 | 16 | |
17 | 17 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz |
18 | 18 | PKG_SOURCE_URL:=http://www.php.net/distributions/ |
19 | -PKG_HASH:=323332c991e8ef30b1d219cb10f5e30f11b5f319ce4c6642a5470d75ade7864a | |
19 | +PKG_HASH:=924846abf93bc613815c55dd3f5809377813ac62a9ec4eb3778675b82a27b927 | |
20 | 20 | |
21 | 21 | PKG_BUILD_PARALLEL:=1 |
22 | 22 | PKG_USE_MIPS16:=0 |
@@ -6,7 +6,7 @@ | ||
6 | 6 | include $(TOPDIR)/rules.mk |
7 | 7 | |
8 | 8 | PKG_NAME:=php |
9 | -PKG_VERSION:=8.0.24 | |
9 | +PKG_VERSION:=8.0.25 | |
10 | 10 | PKG_RELEASE:=1 |
11 | 11 | |
12 | 12 | PKG_MAINTAINER:=Michael Heimpold <mhei@heimpold.de> |
@@ -16,7 +16,7 @@ PKG_CPE_ID:=cpe:/a:php:php | ||
16 | 16 | |
17 | 17 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz |
18 | 18 | PKG_SOURCE_URL:=http://www.php.net/distributions/ |
19 | -PKG_HASH:=8e6a63ac9cdabe4c345b32a54b18f348d9e50a1decda217faf2d61278d22f08b | |
19 | +PKG_HASH:=a291b71d0498707fc5514eb5b9513e88f0f1d4890bcdefd67282ded8a2bfb941 | |
20 | 20 | |
21 | 21 | PKG_BUILD_PARALLEL:=1 |
22 | 22 | PKG_USE_MIPS16:=0 |
@@ -8,28 +8,29 @@ | ||
8 | 8 | include $(TOPDIR)/rules.mk |
9 | 9 | |
10 | 10 | PKG_NAME:=libmbim |
11 | -PKG_VERSION:=1.24.8 | |
12 | -PKG_RELEASE:=1 | |
11 | +PKG_SOURCE_VERSION:=1.26.4 | |
12 | +PKG_RELEASE:=$(AUTORELEASE) | |
13 | 13 | |
14 | -PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz | |
15 | -PKG_SOURCE_URL:=https://www.freedesktop.org/software/libmbim | |
16 | -PKG_HASH:=02590736163fff10e5732191fccc1b9920969616ddc59613a003052a116a3c25 | |
14 | +PKG_SOURCE_PROTO:=git | |
15 | +PKG_SOURCE_URL:=https://gitlab.freedesktop.org/mobile-broadband/libmbim.git | |
16 | +PKG_MIRROR_HASH:=4963f9135f8ad26165d969d0b2028b00d68243201113c94a2ebe22c4227058a4 | |
17 | 17 | |
18 | -PKG_MAINTAINER:=Nicholas Smith <nicholas.smith@telcoantennas.com.au> | |
18 | +PKG_MAINTAINER:=Nicholas Smith <nicholas@nbembedded.com> | |
19 | 19 | |
20 | 20 | PKG_INSTALL:=1 |
21 | -PKG_BUILD_PARALLEL:=1 | |
22 | 21 | |
23 | 22 | include $(INCLUDE_DIR)/package.mk |
24 | 23 | include $(INCLUDE_DIR)/nls.mk |
24 | +include ../../devel/meson/meson.mk | |
25 | 25 | |
26 | -CONFIGURE_ARGS += \ | |
27 | - --disable-static \ | |
28 | - --disable-gtk-doc \ | |
29 | - --disable-gtk-doc-html \ | |
30 | - --disable-gtk-doc-pdf \ | |
31 | - --disable-silent-rules \ | |
32 | - --enable-more-warnings=yes | |
26 | +TARGET_CFLAGS += -ffunction-sections -fdata-sections -fno-merge-all-constants -fmerge-constants | |
27 | +TARGET_LDFLAGS += -Wl,--gc-sections | |
28 | + | |
29 | +MESON_ARGS += \ | |
30 | + -Dintrospection=false \ | |
31 | + -Dman=false \ | |
32 | + -Dbash_completion=false \ | |
33 | + -Db_lto=true | |
33 | 34 | |
34 | 35 | define Package/libmbim |
35 | 36 | SECTION:=libs |
@@ -56,10 +57,6 @@ define Package/mbim-utils | ||
56 | 57 | LICENSE_FILES:=COPYING |
57 | 58 | endef |
58 | 59 | |
59 | -CONFIGURE_ARGS += \ | |
60 | - --without-udev \ | |
61 | - --without-udev-base-dir | |
62 | - | |
63 | 60 | define Build/InstallDev |
64 | 61 | $(INSTALL_DIR) $(1)/usr/include |
65 | 62 | $(CP) \ |
@@ -78,11 +75,15 @@ define Build/InstallDev | ||
78 | 75 | endef |
79 | 76 | |
80 | 77 | define Package/libmbim/install |
81 | - $(INSTALL_DIR) $(1)/usr/lib | |
78 | + $(INSTALL_DIR) \ | |
79 | + $(1)/usr/lib \ | |
80 | + $(1)/usr/libexec | |
81 | + | |
82 | 82 | $(CP) \ |
83 | 83 | $(PKG_INSTALL_DIR)/usr/lib/libmbim*.so.* \ |
84 | 84 | $(1)/usr/lib/ |
85 | - $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/mbim-proxy $(1)/usr/lib/ | |
85 | + | |
86 | + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/libexec/mbim-proxy $(1)/usr/libexec/ | |
86 | 87 | endef |
87 | 88 | |
88 | 89 | define Package/mbim-utils/install |
@@ -13,4 +13,19 @@ config LIBQMI_WITH_QRTR_GLIB | ||
13 | 13 | help |
14 | 14 | Compile libqmi with QRTR support |
15 | 15 | |
16 | +choice | |
17 | + prompt "Select QMI message collection to build" | |
18 | + default LIBQMI_COLLECTION_BASIC | |
19 | + | |
20 | + config LIBQMI_COLLECTION_MINIMAL | |
21 | + depends on !MODEMMANAGER_WITH_QMI | |
22 | + bool "minimal" | |
23 | + | |
24 | + config LIBQMI_COLLECTION_BASIC | |
25 | + bool "basic (default)" | |
26 | + | |
27 | + config LIBQMI_COLLECTION_FULL | |
28 | + bool "full" | |
29 | +endchoice | |
30 | + | |
16 | 31 | endmenu |
@@ -8,20 +8,23 @@ | ||
8 | 8 | include $(TOPDIR)/rules.mk |
9 | 9 | |
10 | 10 | PKG_NAME:=libqmi |
11 | -PKG_VERSION:=1.28.8 | |
12 | -PKG_RELEASE:=1 | |
11 | +PKG_SOURCE_VERSION:=1.30.8 | |
12 | +PKG_RELEASE:=$(AUTORELEASE) | |
13 | 13 | |
14 | -PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz | |
15 | -PKG_SOURCE_URL:=https://www.freedesktop.org/software/libqmi | |
16 | -PKG_HASH:=6e3bbbd200bc1b64b23f6254fef9212f2699ec77cfb32075d2ba5079c73a9f78 | |
14 | +PKG_SOURCE_PROTO:=git | |
15 | +PKG_SOURCE_URL:=https://gitlab.freedesktop.org/mobile-broadband/libqmi.git | |
16 | +PKG_MIRROR_HASH:=a0fa33a89011bdb593f66fd0b674f2a7c31f87e43ffd7f3e9a515b00864c4a91 | |
17 | 17 | |
18 | 18 | PKG_MAINTAINER:=Nicholas Smith <nicholas@nbembedded.com> |
19 | 19 | |
20 | 20 | PKG_INSTALL:=1 |
21 | -PKG_BUILD_PARALLEL:=1 | |
22 | 21 | |
23 | 22 | include $(INCLUDE_DIR)/package.mk |
24 | 23 | include $(INCLUDE_DIR)/nls.mk |
24 | +include ../../devel/meson/meson.mk | |
25 | + | |
26 | +TARGET_CFLAGS += -ffunction-sections -fdata-sections -fno-merge-all-constants -fmerge-constants | |
27 | +TARGET_LDFLAGS += -Wl,--gc-sections | |
25 | 28 | |
26 | 29 | define Package/libqmi/config |
27 | 30 | source "$(SOURCE)/Config.in" |
@@ -59,28 +62,16 @@ define Package/libqmi-utils/description | ||
59 | 62 | Utils to talk to QMI enabled modems |
60 | 63 | endef |
61 | 64 | |
62 | -CONFIGURE_ARGS += \ | |
63 | - --disable-static \ | |
64 | - --disable-gtk-doc \ | |
65 | - --disable-gtk-doc-html \ | |
66 | - --disable-gtk-doc-pdf \ | |
67 | - --disable-silent-rules \ | |
68 | - --enable-firmware-update \ | |
69 | - --enable-more-warnings=yes \ | |
70 | - --without-udev \ | |
71 | - --without-udev-base-dir | |
72 | - | |
73 | -ifeq ($(CONFIG_LIBQMI_WITH_MBIM_QMUX),y) | |
74 | - CONFIGURE_ARGS += --enable-mbim-qmux | |
75 | -else | |
76 | - CONFIGURE_ARGS += --disable-mbim-qmux | |
77 | -endif | |
78 | - | |
79 | -ifeq ($(CONFIG_LIBQMI_WITH_QRTR_GLIB),y) | |
80 | - CONFIGURE_ARGS += --enable-qrtr | |
81 | -else | |
82 | - CONFIGURE_ARGS += --disable-qrtr | |
83 | -endif | |
65 | +MESON_ARGS += \ | |
66 | + -Dudev=false \ | |
67 | + -Dintrospection=false \ | |
68 | + -Dman=false \ | |
69 | + -Dbash_completion=false \ | |
70 | + -Db_lto=true \ | |
71 | + -Dmbim_qmux=$(if $(CONFIG_LIBQMI_WITH_MBIM_QMUX),true,false) \ | |
72 | + -Dqrtr=$(if $(CONFIG_LIBQMI_WITH_QRTR_GLIB),true,false) \ | |
73 | + -Dcollection=$(if $(CONFIG_LIBQMI_COLLECTION_MINIMAL),minimal\ | |
74 | + ,$(if $(CONFIG_LIBQMI_COLLECTION_BASIC),basic,full)) | |
84 | 75 | |
85 | 76 | define Build/InstallDev |
86 | 77 | $(INSTALL_DIR) $(1)/usr/include |
@@ -100,12 +91,15 @@ define Build/InstallDev | ||
100 | 91 | endef |
101 | 92 | |
102 | 93 | define Package/libqmi/install |
103 | - $(INSTALL_DIR) $(1)/usr/lib | |
94 | + $(INSTALL_DIR) \ | |
95 | + $(1)/usr/lib \ | |
96 | + $(1)/usr/libexec | |
97 | + | |
104 | 98 | $(CP) \ |
105 | 99 | $(PKG_INSTALL_DIR)/usr/lib/libqmi*.so.* \ |
106 | 100 | $(1)/usr/lib/ |
107 | 101 | |
108 | - $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/qmi-proxy $(1)/usr/lib/ | |
102 | + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/libexec/qmi-proxy $(1)/usr/libexec/ | |
109 | 103 | endef |
110 | 104 | |
111 | 105 | define Package/qmi-utils/install |
@@ -1,12 +1,12 @@ | ||
1 | 1 | include $(TOPDIR)/rules.mk |
2 | 2 | |
3 | 3 | PKG_NAME:=ariang |
4 | -PKG_VERSION:=1.2.4 | |
4 | +PKG_VERSION:=1.3.2 | |
5 | 5 | PKG_RELEASE:=$(AUTORELEASE) |
6 | 6 | |
7 | 7 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip |
8 | 8 | PKG_SOURCE_URL:=https://github.com/mayswind/AriaNg/releases/download/$(PKG_VERSION) |
9 | -PKG_HASH:=a72dc5d7640e864c2dd528c88db493a3056087412537e87c6c5a98141a482380 | |
9 | +PKG_HASH:=2186dacf57c9d1650e00084c0454f2227e910f3203d89c6190f547b40cac7243 | |
10 | 10 | UNPACK_CMD=unzip -q -d $(1) $(DL_DIR)/$(PKG_SOURCE) |
11 | 11 | |
12 | 12 | PKG_MAINTAINER:=Ansuel Smith <ansuelsmth@gmail.com> |
@@ -1,34 +1,41 @@ | ||
1 | -server.document-root = "/www" | |
1 | +### Documentation | |
2 | +# https://wiki.lighttpd.net/ | |
3 | +# | |
4 | +### Configuration Syntax | |
5 | +# https://wiki.lighttpd.net/Docs_Configuration | |
6 | +# | |
7 | +### Configuration Options | |
8 | +# https://wiki.lighttpd.net/Docs_ConfigurationOptions | |
9 | +# | |
10 | +### Configuration Variables (potentially used in /etc/lighttpd/conf.d/*.conf) | |
11 | +var.log_root = "/var/log/lighttpd/" | |
12 | +var.server_root = "/www/" | |
13 | +var.state_dir = "/var/run/" | |
14 | +var.home_dir = "/var/lib/lighttpd/" | |
15 | +var.conf_dir = "/etc/lighttpd" | |
16 | +var.vhosts_dir = server_root + "/vhosts" | |
17 | +var.cache_dir = "/var/cache/lighttpd" | |
18 | +var.socket_dir = home_dir + "/sockets" | |
19 | + | |
20 | +### OpenWRT lighttpd base configuration | |
21 | +server.document-root = server_root | |
2 | 22 | server.upload-dirs = ( "/tmp" ) |
3 | -server.errorlog = "/var/log/lighttpd/error.log" | |
4 | -server.pid-file = "/var/run/lighttpd.pid" | |
23 | +server.errorlog = log_root + "error.log" | |
24 | +server.pid-file = state_dir + "lighttpd.pid" | |
5 | 25 | server.username = "http" |
6 | 26 | server.groupname = "www-data" |
7 | 27 | |
28 | +# historical; preserved for compatibility; should have been disabled by default | |
8 | 29 | index-file.names = ( "index.php", "index.html", |
9 | 30 | "index.htm", "default.htm", |
10 | 31 | ) |
11 | 32 | |
12 | 33 | static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" ) |
13 | 34 | |
14 | -### Features | |
15 | -#https://redmine.lighttpd.net/projects/lighttpd/wiki/Server_feature-flagsDetails | |
16 | -server.feature-flags += ("server.graceful-shutdown-timeout" => 5) | |
17 | -#server.feature-flags += ("server.graceful-restart-bg" => "enable") | |
18 | - | |
19 | -### Options that are useful but not always necessary: | |
20 | -#server.chroot = "/" | |
21 | -#server.port = 81 | |
22 | -#server.bind = "localhost" | |
23 | -#server.tag = "lighttpd" | |
24 | -#server.errorlog-use-syslog = "enable" | |
25 | -#server.network-backend = "writev" | |
26 | - | |
27 | -### Use IPv6 if available | |
28 | -#include_shell "/usr/share/lighttpd/use-ipv6.pl" | |
29 | - | |
30 | -#dir-listing.encoding = "utf-8" | |
31 | -#dir-listing.activate = "enable" | |
32 | - | |
33 | 35 | include "/etc/lighttpd/mime.conf" |
34 | 36 | include "/etc/lighttpd/conf.d/*.conf" |
37 | + | |
38 | +### Customizations | |
39 | +# customizations should generally be placed in separate files such as | |
40 | +# /etc/lighttpd/conf.d/00_vars.conf # override variables for conf.d/*.conf | |
41 | +# /etc/lighttpd/conf.d/zz_custom.conf # override other conf.d/*.conf settings |
@@ -8,18 +8,20 @@ USE_PROCD=1 | ||
8 | 8 | PROG=/usr/sbin/lighttpd |
9 | 9 | |
10 | 10 | validate_conf() { |
11 | - $PROG -tt -f /etc/lighttpd/lighttpd.conf >/dev/null 2>&1 || { | |
12 | - echo "validation failed" | |
11 | + $PROG -tt -f /etc/lighttpd/lighttpd.conf >/dev/null || { | |
12 | + echo 1>&2 "lighttpd.conf validation failed" | |
13 | 13 | return 1 |
14 | 14 | } |
15 | 15 | } |
16 | 16 | |
17 | 17 | start_service() { |
18 | 18 | user_exists http || user_add http |
19 | - [ -d /var/log/lighttpd ] || { | |
20 | - mkdir -m 0775 -p /var/log/lighttpd | |
21 | - chgrp www-data /var/log/lighttpd | |
22 | - } | |
19 | + for i in /var/log/lighttpd /var/lib/lighttpd /var/cache/lighttpd; do | |
20 | + [ -d "$i" ] || { | |
21 | + mkdir -m 0775 -p "$i" | |
22 | + chgrp www-data "$i" | |
23 | + } | |
24 | + done | |
23 | 25 | |
24 | 26 | validate_conf || exit 1 |
25 | 27 |
@@ -34,6 +36,7 @@ service_triggers() { | ||
34 | 36 | } |
35 | 37 | |
36 | 38 | reload_service() { |
39 | + validate_conf || exit 1 | |
37 | 40 | # lighttpd graceful restart (SIGUSR1) |
38 | 41 | procd_send_signal lighttpd '*' USR1 |
39 | 42 | } |
@@ -8,15 +8,15 @@ | ||
8 | 8 | include $(TOPDIR)/rules.mk |
9 | 9 | |
10 | 10 | PKG_NAME:=modemmanager |
11 | -PKG_VERSION:=1.16.6 | |
12 | -PKG_RELEASE:=1 | |
11 | +PKG_VERSION:=1.18.12 | |
12 | +PKG_RELEASE:=$(AUTORELEASE) | |
13 | 13 | |
14 | 14 | PKG_SOURCE:=ModemManager-$(PKG_VERSION).tar.xz |
15 | 15 | PKG_SOURCE_URL:=https://www.freedesktop.org/software/ModemManager |
16 | -PKG_HASH:=2a90b6260f66d3135609d62667ada73416694d717e7fd9b73223e3703a499617 | |
16 | +PKG_HASH:=b464e4925d955a6ca86dd08616e763b26ae46d7fd37dbe281678e34065b1e430 | |
17 | 17 | PKG_BUILD_DIR:=$(BUILD_DIR)/ModemManager-$(PKG_VERSION) |
18 | 18 | |
19 | -PKG_MAINTAINER:=Nicholas Smith <nicholas.smith@telcoantennas.com.au> | |
19 | +PKG_MAINTAINER:=Nicholas Smith <nicholas@nbembedded.com> | |
20 | 20 | PKG_LICENSE:=GPL-2.0-or-later |
21 | 21 | PKG_LICENSE_FILES:=COPYING |
22 | 22 |
@@ -98,6 +98,7 @@ define Package/modemmanager/install | ||
98 | 98 | |
99 | 99 | $(INSTALL_DIR) $(1)/usr/sbin |
100 | 100 | $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ModemManager $(1)/usr/sbin |
101 | + $(INSTALL_BIN) ./files/usr/sbin/ModemManager-wrapper $(1)/usr/sbin | |
101 | 102 | |
102 | 103 | $(INSTALL_DIR) $(1)/usr/bin |
103 | 104 | $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mmcli $(1)/usr/bin |
@@ -109,6 +110,9 @@ define Package/modemmanager/install | ||
109 | 110 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/ModemManager/libmm-shared-*.so* $(1)/usr/lib/ModemManager |
110 | 111 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/ModemManager/libmm-plugin-*.so* $(1)/usr/lib/ModemManager |
111 | 112 | |
113 | + $(INSTALL_DIR) $(1)/usr/lib/ModemManager/connection.d | |
114 | + $(INSTALL_BIN) ./files/10-report-down $(1)/usr/lib/ModemManager/connection.d | |
115 | + | |
112 | 116 | $(INSTALL_DIR) $(1)/etc/dbus-1/system.d |
113 | 117 | $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/dbus-1/system.d/org.freedesktop.ModemManager1.conf $(1)/etc/dbus-1/system.d |
114 | 118 |
@@ -119,6 +123,9 @@ define Package/modemmanager/install | ||
119 | 123 | $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/ModemManager/*.conf $(1)/usr/share/ModemManager |
120 | 124 | $(INSTALL_DATA) ./files/modemmanager.common $(1)/usr/share/ModemManager |
121 | 125 | |
126 | + $(INSTALL_DIR) $(1)/usr/share/ModemManager/fcc-unlock.available.d | |
127 | + $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/ModemManager/fcc-unlock.available.d/* $(1)/usr/share/ModemManager/fcc-unlock.available.d | |
128 | + | |
122 | 129 | $(INSTALL_DIR) $(1)/etc/init.d |
123 | 130 | $(INSTALL_BIN) ./files/modemmanager.init $(1)/etc/init.d/modemmanager |
124 | 131 |
@@ -131,6 +138,9 @@ define Package/modemmanager/install | ||
131 | 138 | $(INSTALL_DIR) $(1)/etc/hotplug.d/tty |
132 | 139 | $(INSTALL_DATA) ./files/25-modemmanager-tty $(1)/etc/hotplug.d/tty |
133 | 140 | |
141 | + $(INSTALL_DIR) $(1)/etc/hotplug.d/wwan | |
142 | + $(INSTALL_DATA) ./files/25-modemmanager-wwan $(1)/etc/hotplug.d/wwan | |
143 | + | |
134 | 144 | $(INSTALL_DIR) $(1)/lib/netifd/proto |
135 | 145 | $(INSTALL_BIN) ./files/modemmanager.proto $(1)/lib/netifd/proto/modemmanager.sh |
136 | 146 | endef |
@@ -0,0 +1,35 @@ | ||
1 | +#!/bin/sh | |
2 | + | |
3 | +# SPDX-License-Identifier: CC0-1.0 | |
4 | +# 2022 Aleksander Morgado <aleksander@aleksander.es> | |
5 | +# | |
6 | +# Automatically report to netifd that the underlying modem | |
7 | +# is really disconnected | |
8 | +# | |
9 | +# require program name and at least 4 arguments | |
10 | +[ $# -lt 4 ] && exit 1 | |
11 | + | |
12 | +MODEM_PATH="$1" | |
13 | +BEARER_PATH="$2" | |
14 | +INTERFACE="$3" | |
15 | +STATE="$4" | |
16 | + | |
17 | +[ "${STATE}" = "disconnected" ] || exit 0 | |
18 | + | |
19 | +. /usr/share/ModemManager/modemmanager.common | |
20 | +. /lib/netifd/netifd-proto.sh | |
21 | +INCLUDE_ONLY=1 . /lib/netifd/proto/modemmanager.sh | |
22 | + | |
23 | +MODEM_STATUS=$(mmcli --modem="${MODEM_PATH}" --output-keyvalue) | |
24 | +[ -n "${MODEM_STATUS}" ] || exit 1 | |
25 | + | |
26 | +MODEM_DEVICE=$(modemmanager_get_field "${MODEM_STATUS}" "modem.generic.device") | |
27 | +[ -n "${MODEM_DEVICE}" ] || exit 2 | |
28 | + | |
29 | +CFG=$(mm_get_modem_config "${MODEM_DEVICE}") | |
30 | +[ -n "${CFG}" ] || exit 3 | |
31 | + | |
32 | +logger -t "modemmanager" "interface ${CFG} (network device ${INTERFACE}) ${STATE}" | |
33 | +proto_init_update $INTERFACE 0 | |
34 | +proto_send_update $CFG | |
35 | +exit 0 |
@@ -12,7 +12,7 @@ | ||
12 | 12 | mkdir -m 0755 -p "${MODEMMANAGER_RUNDIR}" |
13 | 13 | |
14 | 14 | # Report network interface |
15 | -mm_log "${ACTION} network interface ${INTERFACE}: event processed" | |
15 | +mm_log "info" "${ACTION} network interface ${INTERFACE}: event processed" | |
16 | 16 | mm_report_event "${ACTION}" "${INTERFACE}" "net" "/sys${DEVPATH}" |
17 | 17 | |
18 | 18 | # Look for an associated cdc-wdm interface |
@@ -26,6 +26,6 @@ esac | ||
26 | 26 | |
27 | 27 | # Report cdc-wdm device, if any |
28 | 28 | [ -n "${cdcwdm}" ] && { |
29 | - mm_log "${ACTION} cdc interface ${cdcwdm}: custom event processed" | |
29 | + mm_log "info" "${ACTION} cdc interface ${cdcwdm}: custom event processed" | |
30 | 30 | mm_report_event "${ACTION}" "${cdcwdm}" "usbmisc" "/sys${DEVPATH}" |
31 | 31 | } |
@@ -12,5 +12,5 @@ | ||
12 | 12 | mkdir -m 0755 -p "${MODEMMANAGER_RUNDIR}" |
13 | 13 | |
14 | 14 | # Report TTY |
15 | -mm_log "${ACTION} serial interface ${DEVNAME}: event processed" | |
15 | +mm_log "info" "${ACTION} serial interface ${DEVNAME}: event processed" | |
16 | 16 | mm_report_event "${ACTION}" "${DEVNAME}" "tty" "/sys${DEVPATH}" |
@@ -0,0 +1,15 @@ | ||
1 | +#!/bin/sh | |
2 | +# Copyright (C) 2021 Aleksander Morgado <aleksander@aleksander.es> | |
3 | + | |
4 | +# Load hotplug common utilities | |
5 | +. /usr/share/ModemManager/modemmanager.common | |
6 | + | |
7 | +# We require a device name | |
8 | +[ -n "$DEVNAME" ] || exit | |
9 | + | |
10 | +# Always make sure the rundir exists | |
11 | +mkdir -m 0755 -p "${MODEMMANAGER_RUNDIR}" | |
12 | + | |
13 | +# Report wwan | |
14 | +mm_log "info" "${ACTION} wwan control port ${DEVNAME}: event processed" | |
15 | +mm_report_event "${ACTION}" "${DEVNAME}" "wwan" "/sys${DEVPATH}" |
@@ -20,7 +20,8 @@ MODEMMANAGER_EVENTS_CACHE="${MODEMMANAGER_RUNDIR}/events.cache" | ||
20 | 20 | # Common logging |
21 | 21 | |
22 | 22 | mm_log() { |
23 | - logger -t "ModemManager" "hotplug: $*" | |
23 | + local level="$1"; shift | |
24 | + logger -p "daemon.${level}" -t "ModemManager[$$]" "hotplug: $*" | |
24 | 25 | } |
25 | 26 | |
26 | 27 | ################################################################################ |
@@ -160,7 +161,7 @@ mm_wait_for_modem() { | ||
160 | 161 | |
161 | 162 | while [ $n -ge 0 ]; do |
162 | 163 | [ -d "${sysfspath}" ] || { |
163 | - mm_log "error: ignoring modem detection request: no device at ${sysfspath}" | |
164 | + mm_log "error" "ignoring modem detection request: no device at ${sysfspath}" | |
164 | 165 | proto_set_available "${cfg}" 0 |
165 | 166 | return 1 |
166 | 167 | } |
@@ -168,10 +169,10 @@ mm_wait_for_modem() { | ||
168 | 169 | # Check if the modem exists at the given sysfs path |
169 | 170 | if ! mmcli -m "${sysfspath}" > /dev/null 2>&1 |
170 | 171 | then |
171 | - mm_log "error: modem not detected at sysfs path" | |
172 | + mm_log "error" "modem not detected at sysfs path" | |
172 | 173 | else |
173 | - mm_log "modem exported successfully at ${sysfspath}" | |
174 | - mm_log "setting interface '${cfg}' as available" | |
174 | + mm_log "info" "modem exported successfully at ${sysfspath}" | |
175 | + mm_log "info" "setting interface '${cfg}' as available" | |
175 | 176 | proto_set_available "${cfg}" 1 |
176 | 177 | return 0 |
177 | 178 | fi |
@@ -180,7 +181,7 @@ mm_wait_for_modem() { | ||
180 | 181 | n=$((n-step)) |
181 | 182 | done |
182 | 183 | |
183 | - mm_log "error: timed out waiting for the modem to get exported at ${sysfspath}" | |
184 | + mm_log "error" "timed out waiting for the modem to get exported at ${sysfspath}" | |
184 | 185 | proto_set_available "${cfg}" 0 |
185 | 186 | return 2 |
186 | 187 | } |
@@ -192,7 +193,7 @@ mm_report_modem_wait() { | ||
192 | 193 | |
193 | 194 | parent_sysfspath=$(mm_find_physdev_sysfs_path "$sysfspath") |
194 | 195 | [ -n "${parent_sysfspath}" ] || { |
195 | - mm_log "error: parent device sysfspath not found" | |
196 | + mm_log "error" "parent device sysfspath not found" | |
196 | 197 | return |
197 | 198 | } |
198 | 199 |
@@ -203,23 +204,23 @@ mm_report_modem_wait() { | ||
203 | 204 | |
204 | 205 | cfg=$(mm_get_modem_config "${parent_sysfspath}") |
205 | 206 | if [ -n "${cfg}" ]; then |
206 | - mm_log "interface '${cfg}' is set to configure device '${parent_sysfspath}'" | |
207 | - mm_log "now waiting for modem at sysfs path ${parent_sysfspath}" | |
207 | + mm_log "info" "interface '${cfg}' is set to configure device '${parent_sysfspath}'" | |
208 | + mm_log "info" "now waiting for modem at sysfs path ${parent_sysfspath}" | |
208 | 209 | mm_set_modem_wait_status "${parent_sysfspath}" "processed" |
209 | 210 | # Launch subshell for the explicit wait |
210 | 211 | ( mm_wait_for_modem "${cfg}" "${parent_sysfspath}" ) > /dev/null 2>&1 & |
211 | 212 | else |
212 | - mm_log "no need to wait for modem at sysfs path ${parent_sysfspath}" | |
213 | + mm_log "info" "no need to wait for modem at sysfs path ${parent_sysfspath}" | |
213 | 214 | mm_set_modem_wait_status "${parent_sysfspath}" "ignored" |
214 | 215 | fi |
215 | 216 | ;; |
216 | 217 | "processed") |
217 | - mm_log "already waiting for modem at sysfs path ${parent_sysfspath}" | |
218 | + mm_log "info" "already waiting for modem at sysfs path ${parent_sysfspath}" | |
218 | 219 | ;; |
219 | 220 | "ignored") |
220 | 221 | ;; |
221 | 222 | *) |
222 | - mm_log "error: unknown status read for device at sysfs path ${parent_sysfspath}" | |
223 | + mm_log "error" "unknown status read for device at sysfs path ${parent_sysfspath}" | |
223 | 224 | ;; |
224 | 225 | esac |
225 | 226 | } |
@@ -249,7 +250,7 @@ mm_cleanup_interface_by_sysfspath() { | ||
249 | 250 | cfg=$(mm_get_modem_config "$dev") |
250 | 251 | [ -n "${cfg}" ] || return |
251 | 252 | |
252 | - mm_log "setting interface '$cfg' as unavailable" | |
253 | + mm_log "info" "setting interface '$cfg' as unavailable" | |
253 | 254 | proto_set_available "${cfg}" 0 |
254 | 255 | } |
255 | 256 |
@@ -277,7 +278,7 @@ mm_report_event() { | ||
277 | 278 | esac |
278 | 279 | |
279 | 280 | # Report the event |
280 | - mm_log "event reported: action=${action}, name=${name}, subsystem=${subsystem}" | |
281 | + mm_log "debug" "event reported: action=${action}, name=${name}, subsystem=${subsystem}" | |
281 | 282 | mmcli --report-kernel-event="action=${action},name=${name},subsystem=${subsystem}" 1>/dev/null 2>&1 & |
282 | 283 | |
283 | 284 | # Wait for added modem if a sysfspath is given |
@@ -293,7 +294,7 @@ mm_report_event_from_cache_line() { | ||
293 | 294 | subsystem=$(echo "${event_line}" | awk -F ',' '{ print $3 }') |
294 | 295 | sysfspath=$(echo "${event_line}" | awk -F ',' '{ print $4 }') |
295 | 296 | |
296 | - mm_log "cached event found: action=${action}, name=${name}, subsystem=${subsystem}, sysfspath=${sysfspath}" | |
297 | + mm_log "debug" "cached event found: action=${action}, name=${name}, subsystem=${subsystem}, sysfspath=${sysfspath}" | |
297 | 298 | mm_report_event "${action}" "${name}" "${subsystem}" "${sysfspath}" |
298 | 299 | } |
299 | 300 |
@@ -308,11 +309,11 @@ mm_report_events_from_cache() { | ||
308 | 309 | # Wait for ModemManager to be available in the bus |
309 | 310 | while [ $n -ge 0 ]; do |
310 | 311 | sleep $step |
311 | - mm_log "checking if ModemManager is available..." | |
312 | + mm_log "info" "checking if ModemManager is available..." | |
312 | 313 | |
313 | 314 | if ! mmcli -L >/dev/null 2>&1 |
314 | 315 | then |
315 | - mm_log "ModemManager not yet available" | |
316 | + mm_log "info" "ModemManager not yet available" | |
316 | 317 | else |
317 | 318 | mmrunning=1 |
318 | 319 | break |
@@ -321,7 +322,7 @@ mm_report_events_from_cache() { | ||
321 | 322 | done |
322 | 323 | |
323 | 324 | [ ${mmrunning} -eq 1 ] || { |
324 | - mm_log "error: couldn't report initial kernel events: ModemManager not running" | |
325 | + mm_log "error" "couldn't report initial kernel events: ModemManager not running" | |
325 | 326 | return |
326 | 327 | } |
327 | 328 |
@@ -4,6 +4,8 @@ | ||
4 | 4 | USE_PROCD=1 |
5 | 5 | START=70 |
6 | 6 | |
7 | +LOG_LEVEL="INFO" | |
8 | + | |
7 | 9 | stop_service() { |
8 | 10 | # Load common utils |
9 | 11 | . /usr/share/ModemManager/modemmanager.common |
@@ -22,14 +24,14 @@ start_service() { | ||
22 | 24 | # it starts. |
23 | 25 | # |
24 | 26 | # All these commands need to be executed on every MM start, even after |
25 | - # procd-triggered respawns, which is why they're all included as instance command | |
27 | + # procd-triggered respawns, which is why this is wrapped in a startup | |
28 | + # wrapper script called '/usr/sbin/ModemManager-wrapper'. | |
26 | 29 | # |
30 | + . /usr/share/ModemManager/modemmanager.common | |
27 | 31 | procd_open_instance |
28 | - procd_set_param command sh -c ". /usr/share/ModemManager/modemmanager.common; \ | |
29 | - mkdir -m 0755 -p ${MODEMMANAGER_RUNDIR}; \ | |
30 | - mm_cleanup_interfaces; \ | |
31 | - ( mm_report_events_from_cache ) >/dev/null 2>&1 & \ | |
32 | - /usr/sbin/ModemManager" | |
32 | + procd_set_param command /usr/sbin/ModemManager-wrapper | |
33 | + procd_append_param command --log-level="$LOG_LEVEL" | |
34 | + [ "$LOG_LEVEL" = "DEBUG" ] && procd_append_param command --debug | |
33 | 35 | procd_set_param respawn "${respawn_threshold:-3600}" "${respawn_timeout:-5}" "${respawn_retry:-5}" |
34 | 36 | procd_set_param pidfile "${MODEMMANAGER_PID_FILE}" |
35 | 37 | procd_close_instance |
@@ -515,7 +515,8 @@ proto_modemmanager_teardown() { | ||
515 | 515 | modemstatus=$(mmcli --modem="${device}" --output-keyvalue) |
516 | 516 | bearerpath=$(modemmanager_get_field "${modemstatus}" "modem.generic.bearers.value\[1\]") |
517 | 517 | [ -n "${bearerpath}" ] || { |
518 | - echo "couldn't load bearer path" | |
518 | + echo "couldn't load bearer path: disconnecting anyway" | |
519 | + mmcli --modem="${device}" --simple-disconnect >/dev/null 2>&1 | |
519 | 520 | return |
520 | 521 | } |
521 | 522 |
@@ -0,0 +1,33 @@ | ||
1 | +#!/bin/sh | |
2 | + | |
3 | +trap_with_arg() { | |
4 | + func="$1" ; shift | |
5 | + for sig ; do | |
6 | + # shellcheck disable=SC2064 | |
7 | + trap "$func $sig" "$sig" | |
8 | + done | |
9 | +} | |
10 | + | |
11 | +func_trap() { | |
12 | + logger "ModemManager-wrapper[$$]" "Sending signal ${1}..." | |
13 | + kill "-${1}" "$CHILD" 2>/dev/null | |
14 | +} | |
15 | + | |
16 | +main() { | |
17 | + . /usr/share/ModemManager/modemmanager.common | |
18 | + | |
19 | + trap_with_arg func_trap INT TERM KILL | |
20 | + | |
21 | + mkdir -p "${MODEMMANAGER_RUNDIR}" | |
22 | + chmod 0755 "${MODEMMANAGER_RUNDIR}" | |
23 | + mm_cleanup_interfaces | |
24 | + | |
25 | + /usr/sbin/ModemManager "$@" 1>/dev/null 2>/dev/null & | |
26 | + CHILD="$!" | |
27 | + | |
28 | + mm_report_events_from_cache | |
29 | + | |
30 | + wait "$CHILD" | |
31 | +} | |
32 | + | |
33 | +main "$@" |
@@ -8,13 +8,13 @@ | ||
8 | 8 | include $(TOPDIR)/rules.mk |
9 | 9 | |
10 | 10 | PKG_NAME:=nextdns |
11 | -PKG_VERSION:=1.37.11 | |
12 | -PKG_RELEASE:=1 | |
11 | +PKG_VERSION:=1.38.0 | |
12 | +PKG_RELEASE:=2 | |
13 | 13 | |
14 | 14 | PKG_SOURCE:=nextdns-$(PKG_VERSION).tar.gz |
15 | 15 | PKG_SOURCE_VERSION:=v$(PKG_VERSION) |
16 | 16 | PKG_SOURCE_URL:=https://codeload.github.com/nextdns/nextdns/tar.gz/v$(PKG_VERSION)? |
17 | -PKG_HASH:=f70cb424b0ae47456c8579d3910b486f75afde34572f28f8cf6eb1222e59b88b | |
17 | +PKG_HASH:=74cd9d37ea9051b5b5f8f10be1462fb4ebe77b4dbcccd8c94ba049828bd21bff | |
18 | 18 | |
19 | 19 | PKG_MAINTAINER:=Olivier Poitrey <rs@nextdns.io> |
20 | 20 | PKG_LICENSE:=MIT |
@@ -50,13 +50,9 @@ define Package/nextdns/install | ||
50 | 50 | |
51 | 51 | $(INSTALL_DIR) $(1)/etc/config |
52 | 52 | $(INSTALL_CONF) ./files/nextdns.config $(1)/etc/config/nextdns |
53 | -endef | |
54 | 53 | |
55 | -define Package/nextdns/postinst | |
56 | -#!/bin/sh | |
57 | -if [ -z "$${IPKG_INSTROOT}" ]; then | |
58 | - nextdns install | |
59 | -fi | |
54 | + $(INSTALL_DIR) $(1)/etc/uci-defaults | |
55 | + $(INSTALL_BIN) ./files/nextdns.defaults $(1)/etc/uci-defaults/nextdns | |
60 | 56 | endef |
61 | 57 | |
62 | 58 | define Package/nextdns/prerm |
@@ -0,0 +1,8 @@ | ||
1 | +#!/bin/sh | |
2 | + | |
3 | +/usr/sbin/nextdns install | |
4 | +# opkg automatically enables each service, but not image builder, | |
5 | +# so enable it here to cover both cases | |
6 | +/etc/init.d/nextdns enable | |
7 | + | |
8 | +exit 0 |
@@ -8,12 +8,12 @@ | ||
8 | 8 | include $(TOPDIR)/rules.mk |
9 | 9 | |
10 | 10 | PKG_NAME:=ooniprobe |
11 | -PKG_VERSION:=3.14.2 | |
11 | +PKG_VERSION:=3.16.5 | |
12 | 12 | PKG_RELEASE:=1 |
13 | 13 | |
14 | 14 | PKG_SOURCE:=probe-cli-$(PKG_VERSION).tar.gz |
15 | 15 | PKG_SOURCE_URL:=https://codeload.github.com/ooni/probe-cli/tar.gz/v$(PKG_VERSION)? |
16 | -PKG_HASH:=a0b71089444c899ba99c7f63f9e05819cdbe964cfa17bb95ca5672343e6aec22 | |
16 | +PKG_HASH:=198f7a3507482bfbf0fb24c24f34e17c9f5adbfdf5d8c63774ecd816708a4438 | |
17 | 17 | |
18 | 18 | PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec@nic.cz> |
19 | 19 | PKG_LICENSE:=BSD-3-Clause |
@@ -8,12 +8,12 @@ | ||
8 | 8 | include $(TOPDIR)/rules.mk |
9 | 9 | |
10 | 10 | PKG_NAME:=unbound |
11 | -PKG_VERSION:=1.16.0 | |
11 | +PKG_VERSION:=1.17.0 | |
12 | 12 | PKG_RELEASE:=$(AUTORELEASE) |
13 | 13 | |
14 | 14 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
15 | 15 | PKG_SOURCE_URL:=https://nlnetlabs.nl/downloads/unbound |
16 | -PKG_HASH:=6701534c938eb019626601191edc6d012fc534c09d2418d5b92827db0cbe48a5 | |
16 | +PKG_HASH:=dcbc95d7891d9f910c66e4edc9f1f2fde4dea2eec18e3af9f75aed44a02f1341 | |
17 | 17 | |
18 | 18 | PKG_MAINTAINER:=Eric Luehrsen <ericluehrsen@gmail.com> |
19 | 19 | PKG_LICENSE:=BSD-3-Clause |
@@ -3,7 +3,7 @@ Fix cross compile errors by inserting an environment variable for the | ||
3 | 3 | target. Use "uname" on host only if "UNAME" variable is empty. |
4 | 4 | --- a/configure.ac |
5 | 5 | +++ b/configure.ac |
6 | -@@ -812,7 +812,7 @@ if test x_$ub_test_python != x_no; then | |
6 | +@@ -818,7 +818,7 @@ if test x_$ub_test_python != x_no; then | |
7 | 7 | fi |
8 | 8 | fi |
9 | 9 |
@@ -6,7 +6,7 @@ starting point for embedded routers if one is not going to use UCI. | ||
6 | 6 | +++ b/doc/example.conf.in |
7 | 7 | @@ -19,6 +19,76 @@ server: |
8 | 8 | # verbosity number, 0 is least verbose. 1 is default. |
9 | - verbosity: 1 | |
9 | + # verbosity: 1 | |
10 | 10 | |
11 | 11 | + ############################################################################ |
12 | 12 | + # MEMORY CONTROL EXAMPLE |
@@ -1,11 +1,11 @@ | ||
1 | 1 | include $(TOPDIR)/rules.mk |
2 | 2 | |
3 | 3 | PKG_NAME:=uwsgi |
4 | -PKG_VERSION:=2.0.19.1 | |
4 | +PKG_VERSION:=2.0.20 | |
5 | 5 | PKG_RELEASE:=1 |
6 | 6 | |
7 | -PYPI_NAME:=uWSGI | |
8 | -PKG_HASH:=faa85e053c0b1be4d5585b0858d3a511d2cd10201802e8676060fd0a109e5869 | |
7 | +PYPI_NAME:=uwsgi | |
8 | +PKG_HASH:=88ab9867d8973d8ae84719cf233b7dafc54326fcaec89683c3f9f77c002cdff9 | |
9 | 9 | PKG_BUILD_DEPENDS:=python3/host |
10 | 10 | PYTHON3_PKG_BUILD:=0 |
11 | 11 |
@@ -19,9 +19,6 @@ include ../../lang/python/python3-package.mk | ||
19 | 19 | #for LINUX_UNAME_VERSION: |
20 | 20 | include $(INCLUDE_DIR)/kernel.mk |
21 | 21 | |
22 | -#the .tar.gz does not wrap it into a uWSGI dir; do not use "$(1)/..": | |
23 | -TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS) | |
24 | - | |
25 | 22 | define Package/uwsgi |
26 | 23 | SECTION:=net |
27 | 24 | CATEGORY:=Network |
@@ -1,6 +1,6 @@ | ||
1 | 1 | --- a/uwsgiconfig.py |
2 | 2 | +++ b/uwsgiconfig.py |
3 | -@@ -856,11 +856,11 @@ class uConf(object): | |
3 | +@@ -859,11 +859,11 @@ class uConf(object): | |
4 | 4 | self.cflags.append('-DUWSGI_HAS_EXECINFO') |
5 | 5 | report['execinfo'] = True |
6 | 6 |
@@ -1,6 +1,6 @@ | ||
1 | 1 | --- a/uwsgiconfig.py |
2 | 2 | +++ b/uwsgiconfig.py |
3 | -@@ -685,7 +685,7 @@ class uConf(object): | |
3 | +@@ -688,7 +688,7 @@ class uConf(object): | |
4 | 4 | self.include_path += os.environ['UWSGI_INCLUDES'].split(',') |
5 | 5 | |
6 | 6 |
@@ -1,6 +1,6 @@ | ||
1 | 1 | --- a/uwsgiconfig.py |
2 | 2 | +++ b/uwsgiconfig.py |
3 | -@@ -5,9 +5,9 @@ uwsgi_version = '2.0.19.1' | |
3 | +@@ -5,9 +5,9 @@ uwsgi_version = '2.0.20' | |
4 | 4 | import os |
5 | 5 | import re |
6 | 6 | import time |
@@ -1,8 +0,0 @@ | ||
1 | ---- a/Makefile | |
2 | -+++ b/Makefile | |
3 | -@@ -1,4 +1,4 @@ | |
4 | --PYTHON := python | |
5 | -+PYTHON ?= python3 | |
6 | - | |
7 | - all: | |
8 | - $(PYTHON) uwsgiconfig.py --build $(PROFILE) |
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk | ||
6 | 6 | |
7 | 7 | PKG_NAME:=v2rayA |
8 | 8 | PKG_VERSION:=1.5.9.1698.1 |
9 | -PKG_RELEASE:=$(AUTORELEASE) | |
9 | +PKG_RELEASE:=2 | |
10 | 10 | |
11 | 11 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
12 | 12 | PKG_SOURCE_URL:=https://codeload.github.com/v2rayA/v2rayA/tar.gz/v$(PKG_VERSION)? |
@@ -56,7 +56,7 @@ define Package/v2raya/conffiles | ||
56 | 56 | /etc/config/v2raya |
57 | 57 | endef |
58 | 58 | |
59 | -WEB_FILE:=v2raya-web-$(PKG_VERSION).tar.gz | |
59 | +WEB_FILE:=$(PKG_NAME)-web-$(PKG_VERSION).tar.gz | |
60 | 60 | define Download/v2raya-web |
61 | 61 | URL:=https://codeload.github.com/v2rayA/v2raya-web/tar.gz/v$(PKG_VERSION)? |
62 | 62 | URL_FILE:=$(WEB_FILE) |
@@ -0,0 +1,3 @@ | ||
1 | +#!/bin/sh | |
2 | + | |
3 | +v2raya --version | grep "$PKG_VERSION" |
@@ -1,6 +1,6 @@ | ||
1 | 1 | include $(TOPDIR)/rules.mk |
2 | 2 | |
3 | -PKG_NAME:=Xray-core | |
3 | +PKG_NAME:=xray-core | |
4 | 4 | PKG_VERSION:=1.6.5 |
5 | 5 | PKG_RELEASE:=$(AUTORELEASE) |
6 | 6 |
@@ -12,6 +12,7 @@ PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org> | ||
12 | 12 | PKG_LICENSE:=MPL-2.0 |
13 | 13 | PKG_LICENSE_FILES:=LICENSE |
14 | 14 | |
15 | +PKG_BUILD_DIR:=$(BUILD_DIR)/Xray-core-$(PKG_VERSION) | |
15 | 16 | PKG_BUILD_DEPENDS:=golang/host |
16 | 17 | PKG_BUILD_PARALLEL:=1 |
17 | 18 | PKG_USE_MIPS16:=0 |
@@ -6,8 +6,7 @@ | ||
6 | 6 | "clients": [ |
7 | 7 | { |
8 | 8 | "id": "23ad6b10-8d1a-40f7-8ad0-e3e35cd38297", |
9 | - "level": 1, | |
10 | - "alterId": 64 | |
9 | + "level": 1 | |
11 | 10 | } |
12 | 11 | ] |
13 | 12 | } |
@@ -21,7 +21,7 @@ start_service() { | ||
21 | 21 | |
22 | 22 | config_get confdir "config" "confdir" |
23 | 23 | config_get conffiles "config" "conffiles" |
24 | - config_get datadir "config" "datadir" "/usr/share/v2ray" | |
24 | + config_get datadir "config" "datadir" "/usr/share/xray" | |
25 | 25 | config_get dialer "config" "dialer" |
26 | 26 | config_get format "config" "format" "json" |
27 | 27 |
@@ -0,0 +1,7 @@ | ||
1 | +#!/bin/sh | |
2 | + | |
3 | +case "$1" in | |
4 | + "xray-core") | |
5 | + xray version 2>&1 | grep "${2#*v}" | |
6 | + ;; | |
7 | +esac |
@@ -9,9 +9,9 @@ include $(TOPDIR)/rules.mk | ||
9 | 9 | include $(INCLUDE_DIR)/kernel.mk |
10 | 10 | |
11 | 11 | PKG_NAME:=xtables-addons |
12 | -PKG_VERSION:=3.19 | |
12 | +PKG_VERSION:=3.21 | |
13 | 13 | PKG_RELEASE:=$(AUTORELEASE) |
14 | -PKG_HASH:=5e36ea027ab15a84d9af1f3f8e84a78b80a617093657f08089bd44657722f661 | |
14 | +PKG_HASH:=2e09ac129a14f5e9c23b115ebcdfff4aa84e2aeba1268dbdf39b2d752bd71e19 | |
15 | 15 | |
16 | 16 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz |
17 | 17 | PKG_SOURCE_URL:=https://inai.de/files/xtables-addons/ |
@@ -19,11 +19,11 @@ PKG_LICENSE_FILES:=COPYING | ||
19 | 19 | PKG_CPE_ID:=cpe:/a:linux_audit_project:linux_audit |
20 | 20 | |
21 | 21 | PKG_FIXUP:=autoreconf |
22 | +PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_NAME)-packages/$(PKG_NAME)-$(PKG_VERSION) | |
22 | 23 | |
23 | 24 | PKG_USE_MIPS16:=0 |
24 | 25 | |
25 | 26 | include $(INCLUDE_DIR)/package.mk |
26 | -include $(INCLUDE_DIR)/host-build.mk | |
27 | 27 | |
28 | 28 | define Package/audit/Default |
29 | 29 | TITLE:=Audit Daemon |
@@ -138,7 +138,6 @@ define Package/audit/install | ||
138 | 138 | $(CP) $(PKG_INSTALL_DIR)/usr/sbin/auditd $(1)/usr/sbin/ |
139 | 139 | endef |
140 | 140 | |
141 | -$(eval $(call HostBuild)) | |
142 | 141 | $(eval $(call BuildPackage,libauparse)) |
143 | 142 | $(eval $(call BuildPackage,audit-utils)) |
144 | 143 | $(eval $(call BuildPackage,audit)) |
@@ -0,0 +1,51 @@ | ||
1 | +# | |
2 | +# Copyright (C) 2022 CZ.NIC, z. s. p. o. (https://www.nic.cz/) | |
3 | +# | |
4 | +# This is free software, licensed under the GNU General Public License v2. | |
5 | +# See /LICENSE for more information. | |
6 | +# | |
7 | + | |
8 | +include $(TOPDIR)/rules.mk | |
9 | + | |
10 | +PKG_NAME:=librespeed-cli | |
11 | +PKG_VERSION:=1.0.10 | |
12 | +PKG_RELEASE:=$(AUTORELEASE) | |
13 | + | |
14 | +PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz | |
15 | +PKG_SOURCE_URL:=https://codeload.github.com/librespeed/speedtest-cli/tar.gz/v${PKG_VERSION}? | |
16 | +PKG_HASH:=904ec84f41714d5a7ab778534d332219cd254fdd0f97cc33ebb3540d31fb802c | |
17 | + | |
18 | +PKG_MAINTAINER:=Michal Vasilek <michal.vasilek@nic.cz> | |
19 | +PKG_LICENSE:=LGPL-3.0-only | |
20 | +PKG_LICENSE_FILES:=LICENSE | |
21 | + | |
22 | +PKG_BUILD_DIR:=$(BUILD_DIR)/speedtest-cli-$(PKG_VERSION) | |
23 | +PKG_BUILD_DEPENDS:=golang/host | |
24 | +PKG_BUILD_PARALLEL:=1 | |
25 | +PKG_USE_MIPS16:=0 | |
26 | + | |
27 | +GO_PKG:=github.com/librespeed/speedtest-cli | |
28 | + | |
29 | +include $(INCLUDE_DIR)/package.mk | |
30 | +include ../../lang/golang/golang-package.mk | |
31 | + | |
32 | +define Package/librespeed-cli | |
33 | + SECTION:=utils | |
34 | + CATEGORY:=Utilities | |
35 | + TITLE:=Command line client for LibreSpeed | |
36 | + URL:=https://github.com/librespeed/speedtest-cli | |
37 | + DEPENDS:=$(GO_ARCH_DEPENDS) | |
38 | +endef | |
39 | + | |
40 | +define Package/librespeed-cli/description | |
41 | + LibreSpeed client for measuring internet speed from command line. | |
42 | +endef | |
43 | + | |
44 | +define Package/librespeed-cli/install | |
45 | + $(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR)) | |
46 | + $(INSTALL_DIR) $(1)/usr/bin | |
47 | + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/speedtest-cli $(1)/usr/bin/librespeed-cli | |
48 | +endef | |
49 | + | |
50 | +$(eval $(call GoBinPackage,librespeed-cli)) | |
51 | +$(eval $(call BuildPackage,librespeed-cli)) |
@@ -8,12 +8,12 @@ | ||
8 | 8 | include $(TOPDIR)/rules.mk |
9 | 9 | |
10 | 10 | PKG_NAME:=nano |
11 | -PKG_VERSION:=6.4 | |
11 | +PKG_VERSION:=7.0 | |
12 | 12 | PKG_RELEASE:=$(AUTORELEASE) |
13 | 13 | |
14 | 14 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz |
15 | 15 | PKG_SOURCE_URL:=@GNU/nano |
16 | -PKG_HASH:=4199ae8ca78a7796de56de1a41b821dc47912c0307e9816b56cc317df34661c0 | |
16 | +PKG_HASH:=8dd6eac38b2b8786d82681f0e1afd84f6b75210d17391b6443c437e451552149 | |
17 | 17 | |
18 | 18 | PKG_LICENSE:=GPL-3.0-or-later |
19 | 19 | PKG_LICENSE_FILES:=COPYING |
@@ -0,0 +1,18 @@ | ||
1 | +--- a/src/nano.c | |
2 | ++++ b/src/nano.c | |
3 | +@@ -1395,11 +1395,14 @@ bool changes_something(const void *f) | |
4 | + #ifndef NANO_TINY | |
5 | + f == chop_previous_word || f == chop_next_word || | |
6 | + f == zap_text || f == cut_till_eof || f == do_execute || | |
7 | +- f == do_indent || f == do_unindent || f == do_comment || | |
8 | ++ f == do_indent || f == do_unindent || | |
9 | + #endif | |
10 | + #ifdef ENABLE_JUSTIFY | |
11 | + f == do_justify || f == do_full_justify || | |
12 | + #endif | |
13 | ++#ifdef ENABLE_COMMENT | |
14 | ++ f == do_comment || | |
15 | ++#endif | |
16 | + #ifdef ENABLE_SPELLER | |
17 | + f == do_spell || | |
18 | + #endif |