From dm@home.dinoex.sub.org  Tue Nov 13 14:06:33 2001
Return-Path: <dm@home.dinoex.sub.org>
Received: from net2.dinoex.sub.org (net2.dinoex.de [212.184.201.182])
	by hub.freebsd.org (Postfix) with ESMTP id 7FD7F37B416
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 13 Nov 2001 14:06:29 -0800 (PST)
Received: from home.dinoex.sub.org (home [217.6.200.196])
	by net2.dinoex.sub.org (8.11.6/8.11.6) with ESMTP id fADM69400533
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 13 Nov 2001 23:06:10 +0100 (CET)
	(envelope-from dm@home.dinoex.sub.org)
Received: (from dm@localhost)
	by home.dinoex.sub.org (8.12.1/8.12.1/Submit) id fADM64wq041572;
	Tue, 13 Nov 2001 23:06:04 +0100 (CET)?g
	(envelope-from dm)
Message-Id: <200111132206.fADM64wq041572@home.dinoex.sub.org>
Date: Tue, 13 Nov 2001 23:06:04 +0100 (CET)
From: dirk.meyer@dinoex.sub.org
Reply-To: dirk.meyer@dinoex.sub.org
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] freebsd-uucp
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         31960
>Category:       ports
>Synopsis:       [PATCH] freebsd-uucp
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    dinoex
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 13 14:10:00 PST 2001
>Closed-Date:    Fri Nov 23 00:57:21 PST 2001
>Last-Modified:  Sun Jul 07 01:54:17 PDT 2002
>Originator:     Dirk Meyer
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
privat
>Environment:
System: FreeBSD 4.4-STABLE

>Description:

	port does not build

>How-To-Repeat:

	cd /usr/ports/net/freebsd-uucp make

>Fix:
	Hotfix: apply this patches
	Clean: Reroll a new distfile

The package still not builds.
I am willing to take Maintainership.

kind regards Dirk
<dinoex@FreeBSD.org>

- Dirk Meyer, Im Grund 4, 34317 Habichtswald, Germany

+As we allow the Logfiles to be rotated, we sould allow UUCP to open new ones
+(see gnu/#17202).
+
+The Grade patch is now common in use, so it seem to make sense to include
+it in the base distribution (see gnu/#17202).

diff freebsd-uucp/files/patch-local.mtree freebsd-uucp/files/patch-local.mtree
--- freebsd-uucp/files/patch-local.mtree	Thu Jan  1 01:00:00 1970
+++ freebsd-uucp/files/patch-local.mtree	Wed Oct  3 15:53:07 2001
@@ -0,0 +1,8 @@
+--- local.mtree.orig	Sun Sep  9 07:00:26 2001
++++ local.mtree	Wed Oct  3 15:53:03 2001
+@@ -14,3 +14,5 @@
+     libexec
+         uucp
+         ..
++    info
++    ..
diff freebsd-uucp/files/patch-policy.h freebsd-uucp/files/patch-policy.h
--- freebsd-uucp/files/patch-policy.h	Thu Jan  1 01:00:00 1970
+++ freebsd-uucp/files/patch-policy.h	Tue Oct  2 06:06:03 2001
@@ -0,0 +1,19 @@
+*** uucp/common_sources/policy.h	Fri Sep  1 08:01:38 1995
+--- uucp/common_sources/policy.h.neu	Tue Apr 15 05:24:44 1997
+***************
+*** 566,572 ****
+     exist when a new message is written out, it will be created.
+     Setting CLOSE_LOGFILES to 1 will obviously require slightly more
+     processing time.  */
+! #define CLOSE_LOGFILES 0
+  
+  /* The name of the default spool directory.  If HAVE_TAYLOR_CONFIG is
+     set to 1, this may be overridden by the ``spool'' command in the
+--- 566,572 ----
+     exist when a new message is written out, it will be created.
+     Setting CLOSE_LOGFILES to 1 will obviously require slightly more
+     processing time.  */
+! #define CLOSE_LOGFILES 1
+  
+  /* The name of the default spool directory.  If HAVE_TAYLOR_CONFIG is
+     set to 1, this may be overridden by the ``spool'' command in the
diff freebsd-uucp/files/patch-uucico.c freebsd-uucp/files/patch-uucico.c
--- freebsd-uucp/files/patch-uucico.c	Thu Jan  1 01:00:00 1970
+++ freebsd-uucp/files/patch-uucico.c	Tue Oct  2 06:06:07 2001
@@ -0,0 +1,89 @@
+--- uucp/uucico/uucico.c.orig	Mon Aug 21 13:28:23 1995
++++ uucp/uucico/uucico.c	Mon Feb 22 21:04:40 1999
+@@ -126,6 +126,9 @@
+   struct sconnection *qconn;
+ };
+ 
++/* min. grade set on commandline */
++static char cmdlgrade = '\0';
++
+ /* Local functions.  */
+ 
+ static void uusage P((void));
+@@ -176,6 +179,7 @@
+   { "nodetach", no_argument, NULL, 'D' },
+   { "loop", no_argument, NULL, 'e' },
+   { "force", no_argument, NULL, 'f'},
++  { "grade", required_argument, NULL, 'g'},
+   { "stdin", required_argument, NULL, 'i' },
+   { "prompt", no_argument, NULL, 'l' },
+   { "port", required_argument, NULL, 'p' },
+@@ -250,9 +254,9 @@
+     ++zProgram;
+ 
+ #if COHERENT_C_OPTION
+-  zopts = "c:CDefi:I:lp:qr:s:S:u:x:X:vwz";
++  zopts = "c:CDefg:i:I:lp:qr:s:S:u:x:X:vwz";
+ #else
+-  zopts = "cCDefi:I:lp:qr:s:S:u:x:X:vwz";
++  zopts = "cCDefg:i:I:lp:qr:s:S:u:x:X:vwz";
+ #endif
+ 
+   while ((iopt = getopt_long (argc, argv, zopts,
+@@ -293,6 +297,14 @@
+ 	     failed call.  */
+ 	  fforce = TRUE;
+ 	  break;
++	
++	case 'g':
++	  /* Force a grade */
++	  if (isalpha(optarg[0]))
++	     cmdlgrade = optarg[0];
++	  else
++	     fprintf (stderr, "%s: invalid grade \n", zProgram);
++	  break;
+ 
+ 	case 'i':
+ 	  /* Type of port to use for standard input.  Only TLI is
+@@ -794,6 +806,7 @@
+   printf ("Usage: %s [options]\n", zProgram);
+   printf (" -s,-S,--system system: Call system (-S implies -f)\n");
+   printf (" -f,--force: Force call despite system status\n");
++  printf (" -g,--grade: limit outgoing call to a given grade\n");
+   printf (" -r state: 1 for master, 0 for slave (default)\n");
+   printf (" --master: Act as master\n");
+   printf (" --slave: Act as slave (default)\n");
+@@ -940,6 +953,9 @@
+       if (! qsys->uuconf_fcall || qsys->uuconf_qtimegrade == NULL)
+ 	continue;
+ 
++      if (qport && strcmp (qsys->uuconf_zport,qport->uuconf_zname))
++       continue;
++
+       fnevertime = FALSE;
+ 
+       /* Make sure this is a legal time to call.  */
+@@ -1331,12 +1347,18 @@
+     boolean fret;
+ 
+     /* Determine the grade we should request of the other system.  A
+-       '\0' means that no restrictions have been made.  */
+-    if (! ftimespan_match (qsys->uuconf_qcalltimegrade, &ival,
+-			   (int *) NULL))
+-      bgrade = '\0';
++       '\0' means that no restrictions have been made.
++       If a grade is set on the command line, the calltimegrade-value
++       is overwritten.  */
++       
++    if (cmdlgrade != '\0')
++      bgrade = cmdlgrade;
+     else
+-      bgrade = (char) ival;
++      if (! ftimespan_match (qsys->uuconf_qcalltimegrade, &ival,
++			   (int *) NULL))
++         bgrade = '\0';
++      else
++         bgrade = (char) ival;
+ 
+     /* Determine the name we will call ourselves.  */
+     if (qsys->uuconf_zlocalname != NULL)
diff freebsd-uucp/files/patch-uucpd-Makefile freebsd-uucp/files/patch-uucpd-Makefile
--- freebsd-uucp/files/patch-uucpd-Makefile	Thu Jan  1 01:00:00 1970
+++ freebsd-uucp/files/patch-uucpd-Makefile	Wed Oct  3 15:58:58 2001
@@ -0,0 +1,10 @@
+--- uucpd/Makefile.orig	Mon Oct  1 09:39:27 2001
++++ uucpd/Makefile	Wed Oct  3 15:58:51 2001
+@@ -4,6 +4,7 @@
+ PROG=	uucpd
+ MAN=	uucpd.8
+ BINDIR=	${PREFIX}/libexec
++MANDIR=	${PREFIX}/man/man
+ LDADD=  -lcrypt -lutil
+ DPADD=  ${LIBCRYPT} ${LIBUTIL}
+ 
diff freebsd-uucp/pkg-plist freebsd-uucp/pkg-plist
--- freebsd-uucp/pkg-plist	Tue Oct  2 22:48:40 2001
+++ freebsd-uucp/pkg-plist	Wed Oct  3 15:06:26 2001
@@ -20,6 +20,8 @@
 etc/uucp/sys1.sample
 etc/uucp/sys2.sample
 info/uucp.info.gz
+@exec install-info %D/info/uucp.info %D/info/dir
+@unexec install-info --delete %D/info/uucp.info %D/info/dir
 libexec/uucp/uucico
 libexec/uucp/uuxqt
 libexec/uucpd
>Release-Note:
>Audit-Trail:

From: dirk.meyer@dinoex.sub.org (Dirk Meyer)
To: FreeBSD-gnats-submit@FreeBSD.ORG
Cc:  
Subject: ports/31960: [PATCH] freebsd-uucp
Date: Wed, 21 Nov 2001 11:27:16 +0100

 a rerolled cvs tarball wth the patches is made.
 Feel free to use it.
 
 kind regards Dirk
 
 - Dirk Meyer, Im Grund 4, 34317 Habichtswald, Germany
 
 diff freebsd-uucp/Makefile freebsd-uucp/Makefile
 --- freebsd-uucp/Makefile	Sun Oct  7 06:44:16 2001
 +++ freebsd-uucp/Makefile	Wed Nov 21 08:43:28 2001
 @@ -6,12 +6,12 @@
  #
  
  PORTNAME=	freebsd-uucp
 -PORTVERSION=	1.06.1.1
 +PORTVERSION=	1.06.1.2
  CATEGORIES=	net comms
  MASTER_SITES=	${MASTER_SITE_LOCAL}
 -MASTER_SITE_SUBDIR=kris
 +MASTER_SITE_SUBDIR=dinoex
  
 -MAINTAINER=	lyndon@atg.aciworldwide.com
 +MAINTAINER=	dinoex@FreeBSD.org
  
  USE_BZIP2=	yes
  
 diff freebsd-uucp/distinfo freebsd-uucp/distinfo
 --- freebsd-uucp/distinfo	Tue Oct  2 22:48:40 2001
 +++ freebsd-uucp/distinfo	Wed Nov 21 08:47:17 2001
 @@ -1 +1 @@
 -MD5 (freebsd-uucp-1.06.1.1.tar.bz2) = a735b48362cfde1fc4c8420f346598e9
 +MD5 (freebsd-uucp-1.06.1.2.tar.bz2) = 5bf965f9466cc7379f4605b60870ed9e
 diff freebsd-uucp/pkg-plist freebsd-uucp/pkg-plist
 --- freebsd-uucp/pkg-plist	Tue Oct  2 22:48:40 2001
 +++ freebsd-uucp/pkg-plist	Wed Oct  3 15:06:26 2001
 @@ -20,6 +20,8 @@
  etc/uucp/sys1.sample
  etc/uucp/sys2.sample
  info/uucp.info.gz
 +@exec install-info %D/info/uucp.info %D/info/dir
 +@unexec install-info --delete %D/info/uucp.info %D/info/dir
  libexec/uucp/uucico
  libexec/uucp/uuxqt
  libexec/uucpd
State-Changed-From-To: open->closed 
State-Changed-By: dinoex 
State-Changed-When: Fri Nov 23 00:57:21 PST 2001 
State-Changed-Why:  
commited after approval form maintainer. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=31960 
>Unformatted:
