aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagomeYae <[email protected]>2021-12-05 23:28:17 +0800
committerMagomeYae <[email protected]>2021-12-05 23:28:17 +0800
commite958f8a5576b7fb22143408d65d9e09f238055ec (patch)
tree96d915fd2a533fcb2b911c7d3783c11e390f2118
parent1176a910efea67f40732791e7d284691967b614b (diff)
feat(add-pkg): Add ksutils-probe-client
* fix(pkg): Fix kunoisayami-repo-rsync worng page Signed-off-by: MagomeYae <[email protected]>
-rw-r--r--repo/ksutils-probe-client/PKGBUILD34
-rw-r--r--repo/ksutils-probe-client/[email protected]16
-rw-r--r--repo/kunoisayami-repo-rsync/PKGBUILD8
3 files changed, 54 insertions, 4 deletions
diff --git a/repo/ksutils-probe-client/PKGBUILD b/repo/ksutils-probe-client/PKGBUILD
new file mode 100644
index 0000000..2b2d51d
--- /dev/null
+++ b/repo/ksutils-probe-client/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: KunoiSayami <[email protected]>
+
+_basename=probe-client
+pkgname=ksutils-$_basename
+pkgver=2.4.0
+pkgrel=1
+pkgdesc='A probe client, for distributed systems'
+arch=('any')
+url=https://github.com/KunoiSayami/probe-client
+source=(
+ git://github.com/KunoiSayami/probe-client#tag=2.4.0
+license=('AGPL3')
+sha512sums=(
+ 'SKIP'
+ '44c2385ef74e5cd2332404151c46db1622abc3338d9ee90148dc2f86e2aa97e028a7145b5d25a00b5f5626470a14937c6f27c6bbef6d0a9b56291daabf56bdad')
+makedepends=('cargo' 'git')
+depends=('openssl')
+provides=("$_basename")
+
+build() {
+ cargo build --release
+}
+
+package() {
+ cd "$srcdir/$pkgname"
+
+ install -dm755 "$pkgdir"/etc/ksutils/
+ install -dm700 "$pkgdir"/etc/ksutils/probe-client/
+ install -dm755 "$pkgdir"/usr/bin
+ install -m755 target/release/"$_basename" "$pkgdir"/usr/bin/"$pkgname"
+
+ install -m644 [email protected] "$pkgdir"/lib/systemd/system
+} \ No newline at end of file
diff --git a/repo/ksutils-probe-client/[email protected] b/repo/ksutils-probe-client/[email protected]
new file mode 100644
index 0000000..7b31983
--- /dev/null
+++ b/repo/ksutils-probe-client/[email protected]
@@ -0,0 +1,16 @@
+[Unit]
+Description=KunoiSayami utils Probe client service
+After=network-online.target
+
+[Service]
+Type=simple
+Restart=always
+RestartSec=10s
+Environment="RUST_LOG=info"
+WorkingDirectory=/usr/bin/ksutils-probe-client -c %i.toml
+ExecStart=/etc/ksutils/probe-client/
+KillSignal=SIGINT
+TimeoutStopSec=10
+
+[Install]
+WantedBy=multi-user.target
diff --git a/repo/kunoisayami-repo-rsync/PKGBUILD b/repo/kunoisayami-repo-rsync/PKGBUILD
index 308b785..6abdcaa 100644
--- a/repo/kunoisayami-repo-rsync/PKGBUILD
+++ b/repo/kunoisayami-repo-rsync/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=kunoisayami-repo-rsync
pkgver=0.0.1
-pkgrel=1
+pkgrel=2
pkgdesc="This package provides kunoisayami sync repository services"
source=(
@@ -15,8 +15,8 @@ depends=('rsync' 'systemd')
package() {
- install -dm755 "$pkgdir"/lib/systemd/
+ install -dm755 "$pkgdir"/lib/systemd/system/
- install -m644 [email protected] "$pkgdir"/lib/systemd/
- install -m644 [email protected] "$pkgdir"/lib/systemd/
+ install -m644 [email protected] "$pkgdir"/lib/systemd/system/
+ install -m644 [email protected] "$pkgdir"/lib/systemd/system/
} \ No newline at end of file