Add snapcraft.yml

This commit is contained in:
Max Lv
2019-05-07 16:50:42 +08:00
parent 9c935f762e
commit 850473aa90
2 changed files with 60 additions and 0 deletions
+1
View File
@@ -92,6 +92,7 @@ doc/*.html
*.tar.bz2
*.tar.gz
*.tgz
*.snap
#
# Visual Studio Code
+59
View File
@@ -0,0 +1,59 @@
base: core18
name: shadowsocks-libev
version: 3.2.5-1
summary: libev port of shadowsocks
description: |
Shadowsocks-libev is a lightweight and secure SOCKS5 proxy for embedded
devices and low-end boxes.
It is rewritten in pure C and depends on libev, designed to be a
lightweight implementation of the shadowsocks protocol.
grade: stable
confinement: strict
apps:
ss-local:
command: bin/ss-local
plugs: [network, network-bind]
ss-server:
command: bin/ss-server
plugs: [network, network-bind]
ss-redir:
command: bin/ss-redir
plugs: [network, network-bind]
ss-tunnel:
command: bin/ss-tunnel
plugs: [network, network-bind]
ss-manager:
command: bin/ss-manager
plugs: [network]
passthrough:
layout:
/etc/shadowsocks-libev:
bind: $SNAP_COMMON/etc/shadowsocks-libev
parts:
shadowsocks-libev:
plugin: autotools
source: https://github.com/shadowsocks/shadowsocks-libev/releases/download/v3.2.5/shadowsocks-libev-3.2.5.tar.gz
build-packages:
- libpcre3-dev
- asciidoc
- xmlto
- libev-dev
- libc-ares-dev
- libmbedtls-dev
- libsodium-dev
stage-packages:
- libc-ares2
- libev4
- libmbedtls10
- libsodium23
override-build: |
snapcraftctl build
rm -rf $SNAPCRAFT_PART_INSTALL/usr/share/doc