1999-12-27 01:52:25 +00:00
|
|
|
# New ports collection makefile for: cyrus-sasl
|
|
|
|
# Version required: 1.5.13
|
|
|
|
# Date created: Nov 1 1999
|
|
|
|
# Whom: hetzels@westbend.net
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= cyrus-sasl-${SASL_VER}
|
|
|
|
CATEGORIES= security
|
|
|
|
MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ \
|
2000-02-08 09:29:51 +00:00
|
|
|
http://people.FreeBSD.org/~stb/mirror/ftp.andrew.cmu.edu/pub/cyrus-mail/ \
|
1999-12-27 01:52:25 +00:00
|
|
|
ftp://ftp.hanse.de/sites/transit/mirror/ftp.andrew.cmu.edu/pub/cyrus-mail/
|
|
|
|
|
|
|
|
MAINTAINER= hetzels@westbend.net
|
|
|
|
|
2000-02-14 04:12:22 +00:00
|
|
|
USE_OPENSSL= NORSA
|
1999-12-29 07:06:27 +00:00
|
|
|
|
2000-02-14 04:12:22 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
1999-12-27 01:52:25 +00:00
|
|
|
|
2000-02-14 04:12:22 +00:00
|
|
|
SASL_VER= 1.5.15
|
1999-12-29 07:06:27 +00:00
|
|
|
|
1999-12-27 01:52:25 +00:00
|
|
|
Y2K= http://asg.web.cmu.edu/cyrus/imapd/y2k.html
|
|
|
|
|
1999-12-29 07:06:27 +00:00
|
|
|
MAN3= sasl_client.3 sasl_server.3
|
1999-12-27 01:52:25 +00:00
|
|
|
MAN8= saslpasswd.8
|
|
|
|
|
1999-12-29 07:06:27 +00:00
|
|
|
USE_AUTOCONF= YES
|
1999-12-27 01:52:25 +00:00
|
|
|
USE_LIBTOOL= YES
|
|
|
|
CONFIGURE_ARGS= \
|
|
|
|
--prefix=${PREFIX} \
|
|
|
|
--sysconfdir=${PREFIX}/etc \
|
|
|
|
--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 \
|
1999-12-29 07:06:27 +00:00
|
|
|
--with-rc4=openssl
|
1999-12-27 01:52:25 +00:00
|
|
|
|
1999-12-29 07:06:27 +00:00
|
|
|
.if defined(KRB5_HOME) && exists(${KRB5_HOME})
|
|
|
|
CONFIGURE_ARGS+= --enable-gssapi=${KRB5_HOME}
|
|
|
|
.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}
|
|
|
|
|
1999-12-27 01:52:25 +00:00
|
|
|
DOCS= README README.Y2K TODO INSTALL ChangeLog NEWS
|
|
|
|
|
|
|
|
DOC2= draft-newman-auth-scram-03.txt \
|
|
|
|
draft-newman-sasl-anon-00.txt \
|
|
|
|
draft-leach-digest-sasl-03.txt \
|
|
|
|
rfc1321.txt rfc2095.txt rfc2104.txt rfc2222.txt
|
|
|
|
|
|
|
|
HTDOCS= index programming sysadmin
|
|
|
|
|
2000-01-24 05:22:22 +00:00
|
|
|
# Create Cyrus user and group
|
|
|
|
pre-install:
|
|
|
|
@${SH} ${PKGDIR}/INSTALL ${PKGNAME} PRE-INSTALL
|
|
|
|
|
1999-12-27 01:52:25 +00:00
|
|
|
post-install:
|
|
|
|
@${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
|
2000-01-24 05:22:22 +00:00
|
|
|
@${SED} -e "/%%PREFIX%%/s##${PREFIX}#g" ${FILESDIR}/pwcheck.sh \
|
|
|
|
> ${PREFIX}/etc/rc.d/pwcheck.sh
|
|
|
|
@${CHMOD} 755 ${PREFIX}/etc/rc.d/pwcheck.sh
|
|
|
|
${INSTALL} -d -m 700 -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}
|
|
|
|
@${ECHO} share/doc/SASL/${file} >>${TMPPLIST}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/SASL
|
|
|
|
.endfor
|
|
|
|
.for file in ${DOC2}
|
|
|
|
@${ECHO} share/doc/SASL/${file} >>${TMPPLIST}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/${file} ${PREFIX}/share/doc/SASL
|
|
|
|
.endfor
|
|
|
|
.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
|
|
|
@${ECHO} share/doc/SASL/html/${file}.html >>${TMPPLIST}
|
|
|
|
.endfor
|
|
|
|
@${ECHO} "@dirrm share/doc/SASL/html" >>${TMPPLIST}
|
|
|
|
@${ECHO} "@dirrm share/doc/SASL" >>${TMPPLIST}
|
|
|
|
.endif
|
1999-12-29 07:06:27 +00:00
|
|
|
.if !defined(KRB5_HOME) || !exists(${KRB5_HOME})
|
2000-01-24 05:22:22 +00:00
|
|
|
@${GREP} -v libgssapiv2 ${TMPPLIST} > ${WRKDIR}/tmp.plist
|
|
|
|
@${MV} ${WRKDIR}/tmp.plist ${TMPPLIST}
|
1999-12-29 07:06:27 +00:00
|
|
|
.endif
|
|
|
|
.if !defined(MAKE_EBONES) || exists(/usr/lib/libkrb.a)
|
2000-01-24 05:22:22 +00:00
|
|
|
@${GREP} -v libkerberos4 ${TMPPLIST} > ${WRKDIR}/tmp.plist
|
|
|
|
@${MV} ${WRKDIR}/tmp.plist ${TMPPLIST}
|
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
|
|
|
.include <bsd.port.post.mk>
|