diff options
author | spyophobia | 2022-05-09 01:05:32 +0800 |
---|---|---|
committer | spyophobia | 2022-05-09 01:05:32 +0800 |
commit | 44348422b49d3aeaf79c0f55eec9092019015251 (patch) | |
tree | a499fa2bfb110c3849202c6d477895e75a943400 | |
parent | ef115d65c23c2a792e4b5fccd4484238ea1d5dc3 (diff) | |
download | aur-44348422b49d3aeaf79c0f55eec9092019015251.tar.gz |
Move service files to this repo
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 8 | ||||
-rw-r--r-- | shadowsocks-rust-server@.service | 12 | ||||
-rw-r--r-- | shadowsocks-rust@.service | 12 | ||||
-rwxr-xr-x | update.sh | 8 |
5 files changed, 39 insertions, 9 deletions
@@ -13,13 +13,13 @@ pkgbase = shadowsocks-rust-bin source = https://github.com/shadowsocks/shadowsocks-rust/raw/v1.14.3/LICENSE source = https://github.com/shadowsocks/shadowsocks-rust/raw/v1.14.3/examples/config.json source = https://github.com/shadowsocks/shadowsocks-rust/raw/v1.14.3/examples/config_ext.json - source = shadowsocks-rust@.service::https://aur.archlinux.org/cgit/aur.git/plain/shadowsocks-rust@.service?h=shadowsocks-rust-git - source = shadowsocks-rust-server@.service::https://aur.archlinux.org/cgit/aur.git/plain/shadowsocks-rust-server@.service?h=shadowsocks-rust-git + source = shadowsocks-rust@.service + source = shadowsocks-rust-server@.service sha512sums = 6d7014061bf4014faec823aa1da91f990d034c21005cbee30de7ee62744201fba7d09d58a9e536d8e63bfa6fe951107ee68482b583d887b6e358f3c3eec89b85 sha512sums = 9a0b81d82bf897c5461d75d941cd604cbd7f32d00c2bf775f17b37b77fcf5734903d2ec666ba9a6a340e77f31018b5dbbb8ea597797c6a00c6b1f3e2f47127e6 sha512sums = 4ac52e6fe04e02543f54d57fccfd863f18b157fd28fb61c9a56ba46269b9dff410a80960943d911afa55b45c3fc42e98d91f8bb75e9103abf3f3dbfffb73a6e0 - sha512sums = fccb02b922369a6ba01e7d438bd8bf306fe25b15d54e0a91e33832bd2726add8e9c01705f1f7a3afe44f3034f6438c3cc8c0fcad8905d67cb789f4f21feef102 - sha512sums = 573df735263cafc37f5eb315aa5de106141a787a3dfb98a47499f8ed196ca32f1873a644188685512f5e58e062049674c4bcdf6ca9a87ee8dfb840614c69bb55 + sha512sums = 061e0dc9af84242aeec75df5c290d3c6f16950a2e664898eb7ad50daec94f04ef84b634d4e4f46a58b6512801c4e134f97c6616c538cabc5d008d1fd629c3571 + sha512sums = 4d45ff086b8aa75343518141c02aeb6b4dbdb9f2e0f835ab5f11bbe2dc60e35802704f488db88d79c4412712e9b7a8957df605b0cb961c764eb66fc734655fe3 source_x86_64 = https://github.com/shadowsocks/shadowsocks-rust/releases/download/v1.14.3/shadowsocks-v1.14.3.x86_64-unknown-linux-gnu.tar.xz sha512sums_x86_64 = e43523d9ea7cab08a3634a7df38c51b7121f205bc1318c577233ef7004e82efb0152883eec40658f731719707577a0381e09557bc407890966f1feb886527e33 source_arm = https://github.com/shadowsocks/shadowsocks-rust/releases/download/v1.14.3/shadowsocks-v1.14.3.arm-unknown-linux-gnueabi.tar.xz @@ -16,8 +16,8 @@ source=( "${url}/raw/v${pkgver}/LICENSE" "${url}/raw/v${pkgver}/examples/config.json" "${url}/raw/v${pkgver}/examples/config_ext.json" - "shadowsocks-rust@.service::https://aur.archlinux.org/cgit/aur.git/plain/shadowsocks-rust@.service?h=shadowsocks-rust-git" - "shadowsocks-rust-server@.service::https://aur.archlinux.org/cgit/aur.git/plain/shadowsocks-rust-server@.service?h=shadowsocks-rust-git" + 'shadowsocks-rust@.service' + 'shadowsocks-rust-server@.service' ) source_x86_64=("${url}/releases/download/v${pkgver}/shadowsocks-v${pkgver}.x86_64-unknown-linux-gnu.tar.xz") source_arm=("${url}/releases/download/v${pkgver}/shadowsocks-v${pkgver}.arm-unknown-linux-gnueabi.tar.xz") @@ -27,8 +27,8 @@ sha512sums=( '6d7014061bf4014faec823aa1da91f990d034c21005cbee30de7ee62744201fba7d09d58a9e536d8e63bfa6fe951107ee68482b583d887b6e358f3c3eec89b85' '9a0b81d82bf897c5461d75d941cd604cbd7f32d00c2bf775f17b37b77fcf5734903d2ec666ba9a6a340e77f31018b5dbbb8ea597797c6a00c6b1f3e2f47127e6' '4ac52e6fe04e02543f54d57fccfd863f18b157fd28fb61c9a56ba46269b9dff410a80960943d911afa55b45c3fc42e98d91f8bb75e9103abf3f3dbfffb73a6e0' - 'fccb02b922369a6ba01e7d438bd8bf306fe25b15d54e0a91e33832bd2726add8e9c01705f1f7a3afe44f3034f6438c3cc8c0fcad8905d67cb789f4f21feef102' - '573df735263cafc37f5eb315aa5de106141a787a3dfb98a47499f8ed196ca32f1873a644188685512f5e58e062049674c4bcdf6ca9a87ee8dfb840614c69bb55' + '061e0dc9af84242aeec75df5c290d3c6f16950a2e664898eb7ad50daec94f04ef84b634d4e4f46a58b6512801c4e134f97c6616c538cabc5d008d1fd629c3571' + '4d45ff086b8aa75343518141c02aeb6b4dbdb9f2e0f835ab5f11bbe2dc60e35802704f488db88d79c4412712e9b7a8957df605b0cb961c764eb66fc734655fe3' ) sha512sums_x86_64=('e43523d9ea7cab08a3634a7df38c51b7121f205bc1318c577233ef7004e82efb0152883eec40658f731719707577a0381e09557bc407890966f1feb886527e33') sha512sums_arm=('6ae0001efcc58756e06889c65165b78baa2a0a061af428cc57cd9b24b258966c6d755e9d5f87a88e4ebd4b499104edc335e6c9736d78afd46b114a6ecfd8db37') diff --git a/shadowsocks-rust-server@.service b/shadowsocks-rust-server@.service new file mode 100644 index 000000000000..5a1de3cddbf8 --- /dev/null +++ b/shadowsocks-rust-server@.service @@ -0,0 +1,12 @@ +[Unit] +Description=Shadowsocks-Rust Server Service +After=network.target + +[Service] +Type=simple +DynamicUser=yes +ExecStart=/usr/bin/ssserver -c /etc/shadowsocks/%i.json --log-without-time + +[Install] +WantedBy=multi-user.target + diff --git a/shadowsocks-rust@.service b/shadowsocks-rust@.service new file mode 100644 index 000000000000..70387735e08b --- /dev/null +++ b/shadowsocks-rust@.service @@ -0,0 +1,12 @@ +[Unit] +Description=Shadowsocks-Rust Client Service +After=network.target + +[Service] +Type=simple +DynamicUser=yes +ExecStart=/usr/bin/sslocal -c /etc/shadowsocks/%i.json --log-without-time + +[Install] +WantedBy=multi-user.target + diff --git a/update.sh b/update.sh index a34d7e8d02d0..9a67d0890185 100755 --- a/update.sh +++ b/update.sh @@ -26,7 +26,13 @@ update_sums () { local SUMS=() for SRC_RAW in $(eval echo \${$SRC_NAME[@]}); do local SRC_URL=$(echo $SRC_RAW | sed -E 's/.+::(.+)/\1/g') - local SRC_SUM=$(curl -sL "$SRC_URL" | sha512sum | cut -d " " -f 1) + if [[ "$SRC_URL" =~ "http" ]]; then + # online source + local SRC_SUM=$(curl -sL "$SRC_URL" | sha512sum | cut -d " " -f 1) + else + # local source + local SRC_SUM=$(sha512sum "$SRC_URL" | cut -d " " -f 1) + fi SUMS+=("'$SRC_SUM'") echo -e "Sum of <$SRC_URL>:\n\t$SRC_SUM" |