1 |
brianr |
1.2 |
# $Id: smeserver-durep.spec,v 1.1 2020/10/23 10:38:16 brianr Exp $ |
2 |
brianr |
1.1 |
# Authority: unnilennnium |
3 |
|
|
# Name: JP Pialasse |
4 |
|
|
|
5 |
|
|
%define name smeserver-durep |
6 |
|
|
Name: %{name} |
7 |
|
|
%define version 1.5.0 |
8 |
|
|
Version: %{version} |
9 |
brianr |
1.2 |
%define release 5 |
10 |
brianr |
1.1 |
Release: %{release}%{?dist} |
11 |
|
|
License: GPL |
12 |
|
|
Source: %{name}-%{version}.tar.gz |
13 |
brianr |
1.2 |
|
14 |
brianr |
1.1 |
Patch0: smeserver-durep-1.5.0-bz10118-more_paths.patch |
15 |
|
|
Patch1: smeserver-durep-1.5.0-dfposix.patch |
16 |
brianr |
1.2 |
Patch2: smeserver-durep-1.5.0-Add-creatlinks-to-alter-link-to-wrapper.patch |
17 |
|
|
|
18 |
brianr |
1.1 |
BuildRoot: /var/tmp/%{name}-%{version}-buildroot |
19 |
|
|
BuildRequires: e-smith-devtools |
20 |
|
|
BuildArch: noarch |
21 |
|
|
Group: Networking/Daemons |
22 |
|
|
Summary: DUREP - Graphic Report for Disk Usage |
23 |
|
|
Requires: perl(Data::Dumper) |
24 |
|
|
Requires: perl(MLDBM) >= 1.21-4 |
25 |
|
|
Obsoletes: smeserver-durep-saco |
26 |
|
|
Obsoletes: e-smith-durep |
27 |
|
|
|
28 |
|
|
|
29 |
|
|
%changelog |
30 |
brianr |
1.2 |
* Fri Oct 23 2020 Brian Read <brianr@bjsystems.co.uk> 1.5.0-5.sme |
31 |
|
|
- Initial import to SME10 tree [SME: 10893] |
32 |
|
|
- Add in link to wrapper in createlinks |
33 |
|
|
|
34 |
brianr |
1.1 |
* Sat Dec 28 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.5.0-4.sme |
35 |
|
|
- output all mounted points with df on one line using Posix |
36 |
|
|
|
37 |
|
|
* Sat Feb 10 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.5.0-3.sme |
38 |
|
|
- add hability to stat more directories [SME: 10118] |
39 |
|
|
- add status enabled or disabled |
40 |
|
|
|
41 |
|
|
* Sat Aug 22 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-2.sme |
42 |
|
|
- Initial release to contribs9 |
43 |
|
|
|
44 |
|
|
* Sat Jun 21 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-1.sme |
45 |
|
|
- Initial release to sme9 |
46 |
|
|
|
47 |
|
|
* Thu Sep 13 2012 JP Pialasse <test@pialasse.com> 1.3.0-6.sme |
48 |
|
|
- add Obsoletes smeserver-durep-saco e-smith-durep [SME 7108] |
49 |
|
|
- TODO cleaning spec file post and filelist chmod |
50 |
|
|
|
51 |
|
|
* Mon Sep 10 2012 JP Pialasse <test@pialasse.com> 1.3.0-5.sme |
52 |
|
|
- fix do not copy files and filelist [SME 7098] |
53 |
|
|
- patch df of plugged disk |
54 |
|
|
|
55 |
|
|
* Sun Sep 09 2012 JP Pialasse <test@pialasse.com> 1.3.0-4.sme |
56 |
|
|
- dependencies resolution |
57 |
|
|
|
58 |
|
|
* Fri Aug 31 2012 JP Pialasse <test@pialasse.com> 1.3.0-3.sme |
59 |
|
|
- build error fix : prep setup |
60 |
|
|
|
61 |
|
|
* Wed Aug 15 2012 JP Pialasse <test@pialasse.com> 1.3.0-1.sme |
62 |
|
|
- update from 1.03-02sn to comply with SME8 and SME7 |
63 |
|
|
- moved archives to /var/lib/durep |
64 |
|
|
- moved web files to manager/html |
65 |
|
|
- cleaned spec |
66 |
|
|
|
67 |
|
|
%description |
68 |
|
|
DUREP is a Report Generator that creates graphical Output for the "du" command |
69 |
|
|
|
70 |
|
|
%prep |
71 |
|
|
%setup |
72 |
|
|
%patch0 -p1 |
73 |
|
|
%patch1 -p1 |
74 |
brianr |
1.2 |
%patch2 -p1 |
75 |
|
|
|
76 |
|
|
%build |
77 |
|
|
perl createlinks |
78 |
brianr |
1.1 |
|
79 |
|
|
%install |
80 |
|
|
/bin/rm -rf $RPM_BUILD_ROOT |
81 |
|
|
(cd root; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
82 |
|
|
/bin/rm -f %{name}-%{version}-filelist |
83 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
84 |
|
|
|
85 |
|
|
|
86 |
|
|
%clean |
87 |
|
|
/bin/rm -rf $RPM_BUILD_ROOT |
88 |
|
|
|
89 |
|
|
%files -f %{name}-%{version}-filelist |
90 |
|
|
%defattr(-,root,root) |
91 |
|
|
|
92 |
|
|
#%attr(0644 root root) "/etc/e-smith/templates/etc/crontab/durep" |
93 |
|
|
#%attr(4750 root admin) "/etc/e-smith/web/functions/durep" |
94 |
|
|
#%attr(0777 root root) "/etc/e-smith/web/panels/manager/cgi-bin/durep" |
95 |
|
|
#%attr(0644 root root) "/usr/local/bin/durep" |
96 |
|
|
#%dir %attr(0755 root root) "/usr/local/man" |
97 |
|
|
#%dir %attr(0755 root root) "/usr/local/man/man1" |
98 |
|
|
#%attr(0644 root root) "/usr/local/man/man1/durep.1" |
99 |
|
|
#%dir %attr(0755 root root) "/usr/sbin" |
100 |
|
|
#%attr(0644 root root) "/usr/sbin/durep.daily" |
101 |
|
|
#%dir %attr(0755 root root) "/var/lib/durep" |
102 |
|
|
#%dir %attr(0755 root root) "/etc/e-smith/web/panels/manager/html/durep" |
103 |
|
|
#%attr(0644 root root) "/etc/e-smith/web/panels/manager/html/durep/bar.png" |
104 |
|
|
#%attr(0644 root root) "/etc/e-smith/web/panels/manager/html/durep/durep.cgi" |
105 |
|
|
#%attr(0644 root root) "/etc/e-smith/web/panels/manager/html/durep/style.css" |
106 |
|
|
|
107 |
|
|
%pre -p /bin/sh |
108 |
|
|
|
109 |
|
|
%post -p /bin/sh |
110 |
|
|
chmod 755 /usr/local/bin/durep |
111 |
|
|
chmod 755 /usr/sbin/durep.daily |
112 |
|
|
/sbin/e-smith/expand-template /etc/crontab |
113 |
|
|
echo "Initial run of durep ... please wait." |
114 |
|
|
/usr/sbin/durep.daily >/dev/null |
115 |
|
|
/etc/e-smith/events/actions/navigation-conf >/dev/null 2>&1 |
116 |
|
|
|
117 |
|
|
%preun -p /bin/sh |
118 |
|
|
|
119 |
|
|
%postun -p /bin/sh |
120 |
|
|
if [ "$1" = 0 ]; then |
121 |
|
|
/sbin/e-smith/expand-template /etc/crontab |
122 |
|
|
/etc/e-smith/events/actions/navigation-conf 2>/dev/null |
123 |
|
|
fi |
124 |
|
|
|