aboutsummaryrefslogtreecommitdiffstats
path: root/mail/opensmtpd/Makefile
blob: 929744568a9c9c2052e727f53718ab52940f7bf7 (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
47
48
49
50
51
52
53
54
55
56
57
58
# New ports collection makefile for:    opensmtpd
# Date created:     2012-05-13
# Whom:         Ashish SHUKLA <ashish@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   opensmtpd
PORTVERSION=    201302051638
CATEGORIES= mail
MASTER_SITES=   http://www.opensmtpd.org/archives/ \
        http://distfiles.pirateparty.in/ashish/
DISTNAME=   ${PORTNAME}-${PORTVERSION}p1

MAINTAINER= ashish@FreeBSD.org
COMMENT=    OpenSMTPD is a free MTA

LIB_DEPENDS=    event-1:${PORTSDIR}/devel/libevent \
        sqlite3:${PORTSDIR}/databases/sqlite3

LICENSE_NAME=   ISCL

WRKSRC=     ${WRKDIR}/${PORTNAME}-5.2.xp1

USE_AUTOTOOLS=  autoconf:env automake:env libtool:env
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-libevent-dir=${LOCALBASE}

USE_RC_SUBR=    smtpd
SUB_FILES=  pkg-install pkg-deinstall

CONFLICTS=  postfix-[0-9]* sendmail-[0-9]*

MAN8=       makemap.8 newaliases.8 smtpctl.8 smtpd.8
MAN5=       smtpd.conf.5 aliases.5 forward.5

USERS=      _smtpd
GROUPS=     _smtpd

.include <bsd.port.options.mk>

USE_OPENSSL=    yes

# FreeBSD 7.3 and earlier need to use OpenSSL from ports
.if ${OSVERSION} < 704000
WITH_OPENSSL_PORT=  yes
.endif

pre-configure:
        @cd ${WRKSRC} && ./bootstrap

post-install:
        @${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL

post-deinstall:
        @${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-DEINSTALL

.include <bsd.port.mk>