Commit Graph
1580 Commits
Author SHA1 Message Date
Rayson zhu ea947db74d 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-16 13:06:09 +08:00
Rayson zhu 27860045e6 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-16 13:06:09 +08:00
Roger Shimizu 1b2559478d Make build_deb.sh script to build libraries and binaries separately
Also add usage help and a few code cleanup
2017-03-16 13:06:09 +08:00
Max Lv 28b3d0a99e Fix #1312 2017-03-16 13:06:09 +08:00
Jian Chang 15a01d581e update README.md
On Linux, you need to run `ldconfig` after installing a new library.
2017-03-16 13:06:08 +08:00
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
wener 734092e348 Build shared and static shadowsock-libev and executable. 2017-02-20 00:04:28 +08:00
wener 0cabdccd9a Remove confuse comment in config.h.in;Move config.h.in to cmake. 2017-02-18 13:03:22 +08:00
wener 95a8a4db50 Add missing ss-redir install; Remove cmake build success echo. 2017-02-18 02:43:30 +08:00
wener 47acac3b8c Add cmake to ci 2017-02-18 02:23:32 +08:00
wener 00bf648f77 Allowed to build static linked executable, default ON
To build shared executable

   cmake -DBUILD_STATIC=OFF . && make
2017-02-18 01:41:24 +08:00
wener 111041731f link libcork instead cork to ss-redir 2017-02-18 00:10:32 +08:00
wener c5ac1316aa Use cmake to generate config.h 2017-02-17 18:58:32 +08:00
wener 5446408f4d Add a compile-able CMakeLists, but still need to generate config.h 2017-02-17 15:31:43 +08:00
Roger Shimizu 91643523c4 Bump debhelper 10
debhelper 10 is available in the following Debian/Ubuntu releases:
 - Debian 8.x Jessie (jessie-backports)
 - Debian 9.x Stretch / unstable
 - Ubuntu 16.04 Xenial (xenial-backports)
 - Ubuntu 16.10 Yakkety

debhelper supports dh-autoreconf and dh-systemd by default, so we can
safely remove a few Build-Depends and dh params.

We also sync a few other files under debian/ folder with Debian release
3.0.2+ds-1~exp1.
2017-02-16 20:38:08 +08:00
Roger Shimizu fc84654420 README: Install build dependencies by mk-build-deps cmd
mk-build-deps is provided by devscripts package, and also relies on
equivs package.
2017-02-16 20:37:41 +08:00
Neal Feng 0437e05aa8 iperf.sh: wait one second before killing processes 2017-02-16 12:33:40 +08:00
Roger Shimizu 1d589900fb Add Ubuntu 14.04/16.04 build instruction to README 2017-02-15 21:32:10 +08:00
Roger Shimizu 7467f07984 Add CAP_NET_ADMIN capability to ss-redir in postinst script
Fix #1252
2017-02-15 08:01:00 +08:00
Roger Shimizu d12a7b911e Add more cleanup pkg to trusty script
For xenial script, it's clean enough so far.
2017-02-15 08:00:43 +08:00
Syrone Wong 80ca9469e6 Output error log when repeat IV/salt detected
This is useful when checking connection issues, and can be used to
check broken random number generator and replay attacks.

Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
2017-02-14 19:41:46 +08:00
Max Lv 504a3f7813 Refine MAX_FRAG 2017-02-14 10:38:39 +08:00
Max Lv 422eaa5024 Add back fragmentation detection 2017-02-14 10:02:36 +08:00
Roger Shimizu 0553da0692 dh-systemd dependency should be removed for debhelper >=10
For trusty, debhelper is 9, so need to add the Build-Depends
for the build script.

With a few other fixes for trusty script.
2017-02-14 09:37:24 +08:00
Roger Shimizu e7e4291f03 Add deb build script for ubuntu xenial 16.04 2017-02-13 22:31:16 +08:00
Max Lv 72f6041a7c Add USE_SYSTEM_SHARED_LIB check in configure 2017-02-13 21:32:46 +08:00