aboutsummaryrefslogtreecommitdiffstats
path: root/mail/up-imapproxy/Makefile
blob: b99a1b8cf80a1675dd64ecb8ee1039c73b4dcd3f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# New ports collection makefile for:    imapproxy
# Date created:     11.05.04
# Whom:         Martin Blapp
#
# $FreeBSD$
#

PORTNAME=   imapproxy
PORTVERSION=    1.2.4
PORTREVISION=   1
CATEGORIES= mail
MASTER_SITES=   http://www.imapproxy.org/downloads/
PKGNAMEPREFIX=  up-
DISTNAME=   ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}

MAINTAINER= mbr@FreeBSD.org
COMMENT=    A caching IMAP proxy server

GNU_CONFIGURE=  YES
USE_RC_SUBR=    imapproxyd.sh

post-patch:
    ${REINPLACE_CMD} -e "s|-lc_r|${PTHREAD_LIBS}|g" \
        -e "s|-lpthread|${PTHREAD_LIBS}|g" ${WRKSRC}/configure

post-install:
    ${INSTALL_DATA} ${WRKSRC}/scripts/imapproxy.conf ${PREFIX}/etc/imapproxyd.conf.default
.if !exists(${PREFIX}/etc/imapproxyd.conf)
    ${INSTALL_DATA} ${WRKSRC}/scripts/imapproxy.conf ${PREFIX}/etc/imapproxyd.conf
.endif
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>