Lines 2-8
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= opensmtpd |
4 |
PORTNAME= opensmtpd |
5 |
PORTVERSION= 201602131907 |
5 |
PORTVERSION= 201605221711 |
6 |
DISTVERSIONSUFFIX= p1 |
6 |
DISTVERSIONSUFFIX= p1 |
7 |
PORTEPOCH= 1 |
7 |
PORTEPOCH= 1 |
8 |
CATEGORIES= mail |
8 |
CATEGORIES= mail |
Lines 18-75
Link Here
|
18 |
|
18 |
|
19 |
LIB_DEPENDS= libevent.so:devel/libevent2 |
19 |
LIB_DEPENDS= libevent.so:devel/libevent2 |
20 |
|
20 |
|
21 |
OPTIONS_DEFINE= CA_BUNDLE LIBASR MAILERCONF PAM SSL_PORT |
21 |
OPTIONS_DEFINE= CA_BUNDLE LIBASR MAILERCONF PAM SSL_PORT TABLE_DB |
22 |
|
22 |
|
23 |
OPTIONS_DEFAULT= CA_BUNDLE PAM |
23 |
OPTIONS_DEFAULT= CA_BUNDLE PAM TABLE_DB |
24 |
|
24 |
|
25 |
CA_BUNDLE_DESC= Install CA bundle for SSL |
25 |
CA_BUNDLE_DESC= Install CA bundle for SSL |
26 |
LIBASR_DESC= Use stable version of libasr |
26 |
LIBASR_DESC= Use stable version of libasr |
27 |
MAILERCONF_DESC= Activate OpenSMTPD in mailer.conf(5) |
27 |
MAILERCONF_DESC= Activate OpenSMTPD in mailer.conf(5) |
28 |
SSL_PORT_DESC= SSL/TLS support via OpenSSL/LibreSSL from port |
28 |
SSL_PORT_DESC= SSL/TLS support via OpenSSL/LibreSSL from port |
|
|
29 |
TABLE_DB_DESC= Build table-db plugin (aliases) |
29 |
|
30 |
|
30 |
USES= cpe libtool |
31 |
USES= cpe libtool |
31 |
USE_OPENSSL= yes |
32 |
USE_OPENSSL= yes |
32 |
GNU_CONFIGURE= yes |
33 |
GNU_CONFIGURE= yes |
33 |
CONFIGURE_ARGS= --with-table-db \ |
|
|
34 |
--sysconfdir=${PREFIX}/etc/mail/ \ |
35 |
--with-libasr=${LOCALBASE} \ |
36 |
--with-libevent=${LOCALBASE} \ |
37 |
--with-libssl=${OPENSSLBASE} \ |
38 |
--with-group-queue=${GROUPS} |
39 |
|
34 |
|
|
|
35 |
CPE_VENDOR= openbsd |
36 |
|
40 |
USE_RC_SUBR= smtpd |
37 |
USE_RC_SUBR= smtpd |
41 |
SUB_FILES= pkg-install pkg-deinstall |
38 |
SUB_FILES= pkg-install pkg-deinstall pkg-message |
42 |
|
39 |
|
43 |
CPE_VENDOR= openbsd |
|
|
44 |
|
45 |
CONFLICTS_INSTALL= postfix-[0-9]* sendmail-[0-9]* opensmtpd-[0-9]* |
40 |
CONFLICTS_INSTALL= postfix-[0-9]* sendmail-[0-9]* opensmtpd-[0-9]* |
46 |
|
41 |
|
47 |
USERS= _smtpd _smtpq |
42 |
USERS= _smtpd _smtpq |
48 |
GROUPS= _smtpd |
43 |
GROUPS= _smtpd _smtpq |
49 |
|
44 |
|
50 |
PLIST_SUB+= SMTPQ_GROUP=${GROUPS} |
45 |
OPTIONS_SUB= yes |
51 |
|
46 |
|
52 |
OPTIONS_SUB= yes |
47 |
CA_BUNDLE_CONFIGURE_WITH= path-CAfile=${LOCALBASE}/share/certs/ca-root-nss.crt |
|
|
48 |
CA_BUNDLE_RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss |
53 |
|
49 |
|
|
|
50 |
LIBASR_LIB_DEPENDS= libasr.so:dns/libasr |
54 |
LIBASR_LIB_DEPENDS_OFF= libasr.so:dns/libasr-devel |
51 |
LIBASR_LIB_DEPENDS_OFF= libasr.so:dns/libasr-devel |
55 |
LIBASR_LIB_DEPENDS= libasr.so:dns/libasr |
|
|
56 |
|
52 |
|
57 |
CA_BUNDLE_CONFIGURE_WITH= path-CAfile=${LOCALBASE}/share/certs/ca-root-nss.crt |
|
|
58 |
CA_BUNDLE_RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss |
59 |
|
60 |
PAM_CONFIGURE_WITH= auth-pam=smtpd |
53 |
PAM_CONFIGURE_WITH= auth-pam=smtpd |
|
|
54 |
SSL_PORT_VARS= with_openssl_port=yes |
55 |
TABLE_DB_CONFIGURE_WITH= table-db |
61 |
|
56 |
|
62 |
.include <bsd.port.options.mk> |
57 |
.include <bsd.port.options.mk> |
63 |
|
58 |
|
64 |
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000000 && ! ${PORT_OPTIONS:MSSL_PORT} |
59 |
.if ${OPSYS} == FreeBSD && ${OSVERSION} <= 1000015 |
65 |
WITH_OPENSSL_PORT= yes |
60 |
WITH_OPENSSL_PORT= yes |
66 |
.endif |
61 |
.endif |
67 |
|
62 |
|
68 |
.if ${PORT_OPTIONS:MSSL_PORT} |
63 |
.include <bsd.port.pre.mk> |
69 |
WITH_OPENSSL_PORT= yes |
|
|
70 |
.endif |
71 |
|
64 |
|
|
|
65 |
CONFIGURE_ARGS+= --with-libasr=${LOCALBASE} \ |
66 |
--with-libevent=${LOCALBASE} \ |
67 |
--with-libssl=${OPENSSLBASE} \ |
68 |
--sysconfdir=${PREFIX}/etc/mail/ |
69 |
|
70 |
post-patch: |
71 |
${REINPLACE_CMD} -e '/chmod 2555/d' ${WRKSRC}/mk/smtpctl/Makefile.in |
72 |
|
73 |
.if ${PORT_OPTIONS:MTABLE_DB} |
72 |
post-install: |
74 |
post-install: |
73 |
@${LN} -sf ${PREFIX}/sbin/smtpctl ${STAGEDIR}${PREFIX}/libexec/opensmtpd/makemap |
75 |
@${LN} -sf ${PREFIX}/sbin/smtpctl ${STAGEDIR}${PREFIX}/libexec/opensmtpd/makemap |
|
|
76 |
.endif |
74 |
|
77 |
|
75 |
.include <bsd.port.mk> |
78 |
.include <bsd.port.post.mk> |