Subject: pkg/23060: update mail/sendmail to support BSD/OS
To: None <gnats-bugs@gnats.netbsd.org>
From: None <reed@reedmedia.net>
List: netbsd-bugs
Date: 10/04/2003 23:14:41
>Number:         23060
>Category:       pkg
>Synopsis:       update mail/sendmail to support BSD/OS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 05 06:15:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6.1_STABLE
>Organization:
http://bsd.reedmedia.net/
>Environment:
>Description:
mail/sendmail doesn't build under BSD/OS.

1) BSD/OS comes with getipnodebyaddr(3). So use it instead of trying to
declare it again (with unmatching prototype). (By the way, this assumes
that my previous OPSYS patch to make "BSDOS" from "BSD/OS" is fine; maybe
it should be "BSD-OS"?)

2) The sendmail build mechanism is smart enough to change BSD/OS to BSD-OS
for a directory name. The pkgsrc post-install should do the same.

(Also, I didn't provide a patch, but the MESSAGE should be based if
mailwrapper is used. If not, it is confusing. Maybe always install the
mailwrapper -- or make this MESSAGE more understandable.)
>How-To-Repeat:
>Fix:

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/mail/sendmail/Makefile,v
retrieving revision 1.63
diff -b -u -r1.63 Makefile
--- Makefile	18 Sep 2003 09:01:03 -0000	1.63
+++ Makefile	4 Oct 2003 23:22:50 -0000
@@ -94,10 +94,10 @@
 .if ${USE_DB2} == YES
 	${MV} -f /usr/sbin/makemap /usr/sbin/makemap.8.8 || ${TRUE}
 .endif
-	${INSTALL_DATA} ${WRKSRC}/obj.`uname -srm | ${TR} \  . | ${SED} s/sun4./sun4/`/libsm/libsm.a \
+	${INSTALL_DATA} ${WRKSRC}/obj.`uname -srm | ${TR} \  . | ${TR} \/ - | ${SED} s/sun4./sun4/`/libsm/libsm.a \
 		${PREFIX}/lib
 	${INSTALL_DATA} \
-		${WRKSRC}/obj.`uname -srm | ${TR} \  . | ${SED} s/sun4./sun4/`/libsmutil/libsmutil.a \
+		${WRKSRC}/obj.`uname -srm | ${TR} \  . | ${TR} \/ - | ${SED} s/sun4./sun4/`/libsmutil/libsmutil.a \
 		${PREFIX}/lib

 USE_PKGINSTALL=	yes
@@ -107,4 +107,4 @@
 .include "../../mk/bsd.pkg.mk"

 # has to be below include for bsd.pkg.mk, else substition fails
-OBJDIR!=	${ECHO} obj.`uname -srm | ${TR} \  .`
+OBJDIR!=	${ECHO} obj.`uname -srm | ${TR} \  . | ${TR} \/ -`
Index: Makefile.common
===================================================================
RCS file: /cvsroot/pkgsrc/mail/sendmail/Makefile.common,v
retrieving revision 1.12
diff -b -u -r1.12 Makefile.common
--- Makefile.common	3 Oct 2003 10:34:02 -0000	1.12
+++ Makefile.common	4 Oct 2003 23:22:50 -0000
@@ -44,7 +44,7 @@
 	${ECHO} -n 'compiled features:' >>${DESCR_SRC}
 .if defined(USE_INET6) && ${USE_INET6} == YES
 	${CAT} ${FILESDIR}/site.config.m4-v6 >>${SITECONFIG}
-.if ${OPSYS} != "SunOS"
+.if ${OPSYS} != "SunOS" && ${OPSYS} != "BSDOS"
 	${CAT} ${FILESDIR}/site.config.m4-v6-not-solaris >>${SITECONFIG}
 .endif
 	${ECHO} -n ' INET6' >>${DESCR_SRC}

>Release-Note:
>Audit-Trail:
>Unformatted: