# $Id: smeserver-durep.spec,v 1.14 2023/03/23 16:31:25 michel Exp $ # Authority: unnilennnium # Name: JP Pialasse %define name smeserver-durep Name: %{name} %define version 1.5.0 Version: %{version} %define release 17 Release: %{release}%{?dist} License: GPL Source: %{name}-%{version}.tar.gz Patch0: smeserver-durep-1.5.0-bz10118-more_paths.patch Patch1: smeserver-durep-1.5.0-dfposix.patch Patch2: smeserver-durep-1.5.0-Add-creatlinks-to-alter-link-to-wrapper.patch Patch3: smeserver-durep-1.5.0-bz10893-noreboot.patch Patch4: smeserver-durep-1.5.0-permissions.patch Patch5: smeserver-durep-1.5.0-manager2.patch Patch6: smeserver-durep-1.5.0-Add-class-to-div-for-AdminLTE.patch Patch7: smeserver-durep-1.5.0-bz11841_localisation_dir.patch Patch8: smeserver-durep-1.5.0-bz11975.patch Patch9: smeserver-durep-1.5.0-bz12007-backup.patch Patch10: smeserver-durep-1.5.0-bz12342_sm2_bar_image.patch Patch11: smeserver-durep-1.5.0-bz12342_sm2_bar_bis.patch Patch12: smeserver-durep-1.5.0-Alter-menu-category-for-new-arrangement.patch BuildRoot: /var/tmp/%{name}-%{version}-buildroot BuildRequires: e-smith-devtools BuildArch: noarch Group: Networking/Daemons Summary: DUREP - Graphic Report for Disk Usage Requires: perl(Data::Dumper) Requires: perl(MLDBM) >= 1.21-4 Obsoletes: smeserver-durep-saco Obsoletes: e-smith-durep AutoReqProv: no %changelog * Fri Mar 01 2024 Brian Read 1.5.0-17.sme - Edit SM2 Menu entry to conform to new arrangements [SME: 12493] * Thu Mar 23 2023 Michel Begue 1.5.0-16.sme - fix typo in previous release [SME: 12342] * Wed Mar 22 2023 Michel Begue 1.5.0-15.sme - allow access to bar.png image in SM2 [SME: 12342] * Sat Jul 30 2022 Brian Read 1.5.0-14.sme - Re-build and link to latest devtools [SME: 11997] * Fri Jul 22 2022 Jean-Philippe Pialasse 1.5.0-13.sme - add to core backup [SME: 12007] * Wed May 18 2022 Jean-Philippe Pialasse 1.5.0-12.sme - allow access to user with userpanel [SME: 11975] * Sat Jan 08 2022 Michel Begue 1.5.0-11.sme - Re-build and link to latest devtools wrong localisation directory [SME: 11841] * Fri Jan 07 2022 Brian Read 1.5.0-10.sme - Add-class-to-div-for-AdminLTE [SME: 11835] * Thu Jun 03 2021 Michel Begue 1.5.0-9.sme - first use with smeserver-manager [SME: 11618] * Thu Mar 04 2021 Jean-Philipe Pialasse 1.5.0-8.sme - Re-build and link to latest devtools permissions of cgi inside spec file too * Thu Mar 04 2021 Michel Begue 1.5.0-7.sme - Re-build and link to latest devtools permissions of cgi and data files * Mon Feb 22 2021 Jean-Philipe Pialasse 1.5.0-6.sme - add smeserver-durep-update event [SME: 10893] make up spec file * Fri Oct 23 2020 Brian Read 1.5.0-5.sme - Initial import to SME10 tree [SME: 10893] - Add in link to wrapper in createlinks * Sat Dec 28 2019 Jean-Philipe Pialasse 1.5.0-4.sme - output all mounted points with df on one line using Posix * Sat Feb 10 2018 Jean-Philipe Pialasse 1.5.0-3.sme - add hability to stat more directories [SME: 10118] - add status enabled or disabled * Sat Aug 22 2015 stephane de Labrusse 1.5.0-2.sme - Initial release to contribs9 * Sat Jun 21 2014 stephane de Labrusse 1.5.0-1.sme - Initial release to sme9 * Thu Sep 13 2012 JP Pialasse 1.3.0-6.sme - add Obsoletes smeserver-durep-saco e-smith-durep [SME 7108] - TODO cleaning spec file post and filelist chmod * Mon Sep 10 2012 JP Pialasse 1.3.0-5.sme - Re-build and link to latest devtools do not copy files and filelist [SME 7098] - patch df of plugged disk * Sun Sep 09 2012 JP Pialasse 1.3.0-4.sme - dependencies resolution * Fri Aug 31 2012 JP Pialasse 1.3.0-3.sme - build error fix : prep setup * Wed Aug 15 2012 JP Pialasse 1.3.0-1.sme - update from 1.03-02sn to comply with SME8 and SME7 - moved archives to /var/lib/durep - moved web files to manager/html - cleaned spec %description DUREP is a Report Generator that creates graphical Output for the "du" command %prep %setup %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1 %patch7 -p1 %patch8 -p1 %patch9 -p1 %patch10 -p1 %patch11 -p1 %patch12 -p1 %build perl createlinks %install /bin/rm -rf $RPM_BUILD_ROOT (cd root; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) /bin/rm -f %{name}-%{version}-filelist /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ --file "/usr/local/bin/durep" 'attr(0755,root,root)' \ --file "/usr/sbin/durep.daily" 'attr(0755,root,root)' \ --file '/etc/e-smith/web/panels/manager/html/durep/durep.cgi' 'attr(0750,root,admin)' \ > %{name}-%{version}-filelist %clean /bin/rm -rf $RPM_BUILD_ROOT %files -f %{name}-%{version}-filelist %defattr(-,root,root) %pre -p /bin/sh %post -p /bin/sh if (systemctl list-unit-files |grep smanager) then echo "Smanager restart in spec file" /sbin/e-smith/signal-event smanager-refresh; fi %preun -p /bin/sh %postun -p /bin/sh if [ $1 = 0 ] ; then /bin/rm -f /usr/share/smanager/themes/default/images/bar.png fi true