Lines 2-14
Link Here
|
2 |
# $FreeBSD: head/mail/opensmtpd-devel/Makefile 390363 2015-06-23 10:43:59Z ashish $ |
2 |
# $FreeBSD: head/mail/opensmtpd-devel/Makefile 390363 2015-06-23 10:43:59Z ashish $ |
3 |
|
3 |
|
4 |
PORTNAME= opensmtpd |
4 |
PORTNAME= opensmtpd |
5 |
PORTVERSION= 201506112227 |
5 |
PORTVERSION= 201602031446 |
6 |
PORTEPOCH= 1 |
6 |
PORTEPOCH= 1 |
7 |
CATEGORIES= mail |
7 |
CATEGORIES= mail |
8 |
MASTER_SITES= http://www.opensmtpd.org/archives/ \ |
8 |
MASTER_SITES= http://www.opensmtpd.org/archives/ \ |
9 |
http://distfiles.pirateparty.in/ashish/ |
9 |
http://distfiles.pirateparty.in/ashish/ |
10 |
PKGNAMESUFFIX= -devel |
10 |
PKGNAMESUFFIX= -devel |
11 |
DISTNAME= ${PORTNAME}-${PORTVERSION}p1 |
11 |
DISTVERSIONSUFFIX= p1 |
12 |
|
12 |
|
13 |
MAINTAINER= ashish@FreeBSD.org |
13 |
MAINTAINER= ashish@FreeBSD.org |
14 |
COMMENT= Security- and simplicity-focused SMTP server from OpenBSD |
14 |
COMMENT= Security- and simplicity-focused SMTP server from OpenBSD |
Lines 18-34
Link Here
|
18 |
|
18 |
|
19 |
LIB_DEPENDS= libevent.so:${PORTSDIR}/devel/libevent2 |
19 |
LIB_DEPENDS= libevent.so:${PORTSDIR}/devel/libevent2 |
20 |
|
20 |
|
21 |
OPTIONS_DEFINE= CA_BUNDLE LIBASR MAILERCONF |
21 |
OPTIONS_DEFINE= CA_BUNDLE LIBASR MAILERCONF PAM |
22 |
|
22 |
|
23 |
OPTIONS_DEFAULT= CA_BUNDLE PAM |
23 |
OPTIONS_RADIO= CRYPTO |
|
|
24 |
OPTIONS_RADIO_CRYPTO= LIBRESSL LIBRESSL_DEVEL OPENSSL_BASE OPENSSL_PORT |
24 |
|
25 |
|
25 |
CA_BUNDLE_DESC= Install CA bundle for OpenSSL |
26 |
OPTIONS_DEFAULT= CA_BUNDLE PAM OPENSSL_BASE |
26 |
LIBASR_DESC= Use stable version of libasr |
27 |
|
|
|
28 |
CA_BUNDLE_DESC= Install CA bundle for OpenSSL |
29 |
LIBASR_DESC= Use stable version of libasr |
27 |
MAILERCONF_DESC= Activate OpenSMTPD in mailer.conf(5) |
30 |
MAILERCONF_DESC= Activate OpenSMTPD in mailer.conf(5) |
|
|
31 |
CRYPTO_DESC= Choose which crypto engine to use |
32 |
LIBRESSL_DESC= SSL/TLS support via security/libressl |
33 |
LIBRESSL_DEVEL_DESC= SSL/TLS support via security/libressl-devel |
34 |
OPENSSL_BASE_DESC= SSL/TLS support via OpenSSL from base |
35 |
OPENSSL_PORT_DESC= SSL/TLS support via OpenSSL from port |
28 |
|
36 |
|
|
|
37 |
USES= cpe libtool |
38 |
USE_OPENSSL= yes |
29 |
GNU_CONFIGURE= yes |
39 |
GNU_CONFIGURE= yes |
30 |
CONFIGURE_ARGS= --with-libevent-dir=${LOCALBASE} --sysconfdir=${PREFIX}/etc/mail/ \ |
40 |
CONFIGURE_ARGS= --with-table-db \ |
31 |
--with-mailwrapper --with-ssl-dir=${OPENSSLBASE} --enable-table-db |
41 |
--sysconfdir=${PREFIX}/etc/mail/ \ |
|
|
42 |
--with-libasr=${LOCALBASE} \ |
43 |
--with-libevent=${LOCALBASE} \ |
44 |
--with-libssl=${OPENSSLBASE} \ |
45 |
--with-group-queue=${GROUPS} |
32 |
|
46 |
|
33 |
USE_RC_SUBR= smtpd |
47 |
USE_RC_SUBR= smtpd |
34 |
SUB_FILES= pkg-install pkg-deinstall |
48 |
SUB_FILES= pkg-install pkg-deinstall |
Lines 43-55
Link Here
|
43 |
LIBASR_LIB_DEPENDS_OFF= libasr.so:${PORTSDIR}/dns/libasr-devel |
57 |
LIBASR_LIB_DEPENDS_OFF= libasr.so:${PORTSDIR}/dns/libasr-devel |
44 |
LIBASR_LIB_DEPENDS= libasr.so:${PORTSDIR}/dns/libasr |
58 |
LIBASR_LIB_DEPENDS= libasr.so:${PORTSDIR}/dns/libasr |
45 |
|
59 |
|
46 |
CA_BUNDLE_CONFIGURE_ON= --with-ca-file=${LOCALBASE}/share/certs/ca-root-nss.crt |
60 |
CA_BUNDLE_CONFIGURE_WITH= path-CAfile=${LOCALBASE}/share/certs/ca-root-nss.crt |
47 |
CA_BUNDLE_RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss |
61 |
CA_BUNDLE_RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss |
48 |
|
62 |
|
49 |
USE_OPENSSL= yes |
63 |
PAM_CONFIGURE_WITH= auth-pam=smtpd |
|
|
64 |
|
65 |
.include <bsd.port.options.mk> |
66 |
|
67 |
.if !${PORT_OPTIONS:MOPENSSL_BASE} |
50 |
WITH_OPENSSL_PORT= yes |
68 |
WITH_OPENSSL_PORT= yes |
|
|
69 |
.endif |
51 |
|
70 |
|
52 |
post-deinstall: |
71 |
.if ${PORT_OPTIONS:MLIBRESSL} |
53 |
@${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-DEINSTALL |
72 |
OPENSSL_PORT= security/libressl |
|
|
73 |
.elif ${PORT_OPTIONS:MLIBRESSL_DEVEL} |
74 |
OPENSSL_PORT= security/libressl-devel |
75 |
.endif |
54 |
|
76 |
|
55 |
.include <bsd.port.mk> |
77 |
.include <bsd.port.mk> |