1 |
< |
# $MidnightBSD: mports/mail/sendmail/Makefile,v 1.8 2008/05/20 21:20:25 laffer1 Exp $ |
1 |
> |
# $MidnightBSD: mports/mail/sendmail/Makefile,v 1.14 2013/03/02 20:47:09 laffer1 Exp $ |
2 |
|
|
3 |
|
PORTNAME= sendmail |
4 |
< |
PORTVERSION= 8.14.3 |
5 |
< |
PORTREVISION= 1 |
4 |
> |
PORTVERSION= 8.14.7 |
5 |
|
CATEGORIES= mail ipv6 |
6 |
|
MASTER_SITES= ftp://ftp.sendmail.org/pub/sendmail/ \ |
7 |
|
${MASTER_SITE_RINGSERVER:S,%SUBDIR%,net/mail/sendmail/&,} |
12 |
|
COMMENT= Reliable, highly configurable mail transfer agent with utilities |
13 |
|
LICENSE= agg |
14 |
|
|
15 |
< |
CONFLICTS?= courier-0.* postfix-1.* postfix-2.* smail-3.* zmailer-2.* |
15 |
> |
CONFLICTS?= courier-0.* postfix-1.* postfix-2.* smail-3.* zmailer-2.* opensmtpd-* |
16 |
|
|
17 |
|
FAKE_OPTS+= trueprefix |
18 |
|
|
30 |
|
BASEMAIL= /usr/libexec/sendmail/sendmail |
31 |
|
PLIST_SUB+= PREFIX=${PREFIX:S=${PREFIX}/==} |
32 |
|
PKGMESSAGE= ${WRKSRC}/pkg-message |
33 |
< |
MILTER_SOVER?= 4 |
33 |
> |
MILTER_SOVER?= 6 |
34 |
|
|
35 |
|
# Options to define Features: |
36 |
|
# SENDMAIL_WITHOUT_IPV6=yes |
84 |
|
USE_OPENLDAP= yes |
85 |
|
.endif |
86 |
|
.if defined(SENDMAIL_WITH_SASL) && !defined(SENDMAIL_WITH_SASL2) |
87 |
< |
SASL_SUFFIX?= +sasl1 |
89 |
< |
CONFLICTS+= sendmail-ldap-8.* sendmail-sasl2-8.* sendmail-tls-8.* |
90 |
< |
LIB_DEPENDS+= sasl.8:${PORTSDIR}/security/cyrus-sasl |
87 |
> |
SENDMAIL_WITH_SASL2= yes |
88 |
|
.endif |
89 |
|
.if defined(SENDMAIL_WITH_SASL2) |
90 |
|
SASL_SUFFIX?= +sasl2 |
91 |
|
CONFLICTS+= sendmail-ldap-8.* sendmail-sasl-8.* sendmail-tls-8.* |
92 |
< |
LIB_DEPENDS+= sasl2.2:${PORTSDIR}/security/cyrus-sasl2 |
92 |
> |
LIB_DEPENDS+= sasl2:${PORTSDIR}/security/cyrus-sasl2 |
93 |
|
.if !defined(SENDMAIL_WITHOUT_SASLAUTHD) |
94 |
|
RUN_DEPENDS+= ${LOCALBASE}/sbin/saslauthd:${PORTSDIR}/security/cyrus-sasl2-saslauthd |
95 |
|
.endif |
120 |
|
.if !defined(SENDMAIL_WITHOUT_IPV6) |
121 |
|
SITE+= ${FILESDIR}/site.config.m4.ipv6 |
122 |
|
.endif |
126 |
– |
.if defined(SENDMAIL_WITH_SASL) |
127 |
– |
SITE+= ${FILESDIR}/site.config.m4.sasl |
128 |
– |
.endif |
123 |
|
.if defined(SENDMAIL_WITH_SASL2) |
124 |
|
SITE+= ${FILESDIR}/site.config.m4.sasl2 |
125 |
|
.endif |
160 |
|
.endif |
161 |
|
|
162 |
|
post-extract: |
169 |
– |
@${SED} -e "s=%%PREFIX%%=${PREFIX}=" ${FILESDIR}/sm-client.sh \ |
170 |
– |
> ${WRKSRC}/sm-client.sh |
171 |
– |
@${SED} -e "s=%%PREFIX%%=${PREFIX}=" ${FILESDIR}/sendmail.sh \ |
172 |
– |
> ${WRKSRC}/sendmail.sh |
163 |
|
@${SED} -e "s=%%PREFIX%%=${PREFIX}=g" \ |
164 |
|
-e "s=%%LOCALBASE%%=${LOCALBASE}=g" \ |
165 |
|
-e "s=%%PORTSDIR%%=${PORTSDIR}=g" \ |
290 |
|
${PREFIX}/lib/libmilter.so.${MILTER_SOVER} |
291 |
|
${LN} -sf libmilter.so.${MILTER_SOVER} ${PREFIX}/lib/libmilter.so |
292 |
|
.endif |
303 |
– |
.endif |
304 |
– |
.if exists(${DESTDIR}/etc/mail/mailer.conf) |
305 |
– |
${INSTALL_SCRIPT} ${WRKSRC}/sm-client.sh \ |
306 |
– |
${FAKE_DESTDIR}${LOCALBASE}/etc/rc.d/sm-client.sh.sample |
307 |
– |
${INSTALL_SCRIPT} ${WRKSRC}/sendmail.sh \ |
308 |
– |
${FAKE_DESTDIR}${LOCALBASE}/etc/rc.d/sendmail.sh.sample |
293 |
|
.endif |
294 |
|
.for i in ${MAN8} |
295 |
|
@${RM} -f ${MANPREFIX}/man/cat8/${i} ${MANPREFIX}/man/cat8/${i}.gz |