---
name: popa3d-before-sendmail
version: 1.0.2_1
origin: mail/popa3d-before-sendmail
comment: Secure, performance, tiny POP3 daemon
arch: freebsd:9:x86:64
www: http://www.openwall.com/popa3d/
maintainer: gblach@FreeBSD.org
prefix: /usr/local
licenselogic: single
flatsize: 43704
desc: "the popa3d goals\n================\n\nIs a POP3 daemon by Solar Designer.\n\nWell,
  the goals themselves are obvious; they're probably the same for most\nother POP3
  servers as well. It's their priority that differs. For popa3d,\nthe goals are:\n\n1.
  Security (to the extent that is possible with POP3 at all, of course).\n2. Reliability
  (again, as limited by the mailbox format and the protocol).\n3. RFC compliance (slightly
  relaxed to work with real-world POP3 clients).\n4. Performance (limited by the more
  important goals, above).\n\nThis port is installed to be run from inetd, which is
  sufficient \nfor normal usage. However, it is possible to build a stand-alone \nversion,
  should you need better performance. \n\nWWW: http://www.openwall.com/popa3d/\n"
categories: [mail]
options: {SMTP_AFTER_POP3: on, STANDALONE_POP3: off, SETPROCTITLE: off}
files:
  /usr/local/libexec/popa3d: d90f97aaf642ac0adb4ddffdba2e0afddaec52b6637d5a3ec5d8f18603f6a47c
  /usr/local/man/man8/popa3d.8.gz: 9aeb7bd120435025c8719240e04d67fb3b77f46de7c41970162db56dbefd596f
  /usr/local/share/doc/popa3d/DESIGN: 44409d4df37e9f54149f38651afa9e090ce51b35a5847a765ab2b66fd7810831
  /usr/local/share/doc/popa3d/LICENSE: 968a3db1f63d166bd82b5c44a2c6c4a2e2069fa418483586f17ef3f848b9ef04
  /usr/local/share/doc/popa3d/POPAUTH: d4ec5efc0d99a03fba381030f79fba78c6697d4d4d7401ef88fd4ecaf8863ef7
  /usr/share/sendmail/cf/hack/popauth.m4: afd72f19c9f04dd3936236b41295ac7847511eeb88d0fe22c3d2e86cd31decd9
directories:
  /usr/local/share/doc/popa3d/: n
scripts:
  post-install: |
    cd /usr/share/sendmail/cf
  pre-deinstall: |
    cd /usr/share/sendmail/cf
  post-deinstall: |
    cd /usr/share/sendmail/cf
  install: |
    # $FreeBSD: ports/mail/popa3d/pkg-install,v 1.4 2012/11/17 05:59:10 svnexp Exp $
    #

    if [ "$2" != "PRE-INSTALL" ]; then
        exit 0
    fi

    PATH=/bin:/usr/bin

    use_vipw () {

        cat << EOF

    You need an account "pop" to install this package.
    Please add it by hand (try "man vipw") and try again.

    An example passwd entry is:
    pop:*:68:6::0:0:Post Office Owner:/nonexistent:/nonexistent

    EOF

    }

    if ! id -u "pop" > /dev/null 2>&1; then
        use_vipw
        exit 1
    fi

    exit 0
  deinstall: |
    # $FreeBSD: ports/mail/popa3d/pkg-deinstall,v 1.3 2012/11/17 05:59:10 svnexp Exp $
    #

    if [ "$2" != "POST-DEINSTALL" ]; then
        exit 0
    fi

    PATH=/bin

    echo "Remember to remove popa3d from /etc/inetd.conf and restart inetd"
message: "===========================================================================\n1.
  Edit your /etc/inetd.conf to use popa3d. The line should look like this:\n\npop3\tstream\ttcp\tnowait\troot\t/usr/local/libexec/popa3d
  \  popa3d\n\nNote: when started via an inetd clone, the logging of connections is
  left\nup to that inetd clone or TCP wrappers.\n\n2. Reload inetd\n\n# /etc/rc.d/inetd
  reload\n\n===========================================================================\n"
