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