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

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

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


Revision 1.2 - (hide annotations) (download)
Fri Apr 22 15:32:36 2016 UTC (8 years, 1 month ago) by unnilennium
Branch: MAIN
CVS Tags: ezmlm-web-3_3_1-6_el6_sme
Changes since 1.1: +12 -6 lines
* Fri Apr 22 2016 Jean-Philipe Pialasse <tests@pialasse.com> 3.3.1-6.sme
- fix to build against SME 9 centos 6  [SME: 8439]
- new path for bins /usr/local/bin

1 unnilennium 1.2 # $Id: ezmlm-web.spec,v 1.1 2016/04/22 09:24:36 unnilennium Exp $
2 unnilennium 1.1 # 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 unnilennium 1.2 %define release 6
10 unnilennium 1.1 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 unnilennium 1.2 BuildRequires: perl-devel
30 unnilennium 1.1
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 unnilennium 1.2 * Fri Apr 22 2016 Jean-Philipe Pialasse <tests@pialasse.com> 3.3.1-6.sme
63     - fix to build against SME 9 centos 6 [SME: 8439]
64     - new path for bins /usr/local/bin
65    
66 unnilennium 1.1 * Thu Apr 21 2016 Jean-Philipe Pialasse <tests@pialasse.com> 3.3.1-5.sme
67     - remove non available options (always on) in ezmlm-idx 7.2.2 [SME: 9470]
68     - remove setting user access to web, as unecessary in SME
69     - patch ezmlm-web-3.3.1-modiffor722.patch
70    
71     * Wed Apr 20 2016 Jean-Philipe Pialasse <tests@pialasse.com> 3.3.1-4.sme
72     - small fix to save some config with 7.2.2 idx [SME: 9470]
73    
74     * Mon Apr 18 2016 Jean-Philipe Pialasse <tests@pialasse.com> 3.3.1-1.sme
75     - update to 3.3.1 [SME: 7588]
76    
77     * Sun Apr 29 2007 Shad L. Lords <slords@mail.com>
78     - Clean up spec so package can be built by koji/plague
79    
80     * Thu Dec 07 2006 Shad L. Lords <slords@mail.com>
81     - Update to new release naming. No functional changes.
82     - Make Packager generic
83    
84     * Tue Oct 25 2005 Gordon Rowell <gordonr@gormand.com.au> 2.3-01sme02
85     - Retarget previous patches against 2.3
86     - Change ezmlm-cgi location
87     - Access local help icon
88     - Hide delete button if -c provided
89    
90     * Tue Oct 25 2005 Gordon Rowell <gordonr@gormand.com.au> 2.3-01sme01
91     - Update to 2.3 - ezmlm-web has moved to a new home
92    
93     * Wed Nov 28 2001 Gordon Rowell <gordonr@e-smith.com>
94     - [2.1-04]
95     - Create ezmlm user (uid/gid 80) in %pre if it doesn't already exist
96    
97     * Wed Oct 24 2001 Gordon Rowell <gordonr@e-smith.com>
98     - [2.1-03]
99     - Allow the web server to execute the CGI script
100    
101     * Wed Oct 24 2001 Gordon Rowell <gordonr@e-smith.com>
102     - [2.1-02]
103     - Remove [Delete] button if $opt_c is set
104     - $opt_c "no list creation" now also means "no list deletion"
105    
106     * Wed Oct 24 2001 Gordon Rowell <gordonr@e-smith.com>
107     - [2.1-01]
108     - Initial packaging
109     - Modified ezmlm-web.cgi path to /usr/bin
110     - Modified $HELP_ICON_URL for RedHat Apache patch
111    
112     %prep
113     %setup -n %{name}-%{version}
114     %patch0 -p1
115     %patch1 -p1
116     %patch2 -p1
117    
118     %build
119     mkdir build
120     perl Makefile.PL DESTDIR=build REALINSTALLBIN=/usr/local/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 unnilennium 1.2 > %{name}-%{version}-%{release}-filelist
132     #| sed -e '/ezmlm-web.cgi.1p/d' \
133     #> %{name}-%{version}-%{release}-filelist
134 unnilennium 1.1
135     # creating the cgi index to the suid wrapper
136 unnilennium 1.2 cp -a $RPM_BUILD_ROOT/usr/local/bin/ezmlm-web.wrapper $RPM_BUILD_ROOT/usr/local/share/ezmlm-web/www-data/index.cgi
137 unnilennium 1.1
138     %clean
139     rm -rf $RPM_BUILD_ROOT
140    
141     %pre
142     if [ -d /home/e-smith ]
143     then
144     EZMLMHOME=/home/e-smith/files/ezmlm
145     else
146     EZMLMHOME=/home/ezmlm
147     fi
148     grep '^ezmlm:' /etc/passwd > /dev/null || \
149     /usr/sbin/useradd -c "ezmlm" -u 80 -m -d $EZMLMHOME -s /bin/false ezmlm
150    
151     %post
152     %preun
153     %postun
154    
155     %files -f %{name}-%{version}-%{release}-filelist
156     %defattr(-,root,root)
157     %attr(104755,ezmlm,ezmlm) /usr/local/share/ezmlm-web/www-data/index.cgi
158 unnilennium 1.2 #%doc /usr/share/man/man1/ezmlm-web.cgi.1p

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