1 |
# $Id: smeserver-durep.spec,v 1.5 2019/12/28 19:10:45 jpp Exp $ |
# $Id: smeserver-durep.spec,v 1.7 2022/01/07 12:48:50 brianr Exp $ |
2 |
# Authority: unnilennnium |
# Authority: unnilennnium |
3 |
# Name: JP Pialasse |
# Name: JP Pialasse |
4 |
|
|
6 |
Name: %{name} |
Name: %{name} |
7 |
%define version 1.5.0 |
%define version 1.5.0 |
8 |
Version: %{version} |
Version: %{version} |
9 |
%define release 4 |
%define release 11 |
10 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
11 |
License: GPL |
License: GPL |
12 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
13 |
|
|
14 |
Patch0: smeserver-durep-1.5.0-bz10118-more_paths.patch |
Patch0: smeserver-durep-1.5.0-bz10118-more_paths.patch |
15 |
Patch1: smeserver-durep-1.5.0-dfposix.patch |
Patch1: smeserver-durep-1.5.0-dfposix.patch |
16 |
|
Patch2: smeserver-durep-1.5.0-Add-creatlinks-to-alter-link-to-wrapper.patch |
17 |
|
Patch3: smeserver-durep-1.5.0-bz10893-noreboot.patch |
18 |
|
Patch4: smeserver-durep-1.5.0-permissions.patch |
19 |
|
Patch5: smeserver-durep-1.5.0-manager2.patch |
20 |
|
Patch6: smeserver-durep-1.5.0-Add-class-to-div-for-AdminLTE.patch |
21 |
|
Patch7: smeserver-durep-1.5.0-bz11841_localisation_dir.patch |
22 |
|
|
23 |
BuildRoot: /var/tmp/%{name}-%{version}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-buildroot |
24 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
25 |
BuildArch: noarch |
BuildArch: noarch |
30 |
Obsoletes: smeserver-durep-saco |
Obsoletes: smeserver-durep-saco |
31 |
Obsoletes: e-smith-durep |
Obsoletes: e-smith-durep |
32 |
|
|
33 |
|
AutoReqProv: no |
34 |
|
|
35 |
%changelog |
%changelog |
36 |
|
* Sat Jan 08 2022 Michel Begue <mab974@misouk.com> 1.5.0-11.sme |
37 |
|
- fix wrong localisation directory [SME: 11841] |
38 |
|
|
39 |
|
* Fri Jan 07 2022 Brian Read <brianr@bjsystems.co.uk> 1.5.0-10.sme |
40 |
|
- Add-class-to-div-for-AdminLTE [SME: 11835] |
41 |
|
|
42 |
|
* Thu Jun 03 2021 Michel Begue <mab974@gmail.com> 1.5.0-9.sme |
43 |
|
- first use with smeserver-manager [SME: 11618] |
44 |
|
|
45 |
|
* Thu Mar 04 2021 Jean-Philipe Pialasse <tests@pialasse.com> 1.5.0-8.sme |
46 |
|
- fix permissions of cgi inside spec file too |
47 |
|
|
48 |
|
* Thu Mar 04 2021 Michel Begue <mab974@gmail.com> 1.5.0-7.sme |
49 |
|
- fix permissions of cgi and data files |
50 |
|
|
51 |
|
* Mon Feb 22 2021 Jean-Philipe Pialasse <tests@pialasse.com> 1.5.0-6.sme |
52 |
|
- add smeserver-durep-update event [SME: 10893] |
53 |
|
make up spec file |
54 |
|
|
55 |
|
* Fri Oct 23 2020 Brian Read <brianr@bjsystems.co.uk> 1.5.0-5.sme |
56 |
|
- Initial import to SME10 tree [SME: 10893] |
57 |
|
- Add in link to wrapper in createlinks |
58 |
|
|
59 |
* Sat Dec 28 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.5.0-4.sme |
* Sat Dec 28 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.5.0-4.sme |
60 |
- output all mounted points with df on one line using Posix |
- output all mounted points with df on one line using Posix |
61 |
|
|
96 |
%setup |
%setup |
97 |
%patch0 -p1 |
%patch0 -p1 |
98 |
%patch1 -p1 |
%patch1 -p1 |
99 |
|
%patch2 -p1 |
100 |
|
%patch3 -p1 |
101 |
|
%patch4 -p1 |
102 |
|
%patch5 -p1 |
103 |
|
%patch6 -p1 |
104 |
|
%patch7 -p1 |
105 |
|
|
106 |
|
%build |
107 |
|
perl createlinks |
108 |
|
|
109 |
%install |
%install |
110 |
/bin/rm -rf $RPM_BUILD_ROOT |
/bin/rm -rf $RPM_BUILD_ROOT |
111 |
(cd root; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
(cd root; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
112 |
/bin/rm -f %{name}-%{version}-filelist |
/bin/rm -f %{name}-%{version}-filelist |
113 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
114 |
|
--file "/usr/local/bin/durep" 'attr(0755,root,root)' \ |
115 |
|
--file "/usr/sbin/durep.daily" 'attr(0755,root,root)' \ |
116 |
|
--file '/etc/e-smith/web/panels/manager/html/durep/durep.cgi' 'attr(0750,root,admin)' \ |
117 |
|
> %{name}-%{version}-filelist |
118 |
|
|
119 |
|
|
120 |
%clean |
%clean |
123 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
124 |
%defattr(-,root,root) |
%defattr(-,root,root) |
125 |
|
|
|
#%attr(0644 root root) "/etc/e-smith/templates/etc/crontab/durep" |
|
|
#%attr(4750 root admin) "/etc/e-smith/web/functions/durep" |
|
|
#%attr(0777 root root) "/etc/e-smith/web/panels/manager/cgi-bin/durep" |
|
|
#%attr(0644 root root) "/usr/local/bin/durep" |
|
|
#%dir %attr(0755 root root) "/usr/local/man" |
|
|
#%dir %attr(0755 root root) "/usr/local/man/man1" |
|
|
#%attr(0644 root root) "/usr/local/man/man1/durep.1" |
|
|
#%dir %attr(0755 root root) "/usr/sbin" |
|
|
#%attr(0644 root root) "/usr/sbin/durep.daily" |
|
|
#%dir %attr(0755 root root) "/var/lib/durep" |
|
|
#%dir %attr(0755 root root) "/etc/e-smith/web/panels/manager/html/durep" |
|
|
#%attr(0644 root root) "/etc/e-smith/web/panels/manager/html/durep/bar.png" |
|
|
#%attr(0644 root root) "/etc/e-smith/web/panels/manager/html/durep/durep.cgi" |
|
|
#%attr(0644 root root) "/etc/e-smith/web/panels/manager/html/durep/style.css" |
|
|
|
|
126 |
%pre -p /bin/sh |
%pre -p /bin/sh |
127 |
|
|
128 |
%post -p /bin/sh |
%post -p /bin/sh |
|
chmod 755 /usr/local/bin/durep |
|
|
chmod 755 /usr/sbin/durep.daily |
|
|
/sbin/e-smith/expand-template /etc/crontab |
|
|
echo "Initial run of durep ... please wait." |
|
|
/usr/sbin/durep.daily >/dev/null |
|
|
/etc/e-smith/events/actions/navigation-conf >/dev/null 2>&1 |
|
129 |
|
|
130 |
%preun -p /bin/sh |
%preun -p /bin/sh |
131 |
|
|
132 |
%postun -p /bin/sh |
%postun -p /bin/sh |
|
if [ "$1" = 0 ]; then |
|
|
/sbin/e-smith/expand-template /etc/crontab |
|
|
/etc/e-smith/events/actions/navigation-conf 2>/dev/null |
|
|
fi |
|
133 |
|
|