ccad901955
- Update to 3.0.10 * Replace libudns with libc-ares. - Merge libbloom, libcork and libipset. - Update to 3.0.8 * Refine the ping-pong bloom filter. * Minor bug fixes by @vfreex, @vlolteanu and @jackyyf. - Set simple-obfs by Recommends. - Update to 3.0.7 * Fix a bug with AEAD ciphers. * Refine ACL support by @blackgear. * Refine manager mode by @mengxd. * Fix a potential memory leak by @vlolteanu. - Update to 3.0.5 * Drop dependencies of OpenSSL and PolarSSL. * Deprecate OTA (One-Time-Auth). * Add new ciphers for SIP004: aes-128-gcm, aes-192-gcm, aes-256-gcm, chacha20-poly1305 and chacha20-ietf-poly1305. * Refine SIP003 to support standalone mode of obfsproxy. * Fix a crashe when using stream ciphers. * Fix a protocol bug in AEAD ciphers. (SIP004) * Allow setting keys directly. (SIP006) * Add session key for AEAD. (SIP007) * Replace nonce cache with a ping-pong bloom filter. * Add CMake files by @wenerme. * Support TCP Fast Open in ss-redir by @lqs. * Support TOS/DESCP in ss-redir by @sduponch. OBS-URL: https://build.opensuse.org/request/show/527196 OBS-URL: https://build.opensuse.org/package/show/server:proxy/shadowsocks-libev?expand=0&rev=7
178 lines
5.4 KiB
RPMSpec
178 lines
5.4 KiB
RPMSpec
#
|
|
# spec file for package shadowsocks-libev
|
|
#
|
|
# Copyright (c) 2017 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: 3.1.0
|
|
Release: 0
|
|
License: GPL-3.0+
|
|
Summary: Libev port of Shadowsocks
|
|
Url: https://github.com/shadowsocks/shadowsocks-libev
|
|
Group: Productivity/Networking/Web/Proxy
|
|
Source0: https://github.com/shadowsocks/shadowsocks-libev/releases/download/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: pkgconfig(openssl)
|
|
BuildRequires: pkgconfig(libsodium) >= 1.0.4
|
|
BuildRequires: pkgconfig(libpcre)
|
|
BuildRequires: pkgconfig(libcares)
|
|
BuildRequires: pkgconfig(libev)
|
|
BuildRequires: mbedtls-devel
|
|
%if 0%{?fedora} >= 24
|
|
BuildRequires: pkgconfig
|
|
%else
|
|
BuildRequires: pkg-config
|
|
%endif
|
|
%if 0%{?fedora} == 24
|
|
BuildRequires: ghostscript-core
|
|
%endif
|
|
BuildRequires: asciidoc
|
|
BuildRequires: xmlto
|
|
BuildRequires: systemd
|
|
Recommends: simple-obfs
|
|
%{?systemd_requires}
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
shadowsocks-libev is a lightweight secured scoks5 proxy
|
|
for embedded devices and low end boxes.
|
|
|
|
%package -n lib%{name}2
|
|
Summary: Libev port of Shadowsocks
|
|
|
|
%description -n lib%{name}2
|
|
shadowsocks-libev is a lightweight secured scoks5 proxy
|
|
for embedded devices and low end boxes.
|
|
|
|
This package provides libraries for it.
|
|
|
|
%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} \
|
|
--enable-shared
|
|
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 \
|
|
%{name}-manager.service %{name}-nat.service %{name}-redir.service \
|
|
%{name}-tunnel.service}
|
|
|
|
%post
|
|
%{service_add_post %{name}-server.service %{name}-client.service \
|
|
%{name}-manager.service %{name}-nat.service %{name}-redir.service \
|
|
%{name}-tunnel.service}
|
|
|
|
%preun
|
|
%{service_del_preun %{name}-server.service %{name}-client.service \
|
|
%{name}-manager.service %{name}-nat.service %{name}-redir.service \
|
|
%{name}-tunnel.service}
|
|
|
|
%postun
|
|
%{service_del_postun %{name}-server.service %{name}-client.service \
|
|
%{name}-manager.service %{name}-nat.service %{name}-redir.service \
|
|
%{name}-tunnel.service}
|
|
|
|
%post -n lib%{name}2 -p /sbin/ldconfig
|
|
|
|
%postun -n lib%{name}2 -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc Changes README.md COPYING AUTHORS
|
|
%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 -n lib%{name}2
|
|
%defattr(-,root,root)
|
|
%{_libdir}/lib%{name}.so.*
|
|
|
|
%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
|
|
%{_libdir}/lib%{name}.so
|
|
|
|
%changelog
|