[packages/nagiosql] Up to 3.5.0
arekm
arekm at pld-linux.org
Fri Nov 27 22:03:34 CET 2026
commit 49b13951d5b9559e1fe05a4bfc7fd622b4991885
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Fri Nov 27 16:00:04 2026 +0100
Up to 3.5.0
nagiosql-paths.patch | 16 ++++++++--------
nagiosql.spec | 35 ++++++++++++++++++++---------------
2 files changed, 28 insertions(+), 23 deletions(-)
---
diff --git a/nagiosql.spec b/nagiosql.spec
index ba29ea4..bd407b8 100644
--- a/nagiosql.spec
+++ b/nagiosql.spec
@@ -1,32 +1,34 @@
# TODO:
# - install dir - subpackage? how about doc? sql? ENABLE_INSTALLER?
#
-%define ver 304
+%define gitdate 2023-06-18
Summary: Web based administration tool for Nagios
Name: nagiosql
-Version: 3.0.4
-Release: 5
+Version: 3.5.0
+Release: 1
License: BSD
Group: Networking/Utilities
-Source0: http://dl.sourceforge.net/nagiosql/%{name}%{ver}.tar.bz2
-# Source0-md5: 32644a4ac38e94714d39af63456cb7a0
+Source0: https://downloads.sourceforge.net/nagiosql/NagiosQL%%20%{version}/%{name}-%{version}-git%{gitdate}.tar.bz2
+# Source0-md5: 179e52b9750d63a55615e053234bb2ab
Source1: %{name}-apache.conf
Source2: %{name}.cfg
Source3: %{name}-httpd.conf
Patch0: %{name}-paths.patch
-URL: http://www.nagiosql.org/
+URL: https://www.nagiosql.org/
Requires: php(ftp)
Requires: php(gettext)
-Requires: php(mysql)
+Requires: php(mbstring)
+Requires: php(mysqli)
+Requires: php(session)
Requires: php(xml)
-Requires: php-pear-HTML_Template_IT
Requires: webapps
-Requires: webserver(php) >= 4.3
+Requires: webserver(php) >= 7.2
Conflicts: apache-base < 2.4.0-1
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _noautoreq_pear \.\./.* .*_class.php functions/.*.php status.php supportive.php
+# libraries/pear is bundled and loaded by absolute path; the rest are in-tree includes
+%define _noautoreq_pear HTML/Template/.* PEAR.* System.php functions/.* translator.php
%define _appdir %{_datadir}/%{name}
%define _webapps /etc/webapps
@@ -40,16 +42,14 @@ manage and use them. NagiosQL is based on a webserver with PHP, MySQL
and local file or remote access to the Nagios configuration files.
%prep
-%setup -q -c
-#-n %{name}
-sed -i -e 's,\r$,,' install/sql/nagiosQL_v3_db_mysql.sql
+%setup -q
%patch -P0 -p1
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_appdir},%{_sysconfdir}/nagios,%{_sysconfdir}/%{name}/{,backup/}{hosts,services},%{_webconfdir}}
-cp -a admin functions images install templates *.php *.ico $RPM_BUILD_ROOT%{_appdir}
+cp -a admin functions images install libraries scripts templates *.php *.ico $RPM_BUILD_ROOT%{_appdir}
cp -a config $RPM_BUILD_ROOT%{_webconfdir}
ln -sf %{_webconfdir}/config $RPM_BUILD_ROOT%{_appdir}
@@ -74,19 +74,24 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc install/doc/*
+%doc doc/*
%{_sysconfdir}/nagios/*
%attr(2770,root,nagcmd) %{_sysconfdir}/%{name}
%dir %attr(750,root,http) %{_webconfdir}
# g+w required for install-time database configuration only
%dir %attr(1770,root,http) %config(noreplace) %verify(not md5 mtime size) %{_webconfdir}/config
%dir %{_webconfdir}/config/locale
+%lang(da) %{_webconfdir}/config/locale/da_DK
%lang(de) %{_webconfdir}/config/locale/de_DE
%lang(en) %{_webconfdir}/config/locale/en_GB
+%lang(es_AR) %{_webconfdir}/config/locale/es_AR
%lang(es) %{_webconfdir}/config/locale/es_ES
%lang(fr) %{_webconfdir}/config/locale/fr_FR
%lang(it) %{_webconfdir}/config/locale/it_IT
+%lang(ja) %{_webconfdir}/config/locale/ja_JP
+%lang(nl) %{_webconfdir}/config/locale/nl_NL
%lang(pl) %{_webconfdir}/config/locale/pl_PL
+%lang(pt_BR) %{_webconfdir}/config/locale/pt_BR
%lang(ru) %{_webconfdir}/config/locale/ru_RU
%lang(zh) %{_webconfdir}/config/locale/zh_CN
%{_webconfdir}/config/*.css
diff --git a/nagiosql-paths.patch b/nagiosql-paths.patch
index 13ffcbb..414c990 100644
--- a/nagiosql-paths.patch
+++ b/nagiosql-paths.patch
@@ -1,11 +1,11 @@
---- nagiosql3/install/sql/nagiosQL_v3_db_mysql.sql.orig 2009-02-02 11:24:55.000000000 +0100
-+++ nagiosql3/install/sql/nagiosQL_v3_db_mysql.sql 2009-03-16 22:40:45.000000000 +0100
-@@ -207,7 +207,7 @@
- -- Daten f�r Tabelle `tbl_domain`
- --
-
--INSERT INTO `tbl_domain` (`id`, `domain`, `alias`, `server`, `method`, `user`, `password`, `basedir`, `hostconfig`, `serviceconfig`, `backupdir`, `hostbackup`, `servicebackup`, `nagiosbasedir`, `importdir`, `commandfile`, `binaryfile`, `pidfile`, `version`, `access_rights`, `active`, `nodelete`, `last_modified`) VALUES (1, 'localhost', 'Local installation', 'localhost', '1', '', '', '/etc/nagiosql/', '/etc/nagiosql/hosts/', '/etc/nagiosql/services/', '/etc/nagiosql/backup/', '/etc/nagiosql/backup/hosts/', '/etc/nagiosql/backup/services/', '/etc/nagios/', '/etc/nagios/import/', '/var/nagios/rw/nagios.cmd', '/usr/local/nagios/bin/nagios', '/var/nagios/nagios.lock', 3, '00000000', '1', '1', '2008-09-03 18:54:03');
-+INSERT INTO `tbl_domain` (`id`, `domain`, `alias`, `server`, `method`, `user`, `password`, `basedir`, `hostconfig`, `serviceconfig`, `backupdir`, `hostbackup`, `servicebackup`, `nagiosbasedir`, `importdir`, `commandfile`, `binaryfile`, `pidfile`, `version`, `access_rights`, `active`, `nodelete`, `last_modified`) VALUES (1, 'localhost', 'Local installation', 'localhost', '1', '', '', '/etc/nagiosql/', '/etc/nagiosql/hosts/', '/etc/nagiosql/services/', '/etc/nagiosql/backup/', '/etc/nagiosql/backup/hosts/', '/etc/nagiosql/backup/services/', '/etc/nagios/', '/etc/nagios/import/', '/var/nagios/rw/nagios.cmd', '/usr/sbin/nagios', '/var/lib/nagios/nagios.pid', 3, '00000000', '1', '1', '2008-09-03 18:54:03');
+--- a/install/sql/nagiosQL_v35_db_mysql.sql
++++ b/install/sql/nagiosQL_v35_db_mysql.sql
+@@ -92,7 +92,7 @@
+ --
+ -- Datasets for table `tbl_configtarget`
+ --
+-INSERT INTO `tbl_configtarget` (`id`, `target`, `alias`, `server`, `method`, `user`, `password`, `ssh_key_path`, `ftp_secure`, `basedir`, `hostconfig`, `serviceconfig`, `backupdir`, `hostbackup`, `servicebackup`, `nagiosbasedir`, `importdir`, `picturedir`, `commandfile`, `binaryfile`, `pidfile`, `conffile`, `cgifile`, `resourcefile`, `version`, `access_group`, `active`, `nodelete`, `last_modified`) VALUES (1, 'localhost', 'Local installation', 'localhost', '1', '', '', '', 0, '/etc/nagiosql/', '/etc/nagiosql/hosts/', '/etc/nagiosql/services/', '/etc/nagiosql/backup/', '/etc/nagiosql/backup/hosts/', '/etc/nagiosql/backup/services/', '/etc/nagios/', '/opt/nagios/etc/objects/', '', '/var/nagios/rw/nagios.cmd', '/opt/nagios/bin/nagios', '/var/nagios/nagios.lock', '/etc/nagios/nagios.cfg', '/etc/nagios/cgi.cfg', '/etc/nagios/resource.cfg', 3, 0, '1', '1', NOW());
++INSERT INTO `tbl_configtarget` (`id`, `target`, `alias`, `server`, `method`, `user`, `password`, `ssh_key_path`, `ftp_secure`, `basedir`, `hostconfig`, `serviceconfig`, `backupdir`, `hostbackup`, `servicebackup`, `nagiosbasedir`, `importdir`, `picturedir`, `commandfile`, `binaryfile`, `pidfile`, `conffile`, `cgifile`, `resourcefile`, `version`, `access_group`, `active`, `nodelete`, `last_modified`) VALUES (1, 'localhost', 'Local installation', 'localhost', '1', '', '', '', 0, '/etc/nagiosql/', '/etc/nagiosql/hosts/', '/etc/nagiosql/services/', '/etc/nagiosql/backup/', '/etc/nagiosql/backup/hosts/', '/etc/nagiosql/backup/services/', '/etc/nagios/', '/etc/nagios/import/', '', '/var/nagios/rw/nagios.cmd', '/usr/sbin/nagios', '/var/lib/nagios/nagios.pid', '/etc/nagios/nagios.cfg', '/etc/nagios/cgi.cfg', '/etc/nagios/resource.cfg', 3, 0, '1', '1', NOW());
-- --------------------------------------------------------
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/nagiosql.git/commitdiff/49b13951d5b9559e1fe05a4bfc7fd622b4991885
More information about the pld-cvs-commit
mailing list