Mailman version 2.1.12 - How to Download and Install on Mac OS X
Friday the 13th of November, 2009

    mailman  most recent diff


    version 2.1.12

      View the most recent changes for the mailman port at: mailman.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for mailman.
      The raw portfile for mailman 2.1.12 is located here:
      http://mailman.darwinports.com/dports/mail/mailman/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/mailman


      The mailman Portfile 51955 2009-06-07 10:04:10Z arthurk macports.org $

      PortSystem 1.0

      Name: mailman
      Version: 2.1.12
      Category: mail
      Maintainers: nomaintainer
      Description: Mailman, the GNU Mailing List Manager
      Long Description: Mailman is free software for managing electronic mail discussion and e-newsletter lists. Mailman is integrated with the web, making it easy for users to manage their accounts and for list owners to administer their lists. Mailman supports built-in archiving, automatic bounce processing, content filtering, digest delivery, spam filters, and more.

      Homepage: http://www.list.org/
      Master Sites: sourceforge
      extract.suffix .tgz
      Checksums: md5 d565a6d2d0ec6d2dd6936a81e1c1ca86 sha1 6d6281f7ce322e271f0259321f4d8931ff46e6ae rmd160 94d8d132bb37180bf4c02ccd2a5fb3862ce13b94

      Platform: darwin

      depends_lib port:python25

      # Create a startupitem
      startupitem.create yes
      startupitem.start "${prefix}/share/mailman/bin/mailman.init start"
      startupitem.stop "${prefix}/share/mailman/bin/mailman.init stop"

      # Mailman installation directories
      set execdir ${prefix}/libexec/${name}
      set sharedir ${prefix}/share/${name}
      set datadir ${prefix}/var/${name}
      set docdir ${prefix}/share/doc/${name}
      set confdir ${prefix}/etc/httpd

      # Mailman user/group name
      set mmuser mailman
      set mmgroup mailman

      # CGI group name (should match apache Portfile)
      set cgigroup www

      Patch Files: patch-Defaults.py.in patch-mm_cfg.py.dist.in

      configure.pre_args --exec-prefix=${execdir} --prefix=${sharedir} --with-var-prefix=${datadir}

      configure.args --with-username=${mmuser} --with-groupname=${mmgroup} --with-mail-gid=${mmgroup} --with-cgi-gid=${cgigroup} --with-cgi-ext=.cgi --without-permcheck --with-python=${prefix}/bin/python2.5

      pre-destroot {
      addgroup ${mmgroup}
      adduser ${mmuser} gid=[existsgroup ${mmgroup}]
      xinstall -d -m 02775 -o root -g ${mmgroup} ${destroot}${execdir}
      xinstall -d -m 02775 -o root -g ${mmgroup} ${destroot}${sharedir}
      xinstall -d -m 02775 -o ${mmuser} -g ${mmgroup} ${destroot}${datadir}
      }
      post-destroot {
      # Create dummy files to retain empty directory tree
      xinstall -d -m 02775 ${destroot}${datadir}/lists/.turd
      system "find ${destroot}${datadir} -type d -empty | xargs -n1 -I% touch %/.turd"

      # Cleanup permissions & ownership
      foreach dir [exec find ${destroot}${sharedir} -type d ! -perm 02775] {
      ui_info "${dir}: setting permissions to 02775"
      file attributes $dir -permissions 02775
      }

      # Install startup script
      xinstall -d -m 0755 ${destroot}${prefix}/etc/rc.d
      system "ln -s ../../../[strsed ${sharedir} "g|^${prefix}/||"]/scripts/mailman ${destroot}${prefix}/share/mailman/bin/mailman.init"

      # Install Apache configuration file
      xinstall -d -m 0755 ${destroot}${confdir}
      xinstall -m 0644 ${filespath}/${name}.conf.in ${destroot}${confdir}/${name}.conf
      reinplace "s| EXECDIR |${execdir}|" ${destroot}${confdir}/${name}.conf
      reinplace "s| DATADIR |${datadir}|" ${destroot}${confdir}/${name}.conf
      reinplace "s| SHAREDIR |${sharedir}|" ${destroot}${confdir}/${name}.conf
      reinplace "s| CONFDIR |${confdir}|" ${destroot}${sharedir}/Mailman/mm_cfg.py.dist ${destroot}${sharedir}/Mailman/mm_cfg.py

      # Install documentation files
      xinstall -d -m 0755 ${destroot}${docdir}
      foreach file [glob ${worksrcpath}/\[A-IN-Z\]*] {
      xinstall -m 0644 ${file} ${destroot}${docdir}
      }

      # Check installation under destroot
      system "cd ${destroot}${sharedir} && DESTDIR=${destroot} PYTHONPATH=.:./pythonlib ./bin/check_perms"
      }

      post-install {
      # Notify the user what needs to be done after installation
      ui_msg "------------------------------------------------------------"
      ui_msg "Be sure to verify the email and URL host settings in the"
      ui_msg "Mailman configuration file (they may have been guessed"
      ui_msg "incorrectly during the configuration step):"
      ui_msg " "
      ui_msg " ${sharedir}/Mailman/mm_cfg.py"
      ui_msg " "
      ui_msg "Be sure to add the following line to your Apache httpd.conf"
      ui_msg "configuration file to enable Mailman web access:"
      ui_msg " "
      ui_msg " Include ${confdir}/${name}.conf"
      ui_msg " "
      ui_msg "Be sure to setup the crontab entries for the '${mmuser}'"
      ui_msg "user. Mailman runs a number of cron jobs for its basic"
      ui_msg "functionality."
      ui_msg " "
      ui_msg " cd ${sharedir}/cron"
      ui_msg " sudo crontab -u ${mmuser} crontab.in"
      ui_msg " "
      ui_msg "Also, be sure to read the following files for details"
      ui_msg "on creating your site-wide list, setting your site and"
      ui_msg "list creator passwords, and creating your first list:"
      ui_msg " "
      ui_msg " ${docdir}/INSTALL"
      ui_msg " ${docdir}/README"
      ui_msg " "
      ui_msg "Finally, either restart your system to start up the"
      ui_msg "Mailman queue runner, or use the following to start"
      ui_msg "it running immediately:"
      ui_msg " "
      ui_msg " sudo launchctl load -w /Library/LaunchDaemons/org.macports.mailman.plist"
      ui_msg "------------------------------------------------------------"
      }


    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/mailman
      % sudo port install mailman
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching mailman
      ---> Verifying checksum for mailman
      ---> Extracting mailman
      ---> Configuring mailman
      ---> Building mailman with target all
      ---> Staging mailman into destroot
      ---> Installing mailman
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using mailman with these commands:
      %  man mailman
      % apropos mailman
      % which mailman
      % locate mailman

     Where to find more information:

    Darwin Ports



    Lightbox this page.