Skip to content

Commit 86a8db4

Browse files
author
Aspirin Geyer
committed
Initial commit.
- Update systemd service conf. Signed-off-by: Aspirin Geyer <[email protected]>
1 parent 4dcef16 commit 86a8db4

6 files changed

+106
-1
lines changed

PKGBUILD

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
pkgname=shadowsocksrr-libev-git
2+
pkgver=2.4.1.366.g035d4b9-1
3+
pkgrel=1
4+
pkgdesc='A fork of ShadowsocksR. May different from original version.'
5+
arch=('i686' 'x86_64')
6+
url='https://github.com/shadowsocksrr/shadowsocksr-libev'
7+
license=('GPL')
8+
depends=('libcap' 'mbedtls' 'libev' 'libsodium'
9+
'udns' 'pcre' 'libcorkipset' 'libbloom')
10+
makedepends=('git' 'gcc' 'autoconf' 'libtool' 'automake' 'make' 'zlib' 'openssl' 'asciidoc' 'xmlto')
11+
options=('docs' '!strip')
12+
conflicts=('shadowsocksr-libev')
13+
source=('git+https://github.com/shadowsocksrr/shadowsocksr-libev.git'
14+
15+
16+
17+
18+
)
19+
sha1sums=('SKIP'
20+
'SKIP'
21+
'SKIP'
22+
'SKIP'
23+
'SKIP')
24+
25+
26+
_gitname='shadowsocksr-libev'
27+
28+
pkgver() {
29+
cd "$_gitname"
30+
git describe --tags | sed 's/-/./g'
31+
}
32+
33+
build() {
34+
cd "$_gitname"
35+
./configure --prefix=/usr
36+
make
37+
}
38+
39+
package() {
40+
cd "$srcdir/$_gitname"
41+
make DESTDIR="$pkgdir/" install
42+
install -Dm644 "$srcdir/[email protected]" "$pkgdir/usr/lib/systemd/system/[email protected]"
43+
install -Dm644 "$srcdir/[email protected]" "$pkgdir/usr/lib/systemd/system/[email protected]"
44+
install -Dm644 "$srcdir/[email protected]" "$pkgdir/usr/lib/systemd/system/[email protected]"
45+
install -Dm644 "$srcdir/[email protected]" "$pkgdir/usr/lib/systemd/system/[email protected]"
46+
}
47+
48+
49+
50+

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
# shadowsocksrr-libev-git
2-
An AUR-PKGBUILD repo.
2+
3+
A fork of [eatradish's aur package](https://aur.archlinux.org/packages/shadowsocksr-libev/), suitable for [shadowsocksrr-libev](https://github.com/shadowsocksrr/shadowsocksr-libev).
4+
5+
Attention, this branch may be different from the original version or any other backup versions of SSR, and we will not provide any guarantee of its compatibility.

[email protected]

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[Unit]
2+
Description=ShadowsocksR-Libev Client Service
3+
After=network.target
4+
5+
[Service]
6+
Type=simple
7+
User=nobody
8+
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
9+
ExecStart=/usr/bin/ss-local -c /etc/shadowsocksr/%i.json
10+
11+
[Install]
12+
WantedBy=multi-user.target
13+

[email protected]

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[Unit]
2+
Description=ShadowsocksR-Libev Client Service Redir Mode
3+
After=network.target
4+
5+
[Service]
6+
Type=simple
7+
User=nobody
8+
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
9+
ExecStart=/usr/bin/ss-redir -c /etc/shadowsocksr/%i.json
10+
11+
[Install]
12+
WantedBy=multi-user.target
13+

[email protected]

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[Unit]
2+
Description=ShadowsocksR-Libev Server Service
3+
After=network.target
4+
5+
[Service]
6+
Type=simple
7+
User=nobody
8+
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
9+
ExecStart=/usr/bin/ss-server -c /etc/shadowsocksr/%i.json
10+
11+
[Install]
12+
WantedBy=multi-user.target
13+

[email protected]

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[Unit]
2+
Description=ShadowsocksR-Libev Client Service Tunnel Mode
3+
After=network.target
4+
5+
[Service]
6+
Type=simple
7+
User=nobody
8+
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
9+
ExecStart=/usr/bin/ss-tunnel -c /etc/shadowsocksr/%i.json
10+
11+
[Install]
12+
WantedBy=multi-user.target
13+

0 commit comments

Comments
 (0)