2013-06-07 03:39:31 +00:00
|
|
|
# Created by: Ashish SHUKLA <ashish@FreeBSD.org>
|
2012-05-14 13:12:32 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= opensmtpd
|
2014-03-05 09:52:43 +00:00
|
|
|
PORTVERSION= 5.4.2
|
2014-06-04 00:30:49 +00:00
|
|
|
PORTREVISION= 1
|
2013-03-27 14:58:56 +00:00
|
|
|
PORTEPOCH= 1
|
2012-05-14 13:12:32 +00:00
|
|
|
CATEGORIES= mail
|
2012-06-24 14:43:26 +00:00
|
|
|
MASTER_SITES= http://www.opensmtpd.org/archives/ \
|
|
|
|
http://distfiles.pirateparty.in/ashish/
|
2013-01-02 13:25:05 +00:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}p1
|
2012-05-14 13:12:32 +00:00
|
|
|
|
|
|
|
MAINTAINER= ashish@FreeBSD.org
|
|
|
|
COMMENT= OpenSMTPD is a free MTA
|
|
|
|
|
2013-06-30 21:42:51 +00:00
|
|
|
LICENSE= ISCL
|
2012-05-14 13:12:32 +00:00
|
|
|
|
2013-06-30 21:42:51 +00:00
|
|
|
LIB_DEPENDS= event-1:${PORTSDIR}/devel/libevent
|
2012-05-14 13:12:32 +00:00
|
|
|
|
2014-03-05 09:52:43 +00:00
|
|
|
OPTIONS_DEFINE= CA_BUNDLE PAM SQLITE MYSQL PGSQL LDAP REDIS
|
2013-03-04 02:50:49 +00:00
|
|
|
|
2014-03-05 09:52:43 +00:00
|
|
|
OPTIONS_DEFAULT= CA_BUNDLE PAM
|
|
|
|
|
|
|
|
CA_BUNDLE_DESC= Install CA bundle for OpenSSL
|
2013-03-04 02:50:49 +00:00
|
|
|
|
2012-05-14 13:12:32 +00:00
|
|
|
USE_AUTOTOOLS= autoconf:env automake:env libtool:env
|
|
|
|
GNU_CONFIGURE= yes
|
2013-12-07 17:14:12 +00:00
|
|
|
CONFIGURE_ARGS= --with-libevent-dir=${LOCALBASE} --sysconfdir=${PREFIX}/etc/mail/ \
|
|
|
|
--with-mailwrapper
|
2012-05-14 13:12:32 +00:00
|
|
|
|
|
|
|
USE_RC_SUBR= smtpd
|
2013-03-27 14:58:56 +00:00
|
|
|
SUB_FILES= pkg-install pkg-deinstall pkg-message
|
2012-05-14 13:12:32 +00:00
|
|
|
|
2013-06-30 21:42:51 +00:00
|
|
|
CONFLICTS_INSTALL= postfix-[0-9]* sendmail-[0-9]* opensmtpd-devel-[0-9]*
|
2012-05-14 13:12:32 +00:00
|
|
|
|
2014-03-05 09:52:43 +00:00
|
|
|
USERS= _smtpd _smtpq
|
2012-05-16 12:06:27 +00:00
|
|
|
GROUPS= _smtpd
|
|
|
|
|
2014-03-05 09:52:43 +00:00
|
|
|
OPTIONS_SUB= MYSQL SQLITE PGSQL LDAP REDIS
|
2012-06-24 14:43:26 +00:00
|
|
|
|
2014-03-05 09:52:43 +00:00
|
|
|
CA_BUNDLE_CONFIGURE_ON= --with-ca-file=${LOCALBASE}/share/certs/ca-root-nss.crt
|
|
|
|
CA_BUNDLE_RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss
|
2012-06-24 14:43:26 +00:00
|
|
|
|
2014-03-05 09:52:43 +00:00
|
|
|
MYSQL_USE= MYSQL=yes
|
|
|
|
MYSQL_CFLAGS= -I${LOCALBASE}/include/mysql
|
|
|
|
MYSQL_LDFLAGS= -L${LOCALBASE}/lib/mysql
|
|
|
|
MYSQL_CONFIGURE_ON= --with-experimental-mysql
|
2013-12-07 17:14:12 +00:00
|
|
|
|
2014-03-05 09:52:43 +00:00
|
|
|
SQLITE_USE= SQLITE=3
|
|
|
|
SQLITE_CFLAGS= -I${LOCALBASE}/include
|
|
|
|
SQLITE_LDFLAGS= -L${LOCALBASE}/lib
|
|
|
|
SQLITE_CONFIGURE_ON= --with-experimental-sqlite
|
2013-12-07 17:14:12 +00:00
|
|
|
|
2014-03-05 09:52:43 +00:00
|
|
|
PGSQL_USE= PGSQL=yes
|
|
|
|
PGSQL_CONFIGURE_ON= --with-experimental-postgres
|
2013-12-07 17:14:12 +00:00
|
|
|
|
2014-03-05 09:52:43 +00:00
|
|
|
LDAP_CONFIGURE_ON= --with-experimental-ldap
|
2013-12-07 17:14:12 +00:00
|
|
|
|
2014-03-05 09:52:43 +00:00
|
|
|
PAM_CONFIGURE_ON= --with-pam --with-pam-service=smtpd
|
|
|
|
|
|
|
|
REDIS_LIB_DEPENDS= hiredis:${PORTSDIR}/databases/hiredis
|
|
|
|
REDIS_CONFIGURE_ON= --with-experimental-redis
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
USE_OPENSSL= yes
|
2013-03-04 02:50:49 +00:00
|
|
|
|
2012-06-24 14:43:26 +00:00
|
|
|
# FreeBSD 7.3 and earlier need to use OpenSSL from ports
|
|
|
|
.if ${OSVERSION} < 704000
|
|
|
|
WITH_OPENSSL_PORT= yes
|
|
|
|
.endif
|
|
|
|
|
2012-05-14 13:12:32 +00:00
|
|
|
post-deinstall:
|
|
|
|
@${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-DEINSTALL
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|