* this package replaces simple-adblock package
* it was impossible to keep existing config structure and continue
improving the simple-adblock the way I wanted, hence the new
package name
* the migration script for existing simple-adblock config is included in
the uci-defaults file
Signed-off-by: Stan Grishin <stangri@melmac.ca>
Since 2017 libssh supports to be compiled against libmbedtls instead of
libopessl, OpenWrt ships mbedtls by default, while depending on OpenSSL
increase image size by almost 1.5MB unnecessarily.
Signed-off-by: Gioacchino Mazzurco <gio@eigenlab.org>
* remove firewall4.include file as it is not needed and procuces a firewall
error on service miniupnpd restart
* remove the uci-defaults file as its sole purpose was to install the
firewall include file
* modify the Makefile to reflect the deleted files
Signed-off-by: Stan Grishin <stangri@melmac.ca>
The rpcd wireguard plugin provides essential functions similar to the `wg`
tool.
It uses the embeddable-wg-library [0], which describes itself as:
"This is a mini single-file library, meant to be embedded directly into the
source code of your program. Copy wireguard.c and wireguard.h into your
project. They should build with any C89 compiler. There are no dependencies
except libc"
The plugin does exactly that and therefor inherits the LGPL license.
At this point it provides the following functions:
'wireguard'
"status":{}
"genkey":{}
"genpsk":{}
"pubkey":{"private":"String"}
Examples:
$ ubus call wireguard status
{
"wg0": {
"ifindex": 12,
"public_key": "<base64 encoded public key>",
"listen_port": 1234,
"peers": {
"<base64 encoded public peer key>": {
"allowed_ips": [
"192.168.1.123/32"
],
"last_handshake": 0,
"rx_bytes": 0,
"tx_bytes": 0
},
"<another base64 encoded public peer key>": {
"endpoint": "<ip:port>",
"allowed_ips": [
"192.168.1.124/32"
],
"last_handshake": 1676287619,
"rx_bytes": 8731604,
"tx_bytes": 88333652
}
}
}
}
$ ubus call wireguard genpsk
{
"preshared": "EKQJ3XI/6xLoifAoGb5bNA39De1tiwZ3x7h8OS2zKkE="
}
$ ubus call wireguard genkey
{
"private": "IFyGkfXlO+WO8DMO3cqhaDZ8rBfioP5pVnAoQlEpXnI=",
"public": "uF2O6/ZXZjKnUnxBnldElBYIXfpyvvtUnZfKP+BSBSI="
}
$ ubus call wireguard pubkey '{"private":"IFyGkfXlO+WO8DMO3cqhaDZ8rBfioP5pVnAoQlEpXnI="}'
{
"public": "uF2O6/ZXZjKnUnxBnldElBYIXfpyvvtUnZfKP+BSBSI="
}
Size comparison:
52436 /usr/bin/wg
18544 /usr/lib/rpcd/wireguard.so
[0] https://git.zx2c4.com/wireguard-tools/tree/contrib/embeddable-wg-library
Signed-off-by: Andre Heider <a.heider@gmail.com>
This removes 014-remove-platform-so-suffix.patch and
016-adjust-config-paths.patch, restoring the platform triplet to paths
for:
* C extensions (*.cpython-311-*.so)
* Build config data directory (/usr/lib/python3.11/config-3.11-*/)
* sysconfig data file (/usr/lib/python3.11/_sysconfigdata_*.py)
Setting `_PYTHON_SYSCONFIGDATA_NAME` during package builds ensures that
sysconfig data for target Python is loaded, in particular so that C
extensions built will have the correct extension / platform triplet.
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Currently, configure does not find the correct platform triplet for musl
as the default build/host values passed by OpenWrt buildroot does not
contain the text "linux-musl".
This backports
c163d7f0b6
to add detection for mips soft float and musl.
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* Support wildcards in install (`+`) paths
* Add fourth parameter to set directory permissions
If file permissions are given (third parameter), these will now apply
to files only.
* Add non-recursive set permissions command (`==`)
* Be more strict about filespec format
Blank lines and lines starting with `#` will be ignored. Other errors
(unknown command, missing path parameter, etc.) will cause the script
to exit.
* Be more strict about ensuring paths exist for all commands
* Avoid spawning subshells
This also removes outdated filespec paths in the python3 package; these
paths delete files that are no longer present.
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* Fix default Python package description not included in individual
package descriptions
* Update default Python package description text (from General Python
FAQ, "What is Python?")
* Add package descriptions for Python module packages
* Reduce duplication in package titles
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
There is no need to use Py3Package for python3 as it does not package
any Python files; it is an empty package with dependencies to install
the full Python installation.
Signed-off-by: Jeffery To <jeffery.to@gmail.com>