spf_tested_version 2.1.0 &&
spf_url home  'http://pyropus.ca/software/pymsgauth/' &&
spf_url watch 'http://pyropus.ca/software/pymsgauth/' &&
spf_url src \
  "http://pyropus.ca/software/pymsgauth/pymsgauth-${spf_version?}.tar.gz" &&
spf_do_install() {
  chmod -R ugo+r . &&
  chmod +x pymsgauth-clean pymsgauth-confirm pymsgauth-mail &&
  python -c 'import ConfParser; import pymsgauth' &&
  mkdir "${spf_path_prefix?}" \
    "${spf_path_prefix?}"/bin \
    "${spf_path_prefix?}"/doc \
    "${spf_path_prefix?}"/lib &&
  cp -p pymsgauth.html pymsgauth.css "${spf_path_prefix?}"/doc &&
  cp -p ConfParser.py ConfParser.pyc pymsgauth.py pymsgauth.pyc \
    pymsgauth-clean pymsgauth-confirm pymsgauth-mail \
    "${spf_path_prefix?}"/lib &&
  ( cd "${spf_path_prefix?}"/bin &&
    ln -s ../lib/pymsgauth-* .
  )
} &&
spf_no_check

