---
name: qpopper
version: 4.1.0_1
origin: mail/qpopper
comment: Berkeley POP 3 server (now maintained by Qualcomm)
arch: freebsd:9:x86:64
www: http://www.eudora.com/products/unsupported/qpopper/
maintainer: bc979@lafn.org
prefix: /usr/local
licenselogic: single
flatsize: 219325
desc: "Qpopper is the most widely-used server for the POP3 protocol\n(this allows
  users to access their mail using any POP3 client).\n\nDon't forget to edit /etc/inetd.conf
  to enable the server after installation.\n\nWWW:\thttp://www.eudora.com/products/unsupported/qpopper/\n"
categories: [mail, ipv6]
options: {APOP: on, APOP_ONLY: off, DOCUMENTATION: off, DRAC: off, FULL_POPD_DEBUG: off,
  PAM: off, POPPASSD: off, QPOPAUTH_SETUID: on, SAMPLE_POPUSERS: off, SHY_ENABLED: off,
  SSL: on, STANDALONE_MODE: off, U_OPTION: on}
files:
  /usr/local/bin/qpopauth: 486ee66c9494d0cfd571c4a5e52a0790a5e8a91c5f4ac89b5fc1bfeec8b2dc0c
  /usr/local/etc/qpopper.config.sample: f5710f2dc0b981489cb94f38539acc8cb2ae99c2e119528a5db9d9817196a629
  /usr/local/etc/qpopper/popusers.sample: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
  /usr/local/libexec/qpopper: 7e754116834adbb3f97f656b5e2974f5f8d08a2eca307a951377d3614d75236a
  /usr/local/man/man8/qpopauth.8.gz: 8d941ba9de735ee7db8483dd7ca5ea22a1f30a026c758ba05523a14c0e42db62
  /usr/local/man/man8/qpopper.8.gz: 98e896d0211495775c1abc9fc8d51fcb716457f5145b2cd4f3c307d39dd78211
directories:
  /usr/local/etc/qpopper/: y
scripts:
  post-install: |
    ln -sf /usr/local/bin/qpopauth /usr/local/bin/qapopauth
    mkdir -p etc/qpopper && chown pop:daemon etc/qpopper && chmod 0711 etc/qpopper
  pre-deinstall: |
    rm -f /usr/local/bin/qapopauth
  install: "#!/bin/sh\n# $FreeBSD: ports/mail/qpopper/pkg-install,v 1.2 2012/11/17
    05:59:13 svnexp Exp $\n\n# based on original from op port, written by Cyrille
    Lefevre\n# <clefevre@citeweb.net>\n\n[ $# != 2 ] && exit 1\nPKGNAME=$1\nACTION=$2\n\nCONF_DIR=${PKG_PREFIX}/etc/qpopper\n\nCONF_FILE=popusers\nCONF_OWN=pop\nCONF_GRP=daemon\nCONF_MODE=444\n\nSAMP_SUFX=.sample\n\nINSTALL=install\nCMP=cmp\nRM=rm\n\ncase
    \"$ACTION\" in\n\nPOST-INSTALL)\n\tif [ -f ${CONF_DIR}/${CONF_FILE} ]; then\n\t\techo
    \"$PKGNAME: Will not overwrite existing ${CONF_DIR}/${CONF_FILE} file.\"\n\telse\n\t\t${INSTALL}
    -c -o ${CONF_OWN} -g ${CONF_GRP} -m ${CONF_MODE} \\\n\t\t\t${CONF_DIR}/${CONF_FILE}${SAMP_SUFX}
    \\\n\t\t\t${CONF_DIR}/${CONF_FILE}\n\tfi\n\t;;\n\nDEINSTALL)\n\tif ${CMP} -s ${CONF_DIR}/${CONF_FILE}${SAMP_SUFX}
    \\\n\t\t  ${CONF_DIR}/${CONF_FILE}; then\n\t\t${RM} -f ${CONF_DIR}/${CONF_FILE}\n\telse\n\t\techo
    \"$PKGNAME: Will not remove existing ${CONF_DIR}/${CONF_FILE} file.\"\n\tfi\n\t;;\n\nPRE-INSTALL|POST-DEINSTALL)\n\t;;\n\n*)\n\texit
    1\n\t;;\nesac\n\nexit\n"
  deinstall: "#!/bin/sh\n# $FreeBSD: ports/mail/qpopper/pkg-install,v 1.2 2012/11/17
    05:59:13 svnexp Exp $\n\n# based on original from op port, written by Cyrille
    Lefevre\n# <clefevre@citeweb.net>\n\n[ $# != 2 ] && exit 1\nPKGNAME=$1\nACTION=$2\n\nCONF_DIR=${PKG_PREFIX}/etc/qpopper\n\nCONF_FILE=popusers\nCONF_OWN=pop\nCONF_GRP=daemon\nCONF_MODE=444\n\nSAMP_SUFX=.sample\n\nINSTALL=install\nCMP=cmp\nRM=rm\n\ncase
    \"$ACTION\" in\n\nPOST-INSTALL)\n\tif [ -f ${CONF_DIR}/${CONF_FILE} ]; then\n\t\techo
    \"$PKGNAME: Will not overwrite existing ${CONF_DIR}/${CONF_FILE} file.\"\n\telse\n\t\t${INSTALL}
    -c -o ${CONF_OWN} -g ${CONF_GRP} -m ${CONF_MODE} \\\n\t\t\t${CONF_DIR}/${CONF_FILE}${SAMP_SUFX}
    \\\n\t\t\t${CONF_DIR}/${CONF_FILE}\n\tfi\n\t;;\n\nDEINSTALL)\n\tif ${CMP} -s ${CONF_DIR}/${CONF_FILE}${SAMP_SUFX}
    \\\n\t\t  ${CONF_DIR}/${CONF_FILE}; then\n\t\t${RM} -f ${CONF_DIR}/${CONF_FILE}\n\telse\n\t\techo
    \"$PKGNAME: Will not remove existing ${CONF_DIR}/${CONF_FILE} file.\"\n\tfi\n\t;;\n\nPRE-INSTALL|POST-DEINSTALL)\n\t;;\n\n*)\n\texit
    1\n\t;;\nesac\n\nexit\n"
message: |2

  ****************************************************************************
  To enable the qpopper-daemon, add the following line to your /etc/inetd.conf:

     pop3 stream tcp nowait root /usr/local/libexec/qpopper qpopper -s
  ****************************************************************************
