1 |
# $Id: smeserver-ezmlm-www.spec,v 1.1 2022/03/15 20:45:27 jpp Exp $ |
# $Id: smeserver-ezmlm-www.spec,v 1.11 2022/03/19 20:16:37 jpp Exp $ |
2 |
# Authority: picsone |
# Authority: picsone |
3 |
# Name: Normando Hall |
# Name: Normando Hall |
4 |
|
|
5 |
%define name smeserver-ezmlm-www |
%define name smeserver-ezmlm-www |
6 |
%define version 1.4.5 |
%define version 2.0.0 |
7 |
%define release 3 |
%define release 9 |
8 |
|
|
9 |
Summary: ezmlm-www packaged for sme server |
Summary: ezmlm-www packaged for sme server |
10 |
Name: %{name} |
Name: %{name} |
13 |
License: GPL |
License: GPL |
14 |
Group: Networking/Other |
Group: Networking/Other |
15 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
16 |
Patch0: smeserver-ezmlm-www-1.4.5-bz11909-sme10.patch |
Source1: ezmlm-www-1.4.5.tar.gz |
17 |
|
Patch0: smeserver-ezmlm-www-2.0.0-bz11909-sme10.patch |
18 |
|
Patch1: smeserver-ezmlm-www-2.0.0-bz11912-widecharacters.patch |
19 |
|
Patch2: smeserver-ezmlm-www-2.0.0-bz11909-sme10-bis.patch |
20 |
|
|
21 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
22 |
Requires: perl-Mail-Box perl-User-Identity perl-TimeDate perl-Email-Simple perl-Plucene perl-KinoSearch ezmlm-web perl-Ezmlm perl-Mail-Ezmlm-Archive |
Requires: perl-Mail-Box perl-User-Identity perl-TimeDate perl-Email-Simple perl-Plucene perl-KinoSearch ezmlm-web perl-Ezmlm perl-Mail-Ezmlm-Archive |
23 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
24 |
|
BuildRequires: gcc |
25 |
AutoReq: no |
AutoReq: no |
|
BuildArchitectures: noarch |
|
26 |
|
|
27 |
%description |
%description |
28 |
ezmlm-www This project provides a useful web interface for Ezmlm |
ezmlm-www This project provides a useful web interface for Ezmlm |
30 |
by using a modular architecture: it is fully Perl-based. |
by using a modular architecture: it is fully Perl-based. |
31 |
|
|
32 |
%changelog |
%changelog |
33 |
|
* Sun Mar 20 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.0.0-9.sme |
34 |
|
- protect indexes and configuration [SME: 11909] |
35 |
|
|
36 |
|
* Sat Mar 19 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.0.0-8.sme |
37 |
|
- fix wide character error preventing to display message [SME: 11912] |
38 |
|
|
39 |
|
* Fri Mar 18 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.0.0-7.sme |
40 |
|
- remove list archive creation from event [SME: 11909] |
41 |
|
- keep it a manual intervention until we add a button on server-manager |
42 |
|
|
43 |
|
* Fri Mar 18 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.0.0-5.sme |
44 |
|
- fix ez_search perms [SME: 11909] |
45 |
|
- use KinoSearch1 |
46 |
|
- create directory indexes |
47 |
|
|
48 |
* Tue Mar 15 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.4.5-3.sme |
* Tue Mar 15 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.4.5-3.sme |
49 |
- build for SME10 [SME: 11909] |
- build for SME10 [SME: 11909] |
50 |
todo use initial source and compile ourself the index.cgi |
use initial source and compile ourself the index.cgi |
51 |
|
template the two config files |
52 |
|
todo improve access rights in template |
53 |
|
|
54 |
* Wed Dec 5 2007 Normando Hall <nhall@unixlan.com.ar> |
* Wed Dec 5 2007 Normando Hall <nhall@unixlan.com.ar> |
55 |
- first release |
- first release |
60 |
%prep |
%prep |
61 |
|
|
62 |
%setup |
%setup |
63 |
|
%setup -T -D -a 1 |
64 |
|
cp -r ezmlm-www-1.4.5/* root/opt/mailinglist |
65 |
%patch0 -p1 |
%patch0 -p1 |
66 |
|
%patch1 -p1 |
67 |
|
%patch2 -p1 |
68 |
|
|
69 |
|
# sed KinoSearch KinoSearch1 |
70 |
|
sed -i root/opt/mailinglist/search/ez_indexer.pl -i root/opt/mailinglist/ezmlm-www.pl \ |
71 |
|
-e 's/KinoSearch/KinoSearch1/g' |
72 |
|
mkdir -p root/opt/mailinglist/search/indexes |
73 |
|
|
74 |
%build |
%build |
75 |
perl createlinks |
perl createlinks |
76 |
|
#compile the c file |
77 |
|
cd root/opt/mailinglist |
78 |
|
cc index.cgi.c -o index.cgi |
79 |
|
|
80 |
%install |
%install |
81 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
82 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
83 |
rm -f %{name}-%{version}-filelist |
rm -f %{name}-%{version}-filelist |
84 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
85 |
|
--dir '/opt/mailinglist/search/indexes' 'attr(4775,ezmlm,ezmlm)' \ |
86 |
|
--file /opt/mailinglist/search/ez_indexer.pl 'attr(0755,root,root)' \ |
87 |
|
--file /opt/mailinglist/ezmlm-www.pl 'attr(0755,root,root)' \ |
88 |
|
--file /opt/mailinglist/index.cgi 'attr(4711,ezmlm,ezmlm)' \ |
89 |
|
> %{name}-%{version}-filelist |
90 |
|
|
91 |
%clean |
%clean |
92 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
93 |
|
|
94 |
%post |
%post |
|
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
|
|
/etc/rc.d/init.d/httpd-e-smith sigusr1 |
|
95 |
|
|
96 |
|
|
97 |
%postun |
%postun |
|
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
|
|
/etc/rc.d/init.d/httpd-e-smith sigusr1 |
|
98 |
|
|
99 |
|
|
100 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
101 |
%defattr(-,root,root) |
%defattr(-,root,root) |
|
|
|
|
|
|
|
%attr(0755,root,root) /opt/mailinglist/search/ez_indexer.pl |
|
|
%attr(0755,root,root) /opt/mailinglist/ezmlm-www.pl |
|
|
%attr(4711,ezmlm,ezmlm) /opt/mailinglist/index.cgi |
|