pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mail The sendmail and libmilter should have different ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/27d1b494656d
branches: trunk
changeset: 533727:27d1b494656d
user: jlam <jlam%pkgsrc.org@localhost>
date: Tue Sep 25 20:05:23 2007 +0000
description:
The sendmail and libmilter should have different sets of options. In
particular, libmilter does *not* support "ldap", "sasl", etc. which are
supported by only sendmail. Do this through the following:
(1) Create libmilter/options.mk with support for the "inet6" option.
(2) Drop inclusion of options.mk from sendmail/Makefile.common and move
it to libmilter/Makefile and sendmail/Makefile.
While here, properly support IPv6 on FreeBSD, which like DragonFly has
getipnodebyname() in libc.
As a result of these changes, libmilter will no longer depend on
cyrus-sasl or openssl or openldap-client depending on what is set
in PKG_DEFAULT_OPTIONS.
Bump the PKGREVISION of libmilter to 1 due to the changed dependency list.
No change to sendmail as the binary package does not change.
diffstat:
mail/libmilter/Makefile | 8 +++++---
mail/libmilter/options.mk | 9 +++++++++
mail/sendmail/Makefile | 7 ++++---
mail/sendmail/Makefile.common | 14 ++++++--------
4 files changed, 24 insertions(+), 14 deletions(-)
diffs (94 lines):
diff -r be394be10ae8 -r 27d1b494656d mail/libmilter/Makefile
--- a/mail/libmilter/Makefile Tue Sep 25 19:48:19 2007 +0000
+++ b/mail/libmilter/Makefile Tue Sep 25 20:05:23 2007 +0000
@@ -1,10 +1,12 @@
-# $NetBSD: Makefile,v 1.11 2007/04/26 06:47:06 jnemeth Exp $
-
-.include "../../mail/sendmail/Makefile.common"
+# $NetBSD: Makefile,v 1.12 2007/09/25 20:05:24 jlam Exp $
PKGNAME= libmilter-${DIST_VERS}
+PKGREVISION= 1
COMMENT= Mail filter support library for sendmail
+.include "options.mk"
+.include "../../mail/sendmail/Makefile.common"
+
INSTALLATION_DIRS= include lib
post-patch: make-sendmail-siteconfig
diff -r be394be10ae8 -r 27d1b494656d mail/libmilter/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/libmilter/options.mk Tue Sep 25 20:05:23 2007 +0000
@@ -0,0 +1,9 @@
+# $NetBSD: options.mk,v 1.1 2007/09/25 20:05:24 jlam Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.libmilter
+PKG_SUPPORTED_OPTIONS= inet6
+PKG_SUGGESTED_OPTIONS= # empty
+
+.include "../../mk/bsd.options.mk"
+
+# IPv6 support is handled directly in ../sendmail/Makefile.common
diff -r be394be10ae8 -r 27d1b494656d mail/sendmail/Makefile
--- a/mail/sendmail/Makefile Tue Sep 25 19:48:19 2007 +0000
+++ b/mail/sendmail/Makefile Tue Sep 25 20:05:23 2007 +0000
@@ -1,12 +1,13 @@
-# $NetBSD: Makefile,v 1.100 2007/06/19 17:10:55 jnemeth Exp $
-
-.include "../../mail/sendmail/Makefile.common"
+# $NetBSD: Makefile,v 1.101 2007/09/25 20:05:23 jlam Exp $
PKGNAME= sendmail-${DIST_VERS}
COMMENT= The well known Mail Transport Agent
CONFLICTS+= courier-mta-[0-9]* fastforward>=0.51nb2 postfix-[0-9]*
+.include "options.mk"
+.include "../../mail/sendmail/Makefile.common"
+
MESSAGE_SRC= ${WRKDIR}/.MESSAGE_SRC
PLIST_SRC= ${WRKDIR}/.PLIST_SRC
diff -r be394be10ae8 -r 27d1b494656d mail/sendmail/Makefile.common
--- a/mail/sendmail/Makefile.common Tue Sep 25 19:48:19 2007 +0000
+++ b/mail/sendmail/Makefile.common Tue Sep 25 20:05:23 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.42 2007/04/26 06:26:27 jnemeth Exp $
+# $NetBSD: Makefile.common,v 1.43 2007/09/25 20:05:24 jlam Exp $
#
# Makefile fragment shared with libmilter
#
@@ -15,9 +15,9 @@
LICENSE= sendmail-license
-DISTINFO_FILE?= ${.CURDIR}/../../mail/sendmail/distinfo
-FILESDIR?= ${.CURDIR}/../../mail/sendmail/files
-PATCHDIR?= ${.CURDIR}/../../mail/sendmail/patches
+DISTINFO_FILE= ${.CURDIR}/../../mail/sendmail/distinfo
+FILESDIR= ${.CURDIR}/../../mail/sendmail/files
+PATCHDIR= ${.CURDIR}/../../mail/sendmail/patches
DIST_VERS= 8.14.1
@@ -33,9 +33,6 @@
USE_TOOLS+= gm4
MAKE_ENV+= M4=${TOOLS_M4:Q}
-.include "../../mk/bsd.prefs.mk"
-.include "options.mk"
-
.PHONY: make-sendmail-siteconfig
make-sendmail-siteconfig:
${CP} ${FILESDIR}/site.config.m4 ${SITECONFIG}
@@ -43,7 +40,8 @@
.if !empty(PKG_OPTIONS:Minet6)
${CAT} ${FILESDIR}/site.config.m4-v6 >>${SITECONFIG}
-. if ${OPSYS} != "SunOS" && ${OPSYS} != "BSDOS" && ${OPSYS} != "DragonFly"
+. if (${OPSYS} != "SunOS") && (${OPSYS} != "BSDOS") && \
+ (${OPSYS} != "DragonFly") && (${OPSYS} != "FreeBSD")
${CAT} ${FILESDIR}/site.config.m4-v6-not-solaris >>${SITECONFIG}
. endif
.endif
Home |
Main Index |
Thread Index |
Old Index