1 |
brianr |
1.2 |
# $Id: smeserver-phpsysinfo.spec,v 1.1 2020/10/24 08:32:49 brianr Exp $ |
2 |
brianr |
1.1 |
# Authority: darrellmay |
3 |
|
|
# Name: Darrell May |
4 |
|
|
|
5 |
|
|
Summary: phpSysInfo for SME Server |
6 |
|
|
%define name smeserver-phpsysinfo |
7 |
|
|
Name: %{name} |
8 |
|
|
%define version 3.2.3 |
9 |
brianr |
1.2 |
%define release 4 |
10 |
brianr |
1.1 |
Version: %{version} |
11 |
|
|
Release: %{release}%{?dist} |
12 |
|
|
License: GPL |
13 |
|
|
Group: SME/addon |
14 |
|
|
Source: %{name}-%{version}.tar.gz |
15 |
|
|
Patch0: smeserver-phpsysinfo-3.2.3-bz10329-process-formating.patch |
16 |
brianr |
1.2 |
Patch1: smeserver-phpsysinfo-3.2.3-Add-Update-event-to-createlinks.patch |
17 |
brianr |
1.1 |
URL: http://phpsysinfo.sourceforge.net |
18 |
|
|
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
19 |
|
|
BuildArchitectures: noarch |
20 |
|
|
Requires: smeserver-release >= 9.0 |
21 |
|
|
Requires: hddtemp lm_sensors |
22 |
|
|
BuildRequires: e-smith-devtools |
23 |
|
|
AutoReqProv: no |
24 |
|
|
|
25 |
|
|
%description |
26 |
|
|
%name is an implementation of phpSysInfo on SME Server. |
27 |
|
|
Access with admin login credentials via https://yourdomain/phpsysinfo |
28 |
|
|
|
29 |
|
|
%changelog |
30 |
brianr |
1.2 |
* Wed Apr 07 2021 Brian Read <brianr@bjsystems.co.uk> 3.2.3-4.sme |
31 |
|
|
- Add Update event to createlinks [SME: 11054] |
32 |
|
|
|
33 |
|
|
* Wed Apr 07 2021 BogusDateBot |
34 |
|
|
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, |
35 |
|
|
by assuming the date is correct and changing the weekday. |
36 |
|
|
Thu May 30 2001 --> Thu May 24 2001 or Wed May 30 2001 or Thu May 31 2001 or .... |
37 |
|
|
Wed Sep 22 2015 --> Wed Sep 16 2015 or Tue Sep 22 2015 or Wed Sep 23 2015 or .... |
38 |
|
|
|
39 |
brianr |
1.1 |
* Sun Jan 20 2019 Jean-Philipe Pialasse <tests@pialasse.com> 3.2.3-3.sme |
40 |
brianr |
1.2 |
- Add Update event to createlinks process formating [SME: 10329] |
41 |
brianr |
1.1 |
|
42 |
brianr |
1.2 |
* Tue Sep 22 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 3.2.3-1.sme |
43 |
|
|
Wed Sep 22 2015 --> Wed Sep 16 2015 or Tue Sep 22 2015 or Wed Sep 23 2015 or .... |
44 |
brianr |
1.1 |
- Upgrade to upstream 3.2.3 |
45 |
|
|
- Require hddtemp lm_sensors |
46 |
|
|
|
47 |
|
|
* Sat Jun 21 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 3.1.13-1.sme |
48 |
|
|
- Initial release to sme9 |
49 |
|
|
- upgrade of phpsysinfo to 3.1.13 https://github.com/phpsysinfo/phpsysinfo/releases/tag/v3.1.13 |
50 |
|
|
- added a menu in the administration panel of server-manager |
51 |
|
|
|
52 |
|
|
* Mon Apr 21 2008 Shad L. Lords <slords@mail.com> |
53 |
|
|
- Prep for import into buildsys |
54 |
|
|
- Clean up spec |
55 |
|
|
|
56 |
|
|
* Fri Oct 19 2007 Darrell May <dmay@myezserver.com> |
57 |
|
|
- accounts and configuration db phpsysinfo defaults added |
58 |
|
|
- default access restricted to private (private|public) |
59 |
|
|
- phpsysinfo-2.5.4 |
60 |
|
|
- [2.5.4-0dmay] |
61 |
|
|
* Mon Apr 09 2007 Darrell May <dmay@myezserver.com> |
62 |
|
|
- [2.5.3-1dmay] |
63 |
|
|
* Sun Apr 01 2007 Darrell May <dmay@myezserver.com> |
64 |
|
|
- phpsysinfo-2.5.3 |
65 |
|
|
- [2.5.3-0dmay] |
66 |
|
|
* Tue Jan 02 2007 Darrell May <dmay@myezserver.com> |
67 |
|
|
- phpsysinfo-2.5.2 |
68 |
|
|
- [2.5.2-0] |
69 |
|
|
* Fri Aug 04 2006 Darrell May <dmay@myezserver.com> |
70 |
|
|
- phpsysinfo-2.5.2-rc3 |
71 |
|
|
- [2.5.2-rc3] |
72 |
|
|
* Wed Dec 14 2005 Darrell May <dmay@myezserver.com> |
73 |
|
|
- phpsysinfo-2.5 |
74 |
|
|
- [2.5-0] |
75 |
|
|
* Fri Apr 22 2005 Darrell May <dmay@myezserver.com> |
76 |
|
|
- added support for SME Server 7.x |
77 |
|
|
- [2.3-2] |
78 |
|
|
* Mon Nov 15 2004 Darrell May <dmay@myezserver.com> |
79 |
|
|
- updated to release 2.3 |
80 |
|
|
- renamed smeserver-phpsysinfo |
81 |
|
|
- updated includes/os/class.Linux.inc.php to recognize SME Server |
82 |
|
|
- [2.3-1] |
83 |
|
|
* Sat Jun 29 2002 Darrell May <dmay@netsourced.com> |
84 |
|
|
- updated to release 2.1 |
85 |
|
|
- [2.1-1] |
86 |
|
|
* Sun Mar 10 2002 Darrell May <dmay@netsourced.com> |
87 |
|
|
- updated to release 2.0 |
88 |
|
|
- [2.0-1] |
89 |
|
|
* Sun Mar 10 2002 Darrell May <dmay@netsourced.com> |
90 |
|
|
- changed rights/ownership to tighten security |
91 |
|
|
- [1.9-2] |
92 |
|
|
* Tue Mar 05 2002 Darrell May <dmay@netsourced.com> |
93 |
|
|
- changed %post/postun to graceful |
94 |
|
|
- [1.9-1] |
95 |
|
|
* Mon Jan 21 2002 Darrell May <dmay@netsourced.com> |
96 |
|
|
- updated to version 1.9 |
97 |
|
|
- [1.9-0] |
98 |
|
|
* Wed Oct 31 2001 Darrell May <dmay@netsourced.com> |
99 |
|
|
- updated to version 1.8 |
100 |
|
|
- [1.8-0] |
101 |
|
|
* Sun Sep 23 2001 Darrell May <dmay@netsourced.com> |
102 |
|
|
- name change |
103 |
brianr |
1.2 |
* Wed May 30 2001 Darrell May <dmay@netsourced.com> |
104 |
|
|
Thu May 30 2001 --> Thu May 24 2001 or Wed May 30 2001 or Thu May 31 2001 or .... |
105 |
brianr |
1.1 |
- 2.1.0-1 |
106 |
|
|
- Original version |
107 |
|
|
|
108 |
|
|
%prep |
109 |
|
|
%setup |
110 |
|
|
%patch0 -p1 |
111 |
brianr |
1.2 |
%patch1 -p1 |
112 |
brianr |
1.1 |
|
113 |
|
|
%build |
114 |
|
|
perl createlinks |
115 |
|
|
|
116 |
|
|
|
117 |
|
|
%install |
118 |
|
|
/bin/rm -rf $RPM_BUILD_ROOT |
119 |
|
|
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
120 |
|
|
/bin/rm -f %{name}-%{version}-filelist |
121 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
122 |
|
|
|
123 |
|
|
%clean |
124 |
|
|
/bin/rm -rf $RPM_BUILD_ROOT |
125 |
|
|
|
126 |
|
|
%files -f %{name}-%{version}-filelist |
127 |
|
|
%defattr(-,root,root) |
128 |
|
|
|
129 |
|
|
%pre |
130 |
|
|
if [[ -f /opt/phpsysinfo/phpsysinfo.ini ]]; then |
131 |
|
|
/bin/cp /opt/phpsysinfo/phpsysinfo.ini /opt/phpsysinfo/phpsysinfo.ini-$(date +"%H:%M-%b-%d-%Y") |
132 |
|
|
fi |
133 |
|
|
%post |
134 |
|
|
if ! [[ -f /opt/phpsysinfo/phpsysinfo.ini ]]; then |
135 |
|
|
cp /opt/phpsysinfo/phpsysinfo.ini.new /opt/phpsysinfo/phpsysinfo.ini |
136 |
|
|
fi |