summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorcrabvk2021-07-22 21:02:03 +0500
committercrabvk2021-07-22 21:02:03 +0500
commit4a3729250b0730b38c6fcbde88a79ee2038fee2f (patch)
tree8b8bfbcb1b9c85f3f0c31fe813368b513e16e626
parentdec13bafa496c5657d5516dab3d00e2ca47d9aa4 (diff)
downloadaur-nym.tar.gz
Add service file for nym-gateway
-rw-r--r--.SRCINFO12
-rw-r--r--PKGBUILD21
-rw-r--r--nym-gateway@.service18
-rw-r--r--nym-mixnode.sysusers1
-rw-r--r--nym-mixnode@.service2
-rw-r--r--nym.sysusers1
-rw-r--r--nym.tmpfiles (renamed from nym-mixnode.tmpfiles)0
7 files changed, 39 insertions, 16 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4ccda83c206..edb34715ade 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = nym
pkgdesc = The next generation of privacy infrastructure (Nym mixnet)
pkgver = 0.11.0
- pkgrel = 1
+ pkgrel = 2
url = https://nymtech.net/
install = nym.install
arch = x86_64
@@ -11,12 +11,14 @@ pkgbase = nym
makedepends = cargo
depends = openssl
source = https://github.com/nymtech/nym/archive/refs/tags/v0.11.0.tar.gz
+ source = nym.sysusers
+ source = nym.tmpfiles
source = nym-mixnode@.service
- source = nym-mixnode.sysusers
- source = nym-mixnode.tmpfiles
+ source = nym-gateway@.service
sha512sums = b7024b3205498e07efa845edca23e0b0c7b48d660481a92dee56feb079a6cd293594ce73663a7ebbab69bc2986c7411e7f22112dd2157fafebdf5e7276a27b68
- sha512sums = c94db5a3cd24a16ace6112c80970bb74dfaf1a3ab64c545e2497c561dc823024b85c9fc9261fc85bdcb55deb712968afeef029fb40d30c01e414540ca280d074
- sha512sums = 2887eeec8b805585822aa61a12f4995d3569a82a0c198409350c3b0f15abef522e48dde66b00233119d957b18e7ae95d7c9207a49eda1c763e497f2183e4ad02
+ sha512sums = 3646ee43df7904b959f50fcd191d1dfbdf8ed36f6d2cbe420669f4ffcc2886f0d30d5307a073462271ad40cbbf2b930ddd187852926271731beb57690a0abc81
sha512sums = 459e9fa6bc24675e4d7d2df448ea60ecb9ed0170f244a9659fb2811589bb6784b307475a4ee4d92c143ac3163446e603d60157b0f1f060d7aa0de96c51abc5d2
+ sha512sums = c94db5a3cd24a16ace6112c80970bb74dfaf1a3ab64c545e2497c561dc823024b85c9fc9261fc85bdcb55deb712968afeef029fb40d30c01e414540ca280d074
+ sha512sums = be399591a1f6eeedcba89c07bb20411c860bb84f72ca4bdb2af5854acde01f389901e082ffa36a1c53d0c8a9717a8fba6a68571a6fadce0484ebc8614283cbc7
pkgname = nym
diff --git a/PKGBUILD b/PKGBUILD
index 83c5e2613c9..bd786c024cc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=nym
pkgver=0.11.0
-pkgrel=1
+pkgrel=2
pkgdesc='The next generation of privacy infrastructure (Nym mixnet)'
arch=('x86_64')
url='https://nymtech.net/'
@@ -11,15 +11,17 @@ depends=(openssl)
makedepends=(cargo)
source=(
"https://github.com/nymtech/nym/archive/refs/tags/v$pkgver.tar.gz"
+ 'nym.sysusers'
+ 'nym.tmpfiles'
'nym-mixnode@.service'
- 'nym-mixnode.sysusers'
- 'nym-mixnode.tmpfiles'
+ 'nym-gateway@.service'
)
sha512sums=(
'b7024b3205498e07efa845edca23e0b0c7b48d660481a92dee56feb079a6cd293594ce73663a7ebbab69bc2986c7411e7f22112dd2157fafebdf5e7276a27b68'
- 'c94db5a3cd24a16ace6112c80970bb74dfaf1a3ab64c545e2497c561dc823024b85c9fc9261fc85bdcb55deb712968afeef029fb40d30c01e414540ca280d074'
- '2887eeec8b805585822aa61a12f4995d3569a82a0c198409350c3b0f15abef522e48dde66b00233119d957b18e7ae95d7c9207a49eda1c763e497f2183e4ad02'
+ '3646ee43df7904b959f50fcd191d1dfbdf8ed36f6d2cbe420669f4ffcc2886f0d30d5307a073462271ad40cbbf2b930ddd187852926271731beb57690a0abc81'
'459e9fa6bc24675e4d7d2df448ea60ecb9ed0170f244a9659fb2811589bb6784b307475a4ee4d92c143ac3163446e603d60157b0f1f060d7aa0de96c51abc5d2'
+ '0b7848cf0f769f2bae114999785d9f9618dffb69ae615cb19167475eaddc5bf936f28e78eb0c8d2a67fcaf3d2664de864d35ffd0a317d943dbfa086c8bfa35aa'
+ '5e493343bbbb7728913a60b4bf6a6e3d45392ce027035d9e2e2fba6dc2c9d79cb640409bd11828b0261bda80cc51700b0d968cd8323c53b66fc3e1c9cc919b2f'
)
install='nym.install'
@@ -29,12 +31,13 @@ build() {
}
package() {
- install -Dm644 nym-mixnode@.service -t "$pkgdir/usr/lib/systemd/system"
- install -Dm644 nym-mixnode.tmpfiles "$pkgdir/usr/lib/tmpfiles.d/nym-mixnode.conf"
- install -Dm644 nym-mixnode.sysusers "$pkgdir/usr/lib/sysusers.d/nym-mixnode.conf"
+ install -Dm644 nym.sysusers "$pkgdir/usr/lib/sysusers.d/nym-mixnode.conf"
+ install -Dm644 nym.tmpfiles "$pkgdir/usr/lib/tmpfiles.d/nym-mixnode.conf"
+ install -Dm644 nym-{mixnode,gateway}@.service -t "$pkgdir/usr/lib/systemd/system"
cd nym-$pkgver
install -Dm755 \
- target/release/nym-{client,gateway,mixnode,network-requester,socks5-client} -t "$pkgdir/usr/bin"
+ target/release/nym-{client,gateway,mixnode,network-requester,socks5-client} \
+ -t "$pkgdir/usr/bin"
install -Dm644 LICENSES/*.txt -t "$pkgdir/usr/share/licenses/nym"
}
diff --git a/nym-gateway@.service b/nym-gateway@.service
new file mode 100644
index 00000000000..9a303cd6e31
--- /dev/null
+++ b/nym-gateway@.service
@@ -0,0 +1,18 @@
+[Unit]
+Description=Nym Gateway %I
+After=network-online.target nss-lookup.target
+Wants=network-online.target nss-lookup.target
+Documentation=https://nymtech.net/docs/run-nym-nodes/gateways/
+StartLimitIntervalSec=350
+StartLimitBurst=10
+
+[Service]
+User=nym
+ExecStart=/usr/bin/nym-gateway run --id %i
+KillSignal=SIGINT
+Restart=on-failure
+RestartSec=30
+LimitNOFILE=65536
+
+[Install]
+WantedBy=multi-user.target
diff --git a/nym-mixnode.sysusers b/nym-mixnode.sysusers
deleted file mode 100644
index e11cfd780ca..00000000000
--- a/nym-mixnode.sysusers
+++ /dev/null
@@ -1 +0,0 @@
-u nym - "Nym Mixnode user" /var/lib/nym /bin/bash
diff --git a/nym-mixnode@.service b/nym-mixnode@.service
index 4674d0ffb5f..d12936fb78f 100644
--- a/nym-mixnode@.service
+++ b/nym-mixnode@.service
@@ -1,5 +1,5 @@
[Unit]
-Description=Nym Mixnode for %I
+Description=Nym Mixnode %I
After=network-online.target nss-lookup.target
Wants=network-online.target nss-lookup.target
Documentation=https://nymtech.net/docs/run-nym-nodes/mixnodes/
diff --git a/nym.sysusers b/nym.sysusers
new file mode 100644
index 00000000000..532aea8af90
--- /dev/null
+++ b/nym.sysusers
@@ -0,0 +1 @@
+u nym - "Nym user" /var/lib/nym /bin/bash
diff --git a/nym-mixnode.tmpfiles b/nym.tmpfiles
index 4d6c2fbba63..4d6c2fbba63 100644
--- a/nym-mixnode.tmpfiles
+++ b/nym.tmpfiles