diff options
author | itojun <itojun> | 2000-08-13 17:52:31 +0000 |
---|---|---|
committer | itojun <itojun> | 2000-08-13 17:52:31 +0000 |
commit | 39f4b6a5a9cf2ce8471dba0dc7fa4a8d902ad486 (patch) | |
tree | 4d370d3b733bca83566c312ed7d0ca01ab278efc /mail | |
parent | ece1f94ca3c679d16f325e2848893454ea4dd79d (diff) | |
download | pkgsrc-39f4b6a5a9cf2ce8471dba0dc7fa4a8d902ad486.tar.gz |
add USE_STARTTLS case (requires sfio-1999 and RSA-capable openssl).
need testing (needs certificate properly installed into filesystem).
append compiled-in features at the bottom of installed DESCR, as we have
so many USE_xx.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/sendmail/Makefile | 21 | ||||
-rw-r--r-- | mail/sendmail/files/site.config.m4-starttls | 6 |
2 files changed, 26 insertions, 1 deletions
diff --git a/mail/sendmail/Makefile b/mail/sendmail/Makefile index a4fc44c3553..c8d5df4ecae 100644 --- a/mail/sendmail/Makefile +++ b/mail/sendmail/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.20 2000/08/01 12:02:40 itojun Exp $ +# $NetBSD: Makefile,v 1.21 2000/08/13 17:52:31 itojun Exp $ DISTNAME= sendmail.8.11.0 PKGNAME= sendmail-8.11.0 @@ -38,6 +38,7 @@ USE_DB2?= NO .endif PLIST_SRC= ${WRKDIR}/.PLIST_SRC +DESCR_SRC= ${WRKDIR}/.DESCR_SRC .if defined(USE_LDAP) && ${USE_LDAP} == YES DEPENDS+= openldap-1.2.*:../../databases/openldap @@ -45,22 +46,40 @@ DEPENDS+= openldap-1.2.*:../../databases/openldap .if ${USE_DB2} == YES DEPENDS+= db-2.7.7:../../databases/db .endif +.if defined(USE_STARTTLS) && ${USE_STARTTLS} == YES +DEPENDS+= sfio-1999:../../devel/sfio +.if !defined(PATENTEDOPENSSLSRC) && !exists(/usr/include/openssl/rsa.h) +DEPENDS+= openssl-0.9.5a:../../security/openssl +.endif +.endif post-patch: ${CP} ${FILESDIR}/site.config.m4 ${SITECONFIG} ${CHMOD} +w ${SITECONFIG} + ${CP} ${PKGDIR}/DESCR ${DESCR_SRC} + echo '---' >> ${DESCR_SRC} + echo -n 'compiled features:' >> ${DESCR_SRC} .if defined(USE_INET6) && ${USE_INET6} == YES ${CAT} ${FILESDIR}/site.config.m4-v6 >> ${SITECONFIG} + echo -n ' INET6' >> ${DESCR_SRC} .endif .if ${OPSYS} == "NetBSD" ${CAT} ${FILESDIR}/site.config.m4-tcpwrappers >> ${SITECONFIG} + echo -n ' TCPWRAPPERS' >> ${DESCR_SRC} .endif .if defined(USE_LDAP) && ${USE_LDAP} == YES ${CAT} ${FILESDIR}/site.config.m4-ldap >> ${SITECONFIG} + echo -n ' LDAP' >> ${DESCR_SRC} .endif .if ${USE_DB2} == YES ${CAT} ${FILESDIR}/site.config.m4-db2 >> ${SITECONFIG} + echo -n ' DB2' >> ${DESCR_SRC} +.endif +.if defined(USE_STARTTLS) && ${USE_STARTTLS} == YES + ${CAT} ${FILESDIR}/site.config.m4-starttls >> ${SITECONFIG} + echo -n ' STARTTLS' >> ${DESCR_SRC} .endif + echo >> ${DESCR_SRC} do-build: @(cd ${WRKSRC}; ./Build) diff --git a/mail/sendmail/files/site.config.m4-starttls b/mail/sendmail/files/site.config.m4-starttls new file mode 100644 index 00000000000..27beb14a230 --- /dev/null +++ b/mail/sendmail/files/site.config.m4-starttls @@ -0,0 +1,6 @@ +# enable STARTTLS +define(`confSTDIO_TYPE', `portable') +APPENDDEF(`confENVDEF', `-I${LOCALBASE}/include/sfio -I${LOCALBASE}/include -DSFIO') +APPENDDEF(`confLIBS', `-L${LOCALBASE}/lib -lsfio') +APPENDDEF(`conf_sendmail_ENVDEF', `-DSTARTTLS') +APPENDDEF(`conf_sendmail_LIBS', `-lssl -lcrypto') |