Commit Graph
100 Commits
Author SHA1 Message Date
Yousong Zhou 11f0544744 jamvm: depends on supported architectures
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-09-28 12:03:20 +08:00
Yousong Zhou e38c100612 treewide: remove obsolete references to avr32
This is a long overdue followup commit to openwrt/openwrt@5d9eeab
("build: remove obsolete references to cris and avr32")

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-09-28 12:03:20 +08:00
Yousong Zhou f2bf8d3d4c openvswitch: provide in-tree kmod builds
Open vSwitch 2.10 introduces meters support to the kernel datapath.  In
upstream Linux, the feature is only available since 4.15

This is mainly for make the newly introduced meter features in linux
kernel datapath more easily available

	root@OpenWrt:/# ovs-ofctl -OOpenFlow13 meter-features br0
	OFPST_METER_FEATURES reply (OF1.3) (xid=0x2):
	max_meter:4294967295 max_bands:1 max_color:0
	band_types: drop
	capabilities: kbps pktps burst stats
	root@OpenWrt:/#

Size comparison between in-tree and upstreamed modules are attached

	  2800 Sep  5 08:47 ipkg-mips_24kc/kmod-openvswitch-geneve-intree/lib/modules/4.14.67/vport-geneve.ko
	  2736 Sep  5 08:47 ipkg-mips_24kc/kmod-openvswitch-geneve/lib/modules/4.14.67/vport-geneve.ko
	  2596 Sep  5 08:47 ipkg-mips_24kc/kmod-openvswitch-gre-intree/lib/modules/4.14.67/vport-gre.ko
	  2536 Sep  5 08:47 ipkg-mips_24kc/kmod-openvswitch-gre/lib/modules/4.14.67/vport-gre.ko
	288320 Sep  5 08:47 ipkg-mips_24kc/kmod-openvswitch-intree/lib/modules/4.14.67/openvswitch.ko
	118984 Sep  5 08:47 ipkg-mips_24kc/kmod-openvswitch/lib/modules/4.14.67/openvswitch.ko
	  2792 Sep  5 08:47 ipkg-mips_24kc/kmod-openvswitch-lisp-intree/lib/modules/4.14.67/vport-lisp.ko
	  2788 Sep  5 08:47 ipkg-mips_24kc/kmod-openvswitch-stt-intree/lib/modules/4.14.67/vport-stt.ko
	  3668 Sep  5 08:47 ipkg-mips_24kc/kmod-openvswitch-vxlan-intree/lib/modules/4.14.67/vport-vxlan.ko
	  3400 Sep  5 08:47 ipkg-mips_24kc/kmod-openvswitch-vxlan/lib/modules/4.14.67/vport-vxlan.ko

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-09-09 09:51:14 +08:00
Yousong Zhou 76e57b333d openvswitch: multiple fixes for 2.10
- initscript: skip when ctl scripts are absent.  When only ovs is
   installed, this will quash error messages of ovn-ctl not found when
   invoking stop
 - openvswitch-common: include ovs-kmod-ctl
 - patches: ovs-save: compatible with busybox ip command

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-09-09 09:51:14 +08:00
Yousong Zhou 483e12a9ec openvswitch: depends on libunbound
This was introduced in Open vSwitch 2.10 in commit 771680d ("DNS: Add
basic support for asynchronous DNS resolving")

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-09-05 06:22:06 +00:00
Yousong Zhou 585e8e8572 shadowsocks-libev: README.md: reword text about REDIRECT
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-08-27 08:38:12 +00:00
Yousong Zhou 1b485efbcb openvswitch: bump to version 2.10.0
- Rebased the python target/host separation patch
 - Dropped the now-in-upstream openssl-1.1 compat patch
 - Added a patch to disable tests/

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-08-21 13:51:37 +00:00
Yousong Zhou 9400257639 qemu: tighten up CONFIGURE_ARGS spec
This is more for readability, no functional change

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-08-20 02:43:56 +00:00
Yousong Zhou 41c3a2e0a5 qemu: bump to version 3.0.0
Also switch to domain download.qemu.org and .xz files

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-08-20 02:38:56 +00:00
Yousong Zhou cfab296848 qemu: bump to version 2.12.1
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-08-06 02:02:11 +00:00
Yousong Zhou 893f878847 travis: fail on bad hash message
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-07-17 20:35:00 +08:00
Yousong Zhou 5eb07af2b7 treewide: add missing mirror hash
They are missed out from the FIXUP check probably because of a flaw in
the fixup-makefile.pl script

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-07-09 11:33:55 +08:00
Yousong Zhou 121b10b2bd nginx: allow make check to fixup mirror hash
The $(eval $(call Download,xx)) call need to be at the top level

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-07-09 11:33:55 +08:00
Yousong Zhou 79e977a227 nginx: add config symbols of rtmp,ts to PKG_CONFIG_DEPENDS
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-07-09 11:33:55 +08:00
Yousong Zhou 77c2de7f35 uwsgi-cgi: fix libcap detection
uwsgi-cgi's build system requires CPP to be set to avoid using include
path from the build system.  Otherwise it may wrongly detect
sys/capability.h of the host system and enables libcap support

CPP variable was once introduced into build system in 2017 but then
reverted in b957e45 ("rukes.mk: this patch broken grub2 builds")

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-07-09 11:33:55 +08:00
Yousong Zhou 19bde8da68 libsoc: fix compilation error caused by multiple goals on make
Error of the following kind can happen when parallel build with goals "all" and
"install" both specified on the command line.  Seems like make can parallelly
build for both targets causing race conditions

	make[3]: Entering directory `/tmp/tmp.HIR3tEIqBb/build_dir/target-mips_24kc_musl/libsoc-2016-12-22-5b788d4d'
	Making all in lib
	Making install in lib
	make[4]: Entering directory `/tmp/tmp.HIR3tEIqBb/build_dir/target-mips_24kc_musl/libsoc-2016-12-22-5b788d4d/lib'
	  CC       libsoc_la-gpio.lo
	make[4]: Entering directory `/tmp/tmp.HIR3tEIqBb/build_dir/target-mips_24kc_musl/libsoc-2016-12-22-5b788d4d/lib'
	  CC       libsoc_la-spi.lo
	  CC       libsoc_la-gpio.lo
	  CC       libsoc_la-file.lo
	  CC       libsoc_la-i2c.lo
	  CC       libsoc_la-spi.lo
	  CC       libsoc_la-pwm.lo
	  CC       libsoc_la-board.lo
	  CC       libsoc_la-file.lo
	  CC       libsoc_la-conffile.lo
	  CC       libsoc_la-debug.lo
	  CC       libsoc_la-pwm.lo
	  CC       libsoc_la-conffile.lo
	  CCLD     libsoc.la
	OpenWrt-libtool: link: `libsoc_la-pwm.lo' is not a valid libtool object
	make[4]: *** [libsoc.la] Error 1

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-07-09 11:33:55 +08:00
Yousong Zhou b9cfb7f3c6 i2c-tools: fix stale PKG_SOURCE_URL
Fixes openwrt/packages#5075

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-07-05 17:06:01 +08:00
Yousong Zhou d03e32c513 treewide: fix missing/wrong MIRROR_HASH for sources from github
Some of them forgot to update MIRROR_HASH on version change, others
updated with wrong hash value.  The new values were generated from
tarballs prepared by the newly introduced github-tarball download
methoded and confirmed consistent with those from sources.openwrt.org

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-07-02 10:40:47 +08:00
Yousong Zhou 7c2c1cd66a luai2c: remove it for missing sources
The github repo is gone

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-07-02 10:40:47 +08:00
Yousong Zhou 1e07e684a8 openssh: let opkg manage openssh symlinks of ssh, scp
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-06-25 14:09:25 +08:00
Yousong Zhou 81094b3937 openvswitch: README.md: remove TODO items
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-06-12 10:57:17 +08:00
Yousong Zhou 932cb25b41 shadowsocks-libev: bump to version 3.2.0
Changes summarized by upstream maintainer

  * Add MinGW support by @linusyang.
  * Refine c-ares integration by @xnoreq.
  * Fix building issues with GCC8 by @FlyingheartCN.
  * Minor bug fixes.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-06-04 11:47:17 +08:00
Yousong Zhou 02fa673f82 openvswitch: bump to version 2.9.2
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-06-04 11:27:54 +08:00
Yousong Zhou c2f788f054 openvswitch: rework packaging
New scheme mainly provides three packages: openvswitch,
openvswitch-ovn-north, openvswitch-ovn-controller.  These should fit
most usage scenarios.  Other subpackages like openvswitch-libXXX
etc.  are there for dependency management and are hidden from the
menu.

Many python and shell scripts are removed in this revision.  Most of
them cannot run out of box at all for lack of dependencies.  Others
being legacy ones are not that useful now.  Add them back at later time
when real need appears

Below are a simple listing of additions

 - initscript now incorporate also ovn north and controller support
 - ovn-ctl and ovs-ctl can be invoked directly from within $PATH

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-06-04 11:27:54 +08:00
Yousong Zhou 86ece31c66 openvswitch: remove ovs-parse-backtrace
It's a python script and requires backtrace support when building
openvswitch which requires glibc.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-05-28 18:06:44 +08:00
Yousong Zhou a65da6a79a openvswitch: remove docker related utilities
The overlay and underlay driver, and ovs-docker utilities requires setup
and dependencies that are just not available in known maintained state.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-05-28 17:41:51 +08:00
Yousong Zhou af5ebf6220 xl2tpd: bump to version 1.3.12
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-05-21 16:09:26 +08:00
Yousong Zhou 0cb460a2a7 bash: style and doc fix
The patch is about job control in general instead of the builtin jobs
command

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-05-09 20:15:55 +08:00
Yousong Zhou d859554090 bash: fix postinst script
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-05-09 20:14:50 +08:00
Yousong Zhou da1912f868 treewide: use mirror tag @KERNEL where applicable
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-05-09 17:05:53 +08:00
Yousong Zhou af9c7aae09 dtc: add subpackage fdt-utils
Suggested-by: Tom Burkart <tom@aussec.com>
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-05-09 15:45:51 +08:00
Yousong Zhou 8f18594ac9 dtc: bump to version 1.4.6
Suggested-by: Tom Burkart <tom@aussec.com>
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-05-09 15:45:51 +08:00
Yousong Zhou fa958f4a99 openvswitch: bump to version 2.8.2
Changes since 2.8.2 as recorded in NEWS-2.8.2

    - NSH implementation now conforms to latest draft (draft-ietf-sfc-nsh-28).
    - Bug fixes

0006-adapt-ovs-scripts.patch was splited into two separate patches as
the original patch does not apply against 2.8.2 anymore.  Other patches
are just re-numbered without actual function change

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-03-14 22:40:30 +08:00
Yousong Zhou ecd396a764 xl2tpd: bump to version 1.3.11 2018-03-12 11:25:16 +08:00
Yousong Zhou 5eef0d56cf tree: bump PKG_RELEASE
It was missing in a previous change bab8741 (tree: use
TARGET_{CFLAGS,LDFLAGS} instead of the package default)

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-03-06 12:36:36 +08:00
Yousong Zhou e22de081f9 openvswitch: use https download url
At the time of this writing, Open vSwitch official website suggests
http://openvswitch.org whose https couterpart uses a self-signed
certificate, but it redirects to http://www.openvswitch.org, which has a
working https equivalent.

Reported-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-03-06 00:29:53 +08:00
Yousong Zhou 6aedd02984 openvswitch: set Yousong Zhou as the maintainer
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-03-06 00:29:53 +08:00
Yousong Zhou 5f5dc3614f openvswitch: add gre, vxlan, geneve tunneling support
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-03-06 00:29:53 +08:00
Yousong Zhou 19b2e7627e openvswitch: bump PKG_RELEASE
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-03-06 00:29:53 +08:00
Yousong Zhou eeb6a3fcbb openvswitch: rework openvswitch kernel datapath package
- KCONFIG: bridge compatibility was removed since Open vSwitch 1.10.
   See Open vSwitch FAQ.md for details
 - The module does not depend on kmod-gre, kmod-vxlan
 - Use AutoProbe to remove dependecy on specific priority

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-03-06 00:29:53 +08:00
Yousong Zhou f53d452bd1 openvswitch: python: rework host and target dependency
Open vSwitch needs to run python on build machine to make build-time
required files.  python-six library is only required by the openvswitch
python library on target machine, not a build dependency.

We override host PYTHONPATH by overriding it in MAKE_VARS.  This way we
can remove 0003-override-pythonpath-via-make-vars.patch

This also fixes shebang wrongly pointing to python on host

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-03-06 00:29:53 +08:00
Yousong Zhou 5b56acae21 openvswitch: python: remove openvswitch as a dependency
The python library is a standalone unit.  Remove dependency on
PACKAGE_openvswitch to allow users to use it with maybe remote
openvswitch services.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-03-06 00:29:53 +08:00
Yousong Zhou c8ed010772 openvswitch: remove --disable-ssl
Remove it since we already select libopenssl in openvswitch-base

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-03-06 00:29:53 +08:00
Yousong Zhou f11d8495ca openvswitch: use default rundir /var/run/openvswitch/
This subdir contains multiple pid, unix domain socket files.  It's a
custom to put them in it's own subdir

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-03-06 00:29:53 +08:00
Yousong Zhou 4feb43bf43 openvswitch: remove dependency on SUPPORTED_KERNELS
Quote from Open vSwitch FAQ.md

    Open vSwitch userspace should also work with the Linux kernel module
    built into Linux 3.3 and later.

    Open vSwitch userspace is not sensitive to the Linux kernel version. It
    should build against almost any kernel, certainly against 2.6.32 and
    later.

The SUPPORTED_KERNEL dependency for openvswitch kernel module only
makes sense when we are building it from the ovs release tarballs
against mainline kernels.  Now that we are using the module from vanilla
kernel itself, the dependency does not exist anymore

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-03-06 00:29:53 +08:00
Yousong Zhou 8bd3bd86ad qemu: bump to version 2.11.1
Here are the notable changes

 - pixman is now not part of the release tarball and is required as an
   external dependency
 - archipelago is removed by upstream
 - patches are regenerated with git-format-patch
 - ifunc requirement is now removed

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-02-24 15:41:36 +08:00
Yousong Zhou e35e2bf91b pixman: initial version 0.34.0
This will be required by qemu 2.11.  The two patches are copied from
packaging of current qemu 2.6

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-02-24 15:41:36 +08:00
Yousong Zhou 90843cff63 pixiewps: use compiler, linker options of the build system
pixiewps has its own CFLAGS setting and uses LDFLAGS from
environment variable.  When PKG_ALSR_PIE was enabled, objects were not
compiled with -fPIC supplied from the build system and the final link
step would fail because of the -pie option

Fixes #5590

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-02-11 12:10:07 +08:00
Yousong Zhou ffbdc7e4fd node: depends on availability of fpu
It requires either hardware or software emulated fpu, otherwise program
can fail with SIGILL for fp instructions emitted by the JIT compiler

See #1937, #2633, #2442, FS#1257 for details

From code snippet at deps/v8/src/mips/constants-mips.h

    #elif(defined(__mips_soft_float) && __mips_soft_float != 0)
    // This flag is raised when -msoft-float is passed to the compiler.
    // // Although FPU is a base requirement for v8, soft-float ABI is used
    // // on soft-float systems with FPU kernel emulation.
    // const bool IsMipsSoftFloatABI = true;

[1] https://bugs.chromium.org/p/v8/issues/detail?id=4704

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-02-09 15:47:50 +08:00
Yousong Zhou 805c6b0ecf shadowsocks-libev: remove unnecessary curly braces
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-02-02 17:26:53 +08:00
Yousong Zhou 4d211674ce shadowsocks-libev: bump to version 3.1.3
Notable changes since 3.1.2

    afce1b3 eliminate timered delay between handshake and data stream #1572
    539bf6e sni in redir removed and no disable_sni option #1876
    1d94442..29ff5d3 udprelay fix (no idea what's the problem...) #1883

Now disable_sni=true is the default.  Existing uci configs setting it
will be a nop

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-02-02 17:24:45 +08:00
Yousong Zhou f6b24878a0 pixiewps: bump to version 1.4.2
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-01-29 19:12:24 +08:00
Yousong Zhou bd93547d2b inadyn: update package description and project url
Fixes #5348

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-01-27 14:38:27 +08:00
Yousong Zhou f552f738e2 github: adapt templates
Remove refs to LEDE and use "OpenWrt" instead of "OpenWRT"

Remove instructions on self-checking pull request content for the
following considerations

 - The checks are now enforced by travis autocheck scripts
 - Github now prompts users to refer to the contributing guide on
   submitting new issue and pull request

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-01-27 11:24:43 +08:00
Yousong Zhou 5dd0a570e6 exfat-nofuse: set Yousong Zhou as the current maintainer
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-01-25 09:36:20 +08:00
Yousong Zhou 780330a251 exfat-nofuse: bump to source date 2017-06-20
Fixes #5322, #5444.  Closes #5388

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-01-25 09:36:20 +08:00
Yousong Zhou d438de95a6 vpnc: fix using proto_add_host_dependency
Fixes #4343

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-01-19 11:17:27 +08:00
Yousong Zhou cdb8722abe procps-ng: use alternatives to coexist with busybox applets
Fixes FS#699

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-01-12 17:59:37 +08:00
Yousong Zhou ef2a2962e1 shadowsocks-libev: remove option manager_address
It's an option that is supposed to be fed by ss-manager.  It can be
in the form of host:port or path to unix dgram socket.  Drop it now with
the assumption that it has no real user at the moment

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-01-04 14:48:19 +08:00
Yousong Zhou 4e2336c5f4 shadowsocks-libev: bump to version 3.1.2
Notable changes since 3.1.1

 - 57ab828 fix possible use-after-free in ss-server
 - 65e9d23 filter through acl first before doing sni detection
 - b26cbc2 another attack on null ref
 - d237a05 udprelay: fix off-by-one bug
 - 0c3cf8b fix runtime TFO detection
 - d445ea9 Linux 4.11 TFO socket option support
2018-01-02 10:39:39 +08:00
Yousong Zhou a1fadbde07 shadowsocks-libev: new option no_delay
--no-delay is a new cmdline argument introduced in 3.1.0 to NOT turn off
TCP_NODELAY socket option, i.e. keeping it's default value without
setting it explicitly.  This can be potentially useful for interactive
traffics

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-01-02 10:34:50 +08:00
Yousong Zhou 9853f20b0f reaver: configure with --enable-savetocurrent
It will let reaver to save session file to cwd of the process instead of
/etc/reaver.  This has the same effect as the old patch

  0002-Use-the-current-directory-for-storing-and-loading-se.patch

which was removed in the transition to reaver-wps-t6x-fork

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-12-25 14:16:36 +08:00
Yousong Zhou c4fa84cc21 xl2tpd: README.md: add docs on uci options
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-12-19 10:18:41 +08:00
Yousong Zhou 0d2f9d9bd6 openconnect: fix compilation against libp11 0.4.7
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-12-15 09:50:26 +08:00
Yousong Zhou 3ac5812983 libp11: include also p11_err.h when InstallDev
Fix the following compilation error

    In file included from openconnect-internal.h:95:0,
		     from ssl.c:41:
    /home/yousong/git-repo/lede-project/lede/staging_dir/target-mips_24kc_musl/usr/include/libp11.h: At top level:
    /home/yousong/git-repo/lede-project/lede/staging_dir/target-mips_24kc_musl/usr/include/libp11.h:27:21: fatal error: p11_err.h: No such file or directory
    compilation terminated.
    make[5]: *** [libopenconnect_la-ssl.lo] Error 1

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-12-08 11:09:28 +08:00
Yousong Zhou 209f0a37c4 pixiewps: initial version 1.4.1
Addresses #2872

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-12-05 11:20:32 +08:00
Yousong Zhou 9a35d5397d reaver: switch to reaver-wps-fork-t6x
Addresses #2872

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-12-05 11:19:59 +08:00
Yousong Zhou a9aeab53b9 openconnect: unify indentation in README
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-12-05 09:37:06 +08:00
Yousong Zhou 3ef23b9ebe shadowsocks-libev: bump to version 3.1.1
Notable changes since 3.1.0

    26ae365: fix possible socks5 exchange corruption caused by bad
             state transition when parsing responses
    f19a96e: fix segfault when presented with config {"mode": null}

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-11-21 17:29:53 +08:00
Yousong Zhou bdb01ebc55 shadowsocks-libev: bump to version 3.1.0
Notable changes since 3.0.8

    ede744a: depends on libcares now instead of libudns
    1c64829: new cmdline option --no-delay for not turning off TCP_NODELAY
    9201619: ss-local: check if client supports socks5 protocol and no-auth-required method
    f8283fc: Fix potential buffer overflow when parsing json config
    380fddb: redir: fix conversion from DSCP to ToS

The two patches are now in the offical repo
2017-09-18 13:29:24 +08:00
Yousong Zhou 0931d35319 shadowsocks-libev: ss-rules: eliminiate not needed local var 2017-09-18 13:29:23 +08:00
Yousong Zhou fd0f3aa930 shadowsocks-libev: minor tweak without functional change
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-09-14 11:25:34 +08:00
Yousong Zhou d4e9a4f098 shadowsocks-libev: more common default config
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-08-30 17:45:56 +08:00
Yousong Zhou fac1082803 shadowsocks-libev: ss-rules: query resolveip only for ipv4 addresses
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-08-30 17:40:05 +08:00
Yousong Zhou 5f95c0a2e3 shadowsocks-libev: ss-rules: fix multiple continous \x20 in $o_ifnames
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-08-30 10:13:30 +08:00
Yousong Zhou 8d7c2f2073 shadowsocks-libev: shorten init script by 2 lines
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-08-30 10:13:30 +08:00
Yousong Zhou ec6f7f7f53 shadowsocks-libev: ss-rules: resolve server names before adding to ipset
ipset command line utility supports ranges of address: IP-IP, but the
dash character is also valid character in host names.  If we have a
remote server ss-00.example.com, ipset may complain that

    ipset v6.32: Syntax error: cannot parse ss: resolving to IPv4 address failed

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-08-30 10:13:29 +08:00
Yousong Zhou cff4f65d81 shadowsocks-libev: fix validation of list option
ubox 'list' type is for validating multiple elements separated by
tabs/whitespaces in a single value.  E.g. The following should not be
accepted

    list src_ip_bypass '1.2.3.4 4.3.2.1'

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-08-30 10:13:29 +08:00
Yousong Zhou d6d0a7612a shadowsocks-libev: ss-rules: new bool option --dst-forward-recentrst
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-08-22 19:52:14 +08:00
Yousong Zhou 4ca3a7fcec shadowsocks-libev: ss-rules: rename usage func
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-08-22 19:52:14 +08:00
Yousong Zhou df395767d3 shadowsocks-libev: rewrite ss-rules
- New UCI options ifnames, dst_default
 - UCI options src_ips_xxx now accept cidr as their values
 - Export ipset names as part of the interface so that it can be
   depended on and used by other programs
 - Bypass only remote servers used ss-redir instances, so that it's
   possible to let other servers to go through existing re-redir
   instances

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-08-20 02:21:54 +08:00
Yousong Zhou d4ed4c1f21 shadowsocks-libev: setting mode with default value tcp_only
This is the default value taken by ss-server and ss-redir.  After this
change ss_rules section can still use those ss-redir instances who do
not have mode explicitly specified.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-08-13 12:39:01 +08:00
Yousong Zhou 682b0c2be7 shadowsocks-libev: support disable_sni for ss_server section
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-08-04 22:19:30 +08:00
Yousong Zhou 49dcdca5d0 shadowsocks-libev: backport patch for logging with daemon facility
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-08-02 14:34:49 +08:00
Yousong Zhou 716d2c1357 shadowsocks-libev: add ipv6_first option support
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-08-02 14:34:40 +08:00
Yousong Zhou 7f0adf9631 shadowsocks-libev: bump to version 3.0.8
Notable changes since 3.0.7

 - ss-local, ss-redir: ipv6_first awareness
 - ss-server: ppbloom_add only after 1st decryption succeeds

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-07-31 10:23:47 +08:00
Yousong Zhou 2f910479cf shadowsocks-libev: use xargs -r just in case
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-07-28 15:10:46 +08:00
Yousong Zhou b7f69c0633 shadowsocks-libev: fix compiling with stale object files
This will cause various kinds of failures in the buildbot

    ➜  shadowsocks-libev-3.0.7 git:(master) find . -name '*.o' -o -name '*.lo'
    ./libbloom/murmur2/libbloom_la-MurmurHash2.o
    ./libbloom/murmur2/libbloom_la-MurmurHash2.lo
    ./libbloom/libbloom_la-bloom.lo
    ./libbloom/libbloom_la-bloom.o
    ➜  shadowsocks-libev-3.0.7 git:(master) ls -l libbloom/murmur2
    total 24
    -rw-r--r-- 1 yousong yousong  324 Jun 27 14:17 libbloom_la-MurmurHash2.lo
    -rw-r--r-- 1 yousong yousong 4168 Jun 27 14:17 libbloom_la-MurmurHash2.o
    -rw-r--r-- 1 yousong yousong 1344 Feb 17 08:47 MurmurHash2.c
    -rw-r--r-- 1 yousong yousong  142 Feb 17 08:47 murmurhash2.h
    -rw-r--r-- 1 yousong yousong  213 Feb 17 08:47 README
    ➜  shadowsocks-libev-3.0.7 git:(master) file ./libbloom/murmur2/libbloom_la-MurmurHash2.o
    ./libbloom/murmur2/libbloom_la-MurmurHash2.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped
    ➜  shadowsocks-libev-3.0.7 git:(master)

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-07-28 15:06:24 +08:00
Yousong Zhou 1999396443 shadowsocks-libev: configure options for release build
- It's a common practice that assert should be ignored in release build
 - Whether to enable ssp should be decided by the config of build system

This was taken from Makefile in shadowsocks/openwrt-shadowsocks.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-07-26 10:17:48 +08:00
Yousong Zhou c7195ece14 shadowsocks-libev: configure with --disable-silent-rules
So that more details will be shown in faillogs

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-07-25 16:48:34 +08:00
Yousong Zhou 1c82410cf9 shadowsocks-libev: bump version 3.0.7
Notable changes since 3.0.6

    f308dde ss-server: fix a use-after-free bug
    0b2dce5 ss-redir: fix a mem leak
    b7bdb16 ss-local: SOCKS5 UDP associate terminates the connection prematurely
    3f0d39a ss-local: use getsockname udp_fd where it applies (fixes local_port==0)
    eb30a3d fix possible data loss with salsa20 cipher
    0559d8c fix partial nonce data being overwritten

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-07-25 01:06:10 +08:00
Yousong Zhou 57114609c4 shadowsocks-libev: fix cases where passwords contain dquote
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-07-24 13:10:18 +08:00
Yousong Zhou 3fe965dd1c shadowsocks-libev: validate bool with default value 0
The change is mainly for keeping compatibility with old validate_data
before ubox commit ac481cdd999ee84d3f115c33a56397237e95ec64 in Sat Jul
16 14:52:36 2016 +0200.  The behaviour change comes with that commit can
be seen with the following command line session

    root@LEDE:/usr/bin# validate_data network interface wan 'disabled:bool:false'
    network.wan.disabled is unset and defaults to bool false
    disabled=0; root@LEDE:/usr/bin#

    root@OpenWrt:/# validate_data network interface lan 'disabled:bool:false'
    disabled='false'; root@OpenWrt:/#

This will cause shadowsocks-libev in current master branch fail on OpenWrt
15.01 though they actually should only use packages from the 15.01 branch...

Fixes openwrt/packages#4614

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-07-23 23:29:47 +08:00
Yousong Zhou 8ad2f36550 shadowsocks-libev: ss-rules: add executable bits 2017-07-23 23:29:12 +08:00
Yousong Zhou 327c325d30 shadowsocks-libev: disable documentation
This should also fix build by removing dependency on asciidoc

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-07-03 15:04:39 +08:00
Yousong Zhou b61af9703e shadowsocks-libev: rewrite
- Selecting only a single or subset of all components of shadowsocks-libev is
  now possible (this is the main motivation behind the rewrite)
- Configuring multiple instances of the same component is now also possible
- Same option names as with the json config
- Unified configuration generation method for each component
- Add support for ss-local, ss-tunnel, ss-server
- Most data validation is now done with validate_data
- USE_PROCD=1
- Update ss-rules with the one from shadowsocks/luci-app-shadowsocks
- Add README.md
- Set myself as the maintainer

Addresses #4435

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-07-02 10:01:53 +08:00
Yousong Zhou dbc36c3092 openconnect: openconnect-wrapper: rewrite
- use exec directly to eliminate a level in the process tree
 - use "$@" instead of "$*" to pass arguments to openconnect

According to openconnect(8), openconnect will call vpnc-script to
cleanup before quit when it received SIGINT(2) and will quit immediately
when it received SIGTERM (the default signal by kill command)

Before and after the change, openconnect process will be killed first
with SIGINT sent from netifd.  This was decided by the
'proto_kill_command "$config" 2' notify call in the proto script.

SIGKILL is the only other signal that can be sent from netifd when the
process did not quit on SIGINT on time.  There should be no need to trap
on signal 1 3 6 9 (HUP QUIT ABRT KILL)

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-06-19 12:37:24 +08:00
Yousong Zhou 094cf18b3e coreutils: stdbuf: fix missing libstdbuf.so
Fixes #1674

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-06-19 12:03:23 +08:00
Yousong ZhouandNikos Mavrogiannopoulos 4034e9ee21 openconnect: new option mtu
According to openconnect --help output:

  -m, --mtu=MTU                   Request MTU from server
      --base-mtu=MTU              Indicate path MTU to/from server

Fixes #2099 by allowing setting tunnel mtu

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-06-18 13:10:34 +02:00
Yousong ZhouandNikos Mavrogiannopoulos 4b3fde326c openconnect: drop stale config: interface
It was introduced with 41f8d5465 ("openconnect: fix a couple of minor
things and add an interface option") and not needed since 4083de9d7
("openconnect: use proto_add_host_dependency")

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-06-18 13:10:34 +02:00