Accepting request 443761 from home:hillwood
OBS-URL: https://build.opensuse.org/request/show/443761 OBS-URL: https://build.opensuse.org/package/show/server:proxy/shadowsocks-libev?expand=0&rev=1
This commit is contained in:
commit
36e3e4f1e3
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
shadowsocks-libev-2.5.6.tar.gz
Normal file
3
shadowsocks-libev-2.5.6.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:fa232047d12d39bf19f3539828ca1662da5e5905bfc03163ba20c37fe8e94d8f
|
||||
size 1552674
|
13
shadowsocks-libev-client.service
Normal file
13
shadowsocks-libev-client.service
Normal file
@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Daemon to start Shadowsocks-libev-client
|
||||
Wants=network-online.target
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
PIDFile=/var/run/shadowsocks-libev-client.pid
|
||||
ExecStart=/usr/bin/ss-local -c /etc/shadowsocks/shadowsocks-libev-config.json -f /var/run/shadowsocks-libev-client.pid -u --fast-open
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
8
shadowsocks-libev-config.json
Normal file
8
shadowsocks-libev-config.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"server":"127.0.0.1",
|
||||
"server_port":8609,
|
||||
"local_port":2046,
|
||||
"password":"1QX1d7jbi/StFBnHvqyJ2BBJclh1eYfRWvRGohuZtTJWO6ma4EREMt4iOaxLrHRJzfUijf+x4O4f+uX0zOLxvw==",
|
||||
"timeout":"600",
|
||||
"method":"aes-256-cfb"
|
||||
}
|
13
shadowsocks-libev-manager.service
Normal file
13
shadowsocks-libev-manager.service
Normal file
@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Daemon to start Shadowsocks-libev-manager
|
||||
Wants=network-online.target
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
PIDFile=/var/run/shadowsocks-libev-manager.pid
|
||||
ExecStart=/usr/bin/ss-manager -c /etc/shadowsocks/shadowsocks-libev-config.json -f /var/run/shadowsocks-libev-manager.pid -u --fast-open
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
13
shadowsocks-libev-nat.service
Normal file
13
shadowsocks-libev-nat.service
Normal file
@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Daemon to start Shadowsocks-libev-nat
|
||||
Wants=network-online.target
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
PIDFile=/var/run/shadowsocks-libev-nat.pid
|
||||
ExecStart=/usr/bin/ss-nat -c /etc/shadowsocks/shadowsocks-libev-config.json -f /var/run/shadowsocks-libev-nat.pid -u --fast-open
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
13
shadowsocks-libev-redir.service
Normal file
13
shadowsocks-libev-redir.service
Normal file
@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Daemon to start Shadowsocks-libev-redir
|
||||
Wants=network-online.target
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
PIDFile=/var/run/shadowsocks-libev-redir.pid
|
||||
ExecStart=/usr/bin/ss-redir -c /etc/shadowsocks/shadowsocks-libev-config.json -f /var/run/shadowsocks-libev-redir.pid -u --fast-open
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
13
shadowsocks-libev-server.service
Normal file
13
shadowsocks-libev-server.service
Normal file
@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Daemon to start Shadowsocks-libev-server
|
||||
Wants=network-online.target
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
PIDFile=/var/run/shadowsocks-libev-server.pid
|
||||
ExecStart=/usr/bin/ss-server -c /etc/shadowsocks/shadowsocks-libev-config.json -f /var/run/shadowsocks-libev-server.pid -u --fast-open
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
13
shadowsocks-libev-tunnel.service
Normal file
13
shadowsocks-libev-tunnel.service
Normal file
@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Daemon to start Shadowsocks-libev-tunnel
|
||||
Wants=network-online.target
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
PIDFile=/var/run/shadowsocks-libev.pid
|
||||
ExecStart=/usr/bin/ss-tunnel -c /etc/shadowsocks/shadowsocks-libev-config.json -f /var/run/shadowsocks-libev-tunnel.pid -u --fast-open
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
138
shadowsocks-libev.changes
Normal file
138
shadowsocks-libev.changes
Normal file
@ -0,0 +1,138 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 5 07:26:03 UTC 2016 - hillwood@opensuse.org
|
||||
|
||||
- Add system scripts for ss-redir, ss-tunnel, ss-manager and ss-nat.
|
||||
- Split doc package.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 2 08:36:56 UTC 2016 - hillwood@opensuse.org
|
||||
|
||||
- Update to 2.5.6
|
||||
* Add outbound ACL for server by @kimw.
|
||||
* Refine log format by @kimw.
|
||||
* Refine attack detection.
|
||||
* Fix a bug of auto blocking mechanism.
|
||||
* Fix TCP Fast Open on macOS.
|
||||
* Fix a bug of UDP relay mode of ss-local.
|
||||
* Refine ACL feature with hostname support.
|
||||
* Add HTTP/SNI parser for ss-local/ss-redir.
|
||||
* Fix several bugs of the command line interface.
|
||||
* Add aes-128/192/256-ctr ciphers.
|
||||
* Add option MTU for UDP relay.
|
||||
* Add MultiPath TCP support.
|
||||
- Fix spec for Fedora.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 2 06:38:48 UTC 2016 - hillwood@opensuse.org
|
||||
|
||||
- update to 2.4.8
|
||||
* Fix a security bug.
|
||||
* Refine memory management.
|
||||
* Minor bug fixes.
|
||||
* Fix a potential memory leak.
|
||||
* Fix some compiler related issues.
|
||||
* Fix build issues on OpenWRT.
|
||||
* Reduce the latency of redir mode.
|
||||
* Update manual pages by @kimw.
|
||||
* Enhance UDP relay mode by @wongsyrone.
|
||||
* Add ss-nat, a helper script to set up NAT rules for ss-redir,
|
||||
from @aa65535.
|
||||
* Fix several issues for debian package by @rogers0.
|
||||
* Update manual pages with asciidoc by @anonymous-contributor.
|
||||
* Fix issues of bind_address option by @tim-le.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 11 14:47:44 UTC 2015 - hillwood@linuxfans.org
|
||||
|
||||
- Update to 2.4.0
|
||||
* Refine the one-time authentication.
|
||||
- Changes of 2.3.3 and 2.3.2
|
||||
* Minor bug fixes.
|
||||
- Changes of 2.3.1
|
||||
* Fix an issue of connection cache of UDP relay.
|
||||
* Add support of one time authentication for header verification.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Aug 22 16:40:51 UTC 2015 - i@marguerite.su
|
||||
|
||||
- update version 2.3.0
|
||||
* add manager mode to support multi-user and traffic stat
|
||||
- changes in 2.2.3
|
||||
* Fix some issues for multi-destination UDP relay
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 25 14:52:17 UTC 2015 - i@marguerite.su
|
||||
|
||||
- update version 2.2.2
|
||||
* fix the timer of UDP relay
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 5 16:41:32 UTC 2015 - i@marguerite.su
|
||||
|
||||
- update version 2.2.1
|
||||
* fix an issue of UDF relay.
|
||||
- changes in 2.2.0
|
||||
* add TPROXY support for redir mode.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Mar 15 03:34:24 UTC 2015 - i@marguerite.su
|
||||
|
||||
- systemd service:
|
||||
* restart on failure instead of abort
|
||||
* enable tcp fast open
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 13 12:29:24 UTC 2015 - i@marguerite.su
|
||||
|
||||
- update version 2.1.4
|
||||
* add acl support to server mode
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jan 17 14:16:34 UTC 2015 - i@marguerite.su
|
||||
|
||||
- update version 2.0.8
|
||||
* minor bug fixes
|
||||
- changes in 1.6.3~2.0.7
|
||||
* refine documents
|
||||
* implement a real asyncchronous DNS resolver
|
||||
* fix some issues with MinGW
|
||||
* refine ss-local, ss-tunnel, and ss-redir
|
||||
* fix an issue in redir mode
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jan 3 04:19:06 UTC 2015 - i@marguerite.su
|
||||
|
||||
- update version 1.6.2
|
||||
* minor bugfix
|
||||
- changes in 1.5.0~1.6.1
|
||||
* Support to build static or shared library.
|
||||
* Refine the cache size of UDPRelay.
|
||||
* Fix a bug introduced by fast open.
|
||||
* Handle signals properly.
|
||||
* Fix log on Win32.
|
||||
* Add salsa20 and chacha20 support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 25 17:01:16 UTC 2014 - i@marguerite.su
|
||||
|
||||
- update version 1.4.8
|
||||
* Fix a bug of tcp fast open.
|
||||
- changes in 1.4.7
|
||||
* Add a new encryptor rc4-md5
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 22 09:51:58 UTC 2014 - i@marguerite.su
|
||||
|
||||
- update version 1.4.6
|
||||
* minor bugfix release
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 2 04:19:57 UTC 2014 - i@marguerite.su
|
||||
|
||||
- initial version 1.4.5
|
||||
* Fix the compatibility issue of udprelay.
|
||||
* Enhance asyncns to reduce the latency.
|
||||
- add shadowsocks-libev-config.json
|
||||
* random ports, random passwords.
|
||||
* strongest encryption method
|
||||
- add systemd services
|
148
shadowsocks-libev.spec
Normal file
148
shadowsocks-libev.spec
Normal file
@ -0,0 +1,148 @@
|
||||
#
|
||||
# spec file for package shadowsocks-libev
|
||||
#
|
||||
# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
Name: shadowsocks-libev
|
||||
Version: 2.5.6
|
||||
Release: 0
|
||||
License: GPL-3.0+
|
||||
Summary: Libev port of Shadowsocks
|
||||
Url: https://github.com/madeye/shadowsocks-libev
|
||||
Group: Productivity/Networking/Web/Proxy
|
||||
Source0: https://github.com/shadowsocks/shadowsocks-libev/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
Source1: %{name}-config.json
|
||||
Source2: %{name}-client.service
|
||||
Source3: %{name}-server.service
|
||||
Source4: %{name}-tunnel.service
|
||||
Source5: %{name}-nat.service
|
||||
Source6: %{name}-manager.service
|
||||
Source7: %{name}-redir.service
|
||||
BuildRequires: libtool
|
||||
BuildRequires: openssl-devel
|
||||
%if 0%{?fedora} >= 24
|
||||
BuildRequires: pkgconfig
|
||||
%else
|
||||
BuildRequires: pkg-config
|
||||
%endif
|
||||
%if 0%{?fedora} == 24
|
||||
BuildRequires: ghostscript-core
|
||||
%endif
|
||||
BuildRequires: asciidoc
|
||||
BuildRequires: pkgconfig(libpcre)
|
||||
BuildRequires: xmlto
|
||||
BuildRequires: systemd
|
||||
%{?systemd_requires}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
shadowsocks-libev is a lightweight secured scoks5 proxy
|
||||
for embedded devices and low end boxes.
|
||||
|
||||
%package doc
|
||||
Summary: Documents for shadowsocks-libev
|
||||
Group: Documentation/HTML
|
||||
Requires: %{name} = %{version}
|
||||
BuildArch: noarch
|
||||
|
||||
%description doc
|
||||
shadowsocks-libev is a lightweight secured scoks5 proxy
|
||||
for embedded devices and low end boxes.
|
||||
|
||||
This package provides Documents for it.
|
||||
|
||||
%package devel
|
||||
Summary: Development headers for shadowsocks-libev
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description devel
|
||||
shadowsocks-libev is a lightweight secured scoks5 proxy
|
||||
for embedded devices and low end boxes.
|
||||
|
||||
This package provides development headers for it.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
%configure --prefix=%{_prefix}
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
rm -rf %{buildroot}%{_libdir}/*.{a,la}
|
||||
|
||||
install -d %{buildroot}%{_sysconfdir}/shadowsocks/
|
||||
install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/shadowsocks/
|
||||
|
||||
install -d %{buildroot}%{_unitdir}
|
||||
install -m 644 %{SOURCE2} %{buildroot}%{_unitdir}
|
||||
install -m 644 %{SOURCE3} %{buildroot}%{_unitdir}
|
||||
install -m 644 %{SOURCE4} %{buildroot}%{_unitdir}
|
||||
install -m 644 %{SOURCE5} %{buildroot}%{_unitdir}
|
||||
install -m 644 %{SOURCE6} %{buildroot}%{_unitdir}
|
||||
install -m 644 %{SOURCE7} %{buildroot}%{_unitdir}
|
||||
mkdir -p %{buildroot}%{_sbindir}
|
||||
ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rcshadowsocks-libev-client
|
||||
ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rcshadowsocks-libev-server
|
||||
ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rcshadowsocks-libev-manager
|
||||
ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rcshadowsocks-libev-nat
|
||||
ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rcshadowsocks-libev-redir
|
||||
ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rcshadowsocks-libev-tunnel
|
||||
|
||||
%pre
|
||||
%service_add_pre %{name}-server.service %{name}-client.service
|
||||
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
%service_add_post %{name}-server.service %{name}-client.service
|
||||
|
||||
%preun
|
||||
%service_del_preun %{name}-server.service %{name}-client.service
|
||||
|
||||
%postun
|
||||
/sbin/ldconfig
|
||||
%service_del_postun %{name}-server.service %{name}-client.service
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc Changes README.md COPYING LICENSE
|
||||
%dir %{_sysconfdir}/shadowsocks
|
||||
%config(noreplace) %{_sysconfdir}/shadowsocks/%{name}-config.json
|
||||
%{_bindir}/ss-local
|
||||
%{_bindir}/ss-redir
|
||||
%{_bindir}/ss-server
|
||||
%{_bindir}/ss-tunnel
|
||||
%{_bindir}/ss-manager
|
||||
%{_bindir}/ss-nat
|
||||
%{_mandir}/man8/%{name}.8.gz
|
||||
%{_mandir}/man1/ss-*.1.gz
|
||||
%{_sbindir}/rcshadowsocks-libev-*
|
||||
%{_unitdir}/%{name}-*.service
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root)
|
||||
%dir %{_datadir}/doc/%{name}
|
||||
%doc %{_datadir}/doc/%{name}/*.html
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/shadowsocks.h
|
||||
%{_libdir}/pkgconfig/%{name}.pc
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user