-
Notifications
You must be signed in to change notification settings - Fork 0
/
snapcraft.yaml
49 lines (45 loc) · 1.4 KB
/
snapcraft.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: shadowsocks
version: 2.9.1+20181219
summary: A fast tunnel proxy that helps you bypass "Firewalls"
description: |
A fast tunnel proxy that helps you bypass "Firewalls".
This is the Python version.
confinement: strict
icon: shadowsocks-256px.png
grade: stable
base: core20
source-code: https://github.com/anthonywong/shadowsocks-snap
apps:
sslocal:
command: bin/sslocal
plugs: [network, network-bind]
ssserver:
command: bin/ssserver
plugs: [network, network-bind]
parts:
shadowsocks:
plugin: python
source: https://github.com/shadowsocks/shadowsocks.git
source-branch: master
source-depth: 1
stage-packages:
- libsodium23
override-pull: |
snapcraftctl pull
patch -p0 < ../../../patches/01-fix_find_library.patch
filesets:
exclude-files:
- -usr/share/applications
- -usr/share/bug
- -usr/share/doc
- -usr/share/man
- -usr/share/dh-python
- -usr/share/lintian
- -usr/share/debhelper
stage:
- $exclude-files
override-build: |
snapcraftctl build
install -m 444 -D $SNAPCRAFT_PART_BUILD/debian/ssserver.1 $SNAPCRAFT_PART_INSTALL/share/man/man1/ssserver.1
install -m 444 -D $SNAPCRAFT_PART_BUILD/debian/sslocal.1 $SNAPCRAFT_PART_INSTALL/share/man/man1/sslocal.1
install -m 444 -D $SNAPCRAFT_PART_BUILD/debian/config.json $SNAPCRAFT_PART_INSTALL/etc/config.json