Initial commit

This commit is contained in:
LinuxSquare 2025-05-28 19:12:22 +02:00
commit 940499c75d
Signed by: LinuxSquare
SSH key fingerprint: SHA256:vFuUYM2D47SB3YMPF55L8zeJbJwEX89d/I967NgKN0A
2 changed files with 42 additions and 0 deletions

34
APKBUILD Normal file
View file

@ -0,0 +1,34 @@
pkgname="semaphore-bin"
pkgver=2.14.12
pkgrel=0
pkgdesc="Modern UI and powerful API for Ansible, Terraform, OpenTofu, PowerShell and other DevOps tools."
url="https://semaphoreui.com"
license="MIT"
arch="x86_64"
_arch="amd64"
source="
$pkgname-$pkgver.tar.gz::https://github.com/semaphoreui/semaphore/releases/download/v${pkgver}/semaphore_${pkgver}_linux_${_arch}.tar.gz
semaphore.initd
"
option="!strip !check !dbg"
prepare() {
install -d "$pkgname-$pkgver"
tar -xf "$pkgname-$pkgver.tar.gz" -C "$pkgname-$pkgver"
cd "$pkgname-$pkgver"
}
package() {
# binaries
install -d "$pkgdir/usr/bin"
install -D -o root -g root -m750 "$srcdir/$pkgname-$pkgver/semaphore" "$pkgdir/usr/bin/semaphore"
# config
install -dm644 "$pkgdir/etc/semaphore"
# service files
install -D -m 755 "$srcdir/semaphore.initd" "$pkgdir/etc/init.d/semaphore"
}
sha512sums="
68de3fdcffc6685d7ad6dfd4a3d74b69af37c4ea83fef7178899d5ecdb157c95ede4a7339ed1f91e02fd1beedb990a500d27f63d44cf8526fb512024da155a0e semaphore-bin-2.14.12.tar.gz
fd8051596852bf1d60dbb6b80665c0672f22c42044ab417a7a8a5daee307d202dd48585aa44e4d22db851da76255b12b8de395fb093486154a04f08291e25cab semaphore.initd
"

8
semaphore.initd Normal file
View file

@ -0,0 +1,8 @@
#!/sbin/openrc-run
name=$RC_SVCNAME
description="Semaphore Service"
supervisor="supervise-daemon"
command="/usr/bin/semaphore"
command_args="--server --config /etc/semaphore/config.json"
command_user="root"