--- rpms/smeserver-smeadmin/contribs10/smeserver-smeadmin.spec 2022/11/11 16:19:44 1.13 +++ rpms/smeserver-smeadmin/contribs10/smeserver-smeadmin.spec 2023/12/18 16:25:40 1.14 @@ -7,7 +7,7 @@ Summary: A graphical monitor, alert rais %define name smeserver-smeadmin Name: %{name} %define version 1.6 -%define release 10 +%define release 11 Version: %{version} Release: %{release}%{?dist} License: GPL @@ -22,6 +22,7 @@ Patch5: smeserver-smeadmin-1.6-locale-20 Patch6: smeserver-smeadmin-1.6-bz12023-backup.patch Patch7: smeserver-smeadmin-1.6-bz11643-services.patch Patch8: smeserver-smeadmin-1.6-locale-2022-11-11.patch +Patch9: smeserver-smeadmin-1.6-bz12447-auth-qpsmtpd.patch BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot BuildArchitectures: noarch @@ -39,8 +40,71 @@ Requires: lm_sensors #Obsoletes: smeserver-sme8admin AutoReqProv: no +%description +The main part of smeadmin is a daemon which gathers informations from logs +and other tools like systat, it then feed a mysql database and create RRD +graphs about your system state. +This daemon can also send periodics mails (with some logs), and alerts mails +based on configurable thresolds. + +A panel is also available in the server-manager, with which you can access gathered +data, display the RRD graphs and configure the service. + +This contrib is a bit inspired by e-smith-sysmon from Shad Lords. + +%prep +%setup +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 +%patch4 -p1 +%patch5 -p1 +%patch6 -p1 +%patch7 -p1 +%patch8 -p1 +%patch9 -p1 + +%build +perl createlinks +%{__mkdir_p} root/etc/e-smith/web/panels/manager/html/smeadmin +%{__mkdir_p} root/usr/share/locale/en_US/LC_MESSAGES + +xgettext --from-code UTF-8 -F --no-wrap -L perl \ + -o root/usr/share/locale/en_US/LC_MESSAGES/smeadmin.po \ + root/etc/e-smith/web/functions/smeadmin \ + root/usr/bin/smeadmind + +/sbin/e-smith/generate-lexicons + +%install +rm -rf $RPM_BUILD_ROOT +(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) +rm -f %{name}-%{version}-filelist +/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ +--file /usr/bin/smeadmind 'attr(755,root,root)' \ +--file /usr/share/doc/smeserver-smeadmin/add_ds_to_rrd.pl 'attr(755,root,root)' \ + > %{name}-%{version}-filelist + +%clean +rm -rf $RPM_BUILD_ROOT + +%pre + +%preun + +%post + +%postun + +%files -f %{name}-%{version}-filelist +%defattr(-,root,root) %changelog +* Mon Dec 18 2023 Jean-Philippe Pialasse 1.6-11.sme +- add accounting of auth_failed [SME: 12447] + adding php8* services + * Fri Nov 11 2022 Jean-Philippe Pialasse 1.6-10.sme - apply locale 2022-11-11 patch @@ -182,61 +246,3 @@ AutoReqProv: no * Sun Jun 10 2012 Jean-Philippe Pialasse 1.3-1.sme - Initial version -%description -The main part of smeadmin is a daemon which gathers informations from logs -and other tools like systat, it then feed a mysql database and create RRD -graphs about your system state. -This daemon can also send periodics mails (with some logs), and alerts mails -based on configurable thresolds. - -A panel is also available in the server-manager, with which you can access gathered -data, display the RRD graphs and configure the service. - -This contrib is a bit inspired by e-smith-sysmon from Shad Lords. - -%prep -%setup -%patch0 -p1 -%patch1 -p1 -%patch2 -p1 -%patch3 -p1 -%patch4 -p1 -%patch5 -p1 -%patch6 -p1 -%patch7 -p1 -%patch8 -p1 - -%build -perl createlinks -%{__mkdir_p} root/etc/e-smith/web/panels/manager/html/smeadmin -%{__mkdir_p} root/usr/share/locale/en_US/LC_MESSAGES - -xgettext --from-code UTF-8 -F --no-wrap -L perl \ - -o root/usr/share/locale/en_US/LC_MESSAGES/smeadmin.po \ - root/etc/e-smith/web/functions/smeadmin \ - root/usr/bin/smeadmind - -/sbin/e-smith/generate-lexicons - -%install -rm -rf $RPM_BUILD_ROOT -(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) -rm -f %{name}-%{version}-filelist -/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ ---file /usr/bin/smeadmind 'attr(755,root,root)' \ ---file /usr/share/doc/smeserver-smeadmin/add_ds_to_rrd.pl 'attr(755,root,root)' \ - > %{name}-%{version}-filelist - -%clean -rm -rf $RPM_BUILD_ROOT - -%pre - -%preun - -%post - -%postun - -%files -f %{name}-%{version}-filelist -%defattr(-,root,root)