mirror of
https://github.com/playit-cloud/playit-agent.git
synced 2026-07-02 09:12:29 +00:00
* Support non-systemd package installs - Provision playit user and group with useradd/addgroup fallbacks - Ship systemd and OpenRC init files under /opt/playit/share/init - Remove hard systemd dependency from Arch and nfpm packages * Use sysusers to provision playit service accounts - Prefer `systemd-sysusers` when available in packaging scripts - Fall back to manual group and user creation otherwise - Add sysusers config path for Arch and nfpm install flows
73 lines
1.8 KiB
YAML
73 lines
1.8 KiB
YAML
# yaml-language-server: $schema=https://nfpm.goreleaser.com/schema.json
|
|
name: playit
|
|
arch: ${PLAYIT_NFPM_ARCH}
|
|
platform: linux
|
|
version: ${PLAYIT_VERSION}
|
|
version_schema: semver
|
|
release: ${PLAYIT_PACKAGE_RELEASE}
|
|
section: net
|
|
priority: optional
|
|
maintainer: Patrick Lorio <patrick@playit.gg>
|
|
description: Making it easy to play games with friends. Makes your server public
|
|
homepage: https://playit.gg
|
|
license: BSD-2-Clause
|
|
depends:
|
|
- logrotate
|
|
overrides:
|
|
apk:
|
|
depends:
|
|
- logrotate
|
|
- "!playit-openrc"
|
|
contents:
|
|
- src: ${PLAYIT_CLI_BIN}
|
|
dst: /opt/playit/agent
|
|
expand: true
|
|
file_info:
|
|
mode: 0755
|
|
- src: ${PLAYITD_BIN}
|
|
dst: /opt/playit/playitd
|
|
expand: true
|
|
file_info:
|
|
mode: 0755
|
|
- src: ./linux/playit
|
|
dst: /opt/playit/playit
|
|
file_info:
|
|
mode: 0755
|
|
- src: /opt/playit/playit
|
|
dst: /usr/bin/playit
|
|
type: symlink
|
|
- src: /opt/playit/playitd
|
|
dst: /usr/bin/playitd
|
|
type: symlink
|
|
- src: ./linux/logrotate.conf
|
|
dst: /etc/logrotate.d/playit
|
|
file_info:
|
|
mode: 0644
|
|
- src: ./linux/playit.sysusers
|
|
dst: /usr/lib/sysusers.d/playit.conf
|
|
file_info:
|
|
mode: 0644
|
|
- src: ./linux/playit.service
|
|
dst: /usr/lib/systemd/system/playit.service
|
|
file_info:
|
|
mode: 0644
|
|
- src: ./linux/playit.service
|
|
dst: /opt/playit/share/init/systemd/playit.service
|
|
file_info:
|
|
mode: 0644
|
|
- src: ./linux/playit.openrc
|
|
dst: /opt/playit/share/init/openrc/playit
|
|
file_info:
|
|
mode: 0755
|
|
- dst: /etc/playit
|
|
type: dir
|
|
file_info:
|
|
mode: 0750
|
|
owner: playit
|
|
group: playit
|
|
scripts:
|
|
preinstall: ./build-scripts/nfpm/preinstall.sh
|
|
postinstall: ./build-scripts/nfpm/postinstall.sh
|
|
preremove: ./build-scripts/nfpm/preremove.sh
|
|
postremove: ./build-scripts/nfpm/postremove.sh
|