summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD27
-rw-r--r--geph-exit.service15
3 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..28e408b0543
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = geph-exit
+ pkgdesc = Runs on highly secure exit nodes, and handles exit traffic
+ pkgver = 0.20.2
+ pkgrel = 1
+ url = https://github.com/geph-official/geph2
+ arch = x86_64
+ groups = geph2
+ license = GPL3
+ makedepends = go-pie
+ depends = glibc
+ source = geph-exit-0.20.2.tar.gz::https://github.com/geph-official/geph2/archive/v0.20.2.tar.gz
+ source = geph-exit.service
+ sha512sums = 7170f31d5a9549d47b9e9582825925b6c04f45af2a8fb78a63f6f1885ab36bc2f97385b9155bfa5aa96445143a533b929f89eef9c0a2d5b986078ee2726b062d
+ sha512sums = eba4c6ab19ff26cccd678043adb8563f6e02336959a8b923bac31b7dafcf04ec8b9b1c6cb1def26253871f4654c06b797ec1aa16500e58035bc44fb7cbffa025
+
+pkgname = geph-exit
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b5057612665
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Dct Mei <dctxmei@gmail.com>
+
+pkgname=geph-exit
+pkgver=0.20.2
+pkgrel=1
+pkgdesc='Runs on highly secure exit nodes, and handles exit traffic'
+arch=('x86_64')
+url="https://github.com/geph-official/geph2"
+license=('GPL3')
+groups=('geph2')
+depends=('glibc')
+makedepends=('go-pie')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/geph-official/geph2/archive/v$pkgver.tar.gz"
+ "geph-exit.service")
+sha512sums=('7170f31d5a9549d47b9e9582825925b6c04f45af2a8fb78a63f6f1885ab36bc2f97385b9155bfa5aa96445143a533b929f89eef9c0a2d5b986078ee2726b062d'
+ 'eba4c6ab19ff26cccd678043adb8563f6e02336959a8b923bac31b7dafcf04ec8b9b1c6cb1def26253871f4654c06b797ec1aa16500e58035bc44fb7cbffa025')
+
+build() {
+ cd "geph2-$pkgver/cmd/$pkgname/"
+ go 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"
+}
diff --git a/geph-exit.service b/geph-exit.service
new file mode 100644
index 00000000000..57d24e80c76
--- /dev/null
+++ b/geph-exit.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Geph exit Service
+After=network.target nss-lookup.target
+
+[Service]
+Type=simple
+User=nobody
+CapabilityBoundingSet=CAP_NET_BIND_SERVICE
+AmbientCapabilities=CAP_NET_BIND_SERVICE
+NoNewPrivileges=true
+ExecStart=/usr/bin/geph-exit
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target