2013-06-07 05:39:31 +02:00
|
|
|
# Created by: Ashish SHUKLA <ashish@FreeBSD.org>
|
2012-05-14 15:12:32 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= opensmtpd
|
2014-03-05 10:52:43 +01:00
|
|
|
PORTVERSION= 5.4.2
|
2014-08-31 06:13:16 +02:00
|
|
|
PORTREVISION= 4
|
2013-03-27 15:58:56 +01:00
|
|
|
PORTEPOCH= 1
|
2012-05-14 15:12:32 +02:00
|
|
|
CATEGORIES= mail
|
2012-06-24 16:43:26 +02:00
|
|
|
MASTER_SITES= http://www.opensmtpd.org/archives/ \
|
|
|
|
http://distfiles.pirateparty.in/ashish/
|
2013-01-02 14:25:05 +01:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}p1
|
2012-05-14 15:12:32 +02:00
|
|
|
|
|
|
|
MAINTAINER= ashish@FreeBSD.org
|
|
|
|
COMMENT= OpenSMTPD is a free MTA
|
|
|
|
|
2013-06-30 23:42:51 +02:00
|
|
|
LICENSE= ISCL
|
2012-05-14 15:12:32 +02:00
|
|
|
|
2014-07-24 15:32:58 +02:00
|
|
|
LIB_DEPENDS= libevent.so:${PORTSDIR}/devel/libevent2
|
2012-05-14 15:12:32 +02:00
|
|
|
|
2014-03-05 10:52:43 +01:00
|
|
|
OPTIONS_DEFINE= CA_BUNDLE PAM SQLITE MYSQL PGSQL LDAP REDIS
|
2013-03-04 03:50:49 +01:00
|
|
|
|
2014-03-05 10:52:43 +01:00
|
|
|
OPTIONS_DEFAULT= CA_BUNDLE PAM
|
|
|
|
|
|
|
|
CA_BUNDLE_DESC= Install CA bundle for OpenSSL
|
2013-03-04 03:50:49 +01:00
|
|
|
|
2014-08-30 13:03:26 +02:00
|
|
|
USES= libtool
|
2014-09-19 14:40:53 +02:00
|
|
|
USE_OPENSSL= yes
|
2012-05-14 15:12:32 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2013-12-07 18:14:12 +01:00
|
|
|
CONFIGURE_ARGS= --with-libevent-dir=${LOCALBASE} --sysconfdir=${PREFIX}/etc/mail/ \
|
|
|
|
--with-mailwrapper
|
2012-05-14 15:12:32 +02:00
|
|
|
|
|
|
|
USE_RC_SUBR= smtpd
|
2013-03-27 15:58:56 +01:00
|
|
|
SUB_FILES= pkg-install pkg-deinstall pkg-message
|
2012-05-14 15:12:32 +02:00
|
|
|
|
2013-06-30 23:42:51 +02:00
|
|
|
CONFLICTS_INSTALL= postfix-[0-9]* sendmail-[0-9]* opensmtpd-devel-[0-9]*
|
2012-05-14 15:12:32 +02:00
|
|
|
|
2014-03-05 10:52:43 +01:00
|
|
|
USERS= _smtpd _smtpq
|
2012-05-16 14:06:27 +02:00
|
|
|
GROUPS= _smtpd
|
|
|
|
|
2014-09-19 14:40:53 +02:00
|
|
|
OPTIONS_SUB= yes
|
2012-06-24 16:43:26 +02:00
|
|
|
|
2014-03-05 10:52:43 +01: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 16:43:26 +02:00
|
|
|
|
2014-03-05 10:52:43 +01: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 18:14:12 +01:00
|
|
|
|
2014-03-05 10:52:43 +01:00
|
|
|
SQLITE_USE= SQLITE=3
|
|
|
|
SQLITE_CFLAGS= -I${LOCALBASE}/include
|
|
|
|
SQLITE_LDFLAGS= -L${LOCALBASE}/lib
|
|
|
|
SQLITE_CONFIGURE_ON= --with-experimental-sqlite
|
2013-12-07 18:14:12 +01:00
|
|
|
|
2014-11-22 20:13:49 +01:00
|
|
|
PGSQL_USES= pgsql
|
2014-03-05 10:52:43 +01:00
|
|
|
PGSQL_CONFIGURE_ON= --with-experimental-postgres
|
2013-12-07 18:14:12 +01:00
|
|
|
|
2014-03-05 10:52:43 +01:00
|
|
|
LDAP_CONFIGURE_ON= --with-experimental-ldap
|
2013-12-07 18:14:12 +01:00
|
|
|
|
2014-03-05 10:52:43 +01:00
|
|
|
PAM_CONFIGURE_ON= --with-pam --with-pam-service=smtpd
|
|
|
|
|
2014-07-01 16:39:30 +02:00
|
|
|
REDIS_LIB_DEPENDS= libhiredis.so:${PORTSDIR}/databases/hiredis
|
2014-03-05 10:52:43 +01:00
|
|
|
REDIS_CONFIGURE_ON= --with-experimental-redis
|
|
|
|
|
2012-05-14 15:12:32 +02:00
|
|
|
.include <bsd.port.mk>
|