Skip to content

Commit

Permalink
auth-thu: use builtin systemd services
Browse files Browse the repository at this point in the history
  • Loading branch information
ouuan committed Jan 9, 2025
1 parent 6ec31ff commit 8c33714
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 28 deletions.
16 changes: 7 additions & 9 deletions auth-thu/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,14 @@
# Contributor: Nick Cao <[email protected]>
pkgname=auth-thu
pkgver=2.3
pkgrel=1
pkgrel=2
pkgdesc='A commandline Tunet (auth4/6.tsinghua.edu.cn, Tsinghua-IPv4) authentication tool'
arch=('x86_64')
url='https://github.com/z4yx/GoAuthing'
license=('GPL-3.0-only')
makedepends=('go')
source=("auth-thu-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
'auth-thu.service'
'auth-thu.timer')
sha256sums=('56b7daa31b961cfb1b5db3769bd02ad87ff965aa274adeee0ceaf8b091625d37'
'd177a5a97e9e9c40a0aa4430024a68a5a08b3ac9ab5a11ce7e2e36185d04341c'
'a780ea89449aa17d9fafa969dcfaf2e1deaa5098c39dcf38701415ef0dee5f78')
source=("$url/archive/v$pkgver.tar.gz")
sha256sums=('56b7daa31b961cfb1b5db3769bd02ad87ff965aa274adeee0ceaf8b091625d37')

build() {
cd "GoAuthing-$pkgver"
Expand All @@ -28,7 +24,9 @@ build() {
package() {
cd "GoAuthing-$pkgver"
install -Dm755 auth-thu -t "$pkgdir/usr/bin"
install -Dm644 "$srcdir/auth-thu.service" -t "$pkgdir/usr/lib/systemd/user"
install -Dm644 "$srcdir/auth-thu.timer" -t "$pkgdir/usr/lib/systemd/user"
cd "docs/systemd"
sed -i "s|/usr/local/bin/auth-thu|/usr/bin/auth-thu|g" ./*/*.service
install -Dm644 user/*.service -t "$pkgdir/usr/lib/systemd/user"
install -Dm644 system/*.service -t "$pkgdir/usr/lib/systemd/system"
}

10 changes: 0 additions & 10 deletions auth-thu/auth-thu.service

This file was deleted.

9 changes: 0 additions & 9 deletions auth-thu/auth-thu.timer

This file was deleted.

0 comments on commit 8c33714

Please sign in to comment.