2005-01-20 16:11:08 +01:00
|
|
|
# New ports collection makefile for: cyrus-smlacapd
|
|
|
|
# Date created: May 11th 2004
|
|
|
|
# Whom: g.gonter@ieee.org
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= cyrus-smlacapd
|
|
|
|
PORTVERSION= 0.5
|
2005-11-03 08:53:18 +01:00
|
|
|
PORTREVISION= 1
|
2005-01-20 16:11:08 +01:00
|
|
|
CATEGORIES= databases mail
|
|
|
|
MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ \
|
|
|
|
ftp://ftp.hanse.de/sites/transit/mirror/ftp.andrew.cmu.edu/pub/cyrus-mail/
|
|
|
|
|
|
|
|
MAINTAINER= g.gonter@ieee.org
|
|
|
|
COMMENT= The cyrus ACAP (Application Configuration Access Protocol) server
|
|
|
|
|
|
|
|
LIB_DEPENDS= sasl.8:${PORTSDIR}/security/cyrus-sasl
|
|
|
|
BUILD_DEPENDS= sml:${PORTSDIR}/lang/sml-nj
|
|
|
|
|
|
|
|
USE_REINPLACE= YES
|
|
|
|
GNU_CONFIGURE= YES
|
|
|
|
CONFIGURE_ARGS= --with-cyrus-prefix=${PREFIX}/cyrus \
|
|
|
|
--with-sasldir=${LOCALBASE}/lib
|
|
|
|
|
|
|
|
SUB_FILES= pkg-message
|
2005-11-03 08:53:18 +01:00
|
|
|
USE_RC_SUBR= cyrus_smlacapd_backend.sh
|
2005-01-20 16:11:08 +01:00
|
|
|
|
|
|
|
ACAPD_DOC= ${PREFIX}/share/doc/acapd
|
|
|
|
|
|
|
|
pre-configure:
|
2005-11-03 08:53:18 +01:00
|
|
|
${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/configure
|
2005-01-20 16:11:08 +01:00
|
|
|
${REINPLACE_CMD} -e "s#<sasl.h>#<sasl1/sasl.h>#" \
|
|
|
|
${WRKSRC}/actest/actest.c ${WRKSRC}/api/acap.c \
|
|
|
|
${WRKSRC}/api/acap.h ${WRKSRC}/frontend/frontend.c \
|
|
|
|
${WRKSRC}/lib/imclient.c ${WRKSRC}/lib/prot.h
|
|
|
|
|
|
|
|
pre-su-install:
|
|
|
|
${MKDIR} -m 0755 -p ${PREFIX}/cyrus
|
|
|
|
${MKDIR} -m 0755 -p ${PREFIX}/include/cyrus
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL} ${LOCALBASE}/lib/sml-nj/bin/.run/run.x86-freebsd ${PREFIX}/cyrus/bin
|
|
|
|
${MKDIR} ${ACAPD_DOC}
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/acapd.conf-sample ${ACAPD_DOC}
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/install.html ${ACAPD_DOC}
|
|
|
|
${TR} '\r' '\n' < ${WRKSRC}/doc/draft-ietf-acap-book-03.txt \
|
|
|
|
> ${ACAPD_DOC}/draft-ietf-acap-book-03.txt
|
|
|
|
${TR} '\r' '\n' < ${WRKSRC}/doc/draft-ietf-acap-email-03.txt \
|
|
|
|
> ${ACAPD_DOC}/draft-ietf-acap-email-03.txt
|
|
|
|
${TR} '\r' '\n' < ${WRKSRC}/doc/draft-ietf-acap-pers-03.txt \
|
|
|
|
> ${ACAPD_DOC}/draft-ietf-acap-pers-03.txt
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/rfc2244.txt ${ACAPD_DOC}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(BATCH)
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
@${ECHO_MSG}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|