pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/courier-authlib Import courier-authlib-0.53 a...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/290aca2388e8
branches:  trunk
changeset: 488844:290aca2388e8
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Thu Feb 10 03:21:30 2005 +0000

description:
Import courier-authlib-0.53 as security/courier-authlib.

The Courier authentication library provides authentication services for
other Courier applications.  In this context, the term "authentication"
refers to the following functions:

    1. Take a userid or a loginid, and a password. Determine whether the
       loginid and the password are valid.
    2. Given a userid, obtain the following information about the userid:

         A. The account's home directory.
         B. The numeric system userid and groupid that owns all files
            associated with this account.
         C. The location of the account's maildir.
         D. Any maildir quota defined for this account. See the Courier
            documentation for more information on maildir quotas.
         E. Other miscellaneous account-specific options.

    3. Change the password associated with a loginid.
    4. Obtain a complete list of all loginids.

diffstat:

 security/courier-authlib/DEINSTALL            |  25 ++++++
 security/courier-authlib/DESCR                |  18 ++++
 security/courier-authlib/MESSAGE              |   8 ++
 security/courier-authlib/Makefile             |  79 +++++++++++++++++++++
 security/courier-authlib/Makefile.common      |  17 ++++
 security/courier-authlib/PLIST                |  30 ++++++++
 security/courier-authlib/distinfo             |   5 +
 security/courier-authlib/files/authdaemond.sh |  46 ++++++++++++
 security/courier-authlib/options.mk           |  93 +++++++++++++++++++++++++
 security/courier-authlib/patches/patch-aa     |  98 +++++++++++++++++++++++++++
 10 files changed, 419 insertions(+), 0 deletions(-)

diffs (truncated from 459 to 300 lines):

diff -r 405804f23c97 -r 290aca2388e8 security/courier-authlib/DEINSTALL
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/courier-authlib/DEINSTALL        Thu Feb 10 03:21:30 2005 +0000
@@ -0,0 +1,25 @@
+# $NetBSD: DEINSTALL,v 1.1.1.1 2005/02/10 03:21:30 jlam Exp $
+
+case ${STAGE} in
+DEINSTALL)
+       #
+       # Note some additional files that are may be created by the
+       # sysadmin that can probably be removed.
+       #
+       if ${TEST} -x ./+FILES; then
+               { ${ECHO} "# FILE: ${PKG_SYSCONFDIR}/userdb . /dev/null";
+                 ${ECHO} "# FILE: ${PKG_SYSCONFDIR}/userdb.dat . /dev/null";
+                 ${ECHO} "# FILE: ${PKG_SYSCONFDIR}/userdbshadow.dat . /dev/null";
+               } >> ./+FILES
+       fi
+       ;;
+
+POST-DEINSTALL)
+       #
+       # Unconditionally remove authdaemon state directory as it contains
+       # files and sockets that authdaemond creates every time it is
+       # started.
+       #
+       ${RM} -rf @AUTHDAEMONVAR@
+       ;;
+esac
diff -r 405804f23c97 -r 290aca2388e8 security/courier-authlib/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/courier-authlib/DESCR    Thu Feb 10 03:21:30 2005 +0000
@@ -0,0 +1,18 @@
+The Courier authentication library provides authentication services for
+other Courier applications.  In this context, the term "authentication"
+refers to the following functions:
+
+    1. Take a userid or a loginid, and a password. Determine whether the
+       loginid and the password are valid.
+    2. Given a userid, obtain the following information about the userid:
+
+         A. The account's home directory.
+         B. The numeric system userid and groupid that owns all files
+            associated with this account.
+         C. The location of the account's maildir.
+         D. Any maildir quota defined for this account. See the Courier
+            documentation for more information on maildir quotas.
+         E. Other miscellaneous account-specific options.
+
+    3. Change the password associated with a loginid.
+    4. Obtain a complete list of all loginids.
diff -r 405804f23c97 -r 290aca2388e8 security/courier-authlib/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/courier-authlib/MESSAGE  Thu Feb 10 03:21:30 2005 +0000
@@ -0,0 +1,8 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2005/02/10 03:21:30 jlam Exp $
+
+To enable changing the system password via a Courier authentication
+module, the following packages will need to be installed:
+
+    tcl-expect Tcl extension for scripting of interactive programs
+===========================================================================
diff -r 405804f23c97 -r 290aca2388e8 security/courier-authlib/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/courier-authlib/Makefile Thu Feb 10 03:21:30 2005 +0000
@@ -0,0 +1,79 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/02/10 03:21:30 jlam Exp $
+
+.include "Makefile.common"
+
+DISTNAME=      courier-authlib-0.53
+COMMENT=       Courier Authentication Library
+CATEGORIES=    security
+MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=courier/}
+EXTRACT_SUFX=  .tar.bz2
+
+CONFLICTS+=    courier-auth-[0-9]*
+CONFLICTS+=    courier-authldap-[0-9]*
+CONFLICTS+=    courier-authmysql-[0-9]*
+CONFLICTS+=    courier-authpgsql-[0-9]*
+
+USE_GNU_TOOLS+=                make
+USE_BUILDLINK3=                yes
+USE_LIBTOOL=           yes
+PKG_SYSCONFSUBDIR=     authlib
+
+USE_PERL5=             run
+REPLACE_PERL=          sysconftool
+
+CONFIGURE_ARGS+=       --with-pkgconfdir=${PKG_SYSCONFDIR}
+CONFIGURE_ARGS+=       --without-stdheaderdir
+
+AUTHDAEMONVAR?=                ${VARBASE}/authdaemon
+CONFIGURE_ARGS+=       --with-authdaemonvar=${AUTHDAEMONVAR}
+OWN_DIRS_PERMS=                ${AUTHDAEMONVAR} ${COURIER_USER} ${COURIER_GROUP} 0750
+FILES_SUBST+=          AUTHDAEMONVAR=${AUTHDAEMONVAR}
+
+# Expect is used to change the password from within the courier webmail
+# application (sqwebmail).
+#
+CONFIGURE_ENV+=                EXPECT="${LOCALBASE}/bin/expect"
+
+AUTHLIBDIR=            lib/courier-authlib
+AUTHLIBEXECDIR=                libexec/courier-authlib
+AUTHEXAMPLEDIR=                share/examples/courier-authlib
+FILES_SUBST+=          AUTHLIBEXECDIR=${AUTHLIBEXECDIR}
+FILES_SUBST+=          AUTHEXAMPLEDIR=${AUTHEXAMPLEDIR}
+
+EGDIR=                 ${PREFIX}/${AUTHEXAMPLEDIR}
+RCD_SCRIPTS=           authdaemond
+GEN_FILES=             authdaemonrc
+FILES_SUBST+=          GEN_FILES=${GEN_FILES:Q}
+AUTHLIB_PLIST=         ${AUTHEXAMPLEDIR}/authdaemonrc.dist
+
+DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/DEINSTALL
+
+# Install the example config files into ${EGDIR}.
+INSTALL_MAKE_FLAGS=    ${MAKE_FLAGS}                                   \
+                       authdaemonrc=${EGDIR}/authdaemonrc              \
+                       authldaprc=${EGDIR}/authldaprc                  \
+                       authmysqlrc=${EGDIR}/authmysqlrc                \
+                       authpgsqlrc=${EGDIR}/authpgsqlrc
+
+.include "options.mk"
+.include "../../devel/libltdl/buildlink3.mk"
+
+.for _file_ in ${GEN_FILES}
+CONF_FILES_PERMS+=     ${EGDIR}/${_file_}.dist ${PKG_SYSCONFDIR}/${_file_} \
+                       ${COURIER_USER} ${COURIER_GROUP} 0660
+.endfor
+
+.for _file_ in ${AUTHLIB_PLIST}
+GENERATE_PLIST+=       ${TEST} -f ${PREFIX}/${_file_} && ${ECHO} "${_file_}";
+.endfor
+GENERATE_PLIST+=       ${ECHO} "@dirrm ${AUTHEXAMPLEDIR}";
+GENERATE_PLIST+=       ${ECHO} "@dirrm ${AUTHLIBEXECDIR}";
+GENERATE_PLIST+=       ${ECHO} "@dirrm ${AUTHLIBDIR}";
+
+INSTALLATION_DIRS=     ${EGDIR} ${PREFIX}/sbin
+
+post-install:
+       ${INSTALL_DATA} ${WRKSRC}/authldap.schema ${EGDIR}
+       ${INSTALL_SCRIPT} ${WRKSRC}/sysconftool ${PREFIX}/sbin
+
+.include "../../mk/bsd.pkg.mk"
diff -r 405804f23c97 -r 290aca2388e8 security/courier-authlib/Makefile.common
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/courier-authlib/Makefile.common  Thu Feb 10 03:21:30 2005 +0000
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile.common,v 1.1.1.1 2005/02/10 03:21:30 jlam Exp $
+
+MAINTAINER=            jlam%NetBSD.org@localhost
+HOMEPAGE=              http://www.courier-mta.org/
+
+COURIER_USER?=         courier
+COURIER_GROUP?=                courier
+FILES_SUBST+=          COURIER_USER=${COURIER_USER}
+FILES_SUBST+=          COURIER_GROUP=${COURIER_GROUP}
+
+USE_PKGINSTALL=                yes
+PKG_GROUPS=            ${COURIER_GROUP}
+PKG_USERS=             ${COURIER_USER}:${COURIER_GROUP}::Courier\\ user
+
+GNU_CONFIGURE=         yes
+CONFIGURE_ARGS+=       --with-mailuser=${COURIER_USER}
+CONFIGURE_ARGS+=       --with-mailgroup=${COURIER_GROUP}
diff -r 405804f23c97 -r 290aca2388e8 security/courier-authlib/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/courier-authlib/PLIST    Thu Feb 10 03:21:30 2005 +0000
@@ -0,0 +1,30 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/02/10 03:21:30 jlam Exp $
+bin/courierauthconfig
+include/courier_auth_config.h
+include/courierauth.h
+include/courierauthdebug.h
+include/courierauthsasl.h
+include/courierauthsaslclient.h
+lib/courier-authlib/libcourierauth.la
+lib/courier-authlib/libcourierauthcommon.la
+lib/courier-authlib/libcourierauthsasl.la
+lib/courier-authlib/libcourierauthsaslclient.la
+libexec/courier-authlib/authdaemond
+libexec/courier-authlib/authsystem.passwd
+man/man1/courierlogger.1
+man/man3/auth_enumerate.3
+man/man3/auth_generic.3
+man/man3/auth_getoption.3
+man/man3/auth_getuserinfo.3
+man/man3/auth_login.3
+man/man3/auth_passwd.3
+man/man3/auth_sasl.3
+man/man3/authlib.3
+man/man8/makeuserdb.8
+man/man8/userdb.8
+man/man8/userdbpw.8
+sbin/authdaemond
+sbin/authenumerate
+sbin/authtest
+sbin/courierlogger
+sbin/sysconftool
diff -r 405804f23c97 -r 290aca2388e8 security/courier-authlib/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/courier-authlib/distinfo Thu Feb 10 03:21:30 2005 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/02/10 03:21:30 jlam Exp $
+
+SHA1 (courier-authlib-0.53.tar.bz2) = 98ee21462a81452c4b637b66b1e71ab1d49e0caa
+Size (courier-authlib-0.53.tar.bz2) = 1966836 bytes
+SHA1 (patch-aa) = ef333fefd1331d577d9fdad50d7dcc6e28283d58
diff -r 405804f23c97 -r 290aca2388e8 security/courier-authlib/files/authdaemond.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/courier-authlib/files/authdaemond.sh     Thu Feb 10 03:21:30 2005 +0000
@@ -0,0 +1,46 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: authdaemond.sh,v 1.1.1.1 2005/02/10 03:21:31 jlam Exp $
+#
+# Courier user authentication daemon
+#
+# PROVIDE: authdaemond
+# REQUIRE: LOGIN
+
+. /etc/rc.subr
+
+name="authdaemond"
+rcvar=${name}
+command="@PREFIX@/sbin/courierlogger"
+ctl_command="@PREFIX@/@AUTHLIBEXECDIR@/authdaemond"
+pidfile="@AUTHDAEMONVAR@/pid"
+required_files="@PKG_SYSCONFDIR@/authdaemonrc"
+
+start_cmd="courier_doit start"
+stop_cmd="courier_doit stop"
+
+courier_doit()
+{
+       action=$1
+       case ${action} in
+       start)
+               for f in $required_files; do
+                       if [ ! -r "$f" ]; then
+                               @ECHO@ 1>&2 "$0: WARNING: $f is not readable"
+                               if [ -z $rc_force ]; then
+                                       return 1
+                               fi
+                       fi
+               done
+               @ECHO@ "Starting ${name}."
+               ;;
+       stop)
+               @ECHO@ "Stopping ${name}."
+               ;;
+       esac
+
+       ${ctl_command} ${action}
+}
+
+load_rc_config $name
+run_rc_command "$1"
diff -r 405804f23c97 -r 290aca2388e8 security/courier-authlib/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/courier-authlib/options.mk       Thu Feb 10 03:21:30 2005 +0000
@@ -0,0 +1,93 @@
+# $NetBSD: options.mk,v 1.1.1.1 2005/02/10 03:21:31 jlam Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.courier-authlib
+PKG_SUPPORTED_OPTIONS= PAM bdb ldap mysql pgsql
+
+.if !defined(PKG_OPTIONS.courier-auth)
+PKG_DEFAULT_OPTIONS+=  bdb
+.endif
+.include "../../mk/bsd.options.mk"
+
+###
+### UNIX (shadow) password authentication
+###
+AUTHLIB_PLIST+=                ${AUTHLIBDIR}/libauthpwd.la
+AUTHLIB_PLIST+=                ${AUTHLIBDIR}/libauthshadow.la
+
+###
+### PAM authentication
+###
+.if !empty(PKG_OPTIONS:MPAM)
+.  include "../../mk/pam.buildlink3.mk"
+CONFIGURE_ARGS+=       --with-authpam
+AUTHLIB_PLIST+=                ${AUTHLIBDIR}/libauthpam.la
+.else
+CONFIGURE_ARGS+=       --without-authpam
+.endif
+
+###
+### Berkeley DB password authentication
+###
+.if !empty(PKG_OPTIONS:Mbdb)
+USE_DB185=             yes
+.  include "../../mk/bdb.buildlink3.mk"
+CONFIGURE_ARGS+=       --with-db=db
+CONFIGURE_ARGS+=       --with-authuserdb
+AUTHLIB_PLIST+=                ${AUTHLIBDIR}/libauthuserdb.la



Home | Main Index | Thread Index | Old Index