Commit Graph
53 Commits
Author SHA1 Message Date
Maxim Galaganov 549b9bedb9 Fix rpm build for fedora 36 2022-06-26 06:21:38 +08:00
Suilong Liang c04e6dfe2d Change from network.target to network-online.target in systemd service files. 2019-06-26 11:51:37 +08:00
nil c8fcec1a31 remove -u arguments by default 2019-05-02 14:04:50 +08:00
Max Prokhorov 3c10661d81 Use correct outdir 2018-05-14 09:59:43 +03:00
Max Prokhorov 999e0555c7 Fedora COPR support
- Support .copr/Makefile for 'SCM / make srpm' COPR package
- Use genrpm.sh to generate srpm and optionally build it
- Use generic substitution syntax in specfile
2018-05-14 09:38:07 +03:00
Max Lv 380cb81234 Revert "Create srpm and rpm targets to the Autotools build"
This reverts commit 395515d1f7.
2018-05-08 15:26:39 +08:00
Yuxiang Zhu 395515d1f7 Create srpm and rpm targets to the Autotools build
The new `srpm` target can be handled by Fedora Copr for
automated builds. A `rpm` target is also added for alignment.
2018-05-04 18:12:49 +08:00
asmca b370bc06f0 update shadowsocks-libev.service
ss-server waits for local ip ready, add network-online.target here.

my env.
CentOS Linux release 7.2.1511 (Core)
2018-01-24 11:08:59 +08:00
Yuxiang Zhu 6e99ee00db RPM packaging: replace udns with c-ares (#1662) 2017-09-04 15:27:04 +08:00
Yuxiang Zhu a489834204 Refine SPEC for RPM packages
This change includes:

1. Move shared library `shadowsocks-libev.so.*` to an package `libshadowsocks-libev`
and rename package `shadowsocks-libev-devel` to `libshadowsocks-libev-devel`
to reconcile with the deb packages.
2. Add a new package `shadowsocks-libev-zsh-completion`.
3. Run `setcap` after installation (similar to #1119).
4. Remove ss-nat because it is designed for OpenWrt/LEDE.
5. Auto restart instantiated services after update and stop/disable instantiated
services after uninstallation.
2017-08-23 16:09:49 +08:00
Yuxiang Zhu feeaff85e1 Provides separated service files for RPM packages
As discussed with @librehat in #1604, maintaining a separate set of systemd
files for RPM distributions will be convenient to build on Copr.

This patch will also change some lines in rpm/genrpm.sh to archive the
source code using `git archive` because the old logic doesn't respect
`.gitignore`.
2017-08-22 08:53:56 +08:00
Yuxiang Zhu c90cb5a0ae Fix #1533
This patch is going to replace the group name 'nogroup' with 'nobody' in
debian/shadowsocks-libev.service, and move file
'/etc/default/shadowsocks-libev' to '/etc/sysconfig/shadowsocks-libev'.

This is implemented by creating a text patch file. Not sure whether
there is a better approach.
2017-06-28 05:02:49 -05: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
cuckoo c1f443cc76 use system lib 2017-02-27 22:27:47 +08:00
was4444 48c9abe3a5 add closure? (#1294) 2017-02-22 17:26:45 +08:00
was4444 998cb109d3 pack submodules for genrpm (#1293)
* add option to run autogen before configure

* pack submodules for genrpm
2017-02-22 16:57:59 +08:00
was4444 eaefbe1e76 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-02-22 12:19:52 +08:00
Max Lv 46fa5de9e4 Bump version 2017-02-13 09:13:16 +08:00
Max Lv fdb1f190f8 Bump version 2017-02-07 13:30:18 +08:00
Max Lv 4d25f176b6 Bump version 2017-02-01 19:18:12 +08:00
Max Lv 3f8cd982e5 Drop MinGW32 support 2017-01-24 20:10:31 +08:00
Max Lv 9c94e6792c Bump version 2017-01-16 10:23:01 +08:00
Max Lv 48b6a59df4 Bump version 2017-01-08 16:31:54 +08:00
Max Lv 8cb4f81eba Add HTTP/TLS obfuscating. [SIP001] (#1009)
Add experimental HTTP/TLS obfuscating as an **optional extension** of shadowsocks protocol.

More discussions can be found here: https://github.com/shadowsocks/shadowsocks-org/issues/26

As this feature is still a SIP (Shadowsocks Improvement Proposal), it's very unstable and experimental. So, 

1. Don't enable it unless you know what it is.
2. Be very careful when using it in production environment.
2016-12-27 02:53:25 -06:00
Rayson zhu 7bbf81068b fix broken EL6 packaging support
Tests show that EL6 is too old to support `%elif` statement (which is very stupid).
And revert dependency `openssl-libs` to `openssl` because of
inconsistent names in EL6.
2016-11-25 03:13:40 -06:00
Rayson zhu 5d85590f7c support packaging for openSUSE 2016-11-25 02:13:10 -06:00
Rayson zhu b80c159758 RPM packaing: move .la and .so to devel subpackage 2016-11-20 00:06:16 -06:00
Rayson zhu 9754edda9c package bash completion files 2016-11-20 12:58:31 +08:00
Max Lv d6c377df9c Bump version 2016-11-01 09:56:22 +08:00
Rayson Zhu 69a08675c4 Make genrpm.sh a little safer. (#895)
1. Remove function `get_att_val`:
That function uses `eval` to set default values for bash variables.
Because it is very dangerous to use `eval` (someone call it the plague of shell scripting), I'd like to use the bash builtin to do that.
2. Double quote all variables to avoid unexpected expansion when using it.
2016-10-21 11:05:50 +08:00
Rayson Zhu e5d53933d5 Fix missing dependencies (#894)
* Add missing build dependencies to RPM spec

* Fail if `asciidoc` or `xmlto` not found
2016-10-21 11:05:42 +08:00
Max Lv 91b4e6ad6d Fix #887 2016-10-18 13:21:33 +08:00
Rayson Zhu 0230620c27 Include shadowsocks-libev-*.service files for RPM packages (#886) 2016-10-16 09:40:29 +08:00
Echizen Ryoma 0e1ca9c25d update version to 2.4.5 2016-02-18 09:56:48 +08:00
惠轶群 41b1146360 update Version to 2.4.1 2015-11-05 13:50:24 +08:00
惠轶群 bfbcd4dbb4 fix genrpm.sh 2015-11-05 13:49:33 +08:00
Symeon Huang 4aeb4eed01 fix rpm spec 2015-09-28 12:31:06 +01:00
Symeon Huang 227272b501 using macros where possible 2015-09-27 15:38:16 +01:00
Symeon Huang 88b906328f update rpm spec file.
use files from debian directory if possible
2015-09-27 15:30:47 +01:00
cuckoo bf64d01a5f add `genrpm.sh' to build rpm easily 2015-03-25 21:16:54 +08:00
cuckoo 9985aaa35f add rpm support 2015-03-24 23:55:41 +08:00
Zhang Sen 4c7807d497 Fix typo in init.d script under rpm directory
here is also a wrong spelling
2015-02-14 16:02:15 +08:00
Max Lv 074956483b Enable udprelay in the init script of RHEL 2014-12-08 08:43:21 +08:00
Symeon Huang 350c3546fa RPM uses /usr instead of /usr/local as the prefix. 2014-11-23 15:29:07 +00:00
Symeon Huang 50dbeef003 completely rename as shadowsocks-libev.
it's not conflicted with shadowsocks-python now. users can install both python and libev
ports of shaowsocks now. but they should migrate their old configuration file from
/etc/shadowsocks/config.json to /etc/shadowsocks-libev/config.json
2014-11-16 19:56:04 +00:00
Max Lv ef432f078b Fix the pid file in centos init script 2014-02-18 09:01:27 +08:00
Max Lv 1bdcadf7e7 Update the init script of centos 2014-02-18 08:52:39 +08:00
Vinna bdb5977865 tidy 2014-01-21 17:12:27 +08:00
Vinna c52e30dd20 cancel certain user permisson,because run failed 2014-01-21 17:10:35 +08:00