pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc Initial import of cyrus-saslauthd-2.1.17 as security/c...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7a673d113218
branches:  trunk
changeset: 465981:7a673d113218
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Fri Jan 09 19:44:10 2004 +0000

description:
Initial import of cyrus-saslauthd-2.1.17 as security/cyrus-saslauthd.

saslauthd is a daemon process that handles plaintext authentication
requests on behalf of the Cyrus SASL library.  It may be compiled to
support authentication using getpwent, PAM, or an LDAP database.

diffstat:

 doc/CHANGES                                 |   3 +-
 security/cyrus-saslauthd/DEINSTALL          |  11 ++++
 security/cyrus-saslauthd/DESCR              |   2 +
 security/cyrus-saslauthd/Makefile           |  68 +++++++++++++++++++++++++++++
 security/cyrus-saslauthd/PLIST              |   6 ++
 security/cyrus-saslauthd/distinfo           |   7 ++
 security/cyrus-saslauthd/files/saslauthd.sh |  40 +++++++++++++++++
 security/cyrus-saslauthd/patches/patch-aa   |  20 ++++++++
 security/cyrus-saslauthd/patches/patch-ab   |  23 +++++++++
 security/cyrus-saslauthd/patches/patch-ac   |  38 ++++++++++++++++
 10 files changed, 217 insertions(+), 1 deletions(-)

diffs (265 lines):

diff -r 26d79b27bad5 -r 7a673d113218 doc/CHANGES
--- a/doc/CHANGES       Fri Jan 09 19:37:48 2004 +0000
+++ b/doc/CHANGES       Fri Jan 09 19:44:10 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: CHANGES,v 1.4406 2004/01/09 19:38:02 jlam Exp $
+$NetBSD: CHANGES,v 1.4407 2004/01/09 19:45:27 jlam Exp $
 
 Changes to the packages collection and infrastructure in 2004:
 
@@ -131,3 +131,4 @@
        Added darkice-0.13.2 [xtraeme 2004-01-09]
        Added jgrasp-1.6.4 [jschauma 2004-01-09]
        Updated cyrus-sasl2 to 2.1.15nb2 [jlam 2004-01-09]
+       Added cyrus-saslauthd-2.1.17 [jlam 2004-01-09]
diff -r 26d79b27bad5 -r 7a673d113218 security/cyrus-saslauthd/DEINSTALL
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/cyrus-saslauthd/DEINSTALL        Fri Jan 09 19:44:10 2004 +0000
@@ -0,0 +1,11 @@
+#!/bin/sh
+#
+# $NetBSD: DEINSTALL,v 1.1.1.1 2004/01/09 19:44:10 jlam Exp $
+
+SASLSOCKETDIR=@SASLSOCKETDIR@
+
+case ${STAGE} in
+POST-DEINSTALL)
+       ${RM} -rf ${SASLSOCKETDIR}
+       ;;
+esac
diff -r 26d79b27bad5 -r 7a673d113218 security/cyrus-saslauthd/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/cyrus-saslauthd/DESCR    Fri Jan 09 19:44:10 2004 +0000
@@ -0,0 +1,2 @@
+saslauthd is a daemon process that handles plaintext authentication
+requests on behalf of the Cyrus SASL library.
diff -r 26d79b27bad5 -r 7a673d113218 security/cyrus-saslauthd/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/cyrus-saslauthd/Makefile Fri Jan 09 19:44:10 2004 +0000
@@ -0,0 +1,68 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/01/09 19:44:10 jlam Exp $
+
+DISTNAME=      cyrus-sasl-2.1.17
+PKGNAME=       ${DISTNAME:S/sasl/saslauthd/}
+CATEGORIES=    security
+MASTER_SITES=  ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ \
+               ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/OLD-VERSIONS/sasl/
+
+CONFLICTS+=    cyrus-sasl-[0-9]*
+
+PKG_INSTALLATION_TYPES=        overwrite pkgviews
+
+.include "../../mk/bsd.prefs.mk"
+
+WRKSRC=                        ${WRKDIR}/${DISTNAME}/saslauthd
+EXTRACT_ELEMENTS=      ${DISTNAME}/saslauthd
+EXTRACT_ELEMENTS+=     ${DISTNAME}/include/hmac-md5.h
+
+USE_BUILDLINK3=                yes
+GNU_CONFIGURE=         yes
+CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFDIR}
+
+BUILD_DEFS+=           USE_PAM USE_LDAP SASL_USE_GSSAPI
+
+# /var/run/saslauthd matches the default value in configure.
+SASLSOCKETDIR=         /var/run/saslauthd
+FILES_SUBST+=          SASLSOCKETDIR=${SASLSOCKETDIR}
+CONFIGURE_ARGS+=       --with-saslauthd="${SASLSOCKETDIR}"
+
+.if defined(USE_PAM)
+.  include "../../security/PAM/buildlink3.mk"
+CONFIGURE_ARGS+=       --with-pam=${BUILDLINK_PREFIX.pam}
+.endif
+
+.if defined(USE_LDAP)
+.  include "../../databases/openldap/buildlink3.mk"
+.  include "../../security/openssl/buildlink3.mk"
+CONFIGURE_ARGS+=       --with-ldap=${BUILDLINK_PREFIX.openldap}
+CONFIGURE_ARGS+=       --with-openssl=${SSLBASE}
+.endif
+
+.if defined(SASL_USE_GSSAPI) && !empty(SASL_USE_GSSAPI:M[yY][eE][sS])
+CONFIGURE_ARGS+=       --enable-gssapi=/usr    # GSSAPI
+.  if exists(/usr/include/krb5/krb5.h)
+CPPFLAGS+=             -I/usr/include/krb5
+.  endif
+.endif
+
+USE_PKGINSTALL=                yes
+DEINSTALL_EXTRA_TMPL=  ${PKGDIR}/DEINSTALL
+RCD_SCRIPTS=           saslauthd
+
+post-configure:
+       ${LN} -sf saslauthd.h ${WRKSRC}/config.h
+
+post-build:
+       cd ${WRKSRC}; for f in LDAP_SASLAUTHD saslauthd.mdoc; do        \
+               ${SED}  -e "s|/usr/local/etc/|${PKG_SYSCONFDIR}/|g"     \
+                       $$f > $$f.new;                                  \
+               ${MV} -f $$f.new $$f;                                   \
+       done
+
+post-install:
+       ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/cyrus-saslauthd
+       ${INSTALL_DATA} ${WRKSRC}/LDAP_SASLAUTHD \
+               ${PREFIX}/share/examples/cyrus-saslauthd
+
+.include "../../mk/bsd.pkg.mk"
diff -r 26d79b27bad5 -r 7a673d113218 security/cyrus-saslauthd/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/cyrus-saslauthd/PLIST    Fri Jan 09 19:44:10 2004 +0000
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/01/09 19:44:10 jlam Exp $
+etc/rc.d/saslauthd
+man/man8/saslauthd.8
+sbin/saslauthd
+share/examples/cyrus-saslauthd/LDAP_SASLAUTHD
+@dirrm share/examples/cyrus-saslauthd
diff -r 26d79b27bad5 -r 7a673d113218 security/cyrus-saslauthd/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/cyrus-saslauthd/distinfo Fri Jan 09 19:44:10 2004 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/01/09 19:44:10 jlam Exp $
+
+SHA1 (cyrus-sasl-2.1.17.tar.gz) = c91e073274279ea59d8ca9514559140e23e3be57
+Size (cyrus-sasl-2.1.17.tar.gz) = 1499725 bytes
+SHA1 (patch-aa) = cad401f765bcebf19f8ebb87af3aae0f2c1a46d0
+SHA1 (patch-ab) = 34a7ec01af30035b433e070607572798e8325b22
+SHA1 (patch-ac) = 79267ad3e175632728e43fb2ba159ab411e7ff3c
diff -r 26d79b27bad5 -r 7a673d113218 security/cyrus-saslauthd/files/saslauthd.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/cyrus-saslauthd/files/saslauthd.sh       Fri Jan 09 19:44:10 2004 +0000
@@ -0,0 +1,40 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: saslauthd.sh,v 1.1.1.1 2004/01/09 19:44:10 jlam Exp $
+#
+# The saslauthd daemon allows cleartext UNIX password authentication via
+# several authentication mechanisms with Cyrus SASL.
+#
+# PROVIDE: saslauthd
+# REQUIRE: DAEMON
+
+if [ -f /etc/rc.subr ]; then
+       . /etc/rc.subr
+fi
+
+name="saslauthd"
+rcvar="${name}"
+command="@PREFIX@/sbin/saslauthd"
+start_precmd="saslauthd_precmd"
+
+# Default to authenticating against local password database.
+if [ -z "${saslauthd_flags}" ]; then
+       saslauthd_flags="-a getpwent"
+fi
+
+saslauthd_precmd()
+{
+        if [ ! -d @SASLSOCKETDIR@ ]; then
+                @MKDIR@ @SASLSOCKETDIR@
+                @CHMOD@ 0755 @SASLSOCKETDIR@
+                @CHOWN@ @ROOT_USER@ @SASLSOCKETDIR@
+        fi
+}
+
+if [ -f /etc/rc.subr ]; then
+       load_rc_config $name
+       run_rc_command "$1"
+else
+       @ECHO@ -n " ${name}"
+       ${command} ${saslauthd_flags} ${command_args}
+fi
diff -r 26d79b27bad5 -r 7a673d113218 security/cyrus-saslauthd/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/cyrus-saslauthd/patches/patch-aa Fri Jan 09 19:44:10 2004 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/01/09 19:44:10 jlam Exp $
+
+--- Makefile.am.orig   Wed Sep 24 15:36:09 2003
++++ Makefile.am
+@@ -30,11 +30,8 @@ INCLUDES    = -I$(top_srcdir)/include -I$(t
+ DEFS            = @DEFS@ -DSASLAUTHD_CONF_FILE_DEFAULT=\"@sysconfdir@/saslauthd.conf\" -I. -I$(srcdir) -I..
+ 
+ 
+-dist-hook: saslauthd.8
++dist-hook: saslauthd.mdoc
+ 
+-saslauthd.8: saslauthd.mdoc
+-      nroff -mdoc $(srcdir)/saslauthd.mdoc > $(srcdir)/saslauthd.8
+-
+-install-data-local: saslauthd.8
+-      $(mkinstalldirs) $(DESTDIR)$(mandir)/cat8
+-      $(INSTALL_DATA) $(srcdir)/saslauthd.8 $(DESTDIR)$(mandir)/cat8/saslauthd.8
++install-data-local: saslauthd.mdoc
++      $(mkinstalldirs) $(DESTDIR)$(mandir)/man8
++      $(INSTALL_DATA) $(srcdir)/saslauthd.mdoc $(DESTDIR)$(mandir)/man8/saslauthd.8
diff -r 26d79b27bad5 -r 7a673d113218 security/cyrus-saslauthd/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/cyrus-saslauthd/patches/patch-ab Fri Jan 09 19:44:10 2004 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-ab,v 1.1.1.1 2004/01/09 19:44:11 jlam Exp $
+
+--- Makefile.in.orig   Mon Dec  1 11:35:12 2003
++++ Makefile.in
+@@ -602,14 +602,11 @@ uninstall-am: uninstall-info-am uninstal
+       uninstall-sbinPROGRAMS
+ 
+ 
+-dist-hook: saslauthd.8
++dist-hook: saslauthd.mdoc
+ 
+-saslauthd.8: saslauthd.mdoc
+-      nroff -mdoc $(srcdir)/saslauthd.mdoc > $(srcdir)/saslauthd.8
+-
+-install-data-local: saslauthd.8
+-      $(mkinstalldirs) $(DESTDIR)$(mandir)/cat8
+-      $(INSTALL_DATA) $(srcdir)/saslauthd.8 $(DESTDIR)$(mandir)/cat8/saslauthd.8
++install-data-local: saslauthd.mdoc
++      $(mkinstalldirs) $(DESTDIR)$(mandir)/man8
++      $(INSTALL_DATA) $(srcdir)/saslauthd.mdoc $(DESTDIR)$(mandir)/man8/saslauthd.8
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
+ .NOEXPORT:
diff -r 26d79b27bad5 -r 7a673d113218 security/cyrus-saslauthd/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/cyrus-saslauthd/patches/patch-ac Fri Jan 09 19:44:10 2004 +0000
@@ -0,0 +1,38 @@
+$NetBSD: patch-ac,v 1.1.1.1 2004/01/09 19:44:11 jlam Exp $
+
+--- md5global.h.orig   Fri Mar 28 14:59:24 2003
++++ md5global.h
+@@ -3,6 +3,13 @@
+ #ifndef MD5GLOBAL_H
+ #define MD5GLOBAL_H
+ 
++#ifdef HAVE_STDINT_H
++#include <stdint.h>
++#endif
++#ifdef HAVE_INTTYPES_H
++#include <inttypes.h>
++#endif
++
+ /* PROTOTYPES should be set to one if and only if the compiler supports
+   function argument prototyping.
+ The following makes PROTOTYPES default to 0 if it has not already
+@@ -15,13 +22,13 @@ The following makes PROTOTYPES default t
+ /* POINTER defines a generic pointer type */
+ typedef unsigned char *POINTER;
+ 
+-typedef signed char INT1;             /*  8 bits */
+-typedef short INT2;                   /* 16 bits */
+-typedef int INT4;                     /* 32 bits */
++typedef int8_t INT1;          /*  8 bits */
++typedef int16_t INT2;         /* 16 bits */
++typedef int32_t INT4;         /* 32 bits */
+ /* There is no 64 bit type */
+-typedef unsigned char UINT1;          /*  8 bits */
+-typedef unsigned short UINT2;         /* 16 bits */
+-typedef unsigned int UINT4;           /* 32 bits */
++typedef uint8_t UINT1;                /*  8 bits */
++typedef uint16_t UINT2;               /* 16 bits */
++typedef uint32_t UINT4;               /* 32 bits */
+ /* There is no 64 bit type */
+ 
+ /* PROTO_LIST is defined depending on how PROTOTYPES is defined above.



Home | Main Index | Thread Index | Old Index