mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-28 11:43:50 +00:00
add rpm support
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Shadowsocks Server Service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=nobody
|
||||
ExecStart=/usr/bin/ss-server -c /etc/shadowsocks/%i.json
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Shadowsocks Client Service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=nobody
|
||||
ExecStart=/usr/bin/ss-local -c /etc/shadowsocks/%i.json
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,56 @@
|
||||
Name: shadowsocks-libev
|
||||
Version: 2.1.4
|
||||
Release: 1%{?dist}
|
||||
Summary: A lightweight secured socks5 proxy for embedded devices and low end boxes.
|
||||
|
||||
License: GPLv3+
|
||||
URL: https://github.com/shadowsocks/shadowsocks-libev
|
||||
Source0: %{name}-%{version}.tar.xz
|
||||
Source1: shadowsocks@.service
|
||||
Source2: shadowsocks-server@.service
|
||||
|
||||
|
||||
%description
|
||||
Shadowsocks-libev is a lightweight secured socks5 proxy for embedded devices and low end boxes.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
|
||||
%build
|
||||
%configure
|
||||
make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
%make_install
|
||||
mkdir -p %{buildroot}/usr/lib/systemd/system
|
||||
cp %{SOURCE1} %{SOURCE2} %{buildroot}/usr/lib/systemd/system
|
||||
|
||||
|
||||
%files
|
||||
%{_bindir}/ss-local
|
||||
%{_bindir}/ss-redir
|
||||
%{_bindir}/ss-server
|
||||
%{_bindir}/ss-tunnel
|
||||
%doc %{_mandir}/*
|
||||
%doc /usr/lib/systemd/system/*
|
||||
|
||||
|
||||
%package devel
|
||||
Summary: Files for development of applications which will use shadowsocks.
|
||||
License: GPLv3+
|
||||
URL: https://github.com/shadowsocks/shadowsocks-libev
|
||||
|
||||
%description devel
|
||||
Shadowsocks-libev is a lightweight secured socks5 proxy for embedded devices and low end boxes.
|
||||
|
||||
%files devel
|
||||
%{_includedir}/shadowsocks.h
|
||||
%{_libdir}/libshadowsocks.a
|
||||
%{_libdir}/libshadowsocks.la
|
||||
%{_libdir}/pkgconfig/shadowsocks-libev.pc
|
||||
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user