# $Id: smeserver-mailman.spec,v 1.13 2008/06/27 15:09:36 snetram Exp $ # Authority: gordonr # Name: Gordon Rowell Summary: Mailman configuration for SME server. %define name smeserver-mailman Name: %{name} %define version 1.3.0 %define release 24 Version: %{version} Release: %{release}%{?dist} License: GPL Group: Applications/Internet Source: %{name}-%{version}.tar.gz Patch0: smeserver-mailman-1.3.0-relocate.patch Patch1: smeserver-mailman-1.3.0-relocate.patch2 Patch2: smeserver-mailman-1.3.0-mailmanmail.patch Patch3: smeserver-mailman-1.3.0-smelist.patch Patch4: smeserver-mailman-1.3.0-createlinks.patch2 Patch5: smeserver-mailman-1.3.0-postinstall.patch Patch6: smeserver-mailman-1.3.0-postinstall.patch2 Patch7: smeserver-mailman-1.3.0-firsttime.patch Patch8: smeserver-mailman-1.3.0-actionorder.patch Patch9: smeserver-mailman-1.3.0-alias2mailman.patch Patch10: smeserver-mailman-1.3.0-smelist.patch2 Patch11: smeserver-mailman-1.3.0-locale-2008-04-22.patch Patch12: smeserver-mailman-1.3.0-archives.patch Patch13: smeserver-mailman-1.3.0-locale-2008-04-23.patch Patch14: smeserver-mailman-1.3.0-locale-2008-04-26.patch Patch15: smeserver-mailman-1.3.0-add2general.patch Patch16: smeserver-mailman-1.3.0-locale-2008-05-05.patch Patch17: smeserver-mailman-1.3.0-locale-2008-05-21.patch Patch18: smeserver-mailman-1.3.0-locale-2008-06-27.patch Patch19: smeserver-mailman-1.3.0-locale-2008-07-01.patch BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot BuildArchitectures: noarch Requires: e-smith-base Requires: e-smith-release >= 7.0 Requires: mailman >= 2.1.5.1-34.rhel4.3sme01 Requires: e-smith-formmagick >= 1.4.0-12 BuildRequires: e-smith-devtools >= 1.13.1-03 Obsoletes: e-smith-mailman Provides: e-smith-mailman AutoReqProv: no %description Add Mailman integration to the SME server. %changelog * Tue Jul 1 2008 Jonathan Martens 1.3.6-24 - Apply 1 July 2008 locale patch * Fri Jun 27 2008 Jonathan Martens 1.3.6-23 - Apply 27 Jun 2008 locale patch * Thu May 21 2008 Jonathan Martens 1.3.6-22 - Apply 21 May 2008 locale patch - Fixed version number in previous changelog entry * Mon May 5 2008 Jonathan Martens 1.3.6-21 - Apply 5 May 2008 locale patch * Sat Apr 26 2008 Jonathan Martens 1.3.0-20 - Add common tags to e-smith-formmagick's general * Sat Apr 26 2008 Jonathan Martens 1.3.0-19 - Added 26 April 2008 locale patch * Wed Apr 23 2008 Jonathan Martens 1.3.0-18 - Added 23 April 2008 locale patch - Fixed changelog * Wed Apr 23 2008 Daniel B. 1.3.0-17 - Fix path for the archives [SME: 4252] * Tue Apr 22 2008 Jonathan Martens 1.3.0-16 - Added 22 April 2008 locale patch * Sun Apr 29 2007 Shad L. Lords - Clean up spec so package can be built by koji/plague * Thu Dec 07 2006 Shad L. Lords - Update to new release naming. No functional changes. - Make Packager generic * Fri Sep 22 2006 Gordon Rowell 1.3.0-15 - Allow hyphen in list names in smelist command [SME: 1307] * Fri Sep 22 2006 Gordon Rowell 1.3.0-14 - Add /sbin/e-smith/alias2mailman to convert hand-built alias files to mailman lists. Converst ~alias/.qmail- to the mailman list - List owner is mailman{DefaultOwner} defaulting to admin * Fri Sep 22 2006 Gordon Rowell 1.3.0-13 - Fix various permissions to satisfy /usr/lib/mailman/check_perms - Update mailman dependency to latest from CentOS * Wed Mar 8 2006 Gordon Rowell 1.3.0-12 - Run the addlist/rmlist actions before generic_template_expand [SME: 665] * Wed Mar 8 2006 Gordon Rowell 1.3.0-11 - Ensure that mailman record exists prior to trying to set the status * Wed Mar 8 2006 Gordon Rowell 1.3.0-10 - Adjust path in post-install script to match CentOS structure * Wed Mar 8 2006 Gordon Rowell 1.3.0-09 - Make further use of services2adjust and templates2expand * Wed Mar 8 2006 Gordon Rowell 1.3.0-08 - Make use of services2adjust and templates2expand - Update dependency as this is for 7.0 * Wed Mar 8 2006 Gordon Rowell 1.3.0-07 - Create qfiles heirarchy - Fix up taint issue in smelist script * Thu Jan 5 2006 Gordon Rowell 1.3.0-06 - TODO: Check permissions on /var/spool/mailman/qfiles. The 'in' directory needs to be writable by the mailman CGI script, which is running as www. * Thu Jan 5 2006 Gordon Rowell 1.3.0-05 - Remove postun section which depended on action scripts which no longer exist * Fri Dec 23 2005 Gordon Rowell 1.3.0-04 - Allow mail for mailman user - TODO: We should have configurable allow/deny for system accounts * Tue Oct 25 2005 Gordon Rowell 1.3.0-03 - No change - TODO: Rewrite templates to new API and move to templates2expand - TODO: Add pre script to relocate /opt/mailman parts for upgrades * Tue Oct 25 2005 Gordon Rowell 1.3.0-02 - Require patched mailman - SME Server runs httpd as www, not apache - Relocate paths from /opt/mailman to /usr/lib/mailman to match mailman pkg - Changed references to accounts db to new location * Tue Oct 25 2005 Gordon Rowell 1.3.0-01 - Package renamed to smeserver-mailman, including patches to 1.1.10-05 - TODO: Relocate to /usr/lib/mailman - TODO: Change DB references, and rewrite to new API * Fri Oct 14 2005 Michael Soulier - [1.1.10-05] - Fixed error with creation of alias file with dot in the name. * Wed Mar 16 2005 Michael Soulier - [1.1.10-04] - Added FQDN of box as a potential virtual host. * Mon Mar 14 2005 Michael Soulier - [1.1.10-03] - Removed circular event call. * Wed Feb 23 2005 Michael Soulier - [1.1.10-02] - Forgot to set mode on smelist. * Wed Feb 16 2005 Michael Soulier - [1.1.10-01] - Added hooks into domain creation and deletion. * Wed Feb 16 2005 Michael Soulier - [1.1.9-01] - Rolling again to get past build error on sme61build. * Wed Feb 16 2005 Michael Soulier - [1.1.8-01] - Added create-system-user call to make the mailman user. - Added a link to the mailman UI. * Tue Feb 15 2005 Michael Soulier - [1.1.7-01] - Updated mailman-conf to call a post-install script when first run. If this is ever included in a blade, post-install should move to the blade handler. * Tue Feb 15 2005 Michael Soulier - [1.1.6-01] - Fixed badly placed lib. - Added post-install script to move it out of scriptlets. * Tue Feb 15 2005 Michael Soulier - [1.1.5-01] - Added conf and restart actions. - Added a simple panel. * Tue Feb 15 2005 Michael Soulier - [1.1.4-01] - Fixed perms on /opt/mailman, and bad symlink. * Sun Feb 13 2005 Michael Soulier - [1.1.3-01] - Fixed error in createlinks. * Sun Feb 13 2005 Michael Soulier - [1.1.2-01] - Rolling initial build of imported package. [msoulier] * Sun Feb 13 2005 Michael Soulier - [1.1.1-01] - Reimplementation after lost packages. Implementing for mailman 2.1.5. [msoulier] * Sun Sep 08 2002 Shad L. Lords - 1.0-5 - updated addlist and rmlist to better handle conflicts * Sun Sep 01 2002 Shad L. Lords - 1.0-4 - updated accounts so that ezmlm can coexist with mailman * Tue Aug 27 2002 Shad L. Lords - 1.0-3 - make site have a random password on install - make mailman list have random password on install * Sat Aug 24 2002 Shad L. Lords - 1.0-2 - changed mailman-addlist to set perms and ownership correctly. - changed permissions from root,mailman to mailman,mailman * Fri Aug 23 2002 Shad L. Lords - 1.0-1 - Initial release %prep %setup %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1 %patch7 -p1 %patch8 -p1 %patch9 -p1 %patch10 -p1 %patch11 -p1 %patch12 -p1 %patch13 -p1 %patch14 -p1 %patch15 -p1 %patch16 -p1 %patch17 -p1 %patch18 -p1 %patch19 -p1 /bin/rm -r root/opt/mailman %build perl createlinks mkdir -p root/usr/lib/mailman/aliases mkdir -p root/opt ln -s /usr/lib/mailman root/opt/mailman mkdir -p root/var/spool/mailman/qfiles for dir in archive bounces commands in news out retry shunt virgin do mkdir -p root/var/spool/mailman/qfiles/$dir done %install rm -rf $RPM_BUILD_ROOT (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) rm -f e-smith-%{version}-filelist /sbin/e-smith/genfilelist \ --dir '/usr/lib/mailman' 'attr(02775,root,mailman)' \ --dir '/usr/lib/mailman/bin' 'attr(02775,root,mailman)' \ --dir '/var/spool/mailman' 'attr(02775,root,mailman)' \ --dir '/usr/lib/mailman/aliases' 'attr(02775,mailman,mailman)' \ --file '/usr/lib/mailman/bin/post-install' 'attr(0755,root,mailman)' \ --file '/usr/lib/mailman/bin/smelist' 'attr(04755,root,mailman)' \ --dir '/usr/lib/mailman/Mailman' 'attr(02775,root,mailman)' \ --dir '/usr/lib/mailman/Mailman/MTA' 'attr(02775,root,mailman)' \ --file '/usr/lib/mailman/Mailman/MTA/SME.py' 'attr(02775,root,mailman)' \ --dir '/var/spool/mailman/qfiles' 'attr(02770,mailman,mailman)' \ --dir '/var/spool/mailman/qfiles/archive' 'attr(02770,mailman,mailman)' \ --dir '/var/spool/mailman/qfiles/bounces' 'attr(02770,mailman,mailman)' \ --dir '/var/spool/mailman/qfiles/commands' 'attr(02770,mailman,mailman)' \ --dir '/var/spool/mailman/qfiles/in' 'attr(02770,mailman,mailman)' \ --dir '/var/spool/mailman/qfiles/news' 'attr(02770,mailman,mailman)' \ --dir '/var/spool/mailman/qfiles/out' 'attr(02770,mailman,mailman)' \ --dir '/var/spool/mailman/qfiles/retry' 'attr(02770,mailman,mailman)' \ --dir '/var/spool/mailman/qfiles/shunt' 'attr(02770,mailman,mailman)' \ --dir '/var/spool/mailman/qfiles/virgin' 'attr(02770,mailman,mailman)' \ $RPM_BUILD_ROOT > %{name}-%{version}-filelist %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}-%{version}-filelist %defattr(-,root,root) %pre /sbin/e-smith/create-system-user mailman 41 \ "Mailman user" /usr/lib/mailman /bin/false %post %preun %postun