summaryrefslogtreecommitdiff
path: root/security/courier-authlib/Makefile
diff options
context:
space:
mode:
authorjlam <jlam>2005-02-10 03:21:30 +0000
committerjlam <jlam>2005-02-10 03:21:30 +0000
commit4fabe10c94f8d49ad57d7408ced681bd7622f7b5 (patch)
tree469140133f4bfe9996f6e45301d5f7838c9bfa9e /security/courier-authlib/Makefile
parent62b25995475e28767213653cd2187c75c8d8d39e (diff)
downloadpkgsrc-4fabe10c94f8d49ad57d7408ced681bd7622f7b5.tar.gz
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 (limited to 'security/courier-authlib/Makefile')
-rw-r--r--security/courier-authlib/Makefile79
1 files changed, 79 insertions, 0 deletions
diff --git a/security/courier-authlib/Makefile b/security/courier-authlib/Makefile
new file mode 100644
index 00000000000..c1b7998c0c6
--- /dev/null
+++ b/security/courier-authlib/Makefile
@@ -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"