Commit graph

17400 commits

Author SHA1 Message Date
Markus Weippert
36e73bdd6e restic: add package
Signed-off-by: Markus Weippert <markus@gekmihesg.de>
2019-12-19 19:27:33 +01:00
Rosen Penev
c996e6b470
Merge pull request #10819 from ja-pa/lmdb-fix-ar
lmdb: use toolchain AR for compilation
2019-12-18 07:12:35 -08:00
Jan Pavlinec
7c82793719
lmdb: use toolchain AR for compilation
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2019-12-18 11:58:34 +01:00
Jo-Philipp Wich
dde503da13 cgi-io: close pipe descriptors early
In the command read side, close the superfluous write end of the pipe
early to ensure that EOF is reliably detected. Without that change, splice
calls to read from the pipe will occasionally hang until the CGI process
is eventually killed due to timeout.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-12-18 11:00:15 +01:00
Hannu Nyman
b1634c1737
Merge pull request #10754 from stangri/master-https-dns-proxy
https-dns-proxy: switch to https-dns-proxy package name
2019-12-18 07:41:42 +02:00
Stan Grishin
da30fe7e90 https-dns-proxy: switch to https-dns-proxy package name
Signed-off-by: Stan Grishin <stangri@melmac.net>
2019-12-17 14:48:51 -07:00
Rosen Penev
7b54bf9b40
Merge pull request #10810 from tru7/knxd
knxd: adjust startup files to better comply with procd
2019-12-17 12:59:46 -08:00
Michael Heimpold
7fdbf40278
Merge pull request #10806 from micmac1/libzip-fts
libzip: fix musl-fts failure
2019-12-17 20:28:57 +01:00
Rosen Penev
f9da2a0400
Merge pull request #10804 from br101/pingcheck-update
pingcheck: Update to latest version
2019-12-17 08:50:19 -08:00
Othmar Truniger
615a4ae9d7 knxd: adjust startup files to better comply with procd
Signed-off-by: Othmar Truniger <github@truniger.ch>
2019-12-17 15:49:15 +01:00
Bruno Randolf
163596d622 pingcheck: Update to latest version
Signed-off-by: Bruno Randolf <br1@einfach.org>
2019-12-17 14:15:48 +00:00
Rosen Penev
fb356f90f1
Merge pull request #10778 from bobafetthotmail/minidlna-fix
minidlna: add static uuid in config
2019-12-16 22:00:18 -08:00
Rosen Penev
3671405460
Merge pull request #10795 from neheb/l
lua-rs232: Update to latest master
2019-12-16 21:58:05 -08:00
Sebastian Kemper
0c381f7c7a libzip: fix musl-fts failure
musl doesn't support fts. But with the extra package musl-fts installed,
libzip picks up the fts header and fails at the linking stage:

zipcmp.c:(.text.startup+0x130): undefined reference to `fts_open'
/home/sk/tmp/openwrt/staging_dir/toolchain-mips_24kc_gcc-8.3.0_musl/lib/gcc/mips-openwrt-linux-musl/8.3.0/../../../../mips-openwrt-linux-musl/bin/ld: zipcmp.c:(.text.startup+0x172): undefined reference to `fts_read'

So with musl-fts we need to link in libfts. To address that this commits
patches the cmake setup to check if fts is available in libc itself or
in any external libfts.

So when musl-fts is installed on the system the setup will be the
following:

musl: use libfts
uclibc: use fts from libc
glibc: like uclibc

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-12-16 23:33:32 +01:00
Rosen Penev
e87573a5a7
lua-rs232: Update to latest master
Should fix the no previous prototype errors.

Also fixed the install paths. Now running this should be correct.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-12-16 12:55:39 -08:00
Rosen Penev
755144e7b7
Merge pull request #10805 from mmtj/pyroute2-0.5.7
python3-pyroute2: Update to version 0.5.7
2019-12-16 08:19:17 -08:00
Rosen Penev
bf7fb3efe2
Merge pull request #10800 from gladiac1337/haproxy-2.0.11
haproxy: Update HAProxy to v2.0.11
2019-12-16 07:53:05 -08:00
Rosen Penev
1206149dcd
Merge pull request #10803 from Payne-X6/master
knot: update to version 2.9.2
2019-12-16 07:52:31 -08:00
Martin Matějek
b450ceb4d7
python3-pyroute2: Update to version 0.5.7
Signed-off-by: Martin Matějek <martin.matejek@gmx.com>
2019-12-16 16:42:59 +01:00
Jan Hak
ca729cd43c knot: update to version 2.9.2
Signed-off-by: Jan Hak <jan.hak@nic.cz>
2019-12-16 13:56:39 +01:00
Daniel Golle
23460f34e5 gnurl: update homepage URL and use @GNU mirrors
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2019-12-16 09:54:58 +02:00
Rosen Penev
ce89774942
Merge pull request #10793 from micmac1/dnsdist-no-bomb
dnsdist: fix various build failures
2019-12-15 21:37:46 -08:00
Rosen Penev
31fb078125
Merge pull request #10794 from mhei/add-libconfig
libzip: add package
2019-12-15 21:02:22 -08:00
Yousong Zhou
14ee7cd3bf qemu: bump to version 4.2.0 2019-12-16 02:50:15 +00:00
Daniel Engberg
f36cb43188
Merge pull request #10798 from Andy2244/wsdd2-(2019-12-14)
wsdd2: update to git (2019-12-15), bind to 'lan' only
2019-12-15 23:22:40 +01:00
Alexander Couzens
662e83c97b
libmicrohttpd: update to version 0.9.69
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
2019-12-15 20:47:01 +01:00
Andy Walsh
e1a305a355 wsdd2: update to git (2019-12-15), bind to 'lan' only
* update to git (2019-12-15)
* bind to 'lan' interface only
* make cifsd compatible (avoid testparm dependency)
* only start if needed
* add meta data (vendor, model, sku)
* update smb.conf procd location
* lower restart delay
* remove outdated patch

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
2019-12-15 20:44:49 +01:00
Daniel Golle
b6a9bd3bf3 gnurl: update to version 7.67.0
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2019-12-15 19:36:49 +02:00
Christian Lachner
b5a3b7ca86 haproxy: Update HAProxy to v2.0.11
- Update haproxy download URL and hash
- Remove obsolete patches

Signed-off-by: Christian Lachner <gladiac@gmail.com>
2019-12-15 13:47:37 +01:00
Michael Heimpold
a4a98d5efe libzip: add package
This introduces libzip which is e.g. a dependency for upcoming upgrade
of PHP to version 7.4.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2019-12-15 13:35:21 +01:00
Sebastian Kemper
3872e13cc3 postfix: update tinycdb dependency
tinycdb now installs a shared lib alongside the static archive. postfix
will use the shared lib, hence this commit updates the dependency.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-12-15 10:51:13 +01:00
Sebastian Kemper
e5b967aa51 dnsdist: add dependency on tinycdb
If libcdb from tinycdb is available dnsdist will link to it. This commit
adds the dependency.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-12-15 10:49:22 +01:00
Sebastian Kemper
6c4336eb19 tinycdb: install shared lib and pic archive
dnsdist picks up cdb.h but can't link in the static archive.

/home/sk/tmp/openwrt/staging_dir/toolchain-mips_24kc_gcc-8.3.0_musl/lib/gcc/mips-openwrt-linux-musl/8.3.0/../../../../mips-openwrt-linux-musl/bin/ld: /home/sk/tmp/openwrt/staging_dir/target-mips_24kc_musl/usr/lib/libcdb.a(cdb_init.o): relocation R_MIPS_26 against `fstat' can not be used when making a shared object; recompile with -fPIC

This commit extends the tinycdb Makefile to build and install as well
the shared library as well as the pic archive. dnsdist will then pick
the shared library.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-12-15 10:44:08 +01:00
Sebastian Kemper
a99af740ea tinycdb: use OpenWrt flags
Currently tinycdb doesn't use {C,CPP,LD}FLAGS. This commit adds
MAKE_FLAGS to address this.

Before:

make[3]: Entering directory '/home/sk/tmp/openwrt/build_dir/target-mips_24kc_musl/tinycdb-0.78'
ccache_cc -O -D_FILE_OFFSET_BITS=64 -c cdb_init.c
cc1: note: someone does not honour COPTS correctly, passed 0 times
ccache_cc -O -D_FILE_OFFSET_BITS=64 -c cdb_find.c
...

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-12-15 10:39:02 +01:00
Rosen Penev
cfd690ca17
Merge pull request #10791 from micmac1/protobuf-host-libs
protobuf: fix libdir handling for host build
2019-12-14 13:33:00 -08:00
Rosen Penev
5693b19ffe
Merge pull request #10790 from tru7/libfmt
libfmt: bump to version 6.1.2
2019-12-14 11:24:40 -08:00
Sebastian Kemper
6374c7d921 dnsdist: add missing build dep on protoc
The build needs protoc, otherwise it fails.

checking if we need to link in protobuf... yes
checking for PROTOBUF... yes
checking for protoc... no
configure: error: Protobuf requested but the protobuf compiler was not found

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-12-14 17:39:08 +01:00
Sebastian Kemper
c28357d923 dnsdist: add missing lmdb dep
Currently dnsdist is failing at packaging stage when lmdb is in staging:

make[4]: Leaving directory '/builder/shared-workdir/build/sdk/build_dir/target-x86_64_musl/dnsdist-1.4.0'
Package dnsdist is missing dependencies for the following libraries:
liblmdb.so
Makefile:109: recipe for target '/builder/shared-workdir/build/sdk/bin/packages/x86_64/packages/dnsdist_1.4.0-2_x86_64.ipk' failed

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-12-14 17:34:56 +01:00
Sebastian Kemper
956b2706f2 protobuf: fix libdir handling for host build
On some host machines (example: Gentoo amd64 no-multilib) by default
cmake will install libraries to lib64. But in OpenWrt the correct libdir
is lib (for instance the RPATH is set to lib). So you may end up with
libraries in lib64 while RPATH points to lib:

sk@darth ~/tmp/openwrt $ ldd staging_dir/hostpkg/bin/protoc
	linux-vdso.so.1 (0x00007ffc741ea000)
	libprotoc.so.3.8.0.0 => not found
	libprotobuf.so.3.8.0.0 => not found
	libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f0a8f7ea000)
	libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/libstdc++.so.6 (0x00007f0a8f572000)
	libm.so.6 => /lib64/libm.so.6 (0x00007f0a8f427000)
	libgcc_s.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/libgcc_s.so.1 (0x00007f0a8f40d000)
	libc.so.6 => /lib64/libc.so.6 (0x00007f0a8f23c000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f0a8f827000)
sk@darth ~/tmp/openwrt $

Fix this by specifying the libdir during host builds.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-12-14 12:26:08 +01:00
Othmar Truniger
32c802c915 libfmt: bump to version 6.1.2
Signed-off-by: Othmar Truniger <github@truniger.ch>
2019-12-14 10:43:15 +01:00
Rosen Penev
16be1296ed
Merge pull request #10774 from James-TR/James-TR-patch-1
dnsdist: fix missing quote in menu
2019-12-14 00:48:25 -08:00
Rosen Penev
27a2535790
Merge pull request #10782 from dengqf6/ariang
ariang: update to 1.1.4
2019-12-14 00:26:36 -08:00
Rosen Penev
3bfbb7d1db
mosh: Fix compilation with libcxx
Partial backport of upstream patch.``

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-12-14 00:18:53 -08:00
Rosen Penev
77a1b3ba60
libwebp: Fix compilation with mips16
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-12-14 00:17:23 -08:00
Rosen Penev
7f669d8d7c
Merge pull request #10764 from neheb/bf
bfdd: Fix compilation with uClibc-ng
2019-12-13 09:00:03 -08:00
DENG Qingfang
b1de9998ee ariang: update to 1.1.4
Update ariang to 1.1.4

Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
2019-12-14 00:28:03 +08:00
Rosen Penev
ec5c20d667
Merge pull request #10775 from rs/nextdns-1.3.1
nextdns: update to version 1.3.1
2019-12-13 07:20:39 -08:00
Alberto Bursi
154f5b6806 minidlna: add static uuid in config
minidlna uses UUID to uniquely identify the media server
by default, if the "uuid" option is not specified in
its setting file it will try to autogenerate it by
reading MAC address.

This seems to fail on some devices resulting in random
UUID on reboot, and this causes confusion and issues as
for clients this is a new server and must be added to
the list.
In OpenWrt there are also devices where the system can't
read the true MAC address and it is therefore randomized
on reboot.

So, add a static UUID in the settings file.
Since each mindlna server should have a different UUID,
if the user has more than one OpenWrt device with
minidlna, he should change the UUID of the
additional devices.

Signed-off-by: Alberto Bursi <bobafetthotmail@gmail.com>
2019-12-13 11:12:31 +01:00
Jo-Philipp Wich
b2a890f6ad cgi-io: implement exec action
Implement a new "cgi-exec" applet which allows to invoke remote commands
and stream their stdandard output back to the client via HTTP. This is
needed in cases where large amounts of data or binary encoded contents
such as tar archives need to be transferred, which are unsuitable to be
transported via ubus directly.

The exec call is guarded by the same ACL semantics as rpcd's file plugin,
means in order to be able to execute a command remotely, the ubus session
identified by the given session ID must have read access to the "exec"
function of the "cgi-io" scope and an explicit "exec" permission rule for
the invoked command in the "file" scope.

In order to initiate a transfer, a POST request in x-www-form-urlencoded
format must be sent to the applet, with one field "sessionid" holding
the login session and another field "command" specifiying the commandline
to invoke.

Further optional fields are "filename" which - if present - will cause
the download applet to set a Content-Dispostition header and "mimetype"
which allows to let the applet respond with a specific type instead of
the default "application/octet-stream".

Below is an example for the required ACL rules to grant exec access to
both the "date" and "iptables" commands. The "date" rule specifies the
base name of the executable and thus allows invocation with arbitrary
parameters while the latter "iptables" rule merely allows one specific
set of arguments which must appear exactly in the given order.

    ubus call session grant '{
        "ubus_rpc_session": "...",
        "scope": "cgi-io",
        "objects": [
            [ "exec", "read" ]
        ]
    }'

    ubus call session grant '{
        "ubus_rpc_session": "...",
        "scope": "file",
        "objects": [
            [ "/bin/date", "exec" ],
            [ "/usr/sbin/iptables -n -v -L", "exec" ]
        ]
   }'

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-12-13 10:38:35 +01:00
Jan Pavlinec
06d36ca794 git: update to version 2.24.1 (security fix)
Fixes
CVE-2019-1348, CVE-2019-1349, CVE-2019-1350, CVE-2019-1351,
CVE-2019-1352, CVE-2019-1353, CVE-2019-1354, CVE-2019-1387, and
CVE-2019-19604

And fix deprecated PKG_CPE_ID

Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2019-12-13 10:31:09 +01:00