summaryrefslogtreecommitdiffstats
path: root/mail/mailsync/Makefile
blob: 975058be548b5dddde3f8260c91fb56d117abde1 (plain)
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
34
35
36
37
38
39
40
41
42
43
44
45
# New ports collection makefile for:	mailsync
# Date created:		03 Feb 2003
# Whom:			Maxim Tulyuk <mt@primats.org.ua>
#
# $FreeBSD$
#

PORTNAME=	mailsync
PORTVERSION=	4.4.4
PORTREVISION=	1
CATEGORIES=	mail
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}
DISTNAME=	${PORTNAME}_${PORTVERSION}-1

MAINTAINER=	mt@primats.org.ua
COMMENT=	Mailsync is a way of keeping a collection of mailboxes synchronized

LIB_DEPENDS=	c-client4.8:${PORTSDIR}/mail/cclient

WRKSRC=		${WRKDIR}/${PORTNAME}

USE_GMAKE=	yes
USE_REINPLACE=	yes

ALL_TARGET=	default

MAN1=		mailsync.1

post-patch:
	@${REINPLACE_CMD} -e 's|/usr|${PREFIX}|g' \
		${WRKSRC}/examples/mailsync \
		${WRKSRC}/mailsync.1

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/mailsync ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/mailsync.1  ${PREFIX}/man/man1
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README   ${DOCSDIR}
.endif
	${MKDIR} ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/examples/mailsync ${EXAMPLESDIR}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud