The following OpenPKG Contribution Area operation occurred.
uploaded RPM specfile "mailman.spec" accepted -- moved to contrib area.
No action is required on your part.

Information about mailman.spec follows:
| #
| ##  mailman.spec -- OpenPKG RPM Specification
| ##  Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
| ##  Copyright (c) 2000-2004 Ralf S. Engelschall <[EMAIL PROTECTED]>
| ##  Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.com/>
| ##
| ##  Permission to use, copy, modify, and distribute this software for
| ##  any purpose with or without fee is hereby granted, provided that
| ##  the above copyright notice and this permission notice appear in all
| ##  copies.
| ##
| ##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
| ##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
| ##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
| ##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
| ##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
| ##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
| ##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
| ##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
| ##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
| ##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
| ##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
| ##  SUCH DAMAGE.
| ##
| 
| #   package version
| %define V_dist   2.1.5
| %define V_opkg   2.1.5
| %define V_tools  20040702
| %define mmdir %{l_prefix}/libexec/mailman
| %define varmmdir %{l_prefix}/var/mailman
| %define docdir %{l_prefix}/share/mailman-%{version}
| %define logdir %{l_prefix}/var/log/mailman
| %define queuedir %{l_prefix}/var/spool/mailman/qfiles
| %define httpdconfdir %{l_prefix}/etc/httpd/conf.d
| %define lockdir %{varmmdir}/locks
| %define restart_flag %{lockdir}/restart-after-rpm-install
| %define mm_cfg %{l_prefix}/libexec/mailman/Mailman/mm_cfg.py.dist
| %define mm_cfg_def %{l_prefix}/libexec/mailman/Mailman/mm_cfg.py
| %define urlhost mailman
| %define mailhostgid mailhost
| 
| %define httpdconffile mailman.conf
| 
| #   package information
| Name:         mailman
| Summary:      Mailing List Manager
| URL:          http://www.list.org
| Vendor:       mailman
| Packager:     The OpenPKG Project
| Distribution: OpenPKG
| Class:        BASE
| Group:        SCM
| License:      GNU
| Version:      %{V_opkg}
| Release:      20041220
| 
| #   package options
| %option       with_username %{l_musr}
| %option       with_groupname  %{l_mgrp}
| %option       with_urlhost %{urlhost}
| %option       with_mail_gid %{mailhostgid}
| %option       cgigroup  %{l_mgrp}
| 
| 
| #   list of sources
| Source0:      http://www.list.org/tarballs/mailman-%{V_dist}.tgz
| #Source2:      http://svnbook.red-bean.com/book.pdf
| #Source3:      rc.mailman
| 
| #   build information
| Prefix:       %{l_prefix}
| BuildRoot:    %{l_buildroot}
| BuildPreReq:  OpenPKG, openpkg >= 2.1.0, diffutils, make
| BuildPreReq:  python >= 2.1.3
| AutoReq:      no
| AutoReqProv:  no
| 
| %description
|    Mailman is software to help manage email discussion lists, much like
|    Majordomo and Smartmail. Unlike most similar products, Mailman gives
|    each mailing list a webpage, and allows users to subscribe,
|    unsubscribe, etc. over the Web. Even the list manager can administer
|    his or her list entirely from the Web. Mailman also integrates most
|    things people want to do with mailing lists, including archiving, mail
|    <-> news gateways, and so on.
| 
| 
| %track
| 
| %prep
|     echo "True value is => $RPM_BUILD_ROOT"
|     %setup -q
| #    %setup -q -T -D -a 1
| 
| %build
|     #   configure package
|     CC="%{l_cc}" \
|     CFLAGS="%{l_cflags -O}" \
|     CPPFLAGS="%{l_cppflags}" \
|     LDFLAGS="%{l_ldflags}" \
|     ./configure \
|         --prefix=%{mmdir} \
|       %if "%{with_username}" == "%{l_musr}" 
|           --with-username=%{l_musr} \
|       %else
|           --with-username=%{with_username} \
|       %endif
|       %if "%{with_groupname}" == "%{l_mgrp}"
|         --with-groupname=%{l_mgrp} \
|         %else
|         --with-groupname=%{with_groupname} \
|       %endif
|       %if "%{cgigroup}" == "%{l_mgrp}"
|         --with-cgi-gid=%{l_mgrp} \
|       %else
|         --with-cgi-gid=%{cgigroup} \
|       %endif
|       %if "%{with_urlhost}" == "%{urlhost}"
|         --with-urlhost=%{urlhost} \
|       %else
|         --with-urlhost="%{with_urlhost}" \
|       %endif
|       --sysconfdir=%{l_prefix}/etc/mailman \
|       --with-var-prefix=%{varmmdir} \
|         --enable-static \
|       %if "%{with_mail_gid}" == "%{mailhost}"
|         --with-mail-gid=%{with_mail_gid} \
|       %else
|         --with-mail-gid=%{with_mail_gid} \
|       %endif
|       --without-permcheck
| 
|     #   build package
|     %{l_make} %{l_mflags}
| 
| %install
|     #   install package
|     rm -rf $RPM_BUILD_ROOT
|     %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
|     # Install mm-handler
|     %{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/libexec/mailman/contrib
|     %{l_shtool} install -c -m 2700 
$RPM_BUILD_DIR/mailman-%{version}/contrib/mm-handler 
$RPM_BUILD_ROOT%{l_prefix}/libexec/mailman/contrib
|     #Install the mailman rc.d script
|     %{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
|     %{l_shtool} install -c -m 755 \
|         %{l_value -s -a} \
|         %{l_value -s l_rpmtool} \
|         %{SOURCE rc.mailman} ${RPM_BUILD_ROOT}%{l_prefix}/etc/rc.d/
| 
|      %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
|          %{l_files_std} \
|       '%dir %attr(2775,%{l_musr},%{cgigroup}) %{l_prefix}/var/mailman/logs' \
|       '%dir %attr(2775,%{l_musr},%{cgigroup}) %{l_prefix}/var/mailman/spam' \
|       '%dir %attr(2775,%{l_musr},%{cgigroup}) %{l_prefix}/var/mailman/qfiles' 
\
|       '%dir %attr(2775,%{l_musr},%{cgigroup}) %{l_prefix}/var/mailman/locks' \
|       '%dir %attr(2775,%{l_musr},%{cgigroup}) %{l_prefix}/var/mailman/lists' \
|       '%dir %attr(2775,%{l_musr},%{cgigroup}) 
%{l_prefix}/var/mailman/archives' \
|       '%dir %attr(2775,%{l_musr},%{cgigroup}) %{l_prefix}/var/mailman/data' 
| 
| %files -f files
| 
| %clean
|     rm -rf $RPM_BUILD_ROOT
| 
| %post
| # sendmail aliases
| echo "my Prefix is: %{l_prefix}" >>/tmp/mylog
| if [ -f %{l_prefix}/etc/sendmail/aliases ]; then
|   if [ \(`grep -q "mailman-owner" %{l_prefix}/etc/sendmail/aliases 2> 
/dev/null`\) ]; then
|     cat >> %{l_prefix}/etc/sendmail/aliases <<EOF
| # mailman aliases
| mailman: postmaster
| mailman-owner: mailman
| EOF
|     if [ -f %{l_prefix}/bin/newaliases ]; then
|       %{l_prefix}/bin/newaliases > /dev/null 2>&1 || :
|     elif [ -f %{l_prefix}/bin/newaliases ]; then
|       %{l_prefix}/bin/newaliases > /dev/null 2>&1 || :
|     fi
|   fi
| fi
|     #Copy the icons over for mailman to apache
|     %{l_shtool} install -c -o opkg -g opkg -m 2644 
$RPM_BUILD_ROOT%{l_prefix}/libexec/mailman/icons/PythonPowered.png 
%{l_prefix}/share/apache/icons
|     %{l_shtool} install -c -o opkg -g opkg -m 2644 
$RPM_BUILD_ROOT%{l_prefix}/libexec/mailman/icons/mailman-large.jpg 
%{l_prefix}/share/apache/icons
|     %{l_shtool} install -c -o opkg -g opkg -m 2644 
$RPM_BUILD_ROOT%{l_prefix}/libexec/mailman/icons/mm-icon.png 
%{l_prefix}/share/apache/icons
|     %{l_shtool} install -c -o opkg -g opkg -m 2644 
$RPM_BUILD_ROOT%{l_prefix}/libexec/mailman/icons/gnu-head-tiny.jpg 
%{l_prefix}/share/apache/icons
|     %{l_shtool} install -c -o opkg -g opkg -m 2644 
$RPM_BUILD_ROOT%{l_prefix}/libexec/mailman/icons/mailman.jpg 
%{l_prefix}/share/apache/icons
| 
|     #Need to set mailman archive permissions accordingly
|     %{l_shtool} install -d -o opkg -g sec -m 2775 
%{l_prefix}/var/mailman/archives/private
|     %{l_shtool} install -d -o opkg -g sec -m 2775 
%{l_prefix}/var/mailman/archives/public
|     #Ok lets create the /var/mailman dir with the correct ownership perms
|     %{l_shtool} install -d -o opkg -g sec -m 2776 %{l_prefix}/cgi/mailman 
|     %{l_shtool} install -c -o opkg -g sec -m 2776 
$RPM_BUILD_ROOT%{l_prefix}/libexec/mailman/cgi-bin/roster 
%{l_prefix}/cgi/mailman
|     %{l_shtool} install -c -o opkg -g sec -m 2776 
$RPM_BUILD_ROOT%{l_prefix}/libexec/mailman/cgi-bin/admin %{l_prefix}/cgi/mailman
|     %{l_shtool} install -c -o opkg -g sec -m 2776 
$RPM_BUILD_ROOT%{l_prefix}/libexec/mailman/cgi-bin/admindb 
%{l_prefix}/cgi/mailman
|     %{l_shtool} install -c -o opkg -g sec -m 2776 
$RPM_BUILD_ROOT%{l_prefix}/libexec/mailman/cgi-bin/confirm 
%{l_prefix}/cgi/mailman
|     %{l_shtool} install -c -o opkg -g sec -m 2776 
$RPM_BUILD_ROOT%{l_prefix}/libexec/mailman/cgi-bin/create 
%{l_prefix}/cgi/mailman
|     %{l_shtool} install -c -o opkg -g sec -m 2776 
$RPM_BUILD_ROOT%{l_prefix}/libexec/mailman/cgi-bin/edithtml 
%{l_prefix}/cgi/mailman
|     %{l_shtool} install -c -o opkg -g sec -m 2776 
$RPM_BUILD_ROOT%{l_prefix}/libexec/mailman/cgi-bin/listinfo 
%{l_prefix}/cgi/mailman
|     %{l_shtool} install -c -o opkg -g sec -m 2776 
$RPM_BUILD_ROOT%{l_prefix}/libexec/mailman/cgi-bin/options 
%{l_prefix}/cgi/mailman
|     %{l_shtool} install -c -o opkg -g sec -m 2776 
$RPM_BUILD_ROOT%{l_prefix}/libexec/mailman/cgi-bin/private 
%{l_prefix}/cgi/mailman
|     %{l_shtool} install -c -o opkg -g sec -m 2776 
$RPM_BUILD_ROOT%{l_prefix}/libexec/mailman/cgi-bin/rmlist 
%{l_prefix}/cgi/mailman
|     %{l_shtool} install -c -o opkg -g sec -m 2776 
$RPM_BUILD_ROOT%{l_prefix}/libexec/mailman/cgi-bin/subscribe 
%{l_prefix}/cgi/mailman
| #    %{l_shtool} install -d -m 2775 
$RPM_BUILD_ROOT%{l_prefix}/%{varmmdir}/data
| 
| if [ -f %{mm_cfg_def} ]; then
|     echo "IMAGE_LOGOS = '/apache-icons/'" >> %{mm_cfg_def}
| 
|     echo "add_virtualhost('mls.oit.pdx.edu', 'lists.pdx.edu')" >> 
%{mm_cfg_def}
|     echo "DEFAULT_URL_PATTERN = 'https://%s/lists/'" >> %{mm_cfg_def}
|     echo "DEFAULT_URL_HOST = 'mls.oit.pdx.edu'" >> %{mm_cfg_def}
|     echo "DEFAULT_EMAIL_HOST = 'lists.pdx.edu'" >> %{mm_cfg_def}
|     echo "PUBLIC_ARCHIVE_URL = 
'https://mls.oit.pdx.edu/pipermail/\%(listname)s'" >> %{mm_cfg_def}
|     echo "MTA = None" >> %{mm_cfg_def}
|     echo "VERP_PASSWORD_REMINDERS = 1" >> %{mm_cfg_def}
|     echo "VERP_PERSONALIZED_DELIVERIES = 1" >> %{mm_cfg_def}
|     echo "VERP_CONFIRMATIONS = 1" >> %{mm_cfg_def}
|     echo "VERP_DELIVERY_INTERVAL = 1" >> %{mm_cfg_def}
| fi
| 
| echo "Please edit the mm_cfg.py file for mailman. You will need to correct"
| echo "the public archive url location since I can not directly edit it."
| echo "The reason I can not edit it using this script is because I can not"
| echo "interpret parens. so please useh percent paren 'listname' close paren"
| echo "then immediately following an 's'. Thanks."
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   openpkg-dev@openpkg.org

Reply via email to