summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDct Mei2020-09-02 08:54:54 +0800
committerDct Mei2020-09-02 08:54:54 +0800
commita5f6038c834f9f4b193fb1f581715a60019a66c5 (patch)
tree8218ac4c8df4d32e1f65f022e54660016e5dc991
parentb7cb2e7ee6811bbab24bd0339de5a745e8f8cef4 (diff)
downloadaur-a5f6038c834f9f4b193fb1f581715a60019a66c5.tar.gz
feat: v0.22.2-2
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD20
-rw-r--r--geph-exit.service4
-rw-r--r--geph-exit.sysusers1
4 files changed, 20 insertions, 13 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c591777d8a8..db41595f98f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = geph-exit
pkgdesc = Runs on highly secure exit nodes, and handles exit traffic
pkgver = 0.22.2
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/geph-official/geph2
arch = x86_64
groups = geph2
@@ -9,9 +9,11 @@ pkgbase = geph-exit
makedepends = go
depends = glibc
source = geph-exit-0.22.2.tar.gz::https://github.com/geph-official/geph2/archive/v0.22.2.tar.gz
+ source = geph-exit.sysusers
source = geph-exit.service
- sha512sums = 2595892671915e576aaee8a7a7beb4fbfb8b702520c6525cced9686c39516fa1c8aa38c360a50f7e698a90f68b23a4a24739903e6fbe8b6f695f0a89e5dc0de0
- sha512sums = 6d8f4c68a194ace0f70a68d3e3db9e8dac3f0d64a6de4e1551ec4e3554db9926da340ff487369a183dcb5e65046343d786893cda2ad6d786d879634193700d45
+ sha256sums = dd1ccd9c5aac06b46d57b9ba7aab00b6f42b3ec8fde85d00f09e2e474e7c1dc1
+ sha256sums = c07a69c9a4adcd0658dcfcad88555d87259b24ca13d35904b0b0b87b2c979a70
+ sha256sums = 0b74c574a28b504a02fc501e36a89d78d5179a396c8131376dabd5a6124415ec
pkgname = geph-exit
diff --git a/PKGBUILD b/PKGBUILD
index 991a49674d8..07fbd64c573 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
pkgname=geph-exit
pkgver=0.22.2
-pkgrel=1
+pkgrel=2
pkgdesc='Runs on highly secure exit nodes, and handles exit traffic'
arch=('x86_64')
url="https://github.com/geph-official/geph2"
@@ -12,13 +12,15 @@ license=('GPL3')
groups=('geph2')
depends=('glibc')
makedepends=('go')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/geph-official/geph2/archive/v$pkgver.tar.gz"
+source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz"
+ "geph-exit.sysusers"
"geph-exit.service")
-sha512sums=('2595892671915e576aaee8a7a7beb4fbfb8b702520c6525cced9686c39516fa1c8aa38c360a50f7e698a90f68b23a4a24739903e6fbe8b6f695f0a89e5dc0de0'
- '6d8f4c68a194ace0f70a68d3e3db9e8dac3f0d64a6de4e1551ec4e3554db9926da340ff487369a183dcb5e65046343d786893cda2ad6d786d879634193700d45')
+sha256sums=('dd1ccd9c5aac06b46d57b9ba7aab00b6f42b3ec8fde85d00f09e2e474e7c1dc1'
+ 'c07a69c9a4adcd0658dcfcad88555d87259b24ca13d35904b0b0b87b2c979a70'
+ '0b74c574a28b504a02fc501e36a89d78d5179a396c8131376dabd5a6124415ec')
build() {
- cd "geph2-$pkgver/cmd/$pkgname/"
+ cd "geph2-${pkgver}"/cmd/"${pkgname}"/
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
@@ -28,7 +30,9 @@ build() {
}
package() {
- install -Dm 644 "geph2-$pkgver/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
- install -Dm 755 "geph2-$pkgver/cmd/$pkgname/$pkgname" "$pkgdir/usr/bin/$pkgname"
- install -Dm 644 "$srcdir/$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service"
+ install -Dm 644 "geph2-${pkgver}"/LICENSE.md "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE
+
+ install -Dm 755 "geph2-${pkgver}"/cmd/"${pkgname}"/"${pkgname}" -t "${pkgdir}"/usr/bin/
+ install -Dm 644 "${srcdir}"/"${pkgname}.sysusers" "${pkgdir}"/usr/lib/sysusers.d/"${pkgname}.conf"
+ install -Dm 644 "${srcdir}"/"${pkgname}.service" -t "${pkgdir}"/usr/lib/systemd/system/
}
diff --git a/geph-exit.service b/geph-exit.service
index 39306d75005..c2ea6d9e9dc 100644
--- a/geph-exit.service
+++ b/geph-exit.service
@@ -3,12 +3,12 @@ Description=Geph exit Service
After=network.target nss-lookup.target
[Service]
-User=nobody
+User=geph-exit
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_BIND_SERVICE
NoNewPrivileges=true
ExecStart=/usr/bin/geph-exit
-Restart=on-failure
+Restart=on-abort
[Install]
WantedBy=multi-user.target
diff --git a/geph-exit.sysusers b/geph-exit.sysusers
new file mode 100644
index 00000000000..7bcf95f84ac
--- /dev/null
+++ b/geph-exit.sysusers
@@ -0,0 +1 @@
+u geph-exit - "Geph exit Service" - -