Subject: pkg/12163: Update mail/xfmail to 1.4.7 [patch included]
To: None <gnats-bugs@gnats.netbsd.org>
From: Tomasz Luchowski <zuntum@eik.pl>
List: netbsd-bugs
Date: 02/09/2001 14:37:45
>Number:         12163
>Category:       pkg
>Synopsis:       Update mail/xfmail to 1.4.7 [patch included]
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 09 14:40:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        1.5
>Organization:
/* [zuntum] zuntum@eik.pl , [WWW] http://zuntum.net */
>Environment:
	
System: NetBSD cappi 1.5.1_ALPHA NetBSD 1.5.1_ALPHA (CAPPI) #0: Sun Jan 28 13:07:55 CET 2001 root@cappi:/usr/src/sys/arch/i386/compile/CAPPI i386


>Description:
	Here's the update for mail/xfmail to the most recent version - 1.4.7

	I manually added patch-ae to the diff, because the file is new and cvs diff
	didn't include it.
	
>How-To-Repeat:
	
>Fix:

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/mail/xfmail/Makefile,v
retrieving revision 1.14
diff -u -r1.14 Makefile
--- Makefile	2000/09/28 20:34:04	1.14
+++ Makefile	2001/02/09 22:35:29
@@ -1,15 +1,17 @@
 # $NetBSD: Makefile,v 1.14 2000/09/28 20:34:04 fredb Exp $
 #
 
-DISTNAME=		xfmail-1.3
+DISTNAME=		xfmail-1.4.7
 CATEGORIES=		mail x11
-MASTER_SITES=		ftp://burka.netvision.net.il/pub/xfmail/
+MASTER_SITES=		ftp://xfmail.ufies.org/pub/xfmail/release/1.4.7/source/
+EXTRACT_SUFX=		.tar.bz2
 
 MAINTAINER=		root@garbled.net
-HOMEPAGE=		http://Burka.NetVision.net.il/xfmail/xfmail.html
+HOMEPAGE=		http://xfmail.slappy.org/
 
 DEPENDS+=		gdbm>=1.7.3:../../databases/gdbm
 DEPENDS+=		xforms>=0.88nb1:../../x11/xforms
+DEPENDS+=		glib-*:../../devel/glib
 
 ONLY_FOR_PLATFORM=	NetBSD-*-alpha NetBSD-*-arm32 NetBSD-*-i386 NetBSD-*-m68k \
 			NetBSD-*-mipsel NetBSD-*-ns32k NetBSD-*-sparc NetBSD-*-powerpc
@@ -22,8 +24,12 @@
 USE_XPM=		YES
 GNU_CONFIGURE=		YES
 
+pre-configure:
+	cd ${WRKSRC} && ( ${LN} -sf config/configure.in . && ${LN} -sf config/acconfig.h . )
+	cd ${WRKSRC} && ( ${LOCALBASE}/bin/autoheader && ${LOCALBASE}/bin/autoconf )
+
 post-install:
-	${MKDIR} ${PREFIX}/share/doc/xfmail
+	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/xfmail
 	${INSTALL_DATA} ${WRKSRC}/Copyright ${PREFIX}/share/doc/xfmail
 
 .include "../../mk/bsd.pkg.mk"
Index: files/md5
===================================================================
RCS file: /cvsroot/pkgsrc/mail/xfmail/files/md5,v
retrieving revision 1.2
diff -u -r1.2 md5
--- md5	1998/08/07 13:25:03	1.2
+++ md5	2001/02/09 22:35:29
@@ -1,3 +1,3 @@
-$NetBSD: md5,v 1.2 1998/08/07 13:25:03 agc Exp $
+$NetBSD$
 
-MD5 (xfmail-1.3.tar.gz) = c756fb26bb4b31e59af775d3a088fb73
+MD5 (xfmail-1.4.7.tar.bz2) = c915d9b39621fa538b329dcf4d161bb4
Index: files/patch-sum
===================================================================
RCS file: /cvsroot/pkgsrc/mail/xfmail/files/patch-sum,v
retrieving revision 1.2
diff -u -r1.2 patch-sum
--- patch-sum	2000/09/07 00:35:49	1.2
+++ patch-sum	2001/02/09 22:35:29
@@ -1,6 +1,7 @@
 $NetBSD: patch-sum,v 1.2 2000/09/07 00:35:49 dmcmahill Exp $
 
-MD5 (patch-aa) = a261d251cd80755282696e02ccc391e5
-MD5 (patch-ab) = 6313b4a64105e4d3fe3a8279b8daadec
-MD5 (patch-ac) = dca995c2c39df358248a4f981d2172f8
-MD5 (patch-ad) = 54c3c2564db85581a8e9d273ef8e33c3
+MD5 (patch-aa) = 04eeb9691762802f348db856884f42aa
+MD5 (patch-ab) = 7c175274f51d2607bae9d33f9e01d3d8
+MD5 (patch-ac) = bb72cc8467ee9447186fed09cd710b2b
+MD5 (patch-ad) = 63e07f169d348df7e3556b5046b9d72f
+MD5 (patch-ae) = c1a2377c0c290b39ef1b1c7b16e09900
Index: patches/patch-aa
===================================================================
RCS file: /cvsroot/pkgsrc/mail/xfmail/patches/patch-aa,v
retrieving revision 1.2
diff -u -r1.2 patch-aa
--- patch-aa	1998/08/07 11:09:54	1.2
+++ patch-aa	2001/02/09 22:35:29
@@ -1,9 +1,13 @@
-$NetBSD: patch-aa,v 1.2 1998/08/07 11:09:54 agc Exp $
+$NetBSD$
 
---- ui/newobjs.h.orig	Wed Oct 22 04:31:31 1997
-+++ ui/newobjs.h	Fri Jun 26 03:14:01 1998
-@@ -6,3 +6,3 @@
+--- ui/newobjs.h.orig	Tue Jan 18 02:38:23 2000
++++ ui/newobjs.h
+@@ -4,7 +4,7 @@
+ #ifndef _NEWOBJS_H
+     #define _NEWOBJS_H
  
--#include <forms.h>
-+#include <X11/forms.h>
- #include <sys/param.h>
+-    #include <forms.h>
++    #include <X11/forms.h>
+ 	#ifdef MAX
+ 	#undef MAX
+ 	#endif
Index: patches/patch-ab
===================================================================
RCS file: /cvsroot/pkgsrc/mail/xfmail/patches/patch-ab,v
retrieving revision 1.2
diff -u -r1.2 patch-ab
--- patch-ab	1998/08/07 11:09:55	1.2
+++ patch-ab	2001/02/09 22:35:29
@@ -1,9 +1,13 @@
-$NetBSD: patch-ab,v 1.2 1998/08/07 11:09:55 agc Exp $
+$NetBSD$
 
---- ui/umail.h.orig	Fri Jun 26 03:19:23 1998
-+++ ui/umail.h	Fri Jun 26 03:19:35 1998
-@@ -52,3 +52,3 @@
+--- ui/umail.h.orig	Fri Jun 23 21:30:31 2000
++++ ui/umail.h
+@@ -30,7 +30,7 @@
+         #include <pwd.h>
+     #endif
  
--#include <forms.h>
-+#include <X11/forms.h>
+-    #include <forms.h>
++    #include <X11/forms.h>
+ 
+     #include "version.h"
  
Index: patches/patch-ac
===================================================================
RCS file: /cvsroot/pkgsrc/mail/xfmail/patches/patch-ac,v
retrieving revision 1.2
diff -u -r1.2 patch-ac
--- patch-ac	1998/08/07 11:09:55	1.2
+++ patch-ac	2001/02/09 22:35:29
@@ -1,9 +1,13 @@
-$NetBSD: patch-ac,v 1.2 1998/08/07 11:09:55 agc Exp $
+$NetBSD$
 
---- editor/fl_edit.c.orig	Fri Jun 26 03:24:52 1998
-+++ editor/fl_edit.c	Fri Jun 26 03:25:10 1998
-@@ -69,3 +69,3 @@
+--- editor/fl_edit.c.orig	Sun May 28 00:11:08 2000
++++ editor/fl_edit.c
+@@ -71,7 +71,7 @@
  
+ #include <glib.h>
+ 
 -#include <forms.h>
 +#include <X11/forms.h>
+ #include <umail.h>
  #include "fl_edit.h"
+ #include "textbuf.h"
Index: patches/patch-ad
===================================================================
RCS file: /cvsroot/pkgsrc/mail/xfmail/patches/patch-ad,v
retrieving revision 1.3
diff -u -r1.3 patch-ad
--- patch-ad	2000/09/07 00:35:48	1.3
+++ patch-ad	2001/02/09 22:35:32
@@ -1,50 +1,40 @@
-$NetBSD: patch-ad,v 1.3 2000/09/07 00:35:48 dmcmahill Exp $
+$NetBSD$
 
---- configure.orig	Wed Apr 15 03:57:51 1998
-+++ configure	Wed Sep  6 20:17:41 2000
-@@ -1809,5 +1809,5 @@
- fi
+--- config/configure.in.orig	Wed Nov  8 21:14:50 2000
++++ config/configure.in
+@@ -62,7 +62,7 @@
+     fi])
  
+ AC_PATH_XTRA
 -LIBS="$extra_libraries -L/usr/local/lib $X_PRE_LIBS $LIBS $X_LIBS -lX11 $X_EXTRA_LIBS -lm"
-+LIBS="$extra_libraries -L${X11BASE}/lib -Wl,-R${X11BASE}/lib $X_PRE_LIBS $LIBS $X_LIBS -lX11 $X_EXTRA_LIBS -lm"
++LIBS="$extra_libraries -L${X11BASE}/lib -Wl,-R${X11BASE}/lib -L${LOCALBASE}/lib -Wl,-R${LOCALBASE}/lib $X_PRE_LIBS $LIBS $X_LIBS -lX11 $X_EXTRA_LIBS -lm"
  CPPFLAGS="$extra_includes $CPPFLAGS $X_CFLAGS"
  
-@@ -2910,7 +2910,7 @@
+ ### Check for the pt library (for SCO, needed for X)
+@@ -83,7 +83,7 @@
+        case "`gcc -v 2>&1`" in *"2.95"*)
+                AC_LANG_CPLUSPLUS
+                AC_CACHE_CHECK(for X headers compilance with ANSI C++, 
+-			   		xfmail_cv_permiss, [AC_TRY_COMPILE([#include <forms.h>], 
++			   		xfmail_cv_permiss, [AC_TRY_COMPILE([#include <X11/forms.h>], 
+ 					[int x; x=0], xfmail_cv_permiss=yes, xfmail_cv_permiss=no)])
+                if test x$xfmail_cv_permiss = xno; then
+                        CPPFLAGS="-fpermissive $CPPFLAGS"
+@@ -217,14 +217,14 @@
+ AC_CHECK_HEADER(X11/xpm.h,[],XFMAIL_LIB_ERROR(X11/xpm.h,libXpm))
  
- 
--ac_safe=`echo "forms.h" | sed 'y%./+-%__p_%'`
--echo $ac_n "checking for forms.h""... $ac_c" 1>&6
--echo "configure:2915: checking for forms.h" >&5
-+ac_safe=`echo "X11/forms.h" | sed 'y%./+-%__p_%'`
-+echo $ac_n "checking for X11/forms.h""... $ac_c" 1>&6
-+echo "configure:2915: checking for X11/forms.h" >&5
- if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
-   echo $ac_n "(cached) $ac_c" 1>&6
-@@ -2919,5 +2919,5 @@
- #line 2920 "configure"
- #include "confdefs.h"
--#include <forms.h>
-+#include <X11/forms.h>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-@@ -2943,5 +2943,5 @@
-  
- xfmail_error_txt="$xfmail_error_txt
--** Can't find forms.h. Please check that
-+** Can't find X11/forms.h. Please check that
-    the libforms library is installed correctly on your system.
- "
-@@ -2949,5 +2949,5 @@
- fi
- 
+ dnl Check for xforms headers
+-AC_CHECK_HEADER(forms.h,[],XFMAIL_LIB_ERROR(forms.h,libforms))
 -if test $ac_cv_header_forms_h = yes; then
++AC_CHECK_HEADER(X11/forms.h,[],XFMAIL_LIB_ERROR(X11/forms.h,libforms))
 +if test $ac_cv_header_X11_forms_h = yes; then
-   echo $ac_n "checking xforms library version""... $ac_c" 1>&6
- echo "configure:2954: checking xforms library version" >&5
-@@ -2959,5 +2959,5 @@
+   AC_CACHE_CHECK([xforms library version],xfmail_cv_xfversion,
+   [ cat > conftest.$ac_ext <<EOF
+ #line __oline__ "configure"
  #include "confdefs.h"
  
 -#include <forms.h>
 +#include <X11/forms.h>
  #if ! defined(FL_INCLUDE_VERSION)
  %%%old!%%%
+ #else

And new file (patches/patch-ae):

$NetBSD$

--- mail/fmail.h.orig   Thu Nov  2 16:38:04 2000
+++ mail/fmail.h
@@ -121,6 +121,7 @@
     #include <arpa/inet.h>
     #include <netdb.h>
 
+    #undef HAVE_SYS_NERR
     #ifndef HAVE_SYS_NERR
         #define sys_nerr    65535
     #else

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