Subject: update mail/sendmail to support BSD/OS
To: pkgsrc sendmail maintainer <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 10/04/2003 16:31:13
Can someone review these fixes below and let me know if it is okay to add?

This does two things:

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.)

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}



pkgsrc on BSD/OS is going good ...

   Jeremy C. Reed
   http://bsd.reedmedia.net/