summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoreveryx2023-05-21 13:00:47 +0800
committereveryx2023-05-21 13:00:47 +0800
commitb6a69ce2e823d00d1b2632d8af3214ed00760c7b (patch)
tree4e0e6acf3f8ad73903aa4d51a844339736431dda
parent1b234061328eafe43fced50eea43b6d1c9f75927 (diff)
downloadaur-b6a69ce2e823d00d1b2632d8af3214ed00760c7b.tar.gz
fix: upgpkg 1.2.7 and fix systemd StateDirectory
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD8
2 files changed, 8 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 354e49f7c5aa..e29979d0903f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = sing-box
pkgdesc = The universal proxy platform.
- pkgver = 1.2.6
+ pkgver = 1.2.7
pkgrel = 1
url = https://sing-box.sagernet.org/
arch = x86_64
@@ -12,7 +12,7 @@ pkgbase = sing-box
conflicts = sing-box-git
conflicts = sing-box-beta
backup = etc/sing-box/config.json
- source = sing-box-1.2.6.tar.gz::https://github.com/SagerNet/sing-box/archive/v1.2.6.tar.gz
- sha256sums = 8f7adf55ed9afe6ec0dd8b04ed64dd3a6243578ee779f909dfb3778fa2dbda10
+ source = sing-box-1.2.7.tar.gz::https://github.com/SagerNet/sing-box/archive/v1.2.7.tar.gz
+ sha256sums = 49b829f4cf148b59789eeaf8d01987e7526a44d0290cf608a6350c57562ae177
pkgname = sing-box
diff --git a/PKGBUILD b/PKGBUILD
index 8924442ec112..9567e070b5f2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: everyx <lunt.luo#gmail.com>
pkgname=sing-box
-pkgver=1.2.6
+pkgver=1.2.7
pkgrel=1
pkgdesc='The universal proxy platform.'
@@ -12,7 +12,7 @@ license=('GPL3 with name use or association addition')
makedepends=('go')
source=("$pkgname-$pkgver.tar.gz::https://github.com/SagerNet/sing-box/archive/v$pkgver.tar.gz")
-sha256sums=('8f7adf55ed9afe6ec0dd8b04ed64dd3a6243578ee779f909dfb3778fa2dbda10')
+sha256sums=('49b829f4cf148b59789eeaf8d01987e7526a44d0290cf608a6350c57562ae177')
conflicts=("$pkgname-git" "$pkgname-beta")
optdepends=('sing-geosite: sing-geosite database'
@@ -41,7 +41,9 @@ build(){
-s -w -buildid= -linkmode=external" \
./cmd/sing-box
- sed -i "/^\[Service\]$/a User=$pkgname" release/config/$pkgname*.service
+ sed -i "/^\[Service\]$/a StateDirectory=$pkgname" release/config/$pkgname.service
+ sed -i "/^\[Service\]$/a StateDirectory=$pkgname-%i" release/config/$pkgname@.service
+ sed -i "/^\[Service\]$/a User=$pkgname" release/config/$pkgname*.service
echo "u $pkgname - \"Sing-box Service\" - -" > "release/config/$pkgname.sysusers"
}