---
name: courier-authlib-base
version: 0.65.0
origin: security/courier-authlib-base
comment: Courier authentication library base
arch: freebsd:9:x86:64
www: http://www.Courier-MTA.org/authlib/
maintainer: oliver@FreeBSD.org
prefix: /usr/local
licenselogic: single
flatsize: 558982
desc: "The Courier Authentication Library is a generic authentication API used\nfor
  two purposes:\n\n1. Read the name of a mail account. Determine the local account's
  home\n   directory, and system userid and groupid.\n2. Read an account name, and
  a password. If valid, determine the\n   account's home directory, system userid,
  and groupid.\n\nThe base package only installs the authpam authentication module
  to\nobtain account information and passwords using PAM\n\nOther plugin authentication
  modules are provided:\n\n\tnet/courier-authlib-ldap\t\tOpenLDAP\n\tdatabases/courier-authlib-mysql\t\tMySQL\n\tdatabases/courier-authlib-pgsql\t\tPostgreSQL\n\tdatabases/courier-authlib-userdb\tlibc
  db based\n\tdatabases/courier-authlib-usergdbm\tgdbm dependant\n\tmail/courier-authlib-vchkpw\t\tvpopmail/vchkpw\n\nInstall
  them as occasion demands.\n\nWWW:\thttp://www.Courier-MTA.org/authlib/\n"
deps:
  perl: {origin: lang/perl5.14, version: 5.14.4}
  sysconftool: {origin: devel/sysconftool, version: 0.16}
  libltdl: {origin: devel/libltdl, version: 2.4.2}
  libiconv: {origin: converters/libiconv, version: 1.14_1}
categories:
- security
- mail
shlibs_required:
- libcourierauthcommon.so
- libcourierauth.so
- libltdl.so.7
shlibs_provided:
- libcourierauthsaslclient.so
- libcourierauthsasl.so
- libcourierauthcommon.so
- libcourierauth.so
- libauthpipe.so
- libauthpam.so
files:
  /usr/local/bin/courierauthconfig: f7a0a04b28ebfb8c609088a3895d7238cd122c4c28d7cb3967576e92b8a94e61
  /usr/local/etc/authlib/authdaemonrc.dist: 15d8f5d43a6166783ce18a046be4e6f5dc873c3853b438d16c5cefddf2d30905
  /usr/local/etc/rc.d/courier-authdaemond: b48ffae698c8d2ccc7c97df784bb1d36ff387e462c87e9ba5f485bfcb6d4215e
  /usr/local/include/courier_auth_config.h: 252db7127312a7046a137c4a69babeb4cfc05b41c3b677bf8de5df5692271edf
  /usr/local/include/courierauth.h: a054edd85469b9cadb71e9085750fe4c1d4d41ecf63118839d88a71056057f93
  /usr/local/include/courierauthdebug.h: 980ac040d02f93bbbff660c19bf9d1b98197e676009d43c06051018d3bee4e53
  /usr/local/include/courierauthsasl.h: 35aeed4a46193563e55e92305f85f1de176dcd7565e44d2f8510a0125ca47bb1
  /usr/local/include/courierauthsaslclient.h: 135e62a70dc7d008406ceb2d1a1439a27881eb7955068e435063efaefc5e0a4d
  /usr/local/include/courierauthstaticlist.h: 2c1a3170605d20e76096aa9d224e9ad5b30495c6de51731adecd7f964a9c2226
  /usr/local/lib/courier-authlib/libauthpam.a: 25ed11f861cca40fe8fd1a705a87e963cd70ae28f0c9f31344f9ba19efe47973
  /usr/local/lib/courier-authlib/libauthpam.la: 7f51aa00f1b67d8b023c49d37583a446f48854b815fb61e5c0d108bf420e40de
  /usr/local/lib/courier-authlib/libauthpam.so: a15fb0c833b17700cab24a0df235da2dcd2d1df971fd5beb8701d0a61b6dc587
  /usr/local/lib/courier-authlib/libauthpam.so.0: '-'
  /usr/local/lib/courier-authlib/libauthpipe.a: 6a4efbfc40f8e92349977e69b218c07c549d8d41e38a4d95ec3324255715202c
  /usr/local/lib/courier-authlib/libauthpipe.la: 84d2bcd259b19e99eab9502c18b428d553ade9a2073b9fc51cf31cea72ba4047
  /usr/local/lib/courier-authlib/libauthpipe.so: 2f336dc90c32e8ef0220c8ddb1a1f80688a991135dfe59cc31e7842d9ead2fa3
  /usr/local/lib/courier-authlib/libauthpipe.so.0: '-'
  /usr/local/lib/courier-authlib/libcourierauth.a: 0eebe35af9c718c01d0b44257908ec3c4cd96ff608e789ae1068e7773b76a0fe
  /usr/local/lib/courier-authlib/libcourierauth.la: 189b8633dd3a3d8bb2e2ba22af0f10666a13fd5faaa6ff8f73197004f6a64ac2
  /usr/local/lib/courier-authlib/libcourierauth.so: 6c45c081c30245a067b7b36f6997db56449bee0551b29257405c3343a01c5b6e
  /usr/local/lib/courier-authlib/libcourierauth.so.0: '-'
  /usr/local/lib/courier-authlib/libcourierauthcommon.a: 7662223654a16335183143526d547b15c9ab065f67e8d6e6079fe21912945720
  /usr/local/lib/courier-authlib/libcourierauthcommon.la: 4f1c495db8d9f439d80ed85757f48ce49c98256e2fc89088c38b6d47e042689f
  /usr/local/lib/courier-authlib/libcourierauthcommon.so: e0ddc3b6a903221d8e3a6d96c3c7eafd28a64183e4991ea34b575ce724da026f
  /usr/local/lib/courier-authlib/libcourierauthcommon.so.0: '-'
  /usr/local/lib/courier-authlib/libcourierauthsasl.a: 7c6b6e42837587ee7f9e780dafe1a84ab470c084e94ff81a1457e8d6cb5f6264
  /usr/local/lib/courier-authlib/libcourierauthsasl.la: 5672d606cc65a30d31fa75477e52ab0379936f8dd176a44058d6a9971480688f
  /usr/local/lib/courier-authlib/libcourierauthsasl.so: 641eb95c82278191634bf9e612a2a2896a44417dfb78ce2c5fe5e069d6769f27
  /usr/local/lib/courier-authlib/libcourierauthsasl.so.0: '-'
  /usr/local/lib/courier-authlib/libcourierauthsaslclient.a: 1a60f5cf0771573ab69b179aec88a83c240aeb756e7c4ee6a663b4fa1ccea5c0
  /usr/local/lib/courier-authlib/libcourierauthsaslclient.la: ce78d89d0f6229b2b4d078f6d4c5d6da8676a623d305f29652fc4928d8764662
  /usr/local/lib/courier-authlib/libcourierauthsaslclient.so: f172b65639102523fb375344a9fbb116f23bd436a2ffc6c8b418ac954ea3f309
  /usr/local/lib/courier-authlib/libcourierauthsaslclient.so.0: '-'
  /usr/local/libdata/ldconfig/courier-authlib-base: 1c651d3bf3c3dddb30799bcc4b665f9fd96d3d7c6acde0d88e4a29ccbe699f91
  /usr/local/libexec/courier-authlib/authdaemond: 1da0c3f1fe42c9f4ca1b49622de65c96ee592bc389080720bfb5b0a6d9f3c808
  /usr/local/libexec/courier-authlib/authsystem.passwd: 1436f5e40c053e16539121cc361df422cd89595534baa477a98607d5cca986b8
  /usr/local/man/man1/authtest.1.gz: dc673da9bc427346c48966802086cf86c71c7013db36cb8d1ff7e24ce3e65a9b
  /usr/local/man/man1/courierlogger.1.gz: 927d169c1e34029f0617dca2975927a78399fdafed629b6cb63a2edf00688321
  /usr/local/man/man3/auth_enumerate.3.gz: 3ddd391d211cbb842d28282c61e54460aed6a5eb8d84e7b555737ee70b7ead00
  /usr/local/man/man3/auth_generic.3.gz: 65adf91f035dab5cc65246ae568644840ab959d2e633e227104facf382f000ea
  /usr/local/man/man3/auth_getoption.3.gz: a6884c3ff865f84825c4b4737cd5a9eebb1cc89e299cd75a68032d6394bbef99
  /usr/local/man/man3/auth_getuserinfo.3.gz: 1d7e939dda45f8c64ba13e5afdc2e949260e4dbf8d949de150062a241b005553
  /usr/local/man/man3/auth_login.3.gz: a98bc44ffdad38c7cff66572ee0b00ee0478cec249ca1f9877178d037befe500
  /usr/local/man/man3/auth_passwd.3.gz: 6517a7e5801d0f5c831d28ae35ff3974a94d6b92b2dc5f931fb6d857698671c4
  /usr/local/man/man3/auth_sasl.3.gz: ca1ca4c36f3b133aab8c7974b0c81e54e36f1ec5866bef3229414ca50c9abdaa
  /usr/local/man/man3/auth_sasl_ex.3.gz: 9e5d22a5141a3ffcd18c7d023ac8b6b973f61d407a010ffc3e9cd33c8b7995b9
  /usr/local/man/man3/authlib.3.gz: 8b3bfe013e2f1feb1b5c855def18b428ad698d7853b457333840b2df362d100f
  /usr/local/sbin/authdaemond: 6e0883cadf215347f244c0af3b369782db0ff62d400b9fd11e19c1c504c602cd
  /usr/local/sbin/authenumerate: 2906a51b316bbaeda2d7374cc9793a6c51c89df4556cbf41ade1ba20a95f0237
  /usr/local/sbin/authtest: 5d32269bdc329c181cc61dfcd3c5dd691ec9020b116f80320f188a425419c109
  /usr/local/sbin/courierlogger: 4b81503b6055f0e1847c01a9a73214bc6f45d0f58b3c15a6618b26b5dd46132f
  /usr/local/share/doc/courier-authlib/AUTHORS: 7712bf70cb8a7fc5ad0acaabf3902f04991b1f5108cba701ef2f30934e301a84
  /usr/local/share/doc/courier-authlib/COPYING: 9f660eed4826bd8dd508a5f198432715e43dc2de5c45aac621823d9cb9db9aa3
  /usr/local/share/doc/courier-authlib/ChangeLog: ad9122ad1debb35b160a90227d412e6fabf74ad328970555b86976f738de906d
  /usr/local/share/doc/courier-authlib/INSTALL: d65754887b8192c415d85bc7cbcb6b0daf033dbfd4622dda5509cba83cd64319
  /usr/local/share/doc/courier-authlib/NEWS: 4cb63eb98f9feaee7c8102ece35a3b0433250bdfdd4e36bbab2031bfab47f54e
  /usr/local/share/doc/courier-authlib/README: b6ecab6c1af9e913b1776abb9330e5772ca25d4945986f15bb1b0abd2f13cd25
  /usr/local/share/doc/courier-authlib/README.authdebug.html: 66cca03e90c5b3023f31767d05eb9460f7a3f1bb480ccf77e5bd591cfb820bf8
  /usr/local/share/doc/courier-authlib/README_authlib.html: e9ab156e9670248b3eba28d109bd03a78838b3677603f816a4cf4af53e159b21
directories:
  /usr/local/share/doc/courier-authlib/: n
  /usr/local/libexec/courier-authlib/: n
  /usr/local/lib/courier-authlib/: n
  /usr/local/etc/authlib/: y
scripts:
  post-install: |
    pw groupshow courier 2>/dev/null || pw groupadd courier -g 465 -h -
    pw user show courier 2>/dev/null || pw useradd courier -u 465 -g 465 -h - -d /var/spool/courier -s /sbin/nologin -c "Courier Mail System"
    /usr/local/share/sysconftool/sysconftool /usr/local/etc/authlib/authdaemonrc.dist && chmod 0600 /usr/local/etc/authlib/authdaemonrc
    chown -Rh courier:courier /usr/local/etc/authlib && chmod 0750 /usr/local/etc/authlib
    /sbin/ldconfig -m /usr/local/lib/courier-authlib
    cd /usr/local
    cd /usr/local
  pre-deinstall: |
    [ -x /usr/local/sbin/authdaemond ] && /usr/local/sbin/authdaemond stop || true
    cmp -s /usr/local/etc/authlib/authdaemonrc.dist /usr/local/etc/authlib/authdaemonrc && rm -f /usr/local/etc/authlib/authdaemonrc 2>/dev/null || true
    rm -rf /var/run/authdaemond 2>/dev/null || true
    cd /usr/local
    cd /usr/local
  post-deinstall: |
    /sbin/ldconfig -R
    cd /usr/local
    cd /usr/local
  install: "#!/bin/sh\n#\n# $FreeBSD: security/courier-authlib/files/pkg-install.in
    300897 2012-07-14 14:29:18Z beat $\n#\n\nPKG_PREFIX=${PKG_PREFIX:=/usr/local}\n\nUSER=courier;\tUID=465\nGROUP=courier;\tGID=465\n\nif
    [ \":$2\" = \":PRE-INSTALL\" ]; then\n    if /usr/sbin/pw groupshow \"${GROUP}\"
    2>/dev/null; then\n        echo \"You already have a group \\\"${GROUP}\\\", so
    I will use it.\"\n    else\n        if /usr/sbin/pw groupadd ${GROUP} -g ${GID}
    -h -\n\tthen\n\t    echo \"Added group \\\"${GROUP}\\\".\"\n\telse\n\t    echo
    \"Adding group \\\"${GROUP}\\\" failed...\"\n            echo \"Please create
    it, and try again.\"\n            exit 1\n        fi\n    fi\n\n    if /usr/sbin/pw
    user show \"${USER}\" 2>/dev/null; then\n        echo \"You already have a user
    \\\"${USER}\\\", so I will use it.\"\n    else\n        if /usr/sbin/pw useradd
    ${USER} -u ${UID} -g ${GROUP} -h - \\\n           -d /var/spool/courier \\\n           -s
    /sbin/nologin \\\n           -c \"Courier Mail System\"\n\tthen\n\t    echo \"Added
    user \\\"${USER}\\\".\"\n\telse\n\t    echo \"Adding user \\\"${USER}\\\" failed...\"\n
    \           echo \"Please create it, and try again.\"\n            exit 1\n        fi\n
    \   fi\nfi\n"
  deinstall: "#!/bin/sh\n#\n# $FreeBSD: security/courier-authlib/files/pkg-deinstall.in
    300897 2012-07-14 14:29:18Z beat $\n#\n\nPKG_PREFIX=${PKG_PREFIX:=/usr/local}\nLOCALSTATEDIR=${LOCALSTATEDIR:=/var/spool/courier}\n\nUSER=courier\nGROUP=courier\n\nif
    [ \":$2\" = \":POST-DEINSTALL\" ]; then\n    if [ -z \"${PACKAGE_BUILDING}\" -a
    -z \"${BATCH}\" ]; then\n        echo \"\"\n        echo \"Warning: Removing user
    courier will also delete any\"\n        echo \"\t undelivered mail in the mail
    queue directories!!!\"\n        echo \"\t Do *not* do it if you're upgrading and
    would like\"\n        echo \"\t courier to continue trying to deliver this mail.\"\n
    \       echo \"\"\n    else\n        AFFIRM='-y'\n    fi\n    [ -d \"$LOCALSTATEDIR\"
    ] && /usr/sbin/chown -Rh ${USER}:${GROUP} \"$LOCALSTATEDIR\"\n    /usr/sbin/rmuser
    ${AFFIRM} ${USER} 2> /dev/null\n    [ -d \"$LOCALSTATEDIR\" ] && /usr/sbin/chown
    root:wheel \"$LOCALSTATEDIR\"\nfi\n\nexit 0\n"
