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