1 |
brianr |
1.4 |
%define phpversion 74 |
2 |
jpp |
1.1 |
|
3 |
|
|
Summary: sme server integration of dl |
4 |
|
|
Name: smeserver-dl |
5 |
|
|
Version: 0.2.3 |
6 |
brianr |
1.7 |
Release: 7%{?dist} |
7 |
jpp |
1.1 |
Epoch: 9 |
8 |
|
|
License: GNU GPL version 2 |
9 |
|
|
URL: http://www.thregr.org/~wavexx/software/dl/ |
10 |
|
|
Group: SMEserver/addon |
11 |
|
|
Source: %{name}-%{version}.tar.gz |
12 |
brianr |
1.2 |
Patch0: smeserver-dl-0.2.3-Add-Update-event-to-createlinks.patch |
13 |
brianr |
1.3 |
Patch1: smeserver-dl-0.2.3-Fix-httpd-syntax.patch |
14 |
brianr |
1.4 |
Patch2: smeserver-dl-0.2.3-Fix-up-update-routine.patch |
15 |
brianr |
1.5 |
Patch3: smeserver-dl-0.2.3-Fix-php74-dl-call-in-httpd-fragment.patch |
16 |
jcrisp |
1.6 |
Patch4: smeserver-dl-0.2.3-Fix-clamd-path.patch |
17 |
brianr |
1.7 |
Patch5: smeserver-dl-0.2.3-Correct-clam-dir-in-60clamscan.patch |
18 |
jpp |
1.1 |
|
19 |
|
|
BuildArchitectures: noarch |
20 |
|
|
BuildRequires: e-smith-devtools |
21 |
|
|
BuildRoot: %{_tmppath}/%{name}-%{version} |
22 |
|
|
Requires: e-smith-base |
23 |
|
|
Requires: dl |
24 |
|
|
Requires: smeserver-webapps-common |
25 |
|
|
|
26 |
|
|
%description |
27 |
|
|
smserver integration of dl |
28 |
|
|
|
29 |
|
|
%changelog |
30 |
brianr |
1.7 |
* Thu Dec 23 2021 Brian Read <brianr@bjsystems.co.uk> 0.2.3-7.sme |
31 |
|
|
- Correct-clam-dir-in-60clamscan [SME: 11820] |
32 |
|
|
|
33 |
jcrisp |
1.6 |
* Fri Dec 03 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2.3-6.sme |
34 |
|
|
- Fix clamd path |
35 |
|
|
- Fix typo |
36 |
|
|
|
37 |
brianr |
1.5 |
* Wed Nov 03 2021 Brian Read <brianr@bjsystems.co.uk> 0.2.3-5.sme |
38 |
|
|
- php74-dl-call-in-httpd-fragment [SME: 11567] |
39 |
|
|
|
40 |
brianr |
1.4 |
* Tue Sep 28 2021 Brian Read <brianr@bjsystems.co.uk> 0.2.3-4.sme |
41 |
|
|
- fix up update routine to create sql db on install [SME: 11567] |
42 |
|
|
- Update php to 74 |
43 |
|
|
|
44 |
brianr |
1.3 |
* Mon Apr 19 2021 Brian Read <brianr@bjsystems.co.uk> 0.2.3-3.sme |
45 |
|
|
- Fix httpd syntax and expand it intially [SME: 11567] |
46 |
|
|
|
47 |
brianr |
1.2 |
* Mon Apr 19 2021 Brian Read <brianr@bjsystems.co.uk> 0.2.3-2.sme |
48 |
|
|
- Initial import to SME10 tree [SME: 11567] |
49 |
|
|
- Add Update event to createlinks |
50 |
|
|
|
51 |
|
|
* Mon Apr 19 2021 BogusDateBot |
52 |
|
|
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, |
53 |
|
|
by assuming the date is correct and changing the weekday. |
54 |
|
|
|
55 |
jpp |
1.1 |
* Sun Jan 21 2018 Daniel Berteaud <daniel@firewall-services.com> 0.2.3-1 |
56 |
|
|
- Use alt php binary when expiring tickets [SME: 10495] (daniel@firewall- |
57 |
|
|
services.com) |
58 |
|
|
|
59 |
|
|
* Sun Nov 19 2017 Daniel Berteaud <daniel@firewall-services.com> 0.2.2-1 |
60 |
|
|
- Prepare spec file for tito (daniel@firewall-services.com) |
61 |
|
|
|
62 |
|
|
* Wed Jul 26 2017 Daniel Berteaud <daniel@firewall-services.com> 0.2.1-1.sme |
63 |
|
|
- Add /var/lib/php/dl to open_basedir for the fpm pool |
64 |
|
|
- Assume MB if no unit is specified for max file size |
65 |
|
|
- Remove hardcoded PHP version, replaced at build time |
66 |
|
|
|
67 |
|
|
* Thu Jul 13 2017 Daniel Berteaud <daniel@firewall-services.com> 0.2.0-1.sme |
68 |
|
|
- Support smeserver-php-fpm |
69 |
|
|
|
70 |
|
|
* Tue May 31 2016 Daniel Berteaud <daniel@firewall-services.com> 0.1.4-1.sme |
71 |
|
|
- Fix cron job output [SME: 9116] |
72 |
|
|
|
73 |
|
|
* Wed Apr 23 2014 Daniel Berteaud <daniel@firewall-services.com> 0.1.3-1.sme |
74 |
|
|
- Fix basic auth on SME9 |
75 |
|
|
|
76 |
|
|
* Tue Feb 4 2014 Daniel Berteaud <daniel@firewall-services.com> 0.1.2-1.sme |
77 |
|
|
- Grant admin privileges to the admin user |
78 |
|
|
|
79 |
|
|
* Sun Nov 24 2013 Daniel Berteaud <daniel@firewall-services.com> 0.1.1-1.sme |
80 |
|
|
- Automatically upgrade the database |
81 |
|
|
|
82 |
|
|
* Fri Nov 22 2013 Daniel Berteaud <daniel@firewall-services.com> 0.1.0-1.sme |
83 |
|
|
- First release |
84 |
|
|
|
85 |
|
|
%prep |
86 |
|
|
%setup -q |
87 |
brianr |
1.2 |
%patch0 -p1 |
88 |
brianr |
1.3 |
%patch1 -p1 |
89 |
brianr |
1.4 |
%patch2 -p1 |
90 |
brianr |
1.5 |
%patch3 -p1 |
91 |
jcrisp |
1.6 |
%patch4 -p1 |
92 |
brianr |
1.7 |
%patch5 -p1 |
93 |
jpp |
1.1 |
|
94 |
|
|
%build |
95 |
|
|
perl ./createlinks |
96 |
|
|
find root/ -type f | xargs grep -l __PHP_VERSION__ | xargs sed -i -e "s/__PHP_VERSION__/%{phpversion}/g" |
97 |
|
|
%{__mkdir_p} root/var/log/php/dl |
98 |
|
|
%{__mkdir_p} root/var/lib/php/dl/{tmp,opcache,session} |
99 |
|
|
|
100 |
|
|
%install |
101 |
|
|
rm -rf $RPM_BUILD_ROOT |
102 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
103 |
|
|
rm -f %{name}-%{version}-filelist |
104 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
105 |
|
|
--dir /var/log/php/dl 'attr(0770,root,www)' \ |
106 |
|
|
--dir /var/lib/php/dl 'attr(0770,root,www)' \ |
107 |
|
|
--dir /var/lib/php/dl/tmp 'attr(0770,root,www)' \ |
108 |
|
|
--dir /var/lib/php/dl/opcache 'attr(0770,root,www)' \ |
109 |
|
|
--dir /var/lib/php/dl/session 'attr(0770,root,www)' \ |
110 |
|
|
> %{name}-%{version}-filelist |
111 |
|
|
|
112 |
|
|
%files -f %{name}-%{version}-filelist |
113 |
|
|
%defattr(-,root,root) |
114 |
|
|
|
115 |
|
|
%clean |
116 |
|
|
rm -rf $RPM_BUILD_ROOT |
117 |
|
|
|
118 |
|
|
%postun |