aboutsummaryrefslogtreecommitdiff
path: root/mail/bsmtp/Makefile
blob: db54bc589bbb0d842621301b5ce78eb8e867a00a (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
34
35
36
37
38
39
40
41
42
43
44
# $FreeBSD$

PORTNAME=	bsmtp
PORTVERSION=	1.02
PORTREVISION=	5
CATEGORIES=	mail
MASTER_SITES=	${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=	naddy

MAINTAINER=	naddy@FreeBSD.org
COMMENT=	Batch SMTP support for sendmail, incoming and outgoing

CONFLICTS=	smail-3.*

USES=		shebangfix perl5
WRKSRC=		${WRKDIR}/${PORTNAME}
HAS_CONFIGURE=	yes
CONFIGURE_ARGS=	--redo
SHEBANG_FILES=	configure

.include <bsd.port.pre.mk>

RUN_DEPENDS=	${LOCALBASE}/bin/uux:${PORTSDIR}/net/freebsd-uucp
UUPREFIX=	${LOCALBASE}

post-patch:
	@${CP} ${WRKSRC}/bsmtp.m4.8.9.in ${WRKSRC}/bsmtp.m4.8.10.in
	@${CP} ${FILESDIR}/bsmtp.m4.8.11.in ${WRKSRC}/
.for v in 12 13 14
	@${CP} ${FILESDIR}/bsmtp.m4.8.12.in ${WRKSRC}/bsmtp.m4.8.$v.in
.endfor

pre-configure:
	@${SED} <${FILESDIR}/config.sed >${WRKSRC}/config.sed \
		-e 's:%%CC%%:${CC}:' \
		-e 's:%%CFLAGS%%:${CFLAGS}:' \
		-e 's:%%PREFIX%%:${PREFIX}:' \
		-e 's:%%UUPREFIX%%:${UUPREFIX}:'

post-install:
	${MKDIR} ${PREFIX}/share/doc/bsmtp
	${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/bsmtp/

.include <bsd.port.post.mk>