1 |
# $Id: smeserver-durep.spec,v 1.1 2020/10/23 10:38:16 brianr Exp $ |
# $Id: smeserver-durep.spec,v 1.2 2020/10/23 11:45:26 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 5 |
%define release 6 |
10 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
11 |
License: GPL |
License: GPL |
12 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
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 |
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 |
|
|
19 |
BuildRoot: /var/tmp/%{name}-%{version}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-buildroot |
20 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
28 |
|
|
29 |
|
|
30 |
%changelog |
%changelog |
31 |
|
* Mon Feb 22 2021 Jean-Philipe Pialasse <tests@pialasse.com> 1.5.0-6.sme |
32 |
|
- add smeserver-durep-update event [SME: 10893] |
33 |
|
make up spec file |
34 |
|
|
35 |
* Fri Oct 23 2020 Brian Read <brianr@bjsystems.co.uk> 1.5.0-5.sme |
* Fri Oct 23 2020 Brian Read <brianr@bjsystems.co.uk> 1.5.0-5.sme |
36 |
- Initial import to SME10 tree [SME: 10893] |
- Initial import to SME10 tree [SME: 10893] |
37 |
- Add in link to wrapper in createlinks |
- Add in link to wrapper in createlinks |
77 |
%patch0 -p1 |
%patch0 -p1 |
78 |
%patch1 -p1 |
%patch1 -p1 |
79 |
%patch2 -p1 |
%patch2 -p1 |
80 |
|
%patch3 -p1 |
81 |
|
|
82 |
%build |
%build |
83 |
perl createlinks |
perl createlinks |
86 |
/bin/rm -rf $RPM_BUILD_ROOT |
/bin/rm -rf $RPM_BUILD_ROOT |
87 |
(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) |
88 |
/bin/rm -f %{name}-%{version}-filelist |
/bin/rm -f %{name}-%{version}-filelist |
89 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
90 |
|
--file "/usr/local/bin/durep" '%attr(0755,root,root)' \ |
91 |
|
--file "/usr/sbin/durep.daily" '%attr(0755,root,root)' \ |
92 |
|
> %{name}-%{version}-filelist |
93 |
|
|
94 |
|
|
95 |
%clean |
%clean |
98 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
99 |
%defattr(-,root,root) |
%defattr(-,root,root) |
100 |
|
|
|
#%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" |
|
|
|
|
101 |
%pre -p /bin/sh |
%pre -p /bin/sh |
102 |
|
|
103 |
%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 |
|
104 |
|
|
105 |
%preun -p /bin/sh |
%preun -p /bin/sh |
106 |
|
|
107 |
%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 |
|
108 |
|
|