freebsd-ports/mail/up-imapproxy/Makefile
2004-06-04 17:29:38 +00:00

41 lines
1.1 KiB
Makefile

# New ports collection makefile for: imapproxy
# Date created: 11.05.04
# Whom: Martin Blapp
#
# $FreeBSD$
#
PORTNAME= up-imapproxy
PORTVERSION= 1.2.1
CATEGORIES= mail
MASTER_SITES= http://www.imapproxy.org/downloads/
DISTNAME= ${PORTNAME}-${PORTVERSION}
EXTRACT_SUFX= .tar.gz
MAINTAINER= mbr@FreeBSD.org
COMMENT= A caching IMAP proxy server
GNU_CONFIGURE= YES
USE_AUTOCONF_VER=213
USE_RC_SUBR= YES
SAMPLE_EXT= sample
.include <bsd.port.pre.mk>
RC_SCRIPTS_SUB= PREFIX=${PREFIX} \
RC_SUBR=${RC_SUBR}
post-install:
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
< ${FILESDIR}/imapproxyd.conf > ${WRKSRC}/imapproxyd.conf ;
@if [ ! -f ${PREFIX}/etc/imapproxyd.conf ]; then \
${INSTALL} -c ${WRKSRC}/imapproxyd.conf ${PREFIX}/etc/imapproxyd.conf ; \
fi
${INSTALL} -c ${WRKSRC}/scripts/imapproxy.conf ${PREFIX}/etc/imapproxyd.conf.${SAMPLE_EXT} ;
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
< ${FILESDIR}/imapproxyd.sh > ${WRKSRC}/imapproxyd.sh
${INSTALL_SCRIPT} ${WRKSRC}/imapproxyd.sh ${PREFIX}/etc/rc.d/imapproxyd.sh
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>