Initial Commit
This commit is contained in:
commit
eaf1eab3ac
3 changed files with 57 additions and 0 deletions
32
APKBUILD
Normal file
32
APKBUILD
Normal file
|
@ -0,0 +1,32 @@
|
|||
# Maintainer: LinuxSquare <linuxsquare@noveria.org>
|
||||
pkgname=pterodactyl-wings
|
||||
pkgver=1.11.11
|
||||
pkgrel=0
|
||||
pkgdesc="The server control plane for Pterodactyl Panel"
|
||||
arch="x86_64"
|
||||
url="https://pterodactyl.io/"
|
||||
license="MIT"
|
||||
optdepends="podman docker" # Install either podman or docker
|
||||
makedepends="go"
|
||||
install="$pkgname.post-install"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/pterodactyl/wings/archive/refs/tags/v${pkgver}.tar.gz pterodactyl-wings.initd"
|
||||
|
||||
build() {
|
||||
cd "wings-$pkgver"
|
||||
export CGO_CPPFLAGS="${CPPFLAGS}"
|
||||
export CGO_CFLAGS="${CFLAGS}"
|
||||
export CGO_CXXFLAGS="${CXXFLAGS}"
|
||||
export CGO_LDFLAGS="${LDFLAGS}"
|
||||
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
|
||||
go build -o "build/wings" -v wings.go
|
||||
}
|
||||
|
||||
package() {
|
||||
install -d 640 "$pkgdir/etc/pterodactyl"
|
||||
install -D -m 755 "$srcdir/wings-$pkgver/build/wings" "$pkgdir/usr/bin/wings"
|
||||
install -D -m 755 "$srcdir/$pkgname.initd" "$pkgdir/etc/init.d/$pkgname"
|
||||
}
|
||||
sha512sums="
|
||||
03ab1d9c9772cb3f492b2536426467fd2bf9bd34d4a450c9924e4e7896e4b1c795bac86e05beaaf79606166d87aaec96c61ee4d9d9e6c8ac7cda9f91dcbfb110 pterodactyl-wings-1.11.11.tar.gz
|
||||
af30d49a44fab4e45e6dd0cdd9d334f1a5a4364e0e497dc6014073d94b3797e9d2eb1431192f57020dcbc6c84dba9aa36fb7260579d17e17fcf2c39d2a9d264d pterodactyl-wings.initd
|
||||
"
|
14
pterodactyl-wings.initd
Normal file
14
pterodactyl-wings.initd
Normal file
|
@ -0,0 +1,14 @@
|
|||
#!/sbin/openrc-run
|
||||
supervisor="supervise-daemon"
|
||||
|
||||
name=$RC_SVCNAME
|
||||
description="Pterodactyl Wings Daemon"
|
||||
|
||||
command="/usr/bin/wings"
|
||||
supervise_daemon_args="-d /etc/pterodactyl"
|
||||
command_user="root"
|
||||
|
||||
depend() {
|
||||
after podman
|
||||
need podman
|
||||
}
|
11
pterodactyl-wings.post-install
Normal file
11
pterodactyl-wings.post-install
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
cat >&2 <<EOF
|
||||
*
|
||||
* If you're using podman as your cointainer runtime, make sure to enable the podman service and symlink
|
||||
* /var/run/podman/podman.sock to /var/run/docker.sock, since wings has been originally written with docker in mind.
|
||||
* ln -s /var/run/podman/podman.sock /var/run/docker.sock
|
||||
* This symlink will vanish after a system reboot, so make sure you create a service or something else, to automatically
|
||||
* generate this symlink again, before the wings-service starts.
|
||||
*
|
||||
EOF
|
Loading…
Reference in a new issue