/[smecontribs]/rpms/ezmlm-web/contribs10/ezmlm-web.spec
ViewVC logotype

Annotation of /rpms/ezmlm-web/contribs10/ezmlm-web.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Tue Mar 15 19:09:48 2022 UTC (2 years, 8 months ago) by jpp
Branch: MAIN
CVS Tags: ezmlm-web-3_3_1-7_el7_sme
Initial import

1 jpp 1.1 # $Id: ezmlm-web.spec,v 1.3 2016/04/22 15:58:18 unnilennium Exp $
2     # Authority: gordonr
3     # Name: Gordon Rowell
4    
5     Summary: Web interface to ezmlm configuration
6     %define name ezmlm-web
7     Name: %{name}
8     %define version 3.3.1
9     %define release 7
10     Version: %{version}
11     Release: %{release}%{?dist}
12     License: BSD-style
13     Group: Networking/Daemons
14     URL: https://systemausfall.org/toolforge/ezmlm-web/
15     Source: https://systemausfall.org/toolforge/ezmlm-web/download/ezmlm-web-3.3.1.tar.gz
16     Patch0: ezmlm-web-3.3.1-smeintegration.patch
17     Patch1: ezmlm-web-3.3.1-cgi.patch
18     Patch2: ezmlm-web-3.3.1-modiffor722.patch
19     BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
20     Requires: ezmlm-idx-std
21     Requires: httpd
22     Requires: qmail
23     Requires: perl
24     Requires: perl-Ezmlm
25     Requires: perl-MailTools
26     BuildRequires: gcc
27     BuildRequires: e-smith-devtools
28     BuildRequires: perl-Ezmlm
29     BuildRequires: perl-devel
30    
31     %description
32     The need for ezmlm-web arose from the fact that we host many student
33     societies on our system. These societies usually have a virtual host for web
34     and email, which is administered by a computer rep from the society. These
35     computer reps often have little or no knowledge of Unix and so we needed a
36     user friendly system that would let the create and maintain mailing lists
37     (such as members@foo.soc.ru.ac.za, committee@foo.soc.ru.ac.za, etc).
38    
39     Since I am never keen to re-invent the wheel, I had a look at Steve Peterson's
40     script (http://virtation.com/qmail/ml-sub), which allows people to subscribe
41     and unsubscribe from mailing lists using a form->email gateway. This is fine
42     for putting on a web page saying "here come and join our mailing list", but
43     doesn't really allow you to administrate a list.
44    
45     Security of mailing lists was a concern, as we really didn't want
46     unauthorised people to be able to alter some users list. Ezmlm-web itself
47     implements no security checks (apart from un-tainting input) and so relies
48     on the web server to do this (re-inventing the wheel again :). We use an
49     Apache webserver, so one can control access to a directory using a .htaccess
50     file or in the access.conf file. ApacheWeek have a good article on doing
51     this at http://www.apacheweek.com/features/userauth. I also give examples
52     later in this document.
53    
54     This version of ezmlm-web (2.0) is based to a large extent on previous
55     versions that I have developed. It has however been totally re-written to
56     make use of the Mail::Ezmlm perl module I wrote. At the same time it was
57     updated and extended to include the new features of ezmlm-idx. It includes
58     many new features that have been suggested to me over the last few months,
59     and hopefully is now useful to a much larger group of people.
60    
61     %changelog
62     * Fri Apr 22 2016 Jean-Philipe Pialasse <tests@pialasse.com> 3.3.1-7.sme
63     - fix to build against SME 9 centos 6 [SME: 8439]
64    
65     * Thu Apr 21 2016 Jean-Philipe Pialasse <tests@pialasse.com> 3.3.1-5.sme
66     - remove non available options (always on) in ezmlm-idx 7.2.2 [SME: 9470]
67     - remove setting user access to web, as unecessary in SME
68     - patch ezmlm-web-3.3.1-modiffor722.patch
69    
70     * Wed Apr 20 2016 Jean-Philipe Pialasse <tests@pialasse.com> 3.3.1-4.sme
71     - small fix to save some config with 7.2.2 idx [SME: 9470]
72    
73     * Mon Apr 18 2016 Jean-Philipe Pialasse <tests@pialasse.com> 3.3.1-1.sme
74     - update to 3.3.1 [SME: 7588]
75    
76     * Sun Apr 29 2007 Shad L. Lords <slords@mail.com>
77     - Clean up spec so package can be built by koji/plague
78    
79     * Thu Dec 07 2006 Shad L. Lords <slords@mail.com>
80     - Update to new release naming. No functional changes.
81     - Make Packager generic
82    
83     * Tue Oct 25 2005 Gordon Rowell <gordonr@gormand.com.au> 2.3-01sme02
84     - Retarget previous patches against 2.3
85     - Change ezmlm-cgi location
86     - Access local help icon
87     - Hide delete button if -c provided
88    
89     * Tue Oct 25 2005 Gordon Rowell <gordonr@gormand.com.au> 2.3-01sme01
90     - Update to 2.3 - ezmlm-web has moved to a new home
91    
92     * Wed Nov 28 2001 Gordon Rowell <gordonr@e-smith.com>
93     - [2.1-04]
94     - Create ezmlm user (uid/gid 80) in %pre if it doesn't already exist
95    
96     * Wed Oct 24 2001 Gordon Rowell <gordonr@e-smith.com>
97     - [2.1-03]
98     - Allow the web server to execute the CGI script
99    
100     * Wed Oct 24 2001 Gordon Rowell <gordonr@e-smith.com>
101     - [2.1-02]
102     - Remove [Delete] button if $opt_c is set
103     - $opt_c "no list creation" now also means "no list deletion"
104    
105     * Wed Oct 24 2001 Gordon Rowell <gordonr@e-smith.com>
106     - [2.1-01]
107     - Initial packaging
108     - Modified ezmlm-web.cgi path to /usr/bin
109     - Modified $HELP_ICON_URL for RedHat Apache patch
110    
111     %prep
112     %setup -n %{name}-%{version}
113     %patch0 -p1
114     %patch1 -p1
115     %patch2 -p1
116    
117     %build
118     mkdir build
119     perl Makefile.PL DESTDIR=build PREFIX=/usr
120     # REALINSTALLBIN=/usr/bin/ezmlm-web
121     make
122     make install
123    
124    
125    
126     %install
127     rm -rf $RPM_BUILD_ROOT
128    
129     (cd build ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
130     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
131     | sed -e '/ezmlm-web.cgi.1p/d' \
132     > %{name}-%{version}-%{release}-filelist
133     #| sed -e '/ezmlm-web.cgi.1p/d' \
134     #> %{name}-%{version}-%{release}-filelist
135    
136     # creating the cgi index to the suid wrapper
137     cp -a $RPM_BUILD_ROOT/usr/bin/ezmlm-web.wrapper $RPM_BUILD_ROOT/usr/local/share/ezmlm-web/www-data/index.cgi
138    
139     %clean
140     rm -rf $RPM_BUILD_ROOT
141    
142     %pre
143     if [ -d /home/e-smith ]
144     then
145     EZMLMHOME=/home/e-smith/files/ezmlm
146     else
147     EZMLMHOME=/home/ezmlm
148     fi
149     grep '^ezmlm:' /etc/passwd > /dev/null || \
150     /usr/sbin/useradd -c "ezmlm" -u 80 -m -d $EZMLMHOME -s /bin/false ezmlm
151    
152     %post
153     %preun
154     %postun
155    
156     %files -f %{name}-%{version}-%{release}-filelist
157     %defattr(-,root,root)
158     %attr(104755,ezmlm,ezmlm) /usr/local/share/ezmlm-web/www-data/index.cgi
159     %doc /usr/share/man/man1/ezmlm-web.cgi.1p.gz

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed