Skip to content

Commit 8ad3036

Browse files
madeyeclaude
andcommitted
Update snap packaging for v3.3.6 with CMake and core22
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>
1 parent 5c47b80 commit 8ad3036

1 file changed

Lines changed: 27 additions & 21 deletions

File tree

snap/snapcraft.yaml

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
base: core18
1+
base: core22
22
name: shadowsocks-libev
3-
version: 3.3.6-1
3+
version: '3.3.6'
44
summary: libev port of shadowsocks
55
description: |
66
Shadowsocks-libev is a lightweight and secure SOCKS5 proxy for embedded
@@ -13,57 +13,63 @@ confinement: strict
1313

1414
apps:
1515
ss-local:
16-
command: bin/ss-local
16+
command: usr/bin/ss-local
1717
plugs: [network, network-bind]
1818

1919
ss-local-daemon:
20-
command: bin/ss-local
20+
command: usr/bin/ss-local
2121
daemon: simple
2222
plugs: [network, network-bind]
2323

2424
ss-server:
25-
command: bin/ss-server
25+
command: usr/bin/ss-server
2626
plugs: [network, network-bind]
2727

2828
ss-server-daemon:
29-
command: bin/ss-server
29+
command: usr/bin/ss-server
3030
daemon: simple
3131
plugs: [network, network-bind]
3232

3333
ss-redir:
34-
command: bin/ss-redir
34+
command: usr/bin/ss-redir
3535
plugs: [network, network-bind]
3636

3737
ss-tunnel:
38-
command: bin/ss-tunnel
38+
command: usr/bin/ss-tunnel
3939
plugs: [network, network-bind]
4040

4141
ss-manager:
42-
command: bin/ss-manager
42+
command: usr/bin/ss-manager
4343
plugs: [network]
4444

45-
passthrough:
46-
layout:
47-
/etc/shadowsocks-libev:
48-
bind: $SNAP_COMMON/etc/shadowsocks-libev
45+
layout:
46+
/etc/shadowsocks-libev:
47+
bind: $SNAP_COMMON/etc/shadowsocks-libev
4948

5049
parts:
51-
shadowsocks-libev:
52-
plugin: autotools
53-
source: https://github.com/shadowsocks/shadowsocks-libev/releases/download/v3.3.5/shadowsocks-libev-3.3.5.tar.gz
50+
shadowsocks-libev:
51+
plugin: cmake
52+
source: .
53+
source-type: git
54+
cmake-parameters:
55+
- -DCMAKE_INSTALL_PREFIX=/usr
56+
- -DCMAKE_BUILD_TYPE=Release
57+
- -DWITH_DOC_MAN=OFF
58+
- -DBUILD_TESTING=OFF
5459
build-packages:
55-
- libpcre3-dev
56-
- asciidoc
57-
- xmlto
60+
- libpcre2-dev
5861
- libev-dev
5962
- libc-ares-dev
6063
- libmbedtls-dev
6164
- libsodium-dev
6265
stage-packages:
6366
- libc-ares2
6467
- libev4
65-
- libmbedtls10
68+
- libmbedcrypto7
69+
- libmbedtls14
70+
- libmbedx509-1
71+
- libpcre2-8-0
6672
- libsodium23
6773
override-build: |
68-
snapcraftctl build
74+
craftctl default
6975
rm -rf $SNAPCRAFT_PART_INSTALL/usr/share/doc

0 commit comments

Comments
 (0)