1999-12-27 01:52:25 +00:00
|
|
|
# New ports collection makefile for: cyrus-sasl
|
|
|
|
# Date created: Nov 1 1999
|
|
|
|
# Whom: hetzels@westbend.net
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-09 18:34:06 +00:00
|
|
|
PORTNAME= cyrus-sasl
|
2000-08-12 19:14:50 +00:00
|
|
|
PORTVERSION= 1.5.24
|
2000-11-01 11:59:18 +00:00
|
|
|
PORTREVISION= 3
|
1999-12-27 01:52:25 +00:00
|
|
|
CATEGORIES= security
|
|
|
|
MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ \
|
2000-06-29 07:03:02 +00:00
|
|
|
${MASTER_SITE_LOCAL} \
|
1999-12-27 01:52:25 +00:00
|
|
|
ftp://ftp.hanse.de/sites/transit/mirror/ftp.andrew.cmu.edu/pub/cyrus-mail/
|
2000-06-29 07:03:02 +00:00
|
|
|
MASTER_SITE_SUBDIR= stb/mirror/ftp.andrew.cmu.edu/pub/cyrus-mail
|
1999-12-27 01:52:25 +00:00
|
|
|
|
|
|
|
MAINTAINER= hetzels@westbend.net
|
|
|
|
|
2000-09-22 01:59:06 +00:00
|
|
|
USE_OPENSSL= YES
|
1999-12-29 07:06:27 +00:00
|
|
|
|
2000-06-16 21:52:40 +00:00
|
|
|
INSTALLS_SHLIB= yes
|
2000-06-16 10:38:50 +00:00
|
|
|
|
1999-12-27 01:52:25 +00:00
|
|
|
Y2K= http://asg.web.cmu.edu/cyrus/imapd/y2k.html
|
|
|
|
|
2000-06-11 08:05:34 +00:00
|
|
|
MAN3= sasl.3 sasl_authorize_t.3 sasl_callbacks.3 sasl_checkpass.3 \
|
|
|
|
sasl_client_init.3 sasl_client_new.3 sasl_client_start.3 sasl_client_step.3 \
|
|
|
|
sasl_decode.3 sasl_done.3 sasl_encode.3 sasl_errstring.3 sasl_getopt_t.3 \
|
|
|
|
sasl_getpath_t.3 sasl_getprop.3 sasl_getsecret_t.3 sasl_getsimple_t.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_setprop.3 sasl_usererr.3
|
|
|
|
MAN8= sasldblistusers.8 saslpasswd.8
|
1999-12-27 01:52:25 +00:00
|
|
|
|
2000-09-19 02:59:29 +00:00
|
|
|
USE_AUTOMAKE= YES
|
1999-12-27 01:52:25 +00:00
|
|
|
USE_LIBTOOL= YES
|
2000-09-19 02:59:29 +00:00
|
|
|
AUTOHEADER= autoheader
|
|
|
|
AUTOMAKE= automake --add-missing --include-deps
|
|
|
|
|
2000-06-11 08:05:34 +00:00
|
|
|
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc \
|
1999-12-27 01:52:25 +00:00
|
|
|
--with-plugindir=${PREFIX}/lib/sasl \
|
|
|
|
--with-dbpath=${PREFIX}/etc/sasldb \
|
1999-12-29 07:06:27 +00:00
|
|
|
--includedir=${PREFIX}/include/sasl \
|
|
|
|
--enable-static \
|
2000-01-24 05:22:22 +00:00
|
|
|
--enable-login \
|
|
|
|
--with-pwcheck=/var/pwcheck \
|
2000-10-24 02:03:09 +00:00
|
|
|
--with-dblib=ndbm \
|
1999-12-29 07:06:27 +00:00
|
|
|
--with-rc4=openssl
|
1999-12-27 01:52:25 +00:00
|
|
|
|
2000-09-19 02:59:29 +00:00
|
|
|
SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
|
|
|
|
PREFIX="${PREFIX}" \
|
|
|
|
TOUCH="${TOUCH}" \
|
2000-10-24 02:03:09 +00:00
|
|
|
MKDIR="${MKDIR}" \
|
|
|
|
ENABLE_DB3="${ENABLE_DB3}" \
|
|
|
|
ENABLE_MYSQL="${ENABLE_MYSQL}" \
|
|
|
|
ENABLE_LDAP="${ENABLE_LDAP}"
|
|
|
|
|
|
|
|
# ENABLE_* variables can be used by depending ports to enable options.
|
2000-09-19 02:59:29 +00:00
|
|
|
|
|
|
|
# JavaSASL needs someone to look at to get it to build
|
2000-06-11 08:05:34 +00:00
|
|
|
#JAVADIR= jdk1.1.8
|
|
|
|
#JAVALIBDIR= ${PREFIX}/${JAVADIR}/lib/i386/green_threads/
|
|
|
|
|
|
|
|
#.if defined(USE_JAVA) || exists(${LOCALBASE}/${JAVADIR}/bin/java)
|
|
|
|
#BUILD_DEPENDS= ${LOCALBASE}/${JAVADIR}/bin/java:${PORTSDIR}/java/jdk
|
|
|
|
#CONFIGURE_ARGS+= --with-java \
|
|
|
|
# --with-javabase=${LOCALBASE}/include
|
|
|
|
#
|
|
|
|
#CONFIGURE_ENV= JAVAC="${LOCALBASE}/${JAVADIR}/bin/javac" \
|
|
|
|
# JAVAH="${LOCALBASE}/${JAVADIR}/bin/javah" \
|
|
|
|
# JAVADOC="${LOCALBASE}/${JAVADIR}/bin/javadoc"
|
|
|
|
#.endif
|
|
|
|
|
1999-12-29 07:06:27 +00:00
|
|
|
.if defined(KRB5_HOME) && exists(${KRB5_HOME})
|
2000-10-24 02:03:09 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-gssapi=${KRB5_HOME}
|
2000-06-11 08:05:34 +00:00
|
|
|
.else
|
2000-10-24 02:03:09 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-gssapi
|
2000-06-11 08:05:34 +00:00
|
|
|
GSSAPI= "@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if exists(/usr/lib/libkrb.a)
|
2000-10-24 02:03:09 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-krb4
|
2000-06-11 08:05:34 +00:00
|
|
|
.else
|
2000-10-24 02:03:09 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-krb4
|
2000-06-11 08:05:34 +00:00
|
|
|
EBONES= "@comment "
|
1999-12-29 07:06:27 +00:00
|
|
|
.endif
|
1999-12-27 01:52:25 +00:00
|
|
|
|
2000-02-14 04:12:22 +00:00
|
|
|
CONFIGURE_ENV+= LOCALBASE=${LOCALBASE} \
|
|
|
|
OPENSSLINC=${OPENSSLINC} \
|
|
|
|
OPENSSLLIB=${OPENSSLLIB}
|
|
|
|
|
2000-06-11 08:05:34 +00:00
|
|
|
DOCS= AUTHORS COPYING ChangeLog INSTALL NEWS README TODO
|
1999-12-27 01:52:25 +00:00
|
|
|
|
2000-06-11 08:05:34 +00:00
|
|
|
DOC2= draft-leach-digest-sasl-05.txt \
|
|
|
|
draft-newman-auth-scram-03.txt \
|
|
|
|
rfc1321.txt rfc2095.txt rfc2104.txt \
|
|
|
|
rfc2222.txt rfc2245.txt
|
1999-12-27 01:52:25 +00:00
|
|
|
|
2000-06-11 08:05:34 +00:00
|
|
|
HTDOCS= gssapi index programming sysadmin
|
|
|
|
|
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
NODOCS= "@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
PLIST_SUB= PREFIX=${PREFIX} \
|
|
|
|
GSSAPI=${GSSAPI} \
|
|
|
|
EBONES=${EBONES} \
|
|
|
|
NOPORTDOCS=${NODOCS}
|
1999-12-27 01:52:25 +00:00
|
|
|
|
2000-09-19 02:59:29 +00:00
|
|
|
pre-fetch:
|
|
|
|
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.sasl
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
@(cd ${WRKSRC} && ${AUTOHEADER})
|
|
|
|
|
2000-01-24 05:22:22 +00:00
|
|
|
# Create Cyrus user and group
|
|
|
|
pre-install:
|
2000-10-08 10:23:48 +00:00
|
|
|
@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
2000-01-24 05:22:22 +00:00
|
|
|
|
1999-12-27 01:52:25 +00:00
|
|
|
post-install:
|
2000-09-19 02:59:29 +00:00
|
|
|
@${SED} -e "/%%PREFIX%%/s##${PREFIX}#g" ${FILESDIR}/pwcheck.sh \
|
2000-01-24 05:22:22 +00:00
|
|
|
> ${PREFIX}/etc/rc.d/pwcheck.sh
|
|
|
|
@${CHMOD} 755 ${PREFIX}/etc/rc.d/pwcheck.sh
|
2000-11-02 00:16:45 +00:00
|
|
|
${INSTALL} -d -m 770 -o cyrus -g cyrus /var/pwcheck
|
1999-12-27 01:52:25 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2000-01-24 05:22:22 +00:00
|
|
|
@${MKDIR} ${PREFIX}/share/doc/SASL/html
|
1999-12-27 01:52:25 +00:00
|
|
|
.for file in ${DOCS}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/SASL
|
|
|
|
.endfor
|
|
|
|
.for file in ${DOC2}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/${file} ${PREFIX}/share/doc/SASL
|
|
|
|
.endfor
|
2000-10-25 16:56:35 +00:00
|
|
|
@${INSTALL_DATA} ${FILESDIR}/Sendmail.README ${PREFIX}/share/doc/SASL
|
1999-12-27 01:52:25 +00:00
|
|
|
.for file in ${HTDOCS}
|
2000-01-24 05:22:22 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/${file}.html ${PREFIX}/share/doc/SASL/html
|
1999-12-27 01:52:25 +00:00
|
|
|
.endfor
|
|
|
|
.endif
|
2000-10-08 10:23:48 +00:00
|
|
|
@PKG_PREFIX=${PREFIX} BATCH=${BATCH} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
2000-09-19 02:59:29 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2000-06-11 08:05:34 +00:00
|
|
|
|
|
|
|
post-clean:
|
|
|
|
@${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
|
|
|
|
|
2000-09-19 02:59:29 +00:00
|
|
|
.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
|
2000-06-11 08:05:34 +00:00
|
|
|
.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
|
1999-12-29 07:06:27 +00:00
|
|
|
.endif
|
1999-12-27 01:52:25 +00:00
|
|
|
|
2000-09-19 02:59:29 +00:00
|
|
|
.include <bsd.port.mk>
|