mirror of
https://gitlab.com/veilid/veilid.git
synced 2024-12-28 16:59:33 -05:00
fc7debba3f
- Restructured linux repo directory structure to include Stable and Nightly releases - Reworked Earthfile to pass IS_NIGHTLY boolean to package build scripts for use in file names - Added nightly pipeline to CICD config yaml. Pipeline is triggered by IS_NIGHTLY variable - Two distribution scripts now exist, one for Stable and one for Nightly - Reworked RPM build spec files to create appropriate file names - Reworked debian release generation scripts - RPM repo directory structure is prepped for arm64 builds - Switched from scp to rsync for moving the completed repo from ochestration to repo server - Created schedule in Gitlab UI to trigger nightly release at 2300 Central Time
65 lines
2.0 KiB
RPMSpec
65 lines
2.0 KiB
RPMSpec
Summary: Install a server grade, headless Veilid node
|
|
Name: veilid-server
|
|
Version: $RELEASE_VERSION
|
|
Release: 1
|
|
URL: https://veilid.com
|
|
Group: System
|
|
License: MPL 2.0
|
|
Packager: Veilid Foundation, Inc.
|
|
Requires: glibc-common >= 2.23
|
|
BuildRoot: /rpm-work-dir/veilid-server
|
|
BuildArch: $ARCH
|
|
|
|
%description
|
|
A server grade, headless Veilid node
|
|
|
|
%install
|
|
mkdir -p %{buildroot}/usr/bin/
|
|
cp /veilid/target/$CARGO_ARCH/release/veilid-server %{buildroot}/usr/bin/veilid-server
|
|
|
|
mkdir -p %{buildroot}/etc/systemd/system
|
|
cp /veilid/package/systemd/veilid-server.service %{buildroot}/etc/systemd/system/veilid-server.service
|
|
|
|
mkdir -p %{buildroot}/etc/veilid-server
|
|
cp /veilid/package/linux/veilid-server.conf %{buildroot}/etc/veilid-server/veilid-server.conf
|
|
|
|
%files
|
|
/usr/bin/veilid-server
|
|
/etc/systemd/system/veilid-server.service
|
|
/etc/veilid-server/veilid-server.conf
|
|
|
|
%post
|
|
adduser --system -U veilid &>/dev/null || true
|
|
mkdir -p /var/db/veilid-server/protected_store
|
|
mkdir -p /var/db/veilid-server/table_store
|
|
mkdir -p /var/db/veilid-server/block_store
|
|
mkdir -p /var/db/veilid-server/ipc
|
|
chown -R veilid:veilid /var/db/veilid-server
|
|
chmod 0750 /var/db/veilid-server/protected_store
|
|
chmod 0750 /var/db/veilid-server/table_store
|
|
chmod 0750 /var/db/veilid-server/block_store
|
|
chmod 0750 /var/db/veilid-server/ipc
|
|
chmod 0750 /var/db/veilid-server
|
|
chmod 755 /usr/bin/veilid-server
|
|
|
|
systemctl daemon-reload
|
|
|
|
echo "Congratulations! To start your Veilid node and set it to start at boot, run the command systemctl enable --now veilid-server"
|
|
|
|
%postun
|
|
systemctl daemon-reload
|
|
|
|
%posttrans
|
|
if systemctl is-active --quiet veilid-server.service; then
|
|
systemctl restart veilid-server.service
|
|
else
|
|
echo "Veilid-Server is installed but not currently running. Configure the service to start immediatly and at boot time by running the following command: systemctl enable --now veilid-server.service"
|
|
fi
|
|
|
|
%changelog
|
|
* Sun Apr 28 2024 Christien Rioux <chris@veilid.org>
|
|
- add ipc directory to installation
|
|
* Sun Jul 2 2023 TC <tc@veilid.org>
|
|
- experimental RPM building
|
|
|