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