Finalizes Lts/Tests migration and RPM to DEB packaging port
This commit is contained in:
31 files changed
+1144
-540
No files matched your search
@@ -0,0 +1,2 @@
|
||||
/etc/ld.so.conf.d/lts_aar.conf
|
||||
/etc/security/limits.d/lts_aar_limits.conf
|
||||
@@ -0,0 +1,17 @@
|
||||
Package: legatus-qt6-aar
|
||||
Version: 15.6-qt6.10.2
|
||||
Section: utils
|
||||
Priority: optional
|
||||
Architecture: amd64
|
||||
Depends: libc6 (>= 2.34), libqt6core6 (>= 6.10.0), libqt6gui6 (>= 6.10.0), libqt6network6 (>= 6.10.0), libqt6sql6 (>= 6.10.0), libqt6xml6 (>= 6.10.0), libqt6websockets6 (>= 6.10.0), libgdal34, libpoppler-qt6-1, libecpg6, postgresql-client
|
||||
Maintainer: Legatus Team <legatus@life-maps.de>
|
||||
Description: Live Simulation Training System AAR Application (Qt6)
|
||||
This package contains the Qt6-migrated LTS After Action Review application.
|
||||
.
|
||||
Features:
|
||||
- Qt6/C++17 migrated AAR components
|
||||
- PostgreSQL database connectivity
|
||||
- DDS-based communication (RTI Connext 7.7)
|
||||
- WebSockets support for remote clients
|
||||
.
|
||||
This is part of the Legatus Qt6 migration project.
|
||||
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
if [ "$1" = "configure" ]; then
|
||||
ldconfig
|
||||
|
||||
# Create log directory
|
||||
LOGDIR="/opt/legatus/aar/../LOG"
|
||||
if [ ! -e "${LOGDIR}" ]; then
|
||||
mkdir -p "${LOGDIR}"
|
||||
chown root:root "${LOGDIR}"
|
||||
chmod 1777 "${LOGDIR}"
|
||||
fi
|
||||
fi
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
if [ "$1" = "remove" ]; then
|
||||
ldconfig
|
||||
fi
|
||||
|
||||
exit 0
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
# Legatus LTS AAR Application shared libraries
|
||||
/opt/legatus/aar/lib
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
# Legatus LTS AAR Application resource limits
|
||||
|
||||
ctc_aar soft nofile 65536
|
||||
ctc_aar hard nofile 65536
|
||||
ctc_aar soft nproc 4096
|
||||
ctc_aar hard nproc 4096
|
||||
@@ -0,0 +1,12 @@
|
||||
Package: legatus-qt6-licence
|
||||
Version: 15.6-qt6.10.2
|
||||
Section: utils
|
||||
Priority: optional
|
||||
Architecture: amd64
|
||||
Maintainer: Legatus Team <legatus@life-maps.de>
|
||||
Description: Legatus LTS Licence Files (Qt6)
|
||||
This package contains licence files for the Legatus LTS system.
|
||||
.
|
||||
Installed to: /opt/legatus/share/Lts/Licence/
|
||||
.
|
||||
This is part of the Legatus Qt6 migration project.
|
||||
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
if [ "$1" = "configure" ]; then
|
||||
ldconfig
|
||||
fi
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
if [ "$1" = "remove" ]; then
|
||||
ldconfig
|
||||
fi
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1 @@
|
||||
/etc/lts-cc.conf
|
||||
@@ -0,0 +1,14 @@
|
||||
Package: legatus-qt6-ltscc
|
||||
Version: 15.6-qt6.10.2
|
||||
Section: utils
|
||||
Priority: optional
|
||||
Architecture: amd64
|
||||
Depends: postgresql-client
|
||||
Maintainer: Legatus Team <legatus@life-maps.de>
|
||||
Description: LTS Configuration File (lts-cc.conf) for Qt6
|
||||
This package contains the lts-cc.conf configuration file
|
||||
for connecting to the PostgreSQL database container.
|
||||
.
|
||||
Installed to: /etc/lts-cc.conf
|
||||
.
|
||||
This is part of the Legatus Qt6 migration project.
|
||||
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
if [ "$1" = "configure" ]; then
|
||||
ldconfig
|
||||
fi
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
if [ "$1" = "remove" ]; then
|
||||
ldconfig
|
||||
fi
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,17 @@
|
||||
# LTS Configuration File for Qt6 Migration
|
||||
#
|
||||
# This file is installed by the legatus-qt6-ltscc package.
|
||||
#
|
||||
# Location: /etc/lts-cc.conf
|
||||
|
||||
[Global]
|
||||
# Database connection settings for PostgreSQL container
|
||||
DatabaseName=lts_ets_pro
|
||||
DatabaseHostName=legatus-postgresql
|
||||
DatabasePort=5432
|
||||
DatabaseUser=postgres
|
||||
DatabasePassword=postgres
|
||||
|
||||
# Paths (set by package installation)
|
||||
SqlPath=/opt/legatus/share/Lts/sql
|
||||
SettingPath=/etc/lts-cc.conf
|
||||
@@ -0,0 +1,2 @@
|
||||
/etc/lts-cc.conf
|
||||
/etc/ld.so.conf.d/lts_sv.conf
|
||||
@@ -0,0 +1,17 @@
|
||||
Package: legatus-qt6-sv
|
||||
Version: 15.6-qt6.10.2
|
||||
Section: utils
|
||||
Priority: optional
|
||||
Architecture: amd64
|
||||
Depends: libc6 (>= 2.34), libqt6core6 (>= 6.10.0), libqt6gui6 (>= 6.10.0), libqt6network6 (>= 6.10.0), libqt6sql6 (>= 6.10.0), libqt6xml6 (>= 6.10.0), libqt6websockets6 (>= 6.10.0), libgdal34, libpoppler-qt6-1, libecpg6, postgresql-client
|
||||
Maintainer: Legatus Team <legatus@life-maps.de>
|
||||
Description: Live Simulation Training System Server Software (Qt6)
|
||||
This package contains the Qt6-migrated LTS server software.
|
||||
.
|
||||
Features:
|
||||
- Qt6/C++17 migrated server components
|
||||
- PostgreSQL database connectivity
|
||||
- DDS-based communication (RTI Connext 7.7)
|
||||
- WebSockets support for remote clients
|
||||
.
|
||||
This is part of the Legatus Qt6 migration project.
|
||||
@@ -0,0 +1,25 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# postinst script for legatus-qt6-sv
|
||||
|
||||
if [ "$1" = "configure" ]; then
|
||||
# Update linker cache
|
||||
ldconfig
|
||||
|
||||
# Create log directory if it doesn't exist
|
||||
LOGDIR="/opt/legatus/sv/../LOG"
|
||||
if [ ! -e "${LOGDIR}" ]; then
|
||||
mkdir -p "${LOGDIR}"
|
||||
chown root:root "${LOGDIR}"
|
||||
chmod 1777 "${LOGDIR}"
|
||||
fi
|
||||
|
||||
# Enable systemd service if it exists
|
||||
if [ -f "/etc/systemd/system/lts_sv.service" ]; then
|
||||
systemctl daemon-reload
|
||||
systemctl enable lts_sv.service 2>/dev/null || true
|
||||
fi
|
||||
fi
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# postrm script for legatus-qt6-sv
|
||||
|
||||
if [ "$1" = "remove" ]; then
|
||||
# Update linker cache
|
||||
ldconfig
|
||||
|
||||
# Disable systemd service
|
||||
if [ -f "/etc/systemd/system/lts_sv.service" ]; then
|
||||
systemctl disable lts_sv.service 2>/dev/null || true
|
||||
systemctl stop lts_sv.service 2>/dev/null || true
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$1" = "purge" ]; then
|
||||
# Remove configuration files on purge
|
||||
rm -f /etc/lts-cc.conf
|
||||
rm -f /etc/ld.so.conf.d/lts_sv.conf
|
||||
rm -f /etc/security/limits.d/lts_sv_limits.conf
|
||||
|
||||
# Update linker cache
|
||||
ldconfig
|
||||
fi
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# prerm script for legatus-qt6-sv
|
||||
|
||||
if [ "$1" = "remove" ]; then
|
||||
# Stop service before removal
|
||||
if [ -f "/etc/systemd/system/lts_sv.service" ]; then
|
||||
systemctl stop lts_sv.service 2>/dev/null || true
|
||||
fi
|
||||
fi
|
||||
|
||||
exit 0
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
# Legatus LTS Server shared libraries
|
||||
/opt/legatus/sv/lib
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
# Legatus LTS Server resource limits
|
||||
# Increase open file descriptors and process limits for ctc_sv user
|
||||
|
||||
ctc_sv soft nofile 65536
|
||||
ctc_sv hard nofile 65536
|
||||
ctc_sv soft nproc 4096
|
||||
ctc_sv hard nproc 4096
|
||||
ctc_sv soft memlock unlimited
|
||||
ctc_sv hard memlock unlimited
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
[Unit]
|
||||
Description=Legatus LTS Server Service
|
||||
Documentation=https://www.life-maps.de
|
||||
After=network.target postgresql.service
|
||||
Wants=postgresql.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=ctc_sv
|
||||
Group=ctc
|
||||
Environment="LD_LIBRARY_PATH=/opt/legatus/sv/lib"
|
||||
Environment="QT_QPA_PLATFORM=xcb"
|
||||
ExecStart=/opt/legatus/sv/bin/lts_sv
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
SyslogIdentifier=lts_sv
|
||||
|
||||
# Resource limits
|
||||
LimitNOFILE=65536
|
||||
LimitNPROC=4096
|
||||
|
||||
# Security hardening
|
||||
NoNewPrivileges=true
|
||||
ProtectSystem=strict
|
||||
ProtectHome=true
|
||||
ReadWritePaths=/opt/legatus/sv/var /opt/legatus/LOG
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1 @@
|
||||
/etc/ld.so.conf.d/lts_ws.conf
|
||||
@@ -0,0 +1,18 @@
|
||||
Package: legatus-qt6-ws
|
||||
Version: 15.6-qt6.10.2
|
||||
Section: utils
|
||||
Priority: optional
|
||||
Architecture: amd64
|
||||
Depends: libc6 (>= 2.34), libqt6core6 (>= 6.10.0), libqt6gui6 (>= 6.10.0), libqt6network6 (>= 6.10.0), libqt6sql6 (>= 6.10.0), libqt6multimedia6 (>= 6.10.0), libqt6printsupport6 (>= 6.10.0), libqt6svg6 (>= 6.10.0), libqt6webengine6 (>= 6.10.0), libqt6webchannel6 (>= 6.10.0), libqt6positioning6 (>= 6.10.0), libqt6sensors6 (>= 6.10.0), libgdal34, libpoppler-qt6-1, libecpg6, libkdchart2, libkdreports-qt6-1, postgresql-client, sshpass, openssh-client, rdesktop, ffmpeg, sqlite3
|
||||
Maintainer: Legatus Team <legatus@life-maps.de>
|
||||
Description: Live Simulation Training System Workstation Software (Qt6)
|
||||
This package contains the Qt6-migrated LTS workstation software.
|
||||
.
|
||||
Features:
|
||||
- Qt6/C++17 migrated workstation components
|
||||
- PostgreSQL database connectivity
|
||||
- DDS-based communication (RTI Connext 7.7)
|
||||
- Multimedia and printing support
|
||||
- WebEngine for embedded web content
|
||||
.
|
||||
This is part of the Legatus Qt6 migration project.
|
||||
@@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
if [ "$1" = "configure" ]; then
|
||||
ldconfig
|
||||
|
||||
# Create log directory
|
||||
LOGDIR="/opt/legatus/ws/../LOG"
|
||||
if [ ! -e "${LOGDIR}" ]; then
|
||||
mkdir -p "${LOGDIR}"
|
||||
chown root:root "${LOGDIR}"
|
||||
chmod 1777 "${LOGDIR}"
|
||||
fi
|
||||
|
||||
# Make automount script executable
|
||||
if [ -f "/opt/legatus/ws/bin/automount.sh" ]; then
|
||||
chmod +x /opt/legatus/ws/bin/automount.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
if [ "$1" = "remove" ]; then
|
||||
ldconfig
|
||||
fi
|
||||
|
||||
exit 0
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
# Legatus LTS Workstation shared libraries
|
||||
/opt/legatus/ws/lib
|
||||
Reference in new issue
Block a user