aboutsummaryrefslogtreecommitdiff
path: root/mail/emailrelay/Makefile
blob: 64e164616f4f184de446ecbeb59f1c4754cb3be8 (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
45
46
# Created by: Robert Nelson <robertn@the-nelsons.org>
# $FreeBSD$

PORTNAME=	emailrelay
PORTVERSION=	1.9
PORTREVISION=	1
CATEGORIES=	mail ipv6
MASTER_SITES=	SF
EXTRACT_SUFX=	-src.tar.gz

MAINTAINER=	robertn@the-nelsons.org
COMMENT=	Simple SMTP proxy and store-and-forward MTA

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		autoreconf pkgconfig
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	e_spooldir=${PREFIX}/var/spool/emailrelay
CONFIGURE_ARGS=	--without-pam
USE_RC_SUBR=	${PORTNAME}

OPTIONS_DEFINE=		DOCS DOXYGEN GUI OPENSSL IPV6
OPTIONS_DEFAULT=	OPENSSL
OPTIONS_SUB=		yes

DOXYGEN_CONFIGURE_WITH=	doxygen
DOXYGEN_BUILD_DEPENDS=	doxygen:devel/doxygen

GUI_CONFIGURE_ENABLE=	gui
GUI_CONFIGURE_ENV=	e_qtmoc="${MOC}"
GUI_USE=		QT4=gui,moc

OPENSSL_CONFIGURE_WITH=	openssl
OPENSSL_USE=		OPENSSL=yes

IPV6_CONFIGURE_ENABLE=	ipv6

post-install:
	${MV} ${STAGEDIR}${PREFIX}/etc/emailrelay.auth.template \
		${STAGEDIR}${PREFIX}/etc/emailrelay.auth.sample
	${MV} ${STAGEDIR}${PREFIX}/etc/emailrelay.conf.template \
		${STAGEDIR}${PREFIX}/etc/emailrelay.conf.sample
	${RM} -r ${STAGEDIR}${PREFIX}/libexec/emailrelay/init

.include <bsd.port.mk>