diff options
author | wiz <wiz> | 2005-08-01 14:54:33 +0000 |
---|---|---|
committer | wiz <wiz> | 2005-08-01 14:54:33 +0000 |
commit | a79d1cd4c980ba1321f83263d78c1484f20bfb0b (patch) | |
tree | c6a580e65e08faf42c727c1cf1d5d51da462b0bd | |
parent | 8aedbc7e5c8e8c825675b345c848375a8d976b85 (diff) | |
download | pkgsrc-a79d1cd4c980ba1321f83263d78c1484f20bfb0b.tar.gz |
Convert to options framework.
-rw-r--r-- | mail/libmilter812/Makefile | 3 | ||||
-rw-r--r-- | mail/libmilter812/options.mk | 13 | ||||
-rw-r--r-- | mail/sendmail812/Makefile | 53 | ||||
-rw-r--r-- | mail/sendmail812/Makefile.common | 6 | ||||
-rw-r--r-- | mail/sendmail812/options.mk | 70 |
5 files changed, 100 insertions, 45 deletions
diff --git a/mail/libmilter812/Makefile b/mail/libmilter812/Makefile index 062821f7db8..60980643eb8 100644 --- a/mail/libmilter812/Makefile +++ b/mail/libmilter812/Makefile @@ -1,5 +1,6 @@ -# $NetBSD: Makefile,v 1.1.1.1 2004/08/30 20:53:20 adrianp Exp $ +# $NetBSD: Makefile,v 1.2 2005/08/01 14:54:33 wiz Exp $ +.include "options.mk" .include "../../mail/sendmail812/Makefile.common" PKGNAME= libmilter-${DIST_VERS} diff --git a/mail/libmilter812/options.mk b/mail/libmilter812/options.mk new file mode 100644 index 00000000000..5d623733bd4 --- /dev/null +++ b/mail/libmilter812/options.mk @@ -0,0 +1,13 @@ +# $NetBSD: options.mk,v 1.1 2005/08/01 14:54:33 wiz Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.libmilter812 +# just needed for Makefile.common to work +PKG_SUPPORTED_OPTIONS= inet6 + +.include "../../mk/bsd.options.mk" + +### +### IPv6 support. +### +.if !empty(PKG_OPTIONS:Minet6) +.endif diff --git a/mail/sendmail812/Makefile b/mail/sendmail812/Makefile index b4444780012..4cd08b4af20 100644 --- a/mail/sendmail812/Makefile +++ b/mail/sendmail812/Makefile @@ -1,5 +1,6 @@ -# $NetBSD: Makefile,v 1.4 2005/03/30 21:54:19 adrianp Exp $ +# $NetBSD: Makefile,v 1.5 2005/08/01 14:54:33 wiz Exp $ +.include "options.mk" .include "../../mail/sendmail812/Makefile.common" PKGNAME= sendmail-${DIST_VERS} @@ -11,55 +12,31 @@ CONFLICTS+= postfix-[0-9]* fastforward>=0.51nb2 MESSAGE_SRC= ${WRKDIR}/.MESSAGE_SRC PLIST_SRC= ${WRKDIR}/.PLIST_SRC -.if ${OPSYS} == "SunOS" -USE_DB2?= YES -.else -USE_DB2?= NO -.endif -.if defined(USE_DB4) && ${USE_DB4} == YES -.include "../../databases/db4/buildlink3.mk" -.elif ${USE_DB2} == YES -.include "../../databases/db/buildlink3.mk" -.endif - -.if defined(USE_OPENLDAP) && ${USE_OPENLDAP} == YES -.include "../../databases/openldap/buildlink3.mk" -.endif - -.if defined(USE_SASL2) && ${USE_SASL2} == YES -.include "../../security/cyrus-sasl2/buildlink3.mk" -.endif - -.if defined(USE_STARTTLS) && ${USE_STARTTLS} == YES -.include "../../security/openssl/buildlink3.mk" -.endif - -USE_TCPWRAPPERS?= YES -.if ${USE_TCPWRAPPERS} == YES -.include "../../security/tcp_wrappers/buildlink3.mk" -.endif +USE_PKGINSTALL= yes +PKG_GROUPS= smmsp +PKG_USERS= smmsp:smmsp::Sendmail\\ Message\\ Submission\\ Program post-patch: make-sendmail-siteconfig -.if ${USE_TCPWRAPPERS} == YES +.if !empty(PKG_OPTIONS:Mtcpwrappers) ${CAT} ${FILESDIR}/site.config.m4-tcpwrappers >>${SITECONFIG} ${ECHO} -n ' TCPWRAPPERS' >>${DESCR_SRC} .endif -.if defined(USE_OPENLDAP) && ${USE_OPENLDAP} == YES +.if !empty(PKG_OPTIONS:Mldap) ${CAT} ${FILESDIR}/site.config.m4-ldap >>${SITECONFIG} ${ECHO} -n ' LDAP' >>${DESCR_SRC} .endif -.if defined(USE_DB4) && ${USE_DB4} == YES +.if !empty(PKG_OPTIONS:Mdb4) ${CAT} ${FILESDIR}/site.config.m4-db4 >>${SITECONFIG} ${ECHO} -n ' DB4' >>${DESCR_SRC} -.elif ${USE_DB2} == YES +.elif !empty(PKG_OPTIONS:Mdb2) ${CAT} ${FILESDIR}/site.config.m4-db2 >>${SITECONFIG} ${ECHO} -n ' DB2' >>${DESCR_SRC} .endif -.if defined(USE_STARTTLS) && ${USE_STARTTLS} == YES +.if !empty(PKG_OPTIONS:Mtls) ${CAT} ${FILESDIR}/site.config.m4-starttls >>${SITECONFIG} ${ECHO} -n ' STARTTLS' >>${DESCR_SRC} .endif -.if defined(USE_SASL2) && ${USE_SASL2} == YES +.if !empty(PKG_OPTIONS:Msasl) ${CAT} ${FILESDIR}/site.config.m4-sasl2 >>${SITECONFIG} ${ECHO} -n ' SASL2' >>${DESCR_SRC} .endif @@ -73,7 +50,7 @@ post-build: <${FILESDIR}/mailer.conf >${WRKDIR}/mailer.conf.sendmail ${CP} ${PKGDIR}/PLIST ${PLIST_SRC} ${CP} ${PKGDIR}/MESSAGE ${MESSAGE_SRC} -.if ${USE_DB2} == YES +.if !empty(PKG_OPTIONS:Mdb2) ${ECHO} "" >>${MESSAGE_SRC} ${ECHO} "If you are upgrading from \"sendmail\" 8.8.x don't forget to rebuild all" >>${MESSAGE_SRC} ${ECHO} "databases with \"${PREFIX}/bin/newaliases\" and \"${PREFIX}/sbin/makemap\"." >>${MESSAGE_SRC} @@ -90,7 +67,7 @@ post-install: ${INSTALL_DATA} ${WRKDIR}/mailer.conf.sendmail ${PREFIX}/share/examples/sendmail/mailer.conf cd ${WRKSRC}/cf && ${PAX} -rw -pp -pm . ${PREFIX}/share/sendmail ${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/share/sendmail -.if ${USE_DB2} == YES +.if !empty(PKG_OPTIONS:Mdb2) ${MV} -f /usr/sbin/makemap /usr/sbin/makemap.8.8 || ${TRUE} .endif ${INSTALL_DATA} ${WRKSRC}/obj.`uname -srm | ${TR} \ . | ${TR} \/ - | ${SED} s/sun4./sun4/`/libsm/libsm.a \ @@ -99,10 +76,6 @@ post-install: ${WRKSRC}/obj.`uname -srm | ${TR} \ . | ${TR} \/ - | ${SED} s/sun4./sun4/`/libsmutil/libsmutil.a \ ${PREFIX}/lib -USE_PKGINSTALL= yes -PKG_GROUPS= smmsp -PKG_USERS= smmsp:smmsp::Sendmail\\ Message\\ Submission\\ Program - .include "../../mk/bsd.pkg.mk" # has to be below include for bsd.pkg.mk, else substition fails diff --git a/mail/sendmail812/Makefile.common b/mail/sendmail812/Makefile.common index 11d406bed68..583078a7771 100644 --- a/mail/sendmail812/Makefile.common +++ b/mail/sendmail812/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.6 2005/05/22 20:08:12 jlam Exp $ +# $NetBSD: Makefile.common,v 1.7 2005/08/01 14:54:33 wiz Exp $ # # Makefile fragment shared with libmilter # @@ -25,8 +25,6 @@ MAKE_ENV+= BSD_BINOWN="${BINOWN}" BSD_BINGRP="${BINGRP}" \ BUILDLINK_DIR="${BUILDLINK_DIR}" SITECONFIG= ${WRKSRC}/devtools/Site/site.config.m4 -BUILD_DEFS+= USE_INET6 USE_TCPWRAPPERS USE_OPENLDAP USE_DB2 \ - USE_SASL2 USE_STARTTLS USE_DB4 DESCR_SRC= ${WRKDIR}/.DESCR_SRC WRKSRC= ${WRKDIR}/sendmail-${DIST_VERS} @@ -41,7 +39,7 @@ make-sendmail-siteconfig: ${CP} ${PKGDIR}/DESCR ${DESCR_SRC} ${ECHO} '---' >>${DESCR_SRC} ${ECHO} -n 'compiled features:' >>${DESCR_SRC} -.if defined(USE_INET6) && ${USE_INET6} == YES +.if !empty(PKG_OPTIONS:Minet6) ${CAT} ${FILESDIR}/site.config.m4-v6 >>${SITECONFIG} .if ${OPSYS} != "SunOS" && ${OPSYS} != "BSDOS" ${CAT} ${FILESDIR}/site.config.m4-v6-not-solaris >>${SITECONFIG} diff --git a/mail/sendmail812/options.mk b/mail/sendmail812/options.mk new file mode 100644 index 00000000000..f7d4a55c1e1 --- /dev/null +++ b/mail/sendmail812/options.mk @@ -0,0 +1,70 @@ +# $NetBSD: options.mk,v 1.1 2005/08/01 14:54:33 wiz Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.sendmail +PKG_OPTIONS_OPTIONAL_GROUPS= database +PKG_OPTIONS_GROUP.database= db2 db4 +PKG_SUPPORTED_OPTIONS= inet6 ldap sasl tls tcpwrappers socketmap +PKG_SUGGESTED_OPTIONS= tcpwrappers + +PKG_OPTIONS_LEGACY_OPTS+= starttls:tls +PKG_OPTIONS_LEGACY_VARS+= USE_STARTTLS:ssl +PKG_OPTIONS_LEGACY_VARS+= USE_TCPWRAPPERS:tcpwrappers + +.include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} == "SunOS" +PKG_SUGGEST_OPTIONS+= db2 +.endif + +.include "../../mk/bsd.options.mk" + +### +### Berkeley DB version 2/4 format for on disk databases e.g. aliases +### +.if !empty(PKG_OPTIONS:Mdb2) +. include "../../databases/db/buildlink3.mk" +.elif !empty(PKG_OPTIONS:Mdb4) +. include "../../databases/db4/buildlink3.mk" +.endif + +### +### Use OpenLDAP for remote database access +### +.if !empty(PKG_OPTIONS:Mldap) +. include "../../databases/openldap/buildlink3.mk" +.endif + +### +### Use SASL/v2 for SMTP AUTH +### +.if !empty(PKG_OPTIONS:Msasl) +. include "../../security/cyrus-sasl2/buildlink3.mk" +.endif + +### +### Use OpenSSL libraries for SMTP STARTTLS support +### +.if !empty(PKG_OPTIONS:Mtls) +. include "../../security/openssl/buildlink3.mk" +.endif + +### +### Use tcpwrappers for network access control to sendmail +### +.if !empty(PKG_OPTIONS:Mtcpwrappers) +. include "../../security/tcp_wrappers/buildlink3.mk" +.endif + +### +### Enable Sendmail SOCKETMAP support +### +.if !empty(PKG_OPTIONS:Msocketmap) +USE_TOOLS+= perl:run +REPLACE_PERL= contrib/socketmapClient.pl contrib/socketmapServer.pl +.endif + +### +### IPv6 support. +### +.if !empty(PKG_OPTIONS:Minet6) +.endif |