Commit Graph
2428 Commits
Author SHA1 Message Date
cuckoo af7ea5c400 use system lib 2017-03-16 13:06:08 +08:00
Roger Shimizu 529b226d18 Cleanup build_deb.sh script
- Use "lsb_release -cs" command to get distro info.
- Limit xz memory usage to 128MiB.
- Other minor fixes.
2017-03-16 13:06:08 +08:00
Max Lv 71ff3cff1d Fix #1306 2017-03-16 13:06:08 +08:00
Roger Shimizu 9e3b5528b4 Add simple-obfs support to build_deb.sh script 2017-03-16 13:06:08 +08:00
lqs fda287d76f Add tcp-fast-open support for ss-redir 2017-03-16 13:06:08 +08:00
Roger Shimizu eada394c1f Update build_deb.sh to add libbloom support
Also includes fixes for yakkety.
2017-03-16 13:06:08 +08:00
Max Lv 908a7fa050 Fix #1296 2017-03-16 13:06:07 +08:00
Max Lv 913dfd81e8 Bump version 2017-03-16 13:06:07 +08:00
Max Lv f3d298f036 Fix #1291 2017-03-16 13:06:07 +08:00
was4444 91096c6f98 add closure? (#1294) 2017-03-16 13:06:07 +08:00
was4444 c809cc0246 pack submodules for genrpm (#1293)
* add option to run autogen before configure

* pack submodules for genrpm
2017-03-16 13:06:07 +08:00
was4444 99e08e37b3 genrpm changes (#1292)
* auto select latest version

* bash-completion comes with version 2.6.0

* version greater than 2.6.2 need submodules packed

* adjust version check order
2017-03-16 13:06:07 +08:00
Kim 9acebb4f4f Updated bash completion (#1284) 2017-03-16 13:06:06 +08:00
Max Lv 9bf991b23f Refine the parameters of bloom filter 2017-03-16 13:06:06 +08:00
Max Lv 557cd91fe0 Make parameters of bloom filter be compiler-time constants 2017-03-16 13:06:06 +08:00
Max Lv 3f2f979dac Replace nonce cache with a ping-pong bloom filter (#1282)
* Add Ping-Pong bloom filter

* Refine bloom filter insertion

* Reduce the error rate to 0.00001

* Avoid alignment issue in murmurhash2

* Fix a memory leak

* Fix build on non-GPU targets

* Detect get_current_dir_name in configure

* Update README.md

* Remove redudant bfree()

* Reduce the memory usage for local client

* Fix #1275

* Refine #1275

* Use IP when bypassing SNI domains

* Also apply replay detector on UDP traffic

* Update deb build script

Now build script is able to auto detect system and choose libraries
necessary to build.

Also update the README accordingly.

* Update build script to enable jessie/stretch etc

Also include a few cleanup that simplified pkg installation from
backports repository.
2017-03-16 13:06:06 +08:00
Roger Shimizu d122cd1eed Update build script to enable jessie/stretch etc
Also include a few cleanup that simplified pkg installation from
backports repository.
2017-03-16 13:06:06 +08:00
Roger Shimizu 94a9924a78 Update deb build script
Now build script is able to auto detect system and choose libraries
necessary to build.

Also update the README accordingly.
2017-03-16 13:06:06 +08:00
Max Lv dc216391b9 Update README.md 2017-03-16 13:06:05 +08:00
Max Lv a0fd7a1186 Detect get_current_dir_name in configure 2017-03-16 13:06:05 +08:00
Max Lv f9fe9bccf5 Fix build on non-GPU targets 2017-03-16 13:06:05 +08:00
Max Lv bf23fb6ec4 Fix a memory leak 2017-03-16 13:06:05 +08:00
Roger Shimizu d20117481c Add xenial-backports repository
Because user may upgrade from previous LTS version, xenial-backports
is better to be added by us for safety.

And use debhelper 10 for shadowsocks-libev only.
2017-03-16 13:06:05 +08:00
Roger Shimizu 4c0f33e33d Update trusty build script
- Move Build-Depends dh-autoreconf dh-systemd to debian/control
- Also change debian/compat to 9 (debhelper 9)
2017-03-16 13:06:05 +08:00
Roger Shimizu 825e83534b fix of PATH_MAX for GNU/Hurd
Info:
 - https://www.gnu.org/software/hurd/community/gsoc/project_ideas/maxpath.html
 - https://www.gnu.org/software/hurd/hurd/porting/guidelines.html#PATH_MAX_tt_MAX_PATH_tt_MAXPATHL
2017-03-16 13:06:04 +08:00
Simon Shi 123c64833a Readme refine (#1360)
* Readme refine

1. update libsodium version
2. remove some duplicate information
3. move some building suggestion to other part of document

Signed-off-by: Simon <simonsmh@gmail.com>

* mbedtls

* fix

1. distributions
2. usage
3. typo
2017-03-15 22:49:18 +08:00
Roger Shimizu 669ddeba19 Add kcptun package build support to build_deb.sh script
Confirmed under xenial and jessie-backports.
Other distro still need some work, but should be similar.
2017-03-14 13:42:01 +08:00
Max Lv 88d6ea0948 Add delayed connecting in ss-tunnel 2017-03-11 09:21:42 +08:00
Felix Yan 0334e73c2b Use system libbloom on USE_SYSTEM_SHARED_LIB 2017-03-09 12:48:46 +08:00
Rick Lei e63de4ce23 Turn off errexit option when detecting the apg command
Commit https://github.com/shadowsocks/shadowsocks-libev/commit/f32ac38c2f7aab09ec25131209954957518de42a
allows to use pwgen to generate the initial password at the first
installation. However it won't work when apg isn't installed because:

* the postinst script has errexit option set ("set -e")
* at the first installation of ss-libev, apg or pwgen will be called to
  generate the initial password in config.json
* when apg isn't installed, "pathfind apg" would return 1
* and the postinst script will immediately exit due to "set -e"

This commit temporarily turn off the errexit option for pathfind()
2017-03-09 12:48:37 +08:00
zhou0 e1027a7c56 restore version_info to 2.0.0 2017-03-09 12:48:25 +08:00
zhou0 44625be901 fix wrong version_info 2017-03-09 12:48:25 +08:00
zhou0 64d9eaf082 remove AC_PROG_LIBTOOL
with LT_INIT, AC_PROG_LIBTOOL is not needed.
2017-03-09 12:48:25 +08:00
Max Lv a4bebe3ee9 Refine assertion 2017-03-09 11:15:36 +08:00
lqs 5cf6476aa7 fix bugs 2017-03-08 21:26:52 +08:00
Martin Wetterwald 6e069c7edb ss-redir: allow you to define additionals listenings ports to set a TOS/DSCP on the outgoings ciphered connections 2017-03-08 13:58:28 +08:00
Sebastien DUPONCHEEL 06c15057e5 ss-server: append --enable-connmarktos option to configure and check for libnetfilter-conntrack dependency if enabled 2017-03-08 13:58:28 +08:00
Sebastien DUPONCHEEL 6c6a054e5f ss-server: allows you to set a TOS/DSCP value to the outgoing ciphered connection to the client from a netfilter mark setted on the (re)comming connection from the outside world. 2017-03-08 13:58:28 +08:00
Patrick Li f32ac38c2f Allow the use of pwgen to generate passwords 2017-03-07 16:26:46 +08:00
Max Lv 5e13d396ee Refine port binding 2017-03-07 12:05:07 +08:00
Max Lv e6799b98db Refine the error handling 2017-03-07 10:56:48 +08:00
Max Lv 3f820c6fb8 Fix #1334 2017-03-07 10:34:34 +08:00
Heiybb 14a85558d0 Update README.md
Add manager option
2017-03-06 07:05:05 +08:00
Max Lv de0cebb62e Fix a building issue 2017-03-05 16:07:10 +08:00
Max Lv 9241e545f4 Don't apply ACL on DNS port on Android 2017-03-05 15:59:07 +08:00
hang 2edbfacf74 add Linux build dependencies: libsodium-dev 2017-03-04 11:15:11 +08:00
Max Lv 3f1337540e Listening at 0.0.0.0 by default 2017-03-04 09:25:12 +08:00
Sebastien DUPONCHEEL 5074cd336d mptcp: make shadowsocks kernel independant 2017-03-03 20:14:00 +08:00
Rayson zhu a61e3e0f78 fix rpm SPEC file
1. add missing build and runtime dependencies
2. change minimal version requirement for libsodium to 1.0.4, which
should work fine with ss-libev and EPEL7 users will not have to compile a
later version.
3. add more entries to .gitignore
2017-03-03 16:32:17 +08:00
Rayson zhu 8194e91970 Rewrite genrpm.sh to build RPM from current Git workspace
Here are the problems existing in the old RPM packaging scripts:

1. The old `genrpm.sh` is designed to build RPMs for all versions of
shadowsocks-libev with an option '-v'.
This increases the complexity because we need to keep it compatible
with old versions.
2. I have to modify the script manually in order to build RPMs from
non-release commit or dirty workspace.

The new script will only build RPMs and SRPMs from current workspace,
not commit.
The version-release number will be determined automatically from the
`git describe` command.
2017-03-03 13:31:25 +08:00