aboutsummaryrefslogtreecommitdiff
path: root/repo/ksutils-teamspeak-autochannel
diff options
context:
space:
mode:
authorKunoiSayami <[email protected]>2022-08-22 15:02:30 +0800
committerKunoiSayami <[email protected]>2022-08-22 15:02:30 +0800
commit083905c55021a3970c5f02ae879539a4627ff87e (patch)
treebd43d66f2daff3354f2f8de136cdf6808be19fe4 /repo/ksutils-teamspeak-autochannel
parent3116d53a27c14e9039423f51521fa51c9b653059 (diff)
feat(replace-pkg): Replace teamspeak-autochannel with teamspeak-management-tools
Signed-off-by: KunoiSayami <[email protected]>
Diffstat (limited to 'repo/ksutils-teamspeak-autochannel')
-rw-r--r--repo/ksutils-teamspeak-autochannel/PKGBUILD46
-rw-r--r--repo/ksutils-teamspeak-autochannel/default.toml31
-rw-r--r--repo/ksutils-teamspeak-autochannel/[email protected]16
3 files changed, 0 insertions, 93 deletions
diff --git a/repo/ksutils-teamspeak-autochannel/PKGBUILD b/repo/ksutils-teamspeak-autochannel/PKGBUILD
deleted file mode 100644
index 37e3e40..0000000
--- a/repo/ksutils-teamspeak-autochannel/PKGBUILD
+++ /dev/null
@@ -1,46 +0,0 @@
-# Maintainer: KunoiSayami <[email protected]>
-
-_original_name=teamspeak-autochannel
-_basename=teamspeak-autochannel
-pkgname=ksutils-$_basename
-pkgver=2.2.4
-pkgrel=2
-pkgdesc='TeamSpeak auto channel rust implement'
-arch=('any')
-url=https://github.com/KunoiSayami/teamspeak-autochannel.rs
-source=(
- $pkgname::git+https://github.com/KunoiSayami/teamspeak-autochannel.rs#tag=v$pkgver
- "default.toml"
-)
-license=('AGPL3')
-sha512sums=(
- 'SKIP'
- 'a8888343e3b9287a27804a011afba227352430071ae4e816055dc1f8ebba89d18a3150a3dda13774cd41865b6b1842df8ea6a76a05704b8de38d44dd37401430'
- '8b068b83fa0a996ccf461d0a8bab539b62dfc4fbfd8c0e9090f9dab8c5d44624780051f7c820cd566e306ec1a3322428f28f28c57779e657308495c0e397871f'
-)
-makedepends=('cargo' 'git')
-depends=('redis')
-provides=("$_basename")
-options=(!lto)
-backup=("etc/ksutils/$_basename/default.toml")
-
-prepare() {
- cd "$pkgname"
- git submodule update --init
-}
-
-build() {
- cd "$pkgname"
- cargo build --release
-}
-
-package() {
- install -dm700 "$pkgdir"/etc/ksutils/$_basename
- install -dm755 "$pkgdir"/usr/bin
- install -dm755 "$pkgdir"/usr/lib/systemd/system
-
- install -m755 "$pkgname"/target/release/"$_original_name" "$pkgdir"/usr/bin/"$pkgname"
- install -m600 default.toml "$pkgdir"/etc/ksutils/$_basename/
- install -m644 "[email protected]" "$pkgdir"/usr/lib/systemd/system/
-}
diff --git a/repo/ksutils-teamspeak-autochannel/default.toml b/repo/ksutils-teamspeak-autochannel/default.toml
deleted file mode 100644
index 346d199..0000000
--- a/repo/ksutils-teamspeak-autochannel/default.toml
+++ /dev/null
@@ -1,31 +0,0 @@
-[server]
-# server_id = 1
-channel_id = [1, 2]
-privilege_group_id = 5
-# redis_server = ""
-
-# [[permissions]]
-# channel_id = 1
-# it means set i_channel_needed_permission_modify_power to 75 and i_channel_needed_delete_power to 60
-# See: https://gist.github.com/EdisonJwa/630383a12281f3db2186a14e1d0fa901 for more key information
-# map = [[86, 75], [133, 60]]
-
-[misc]
-# interval = 5
-
-# [custom_message]
-# channel_not_found = "I can't find you channel."
-# create_channel = "Your Channel has been created!"
-# move_to_channel = "You have been moved into your channel."
-
-# [raw_query]
-# This section priority is higher than web_query
-# server = ""
-# port = 10011
-# user = "serveradmin"
-# password = "114514"
-
-[web_query]
-# This method may significantly increase CPU usage.
-server = "https://localhost:10080"
-api_key = "BAA114514" \ No newline at end of file
diff --git a/repo/ksutils-teamspeak-autochannel/[email protected] b/repo/ksutils-teamspeak-autochannel/[email protected]
deleted file mode 100644
index c5ce694..0000000
--- a/repo/ksutils-teamspeak-autochannel/[email protected]
+++ /dev/null
@@ -1,16 +0,0 @@
-[Unit]
-Description=KunoiSayami utils TeamSpeak autochannel service
-After=network-online.target
-
-[Service]
-Type=simple
-Restart=on-failure
-RestartSec=10s
-Environment="RUST_LOG=info"
-ExecStart=/usr/bin/ksutils-teamspeak-autochannel %i.toml --systemd
-WorkingDirectory=/etc/ksutils/teamspeak-autochannel/
-KillSignal=SIGINT
-TimeoutStopSec=10
-
-[Install]
-WantedBy=multi-user.target