[Mailman-Users] RPMS for mailman

José Romildo Malaquias romildo at urano.iceb.ufop.br
Wed Apr 12 10:12:34 CEST 2000


I have packaged mailman using RPM. The package are
based on previous one by Conectiva Linux.
It can be found at
	
	ftp://urano.iceb.ufop.br/pub/mailman/

Probably it needs improvements. Feel free to
made them.

Romildo
-- 
Prof. José Romildo Malaquias <romildo at iceb.ufop.br>
Departamento de Computação
Universidade Federal de Ouro Preto
Brasil
-------------- next part --------------
%define prefixdir /usr/lib/mailman

Summary: The GNU Mailing List Management System
Summary(pt_BR): O Sistema de Manutenção de listas da GNU
Summary(es): The GNU Mailing List Management System
Name: mailman
Version: 2.0beta2
Release: 1
Group: System Environment/Daemons
Group(pt_BR): Ambiente do Sistema/Servidores
Group(es): Ambiente del Sistema/Servidores (Daemons)
Copyright: GPL
URL: http://www.list.org
Source: ftp://ftp.python.org/pub/mailman/mailman-%{version}.tgz
Source1: README.rpm
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-build
PreReq: python >= 1.5.2
Requires: webserver, sendmail, python >= 1.5.2

%description
Mailman -- The GNU Mailing List Management System -- is
a mailing list management system written mostly in Python.

Read the contents of the file README.rpm at the documentation
directory for post-installation instructions.

Features:
  o Most standard mailing list features, including:
     moderation, mail based commands, digests, etc...
  o An extensive Web interface, customizable on a per-list basis.
  o Web based list administration interface for *all* admin-type tasks
  o Automatic Web based hypermail-style archives (using pipermail or
    other external archiver), including provisions for private archives
  o Integrated mail list to newsgroup gatewaying
  o Integrated newsgroup to mail list gatewaying (polling-based... if you
     have access to the nntp server, you should be able to easily do
     non-polling based news->mail list gatewaying; email viega at list.org,
     I'd like to help get that going and come up
     with instructions)
  o Smart bounce detection and correction
  o Integrated fast bulk mailing
  o Smart spam protection
  o Extensible logging
  o Multiple list owners and moderators are possible
  o Optional MIME-compliant digests
  o Nice about which machine you subscribed from if you're from the
        right domain

%description -l pt_BR
Mailman -- O sistema de manutenção de listas de discussão da GNU.

Leia o arquivo README.rpm no diretório de documentação para instruções
a serem seguidas após a instalação.

%description -l es
Mailman -- The GNU Mailing List Management System -- is
a mailing list management system written mostly in Python.

Read the contents of the file README.rpm at the documentation
directory for post-installation instructions.

Features:
  o Most standard mailing list features, including:
     moderation, mail based commands, digests, etc...
  o An extensive Web interface, customizable on a per-list basis.
  o Web based list administration interface for *all* admin-type tasks
  o Automatic Web based hypermail-style archives (using pipermail or
    other external archiver), including provisions for private archives
  o Integrated mail list to newsgroup gatewaying
  o Integrated newsgroup to mail list gatewaying (polling-based... if you
     have access to the nntp server, you should be able to easily do
     non-polling based news->mail list gatewaying; email viega at list.org,
     I'd like to help get that going and come up
     with instructions)
  o Smart bounce detection and correction
  o Integrated fast bulk mailing
  o Smart spam protection
  o Extensible logging
  o Multiple list owners and moderators are possible
  o Optional MIME-compliant digests
  o Nice about which machine you subscribed from if you're from the
        right domain

%prep
%setup -q
cp -p %SOURCE1 .

%build
# Mailman needs a special user/group
/usr/sbin/useradd -M -u 44 -d %{prefixdir} -s /bin/bash mailman || :
mkdir -p %{prefixdir}
chown mailman:mailman %{prefixdir} || :
chmod a+rx,g+ws %{prefixdir} || :

CFLAGS="$RPM_OPT_FLAGS" \
./configure --with-mail-gid=mail --with-cgi-gid=nobody --prefix=%{prefixdir}
make

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/home/httpd/html
mkdir -p $RPM_BUILD_ROOT/etc/cron.d

make prefix=$RPM_BUILD_ROOT%{prefixdir} install
cp -p misc/mailman.jpg misc/PythonPowered.png misc/gnu-head-tiny.jpg \
      $RPM_BUILD_ROOT/home/httpd/html/
cp -p $RPM_BUILD_ROOT%{prefixdir}/cron/crontab.in \
      $RPM_BUILD_ROOT/etc/cron.d/mailman

mkdir -p $RPM_BUILD_ROOT/etc/smrsh
ln -s %{prefixdir}/mail/wrapper $RPM_BUILD_ROOT/etc/smrsh/

%pre
useradd -M -u 44 -d %{prefixdir} -s /bin/bash mailman > /dev/null 2>&1 || :

%post
cat >> /etc/httpd/conf/httpd.conf <<EOF
### Mailman (begin) ###
ScriptAlias /mailman/   %prefixdir/cgi-bin/
Alias /pipermail/ %prefixdir/archives/public/
<Directory "%prefixdir/archives/public">
	Options FollowSymLinks
	order allow,deny
	allow from all
</Directory>
### Mailman (end) ###
EOF

/etc/rc.d/init.d/httpd restart

HOST_NAME=`hostname`

cat >> /etc/aliases <<EOF
### Mailman (begin) ###
mailman: root@$HOST_NAME
mailman-owner: mailman
### Mailman (end) ###
EOF

newaliases

ed %{prefixdir}/Mailman/mm_cfg.py <<EOF
,s|^DEFAULT_HOST_NAME = '.*'|DEFAULT_HOST_NAME = \\'$HOST_NAME\\'|g
,s|^DEFAULT_URL       = '.*'|DEFAULT_URL       = \\'http://$HOST_NAME/mailman\\'|g
,s|^MAILMAN_OWNER     = '.*'|MAILMAN_OWNER     = 'root@%s'|g
wq
EOF

%postun
if [ $1 = 0 ]; then
	userdel mailman >/dev/null 2>&1 || :
fi

ed /etc/httpd/conf/httpd.conf <<EOF
/^### Mailman (begin) ###$/,/^### Mailman (end) ###$/d
wq
EOF

ed /etc/aliases <<EOF
/^### Mailman (begin) ###$/,/^### Mailman (end) ###$/d
wq
EOF

%files
%defattr(-,root,root)
%doc ACKNOWLEDGMENTS BUGS FAQ INSTALL NEWS README
%doc README.LINUX README.NETSCAPE README.QMAIL README.SENDMAIL TODO UPGRADING
%doc gnu-COPYING-GPL
%doc README.rpm
/etc/smrsh/wrapper
/etc/cron.d/mailman
/home/httpd/html/*
%attr(-,mailman,mailman) %{prefixdir}

%clean
if [ $RPM_BUILD_ROOT != "/" ]; then
	rm -rf $RPM_BUILD_ROOT
fi

%changelog
* Wed Apr 12 2000 José Romildo Malaquias <romildo at iceb.ufop.br> 2.0beta2-1
- new version

* Wed Feb 09 2000 José Romildo Malaquias <romildo at iceb.ufop.br> 1.1-1
- new version
- Redhat 6 uses smrsh, the sendmail restricted shell, for improved security.
  To get mailman to work, make a link in /etc/smrsh to mail/wrapper.
- Semi-automated configuration at install time. The installer
  only has to change configuration if the mailman administrator
  is other than root.

* Wed Sep 15 1999 Rudá Moura <ruda at conectiva.com>
- First build for Conectiva
- Adopted by Conectiva Linux



More information about the Mailman-Users mailing list