Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Apr 2005 19:20:06 -0300 (BRST)
From:      Sylvio Cesar <sylvioc@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/80123: [PATCH] archivers/sharutils: update to 4.3.77, take maintainership
Message-ID:  <200504192220.j3JMK6sK058161@data.galle.com.br>
Resent-Message-ID: <200504192230.j3JMUQwH026730@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         80123
>Category:       ports
>Synopsis:       [PATCH] archivers/sharutils: update to 4.3.77, take maintainership
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 19 22:30:26 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Sylvio Cesar
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD sylvioc.ios.com.br 5.4-STABLE FreeBSD 5.4-STABLE #8: Wed Apr  6 12:13:46 BRT
>Description:
- Update to 4.3.77
- Removed patch patch-doc_remsync.texi, patch-doc_sharutils.texi, patch-src_shar.c
- Take maintainership

Added file(s):
- files/patch-src_unshar.c

Removed file(s):
- files/patch-aa
- files/patch-ac
- files/patch-buffer-check
- files/patch-buffer-limits

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:

--- sharutils-4.3.77.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/archivers/sharutils/Makefile,v
retrieving revision 1.25
diff -u -r1.25 Makefile
--- Makefile	13 Oct 2004 10:17:00 -0000	1.25
+++ Makefile	19 Apr 2005 20:22:23 -0000
@@ -6,20 +6,19 @@
 #
 
 PORTNAME=	sharutils
-PORTVERSION=	4.2.1
-PORTREVISION=	2
+PORTVERSION=	4.3.77
 CATEGORIES=	archivers
 MASTER_SITES=	${MASTER_SITE_GNU}
-MASTER_SITE_SUBDIR=	sharutils
+MASTER_SITE_SUBDIR=	sharutils/4.3.77
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	sylvioc@gmail.com
 COMMENT=	Pack, send and unpack shell archives; synchronize via e-mail
 
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--program-prefix=g --disable-uucode --disable-nls
 INSTALL_TARGET=	install install-man
 MAN1=		gshar.1 gunshar.1
-INFO=		remsync sharutils
+INFO=		sharutils
 PLIST_FILES=	bin/gmail-files bin/gmailshar bin/gremsync bin/gshar bin/gunshar
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /home/ncvs/ports/archivers/sharutils/distinfo,v
retrieving revision 1.5
diff -u -r1.5 distinfo
--- distinfo	27 Jan 2004 20:50:37 -0000	1.5
+++ distinfo	19 Apr 2005 20:22:23 -0000
@@ -1,2 +1,2 @@
-MD5 (sharutils-4.2.1.tar.gz) = b8ba1d409f07edcb335ff72a27bd9828
-SIZE (sharutils-4.2.1.tar.gz) = 306022
+MD5 (sharutils-4.3.77.tar.gz) = 813e7d2d119fc807286b1e01448cf450
+SIZE (sharutils-4.3.77.tar.gz) = 686211
Index: files/patch-aa
===================================================================
RCS file: files/patch-aa
diff -N files/patch-aa
--- files/patch-aa	10 Jul 1997 07:04:45 -0000	1.3
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,90 +0,0 @@
---- doc/remsync.texi.orig	Sun Jun  8 22:59:35 1997
-+++ doc/remsync.texi	Sun Jun  8 23:02:50 1997
-@@ -2,6 +2,11 @@
- @c %**start of header
- @setfilename remsync.info
- @settitle @code{remsync} reference manual
-+@dircategory File transfer and archiving tools
-+@direntry
-+* remsync: (remsync).                           Synchronize remote directory
-+                                                trees using email.
-+@end direntry
- @finalout
- @setchapternewpage odd
- @c %**end of header
---- doc/sharutils.texi.orig	Sun Jun  8 22:59:41 1997
-+++ doc/sharutils.texi	Sun Jun  8 23:10:37 1997
-@@ -2,6 +2,16 @@
- @c %**start of header
- @setfilename sharutils.info
- @settitle GNU @code{shar} utilities
-+@dircategory File transfer and archiving tools
-+@direntry
-+* Shar utilities: (sharutils).                  GNU shar utilities.
-+* mail-files: (sharutils)mail-files invocation. Send files to remote site.
-+* mailshar: (sharutils)mailshar invocation.     Make and send a shell archive.
-+* shar: (sharutils)shar invocation.             Make a shell archive.
-+* unshar: (sharutils)unshar invocation.         Explode a shell archive.
-+* uudecode: (sharutils)uudecode invocation.     Restore file from 7-bits.
-+* uuencode: (sharutils)uuencode invocation.     Force binary file to 7-bits.
-+@end direntry
- @finalout
- @c %**end of header
- 
-@@ -15,21 +26,6 @@
- @end tex
- 
- @ifinfo
--@format
--START-INFO-DIR-ENTRY
--* Shar utilities: (sharutils).          GNU shar utilities.
--* mail-files: (sharutils)mail-files invocation. Send files to remote site.
--* mailshar: (sharutils)mailshar invocation.     Make and send a shell archive.
--* remsync: (sharutils)remsync invocation.       Synchronize remote files.
--* shar: (sharutils)shar invocation.             Make a shell archive.
--* unshar: (sharutils)unshar invocation.         Explode a shell archive.
--* uudecode: (sharutils)uudecode invocation.     Restore file from 7-bits.
--* uuencode: (sharutils)uuencode invocation.     Force binary file to 7-bits.
--END-INFO-DIR-ENTRY
--@end format
--@end ifinfo
--
--@ifinfo
- This file documents the GNU set of shar utilities.
- 
- Copyright (C) 1994 Free Software Foundation, Inc.
-@@ -157,8 +153,8 @@
- The format of the @code{shar} command is one of:
- 
- @example
--shar [ @var{option} ] @dots{} @var{file} @dots{}
--shar -S [ @var{option} ] @dots{}
-+gshar [ @var{option} ] @dots{} @var{file} @dots{}
-+gshar -S [ @var{option} ] @dots{}
- @end example
- 
- In the first form, the file list is given as command arguments.  In the
-@@ -548,7 +544,7 @@
- The format of the @code{unshar} command is:
- 
- @example
--unshar [ @var{option} ] @dots{} [ @var{file} @dots{} ]
-+gunshar [ @var{option} ] @dots{} [ @var{file} @dots{} ]
- @end example
- 
- Each @var{file} is processed in turn, as a shell archive or a
-@@ -635,10 +631,10 @@
- Let us conclude by a showing a few examples of @code{shar} usage:
- 
- @example
--shar *.c > cprog.shar
--shar -Q *.[ch] > cprog.shar
--shar -B -l28 -oarc.sh. *.arc
--shar -f /lcl/src/u*.c > u.sh
-+gshar *.c > cprog.shar
-+gshar -Q *.[ch] > cprog.shar
-+gshar -B -l28 -oarc.sh. *.arc
-+gshar -f /lcl/src/u*.c > u.sh
- @end example
- 
- @noindent
Index: files/patch-ac
===================================================================
RCS file: files/patch-ac
diff -N files/patch-ac
--- files/patch-ac	9 Jun 1997 07:12:53 -0000	1.2
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,11 +0,0 @@
---- src/shar.c.orig	Sun Jun  8 22:47:22 1997
-+++ src/shar.c	Sun Jun  8 22:47:37 1997
-@@ -688,7 +688,7 @@
-      const char *local_name;
-      const char *restore_name;
- {
--  fprintf (output, "# %6ld %s %s\n", struct_stat.st_size,
-+  fprintf (output, "# %6ld %s %s\n", (long)struct_stat.st_size,
- 	   mode_string (struct_stat.st_mode), restore_name);
-   return 0;
- }
Index: files/patch-buffer-check
===================================================================
RCS file: files/patch-buffer-check
diff -N files/patch-buffer-check
--- files/patch-buffer-check	13 Oct 2004 10:17:01 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,98 +0,0 @@
-Index: src/shar.c
-===================================================================
-RCS file: /home/ke/cvsroot/sharutils/src/shar.c,v
-retrieving revision 1.22
-diff -u -r1.22 shar.c
---- src/shar.c	2 Dec 2002 20:52:10 -0000	1.22
-+++ src/shar.c	15 May 2004 09:13:16 -0000
-@@ -255,11 +255,11 @@
- /* Position for first file in the shar file.  */
- static off_t first_file_position;
- 
--/* Base for output filename.  FIXME: No fix limit in GNU... */
--static char output_base_name[50];
-+/* Base for output filename.  */
-+static char *output_base_name;
- 
--/* Actual output filename.  FIXME: No fix limit in GNU... */
--static char output_filename[50];
-+/* Actual output filename.  */
-+static char *output_filename;
- 
- static char *submitter_address = NULL;
- 
-@@ -1727,7 +1727,12 @@
- static void
- open_output ()
- {
--  sprintf (output_filename, output_base_name, ++part_number);
-+  size_t l;
-+  l = strlen(output_base_name) + 128;
-+  if (output_filename)
-+    free(output_filename);
-+  output_filename = xmalloc(l);
-+  snprintf(output_filename, l, output_base_name, ++part_number);
-   output = fopen (output_filename, "w");
-   if (!output)
-     error (EXIT_FAILURE, errno, _("Opening `%s'"), output_filename);
-@@ -1907,6 +1912,42 @@
-     file_size_limit = lim;
- }
- 
-+
-+char *parse_output_base_name(char *arg)
-+{
-+  int c;
-+  int hadarg = 0;
-+  char *fmt, *p;
-+
-+  for (p = arg ; (c = *p++) != 0; )
-+    {
-+      if (c != '%')
-+	continue;
-+      c = *p++;
-+      if (c == '%')
-+	continue;
-+      if (hadarg)
-+	return 0;
-+      while (c != 0 && strchr("#0+- 'I", c) != 0)
-+	c = *p++;
-+      while (c != 0 && c >= '0' && c <= '9')
-+	c = *p++;
-+      if (c == '.')
-+	c = *p++;
-+      while (c != 0 && c >= '0' && c <= '9')
-+	c = *p++;
-+      if (c == 0 || strchr("diouxX", c) == 0)
-+	return 0;
-+      hadarg = 1;
-+    }
-+  fmt = xmalloc(strlen(arg) + (hadarg ? 1 : 6));
-+  strcpy(fmt, arg);
-+  if (!hadarg)
-+    strcat(fmt, ".%02d");
-+  return fmt;
-+}
-+
-+
- /*---.
- | ?  |
- `---*/
-@@ -2047,9 +2088,14 @@
- 	break;
- 
-       case 'o':
--	strcpy (output_base_name, optarg);
--	if (!strchr (output_base_name, '%'))
--	  strcat (output_base_name, ".%02d");
-+	if (output_base_name)
-+	  free (output_base_name);
-+        output_base_name = parse_output_base_name(optarg);
-+        if (!output_base_name)
-+	  {
-+	    fprintf (stderr, _("illegal output prefix\n"));
-+	    exit (EXIT_FAILURE);
-+	  }
- 	part_number = 0;
- 	open_output ();
- 	break;
Index: files/patch-buffer-limits
===================================================================
RCS file: files/patch-buffer-limits
diff -N files/patch-buffer-limits
--- files/patch-buffer-limits	13 Oct 2004 10:17:01 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,59 +0,0 @@
---- src/shar.c.orig	1999-09-10 21:20:41.000000000 +0200
-+++ src/shar.c	2004-09-29 15:09:40.790061000 +0200
-@@ -1571,7 +1571,7 @@
- 	  sprintf (command, "%s '%s'", CHARACTER_COUNT_COMMAND, local_name);
- 	  if (pfp = popen (command, "r"), pfp)
- 	    {
--	      char wc[BUFSIZ];
-+		char wc[BUFSIZ], tempform[50];      
- 	      const char *prefix = "";
- 
- 	      if (did_md5)
-@@ -1579,8 +1579,8 @@
- 		  fputs ("  else\n", output);
- 		  prefix = "  ";
- 		}
--
--	      fscanf (pfp, "%s", wc);
-+	sprintf (tempform, "%%%ds", BUFSIZ - 1);
-+	fscanf (pfp, tempform, wc);
- 	      fprintf (output, "\
- %s  shar_count=\"`%s '%s'`\"\n\
- %s  test %s -eq \"$shar_count\" ||\n\
-diff -Naur ./sharutils-4.2.1/src/unshar.c ./sharutils-4.2.1_new/src/unshar.c
---- src/unshar.c.orig	1995-11-21 17:22:14.000000000 +0100
-+++ src/unshar.c	2004-09-29 15:09:44.682469264 +0200
-@@ -346,8 +346,8 @@
- {
-   size_t size_read;
-   FILE *file;
--  char name_buffer[NAME_BUFFER_SIZE];
--  char copy_buffer[NAME_BUFFER_SIZE];
-+  char name_buffer[NAME_BUFFER_SIZE] = {'\0'};
-+  char copy_buffer[NAME_BUFFER_SIZE] = {'\0'};
-   int optchar;
- 
-   program_name = argv[0];
-@@ -409,14 +409,14 @@
-   if (optind < argc)
-     for (; optind < argc; optind++)
-       {
--	if (argv[optind][0] == '/')
--	  stpcpy (name_buffer, argv[optind]);
--	else
--	  {
--	    char *cp = stpcpy (name_buffer, current_directory);
--	    *cp++ = '/';
--	    stpcpy (cp, argv[optind]);
--	  }
-+	if (argv[optind][0] == '/') {
-+		strncpy (name_buffer, argv[optind], sizeof(name_buffer));
-+		name_buffer[sizeof(name_buffer)-1] = '\0';
-+	}
-+	else {
-+		snprintf(name_buffer, sizeof(name_buffer),"%s/%s", current_directory, argv[optind]);
-+		name_buffer[sizeof(name_buffer)-1] = '\0';
-+	}
- 	if (file = fopen (name_buffer, "r"), !file)
- 	  error (EXIT_FAILURE, errno, name_buffer);
- 	unarchive_shar_file (name_buffer, file);
Index: files/patch-src_unshar.c
===================================================================
RCS file: files/patch-src_unshar.c
diff -N files/patch-src_unshar.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-src_unshar.c	19 Apr 2005 20:22:23 -0000
@@ -0,0 +1,36 @@
+--- src/unshar.c.orig	1995-11-21 17:22:14.000000000 +0100
++++ src/unshar.c	2004-09-29 15:09:44.682469264 +0200
+@@ -346,8 +346,8 @@
+ {
+   size_t size_read;
+   FILE *file;
+-  char name_buffer[NAME_BUFFER_SIZE];
+-  char copy_buffer[NAME_BUFFER_SIZE];
++  char name_buffer[NAME_BUFFER_SIZE] = {'\0'};
++  char copy_buffer[NAME_BUFFER_SIZE] = {'\0'};
+   int optchar;
+ 
+   program_name = argv[0];
+@@ -409,14 +409,14 @@
+   if (optind < argc)
+     for (; optind < argc; optind++)
+       {
+-	if (argv[optind][0] == '/')
+-	  stpcpy (name_buffer, argv[optind]);
+-	else
+-	  {
+-	    char *cp = stpcpy (name_buffer, current_directory);
+-	    *cp++ = '/';
+-	    stpcpy (cp, argv[optind]);
+-	  }
++	if (argv[optind][0] == '/') {
++		strncpy (name_buffer, argv[optind], sizeof(name_buffer));
++		name_buffer[sizeof(name_buffer)-1] = '\0';
++	}
++	else {
++		snprintf(name_buffer, sizeof(name_buffer),"%s/%s", current_directory, argv[optind]);
++		name_buffer[sizeof(name_buffer)-1] = '\0';
++	}
+ 	if (file = fopen (name_buffer, "r"), !file)
+ 	  error (EXIT_FAILURE, errno, name_buffer);
+ 	unarchive_shar_file (name_buffer, file);
--- sharutils-4.3.77.patch ends here ---

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504192220.j3JMK6sK058161>