--- rpms/smeserver-ezmlm-www/contribs10/smeserver-ezmlm-www.spec 2022/03/15 20:45:27 1.1 +++ rpms/smeserver-ezmlm-www/contribs10/smeserver-ezmlm-www.spec 2022/03/16 04:27:12 1.4 @@ -1,10 +1,10 @@ -# $Id: smeserver-ezmlm-www.spec,v 1.10 2008/11/25 16:20:22 slords Exp $ +# $Id: smeserver-ezmlm-www.spec,v 1.3 2022/03/16 04:10:13 jpp Exp $ # Authority: picsone # Name: Normando Hall %define name smeserver-ezmlm-www -%define version 1.4.5 -%define release 2 +%define version 2.0.0 +%define release 3 Summary: ezmlm-www packaged for sme server Name: %{name} @@ -13,9 +13,13 @@ Release: %{release}%{?dist} License: GPL Group: Networking/Other Source: %{name}-%{version}.tar.gz +Source1: ezmlm-www-1.4.5.tar.gz +Patch0: smeserver-ezmlm-www-2.0.0-bz11909-sme10.patch + BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot Requires: perl-Mail-Box perl-User-Identity perl-TimeDate perl-Email-Simple perl-Plucene perl-KinoSearch ezmlm-web perl-Ezmlm perl-Mail-Ezmlm-Archive BuildRequires: e-smith-devtools +BuildRequires: gcc AutoReq: no BuildArchitectures: noarch @@ -25,6 +29,13 @@ mailing list archives. It extends ezmlm- by using a modular architecture: it is fully Perl-based. %changelog +* Tue Mar 15 2022 Jean-Philippe Pialasse 1.4.5-3.sme +- build for SME10 [SME: 11909] + use initial source and compile ourself the index.cgi + todo chmod + todo template the two config files + todo improve access rights + * Wed Dec 5 2007 Normando Hall - first release @@ -34,14 +45,28 @@ by using a modular architecture: it is f %prep %setup +%setup -T -D -a 1 +cp -r ezmlm-www-1.4.5/* root/opt/mailinglist +%patch0 -p1 %build +perl createlinks +#compile the c file +cd root/opt/mailinglist +cc index.cgi.c -o index.cgi + #cc index.cgi.c -o index.cgi + #chown popuser index.cgi + #chmod 4711 index.cgi + #chmod 755 ezmlm-www.pl %install rm -rf $RPM_BUILD_ROOT (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) rm -f %{name}-%{version}-filelist -/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist +/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ + --file /usr/share/freepbx/scripts/restore-astdb.php 'attr(0750,root,root)' \ + --dir /var/service/httpd-fpbx 'attr(01755,root,root)' \ +> %{name}-%{version}-filelist %clean rm -rf $RPM_BUILD_ROOT