1999-12-27 02:52:25 +01:00
|
|
|
# New ports collection makefile for: cyrus-sasl
|
|
|
|
# Date created: Nov 1 1999
|
|
|
|
# Whom: hetzels@westbend.net
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-09 20:34:06 +02:00
|
|
|
PORTNAME= cyrus-sasl
|
2002-08-09 21:11:41 +02:00
|
|
|
PORTVERSION= 2.1.7
|
2002-08-29 19:57:31 +02:00
|
|
|
PORTREVISION= 3
|
2002-01-17 16:04:40 +01:00
|
|
|
CATEGORIES= security ipv6
|
2002-08-08 16:04:44 +02:00
|
|
|
MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ \
|
|
|
|
ftp://ftp.westbend.net/pub/cyrus-mail/ \
|
1999-12-27 02:52:25 +01:00
|
|
|
ftp://ftp.hanse.de/sites/transit/mirror/ftp.andrew.cmu.edu/pub/cyrus-mail/
|
|
|
|
|
2002-08-08 16:04:44 +02:00
|
|
|
MAINTAINER= ume@FreeBSD.org
|
1999-12-27 02:52:25 +01:00
|
|
|
|
2002-03-25 10:19:20 +01:00
|
|
|
USE_SUBMAKE= yes
|
2002-05-16 04:45:25 +02:00
|
|
|
USE_OPENSSL= yes
|
1999-12-29 08:06:27 +01:00
|
|
|
|
2000-06-16 23:52:40 +02:00
|
|
|
INSTALLS_SHLIB= yes
|
2000-06-16 12:38:50 +02:00
|
|
|
|
2002-08-08 16:04:44 +02:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}2
|
2002-01-17 16:04:40 +01:00
|
|
|
|
2002-08-08 16:04:44 +02:00
|
|
|
MAN3= sasl.3 sasl_authorize_t.3 sasl_auxprop.3 \
|
|
|
|
sasl_auxprop_getctx.3 sasl_auxprop_request.3 \
|
|
|
|
sasl_callbacks.3 sasl_canon_user_t.3 \
|
|
|
|
sasl_chalprompt_t.3 sasl_checkapop.3 sasl_checkpass.3 \
|
2001-05-21 22:30:49 +02:00
|
|
|
sasl_client_init.3 sasl_client_new.3 sasl_client_start.3 \
|
2002-08-08 16:04:44 +02:00
|
|
|
sasl_client_step.3 sasl_decode.3 sasl_dispose.3 sasl_done.3 \
|
|
|
|
sasl_encode.3 sasl_encodev.3 sasl_errdetail.3 sasl_errors.3 \
|
2001-05-21 22:30:49 +02:00
|
|
|
sasl_errstring.3 sasl_getopt_t.3 sasl_getpath_t.3 \
|
2002-08-08 16:04:44 +02:00
|
|
|
sasl_getprop.3 sasl_getrealm_t.3 sasl_getsecret_t.3 \
|
|
|
|
sasl_getsimple_t.3 sasl_global_listmech.3 \
|
|
|
|
sasl_idle.3 sasl_listmech.3 sasl_log_t.3 \
|
|
|
|
sasl_server_init.3 sasl_server_new.3 sasl_server_start.3 \
|
|
|
|
sasl_server_step.3 sasl_server_userdb_checkpass_t.3 \
|
|
|
|
sasl_server_userdb_setpass_t.3 sasl_setpass.3 sasl_setprop.3 \
|
|
|
|
sasl_user_exists.3 sasl_verifyfile_t.3
|
|
|
|
MAN8= saslauthd.8 sasldblistusers2.8 saslpasswd2.8
|
1999-12-27 02:52:25 +01:00
|
|
|
|
|
|
|
USE_LIBTOOL= YES
|
2000-09-19 04:59:29 +02:00
|
|
|
|
2000-06-11 10:05:34 +02:00
|
|
|
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc \
|
2002-08-08 16:04:44 +02:00
|
|
|
--with-plugindir=${PREFIX}/lib/sasl2 \
|
|
|
|
--with-dbpath=${PREFIX}/etc/sasldb2 \
|
|
|
|
--includedir=${PREFIX}/include \
|
1999-12-29 08:06:27 +01:00
|
|
|
--enable-static \
|
2000-01-24 06:22:22 +01:00
|
|
|
--enable-login \
|
2002-08-08 16:04:44 +02:00
|
|
|
--with-saslauthd \
|
|
|
|
--enable-auth-sasldb \
|
1999-12-29 08:06:27 +01:00
|
|
|
--with-rc4=openssl
|
1999-12-27 02:52:25 +01:00
|
|
|
|
2000-09-19 04:59:29 +02:00
|
|
|
SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
|
|
|
|
PREFIX="${PREFIX}" \
|
|
|
|
TOUCH="${TOUCH}" \
|
2000-10-24 04:03:09 +02:00
|
|
|
MKDIR="${MKDIR}" \
|
2002-01-17 16:04:40 +01:00
|
|
|
REALCURDIR="${.CURDIR}" \
|
2002-08-08 16:04:44 +02:00
|
|
|
WITH_DB3="${WITH_DB3}"
|
2000-06-11 10:05:34 +02:00
|
|
|
|
1999-12-29 08:06:27 +01:00
|
|
|
.if defined(KRB5_HOME) && exists(${KRB5_HOME})
|
2000-10-24 04:03:09 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-gssapi=${KRB5_HOME}
|
2000-11-17 16:06:24 +01:00
|
|
|
.elif defined(HEIMDAL_HOME) && exists(${HEIMDAL_HOME})
|
|
|
|
CONFIGURE_ARGS+= --enable-gssapi=${HEIMDAL_HOME}
|
2000-06-11 10:05:34 +02:00
|
|
|
.else
|
2000-10-24 04:03:09 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-gssapi
|
2000-06-11 10:05:34 +02:00
|
|
|
GSSAPI= "@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if exists(/usr/lib/libkrb.a)
|
2000-10-24 04:03:09 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-krb4
|
2000-06-11 10:05:34 +02:00
|
|
|
.else
|
2000-10-24 04:03:09 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-krb4
|
2000-06-11 10:05:34 +02:00
|
|
|
EBONES= "@comment "
|
1999-12-29 08:06:27 +01:00
|
|
|
.endif
|
1999-12-27 02:52:25 +01:00
|
|
|
|
2000-02-14 05:12:22 +01:00
|
|
|
CONFIGURE_ENV+= LOCALBASE=${LOCALBASE} \
|
|
|
|
OPENSSLINC=${OPENSSLINC} \
|
|
|
|
OPENSSLLIB=${OPENSSLLIB}
|
|
|
|
|
2002-08-08 16:04:44 +02:00
|
|
|
DOCS= AUTHORS COPYING ChangeLog INSTALL NEWS README
|
|
|
|
|
|
|
|
DOC2= ONEWS TODO draft-burdis-cat-srp-sasl-06.txt \
|
|
|
|
draft-ietf-cat-sasl-gssapi-05.txt draft-myers-saslrev-02.txt \
|
|
|
|
draft-sasl-login.txt rfc1321.txt rfc1939.txt rfc2104.txt \
|
|
|
|
rfc2195.txt rfc2222.txt rfc2243.txt rfc2245.txt rfc2289.txt \
|
|
|
|
rfc2444.txt rfc2595.txt rfc2831.txt rfc2945.txt rfc3174.txt \
|
|
|
|
server-plugin-flow.fig testing.txt
|
|
|
|
|
|
|
|
HTDOCS= advanced appconvert gssapi index install macosx options \
|
|
|
|
plugprog programming readme sysadmin upgrading
|
1999-12-27 02:52:25 +01:00
|
|
|
|
2000-06-11 10:05:34 +02:00
|
|
|
PLIST_SUB= PREFIX=${PREFIX} \
|
|
|
|
GSSAPI=${GSSAPI} \
|
|
|
|
EBONES=${EBONES} \
|
2001-08-13 06:01:26 +02:00
|
|
|
DOCSDIR=${DOCSDIR:S/^${PREFIX}\///} \
|
1999-12-27 02:52:25 +01:00
|
|
|
|
2001-12-24 22:58:42 +01:00
|
|
|
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
|
|
|
|
PKGINSTALL= ${WRKDIR}/pkg-install
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
|
2000-09-19 04:59:29 +02:00
|
|
|
pre-fetch:
|
|
|
|
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.sasl
|
|
|
|
|
2002-01-17 16:04:40 +01:00
|
|
|
.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
|
|
|
|
.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
|
|
|
|
.endif
|
|
|
|
|
2001-12-20 13:18:57 +01:00
|
|
|
# Fix sasldb name in pkg-install/deinstall scripts
|
|
|
|
post-patch:
|
2002-01-20 20:23:25 +01:00
|
|
|
@${SED} -e "s;%%SASLDB%%;${SASLDB_NAME};g" \
|
2002-08-29 19:57:31 +02:00
|
|
|
-e "s;%%PWCHECK_METHOD%%;${PWCHECK_METHOD};g" \
|
2001-12-20 13:18:57 +01:00
|
|
|
${.CURDIR}/pkg-install > ${PKGINSTALL}
|
2002-01-20 20:23:25 +01:00
|
|
|
@${SED} -e "s;%%SASLDB%%;${SASLDB_NAME};g" \
|
2002-08-29 19:57:31 +02:00
|
|
|
-e "s;%%PWCHECK_METHOD%%;${PWCHECK_METHOD};g" \
|
2001-12-20 13:18:57 +01:00
|
|
|
${.CURDIR}/pkg-deinstall > ${PKGDEINSTALL}
|
2002-08-29 19:57:31 +02:00
|
|
|
@${SED} -e "s;%%PWCHECK_METHOD%%;${PWCHECK_METHOD};g" \
|
2002-01-20 20:23:25 +01:00
|
|
|
-e "s;%%PREFIX%%;${PREFIX};g" \
|
2001-12-20 13:18:57 +01:00
|
|
|
${.CURDIR}/pkg-message > ${PKGMESSAGE}
|
|
|
|
|
2000-01-24 06:22:22 +01:00
|
|
|
# Create Cyrus user and group
|
|
|
|
pre-install:
|
2000-10-08 12:23:48 +02:00
|
|
|
@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
2000-01-24 06:22:22 +01:00
|
|
|
|
1999-12-27 02:52:25 +01:00
|
|
|
post-install:
|
2002-08-08 16:04:44 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/utils/saslpasswd2.8 \
|
|
|
|
${MAN8PREFIX}/man/man8/saslpasswd2.8
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/utils/sasldblistusers2.8 \
|
|
|
|
${MAN8PREFIX}/man/man8/sasldblistusers2.8
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/saslauthd/saslauthd.mdoc \
|
|
|
|
${MAN8PREFIX}/man/man8/saslauthd.8
|
2002-01-20 20:23:25 +01:00
|
|
|
@${SED} -e "s;%%PREFIX%%;${PREFIX};g" ${PWCHECK_SUB} \
|
2002-08-08 16:04:44 +02:00
|
|
|
${FILESDIR}/saslauthd.sh > ${PREFIX}/etc/rc.d/saslauthd.sh
|
|
|
|
@${CHMOD} 755 ${PREFIX}/etc/rc.d/saslauthd.sh
|
|
|
|
${INSTALL} -d -m 770 -o cyrus -g cyrus /var/state/saslauthd
|
1999-12-27 02:52:25 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2001-12-20 13:18:57 +01:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2002-08-08 16:22:50 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}/html
|
1999-12-27 02:52:25 +01:00
|
|
|
.for file in ${DOCS}
|
2001-08-13 06:01:26 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
1999-12-27 02:52:25 +01:00
|
|
|
.endfor
|
2002-08-08 16:22:50 +02:00
|
|
|
.for file in ${DOC2}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.for file in ${HTDOCS}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/${file}.html ${DOCSDIR}/html
|
|
|
|
.endfor
|
2002-08-29 19:57:31 +02:00
|
|
|
@${INSTALL_DATA} ${FILESDIR}/Sendmail.README ${DOCSDIR}
|
1999-12-27 02:52:25 +01:00
|
|
|
.endif
|
2000-10-08 12:23:48 +02:00
|
|
|
@PKG_PREFIX=${PREFIX} BATCH=${BATCH} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
2000-09-19 04:59:29 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2000-06-11 10:05:34 +02:00
|
|
|
|
|
|
|
post-clean:
|
|
|
|
@${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
|
|
|
|
|
2002-08-08 16:04:44 +02:00
|
|
|
.include <bsd.port.mk>
|