mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-20 13:03:50 +00:00
Migrate from autotools to cmake plugin, upgrade base from core18 to core22, point source to local git repo instead of stale v3.3.5 tarball, update PCRE3 to PCRE2, and update runtime library packages for Ubuntu 22.04. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
76 lines
1.6 KiB
YAML
76 lines
1.6 KiB
YAML
base: core22
|
|
name: shadowsocks-libev
|
|
version: '3.3.6'
|
|
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: usr/bin/ss-local
|
|
plugs: [network, network-bind]
|
|
|
|
ss-local-daemon:
|
|
command: usr/bin/ss-local
|
|
daemon: simple
|
|
plugs: [network, network-bind]
|
|
|
|
ss-server:
|
|
command: usr/bin/ss-server
|
|
plugs: [network, network-bind]
|
|
|
|
ss-server-daemon:
|
|
command: usr/bin/ss-server
|
|
daemon: simple
|
|
plugs: [network, network-bind]
|
|
|
|
ss-redir:
|
|
command: usr/bin/ss-redir
|
|
plugs: [network, network-bind]
|
|
|
|
ss-tunnel:
|
|
command: usr/bin/ss-tunnel
|
|
plugs: [network, network-bind]
|
|
|
|
ss-manager:
|
|
command: usr/bin/ss-manager
|
|
plugs: [network]
|
|
|
|
layout:
|
|
/etc/shadowsocks-libev:
|
|
bind: $SNAP_COMMON/etc/shadowsocks-libev
|
|
|
|
parts:
|
|
shadowsocks-libev:
|
|
plugin: cmake
|
|
source: .
|
|
source-type: git
|
|
cmake-parameters:
|
|
- -DCMAKE_INSTALL_PREFIX=/usr
|
|
- -DCMAKE_BUILD_TYPE=Release
|
|
- -DWITH_DOC_MAN=OFF
|
|
- -DBUILD_TESTING=OFF
|
|
build-packages:
|
|
- libpcre2-dev
|
|
- libev-dev
|
|
- libc-ares-dev
|
|
- libmbedtls-dev
|
|
- libsodium-dev
|
|
stage-packages:
|
|
- libc-ares2
|
|
- libev4
|
|
- libmbedcrypto7
|
|
- libmbedtls14
|
|
- libmbedx509-1
|
|
- libpcre2-8-0
|
|
- libsodium23
|
|
override-build: |
|
|
craftctl default
|
|
rm -rf $SNAPCRAFT_PART_INSTALL/usr/share/doc
|