diff options
author | tron <tron@pkgsrc.org> | 2002-06-17 20:56:53 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2002-06-17 20:56:53 +0000 |
commit | dd6392f204013efd2ce5a52e230483d3a56e4d86 (patch) | |
tree | 940f6d5a93f9fd9aec1436c4ca56868d0777fc22 /mail | |
parent | 025432e54a9beebb7ab2b99b1d16e27a606063a0 (diff) | |
download | pkgsrc-dd6392f204013efd2ce5a52e230483d3a56e4d86.tar.gz |
Don't use TCP wrappers only under NetBSD. Turn it into a build option
and use the "tcp_wrapper" package if necessary.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/sendmail/Makefile | 27 | ||||
-rw-r--r-- | mail/sendmail/files/site.config.m4-tcpwrappers | 5 |
2 files changed, 20 insertions, 12 deletions
diff --git a/mail/sendmail/Makefile b/mail/sendmail/Makefile index 94b32913d64..eb45562db2a 100644 --- a/mail/sendmail/Makefile +++ b/mail/sendmail/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.46 2002/06/17 20:21:46 tron Exp $ +# $NetBSD: Makefile,v 1.47 2002/06/17 20:56:53 tron Exp $ DISTNAME= sendmail.8.11.6 PKGNAME= sendmail-8.11.6 @@ -31,30 +31,37 @@ MAKE_ENV+= BSD_BINOWN="${BINOWN}" BSD_BINGRP="${BINGRP}" \ WRKSRC= ${WRKDIR}/${PKGNAME:C/nb[0-9]+$//} SITECONFIG= ${WRKSRC}/devtools/Site/site.config.m4 -BUILD_DEFS+= USE_WIDEPATCH USE_INET6 USE_LDAP USE_DB2 USE_STARTTLS +BUILD_DEFS+= USE_WIDEPATCH USE_INET6 USE_TCPWRAPPERS USE_LDAP USE_DB2 \ + USE_STARTTLS .include "../../mk/bsd.prefs.mk" +MESSAGE_SRC= ${WRKDIR}/.MESSAGE_SRC +PLIST_SRC= ${WRKDIR}/.PLIST_SRC +DESCR_SRC= ${WRKDIR}/.DESCR_SRC + .if ${OPSYS} == "SunOS" USE_DB2?= YES .else USE_DB2?= NO .endif - -MESSAGE_SRC= ${WRKDIR}/.MESSAGE_SRC -PLIST_SRC= ${WRKDIR}/.PLIST_SRC -DESCR_SRC= ${WRKDIR}/.DESCR_SRC +.if ${USE_DB2} == YES +DEPENDS+= db-2.7.7:../../databases/db +.endif .if defined(USE_LDAP) && ${USE_LDAP} == YES DEPENDS+= openldap-1.2.*:../../databases/openldap .endif -.if ${USE_DB2} == YES -DEPENDS+= db-2.7.7:../../databases/db -.endif + .if defined(USE_STARTTLS) && ${USE_STARTTLS} == YES .include "../../security/openssl/buildlink.mk" .endif +USE_TCPWRAPPERS?= YES +.if ${USE_TCPWRAPPERS} == YES +.include "../../security/tcp_wrappers/buildlink.mk" +.endif + post-patch: ${CP} ${FILESDIR}/site.config.m4 ${SITECONFIG} ${CHMOD} +w ${SITECONFIG} @@ -68,7 +75,7 @@ post-patch: ${CAT} ${FILESDIR}/site.config.m4-v6 >> ${SITECONFIG} ${ECHO} -n ' INET6' >> ${DESCR_SRC} .endif -.if ${OPSYS} == "NetBSD" +.if ${USE_TCPWRAPPERS} == YES ${CAT} ${FILESDIR}/site.config.m4-tcpwrappers >> ${SITECONFIG} ${ECHO} -n ' TCPWRAPPERS' >> ${DESCR_SRC} .endif diff --git a/mail/sendmail/files/site.config.m4-tcpwrappers b/mail/sendmail/files/site.config.m4-tcpwrappers index c15ac7f9cb3..e5f069a4592 100644 --- a/mail/sendmail/files/site.config.m4-tcpwrappers +++ b/mail/sendmail/files/site.config.m4-tcpwrappers @@ -1,3 +1,4 @@ -# enable tcpwrapeprs -APPENDDEF(`confENVDEF', `-DTCPWRAPPERS') +# enable tcpwrappers +APPENDDEF(`confENVDEF', `-I${BUILDLINK_DIR}/include -DTCPWRAPPERS') +APPENDDEF(`confLIBS', `-L${BUILDLINK_DIR}/lib') APPENDDEF(`conf_sendmail_LIBS', `-lwrap') |