harbour-server 0.1.0: schermata parametri server (schema status/1)
Prima release dell'app Sailfish: schermata unica con CPU, memoria, disco, container, backup, servizi, SSH, aggiornamenti e VPN, letti da un endpoint read-only /v1/status. Soglie giallo/rosso, aggiornamento ogni 60 s, copertina, impostazioni con indirizzo e token.
This commit is contained in:
commit
24e1f3b376
20 files changed
+1112
No files matched your search
@@ -0,0 +1,20 @@
|
||||
[Desktop Entry]
|
||||
Name=Server
|
||||
Name[it_IT]=Server
|
||||
Comment=Server parameters on one screen
|
||||
Comment[it_IT]=Parametri del server in una schermata
|
||||
Exec=harbour-server
|
||||
Icon=harbour-server
|
||||
Type=Application
|
||||
X-Nemo-Application-Type=silica-qt5
|
||||
Categories=System;Monitor;
|
||||
|
||||
# Profilo SailJail esplicito: senza X-Sailjail la sandbox di Sailfish 5.1 usa
|
||||
# il profilo default, che nasconde ~/.config/harbour (config non persistente).
|
||||
# Org/App dichiarati QUI (letti dalla sandbox) e nel main.cpp (letti da
|
||||
# QStandardPaths): AppConfigLocation = ~/.config/harbour/server (persistente).
|
||||
# Internet = collector statusd (LAN o VPN).
|
||||
[X-Sailjail]
|
||||
Permissions=Internet
|
||||
OrganizationName=harbour
|
||||
ApplicationName=server
|
||||
@@ -0,0 +1,62 @@
|
||||
Name: harbour-server
|
||||
Summary: Parametri del server in una schermata
|
||||
Version: 0.1.0
|
||||
Release: 1
|
||||
Group: Qt/Qt
|
||||
License: MIT
|
||||
URL: https://git.hackatoniclife.com/kaneda/harbour-server
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
Source1: %{name}.desktop
|
||||
|
||||
Requires: sailfishsilica-qt5 >= 0.10.9
|
||||
BuildRequires: pkgconfig(sailfishapp) >= 1.0.2
|
||||
BuildRequires: pkgconfig(Qt5Core)
|
||||
BuildRequires: pkgconfig(Qt5Qml)
|
||||
BuildRequires: pkgconfig(Qt5Quick)
|
||||
BuildRequires: pkgconfig(Qt5Network)
|
||||
BuildRequires: desktop-file-utils
|
||||
|
||||
%description
|
||||
Client read-only per il collector statusd: CPU, memoria, disco, container,
|
||||
backup, servizi in errore, tentativi SSH e aggiornamenti del server in una
|
||||
schermata sola. Il formato consumato (schema status/1) non dipende dalla
|
||||
macchina: qualunque host che serva lo stesso JSON funziona senza modifiche.
|
||||
|
||||
%changelog
|
||||
* Tue Oct 27 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.1.0-1
|
||||
- Prima release: schermata unica con i parametri del server letti da
|
||||
/v1/status (schema status/1), soglie giallo/rosso, aggiornamento
|
||||
automatico ogni 60 s, copertina con la CPU e pull-to-refresh;
|
||||
impostazioni con indirizzo e token, salvate in ~/.config/harbour/server
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}
|
||||
|
||||
%build
|
||||
%qmake5
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make install INSTALL_ROOT=%{buildroot}
|
||||
mkdir -p %{buildroot}%{_datadir}/applications
|
||||
# Desktop file cercato in modo robusto: sfdk usa i sorgenti live (shadow build)
|
||||
# e la directory sorgente puo' chiamarsi %{name}-%{version} (tarball) o
|
||||
# %{name} (clone); %{SOURCE1} e' il fallback.
|
||||
DESKTOP=$(find %{_builddir}/.. -maxdepth 4 -name '%{name}.desktop' 2>/dev/null | head -1)
|
||||
if [ -z "$DESKTOP" ] && [ -f %{SOURCE1} ]; then DESKTOP=%{SOURCE1}; fi
|
||||
if [ -z "$DESKTOP" ]; then
|
||||
echo "ERROR: %{name}.desktop not found" >&2
|
||||
exit 1
|
||||
fi
|
||||
install -m 0644 "$DESKTOP" %{buildroot}%{_datadir}/applications/%{name}.desktop
|
||||
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop || true
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{_bindir}/%{name}
|
||||
%{_datadir}/applications/%{name}.desktop
|
||||
%{_datadir}/icons/hicolor/86x86/apps/%{name}.png
|
||||
%{_datadir}/icons/hicolor/108x108/apps/%{name}.png
|
||||
%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
|
||||
%{_datadir}/icons/hicolor/172x172/apps/%{name}.png
|
||||
%{_datadir}/%{name}/qml
|
||||
Reference in new issue
Block a user