Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jun 2015 16:46:47 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r389063 - in head/sysutils/moreutils: . files
Message-ID:  <201506101646.t5AGklpj025474@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Wed Jun 10 16:46:46 2015
New Revision: 389063
URL: https://svnweb.freebsd.org/changeset/ports/389063

Log:
  - Update to 0.56
  - Update manpages
  - Update maintainer section
  
  Changes:	http://joeyh.name/code/moreutils/news/version_0.56/

Added:
  head/sysutils/moreutils/files/patch-ifdata.c   (contents, props changed)
Modified:
  head/sysutils/moreutils/Makefile
  head/sysutils/moreutils/distinfo
  head/sysutils/moreutils/files/errno.1
  head/sysutils/moreutils/files/moreutils-parallel.1
  head/sysutils/moreutils/files/sponge.1

Modified: head/sysutils/moreutils/Makefile
==============================================================================
--- head/sysutils/moreutils/Makefile	Wed Jun 10 16:46:42 2015	(r389062)
+++ head/sysutils/moreutils/Makefile	Wed Jun 10 16:46:46 2015	(r389063)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	moreutils
-PORTVERSION=	0.55
+PORTVERSION=	0.56
 CATEGORIES=	sysutils
 MASTER_SITES=	DEBIAN_POOL
 DISTNAME=	${PORTNAME}_${PORTVERSION}.orig
@@ -64,10 +64,10 @@ do-install:
 # require: docbook-xsl, libxml2, libxslt
 
 updateman: do-clean extract
-	${MV} ${WRKSRC}/parallel.docbook ${WRKSRC}/moreutils-parallel.docbook
 .for man in ${CANNED_MANPAGES:R}
 	${LOCALBASE}/bin/xmllint --noout --valid ${WRKSRC}/${man}.docbook && \
 	${LOCALBASE}/bin/xsltproc --output ${FILESDIR}/${man}.1 --param man.authors.section.enabled 0 ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl ${WRKSRC}/${man}.docbook
 .endfor
+	${MV} ${FILESDIR}/parallel.1 ${FILESDIR}/moreutils-parallel.1
 
 .include <bsd.port.mk>

Modified: head/sysutils/moreutils/distinfo
==============================================================================
--- head/sysutils/moreutils/distinfo	Wed Jun 10 16:46:42 2015	(r389062)
+++ head/sysutils/moreutils/distinfo	Wed Jun 10 16:46:46 2015	(r389063)
@@ -1,2 +1,2 @@
-SHA256 (moreutils_0.55.orig.tar.gz) = da9d5cd145ceea967a65dd50031d168d66199c3eb41b9390b57f35d4a5808ab5
-SIZE (moreutils_0.55.orig.tar.gz) = 46500
+SHA256 (moreutils_0.56.orig.tar.gz) = ec4b7a1e1d1e1d6ec606d2877301ec06c6cf4091776687d9b76f4d019705e77f
+SIZE (moreutils_0.56.orig.tar.gz) = 46704

Modified: head/sysutils/moreutils/files/errno.1
==============================================================================
--- head/sysutils/moreutils/files/errno.1	Wed Jun 10 16:46:42 2015	(r389062)
+++ head/sysutils/moreutils/files/errno.1	Wed Jun 10 16:46:46 2015	(r389063)
@@ -43,7 +43,7 @@ errno \- look up errno names and descrip
 \fBerrno\fR
 looks up errno macro names, errno codes, and the corresponding descriptions\&. For example, if given
 ENOENT
-on a Linux system, it prints out the code 2 and the description "No such file or directory"\&. If given the code 2, it printes
+on a Linux system, it prints out the code 2 and the description "No such file or directory"\&. If given the code 2, it prints
 ENOENT
 and the same description\&.
 .SH "OPTIONS"

Modified: head/sysutils/moreutils/files/moreutils-parallel.1
==============================================================================
--- head/sysutils/moreutils/files/moreutils-parallel.1	Wed Jun 10 16:46:42 2015	(r389062)
+++ head/sysutils/moreutils/files/moreutils-parallel.1	Wed Jun 10 16:46:46 2015	(r389063)
@@ -82,6 +82,9 @@ This runs three independent commands in 
 Its exit status is the combination of the exit statuses of each command ran, ORed together\&. (Thus, if any one command exits nonzero,
 \fBparallel\fR
 as a whole will exit nonzero\&.)
+.SH "NOTES"
+.PP
+All output to stdout and stderr is serialised through a corresponding internal pipe, in order to prevent annoying concurrent output behaviour\&. Note that serialisation is not done on any other file descriptors and file position based access to a nonstandard file descriptor might have unexpected results\&.
 .SH "AUTHOR"
 .PP
 Tollef Fog Heen

Added: head/sysutils/moreutils/files/patch-ifdata.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/moreutils/files/patch-ifdata.c	Wed Jun 10 16:46:46 2015	(r389063)
@@ -0,0 +1,35 @@
+--- ifdata.c.orig	2015-06-03 16:04:42 UTC
++++ ifdata.c
+@@ -1,4 +1,4 @@
+-#include <error.h>
++#include <err.h>
+ #include <stdlib.h>
+ #include <sys/types.h>
+ #include <sys/socket.h>
+@@ -19,7 +19,7 @@
+ 	#include <net/if.h>
+ #endif
+ 
+-#if defined(__APPLE__)
++#if defined(__FreeBSD__)
+ 	#define s6_addr16 __u6_addr.__u6_addr16
+ 	#include <net/if.h>
+ #endif
+@@ -130,7 +130,7 @@ static int do_socket_ioctl(const char *i
+ 			*ioctl_errno = errno;
+ 		if (print_error == PRINT_ERROR) {
+ 			if (errno == ENODEV)
+-				error(EXIT_FAILURE, 0,
++				err(EXIT_FAILURE,
+ 				      "No such network interface: %s", ifname);
+ 			else
+ 				fprintf(stderr, "ioctl on %s: %s\n", ifname,
+@@ -392,7 +392,7 @@ void please_do(int ndo, int *todo, const
+ 	for (i=0; i<ndo; i++) {
+ 		if (!exists &&
+ 		    (todo[i] != DO_EXISTS) && (todo[i] != DO_PEXISTS))
+-			error(EXIT_FAILURE, 0, "No such network interface: %s",
++			err(EXIT_FAILURE, "No such network interface: %s",
+ 			      ifname);
+ 
+ 		switch (todo[i]) {

Modified: head/sysutils/moreutils/files/sponge.1
==============================================================================
--- head/sysutils/moreutils/files/sponge.1	Wed Jun 10 16:46:42 2015	(r389062)
+++ head/sysutils/moreutils/files/sponge.1	Wed Jun 10 16:46:46 2015	(r389063)
@@ -30,16 +30,34 @@
 .SH "NAME"
 sponge \- soak up standard input and write to a file
 .SH "SYNOPSIS"
-.HP \w'\fBsed\ \*(Aq\&.\&.\&.\*(Aq\ file\ |\ grep\ \*(Aq\&.\&.\&.\*(Aq\ |\ sponge\ file\fR\ 'u
-\fBsed \*(Aq\&.\&.\&.\*(Aq file | grep \*(Aq\&.\&.\&.\*(Aq | sponge file\fR
+.HP \w'\fBsed\ \*(Aq\&.\&.\&.\*(Aq\ file\ |\ grep\ \*(Aq\&.\&.\&.\*(Aq\ |\ sponge\ [\-a]\ file\fR\ 'u
+\fBsed \*(Aq\&.\&.\&.\*(Aq file | grep \*(Aq\&.\&.\&.\*(Aq | sponge [\-a] file\fR
 .SH "DESCRIPTION"
 .PP
 \fBsponge\fR
-reads standard input and writes it out to the specified file\&. Unlike a shell redirect, sponge soaks up all its input before opening the output file\&. This allows constructing pipelines that read from and write to the same file\&.
+reads standard input and writes it out to the specified file\&. Unlike a shell redirect,
+\fBsponge\fR
+soaks up all its input before writing the output file\&. This allows constructing pipelines that read from and write to the same file\&.
+.PP
+
+\fBsponge\fR
+preserves the permissions of the output file if it already exists\&.
 .PP
-It also creates the output file atomically by renaming a temp file into place, and preserves the permissions of the output file if it already exists\&. If the output file is a special file or symlink, the data will be written to it\&.
+When possible,
+\fBsponge\fR
+creates or updates the output file atomically by renaming a temp file into place\&. (This cannot be done if TMPDIR is not in the same filesystem\&.)
+.PP
+If the output file is a special file or symlink, the data will be written to it, non\-atomically\&.
+.PP
+If no file is specified,
+\fBsponge\fR
+outputs to stdout\&.
+.SH "OPTIONS"
 .PP
-If no output file is specified, sponge outputs to stdout\&.
+\fB\-a\fR
+.RS 4
+Replace the file with a new file that contains the file\*(Aqs original content, with the standard input appended to it\&. This is done atomically when possible\&.
+.RE
 .SH "AUTHOR"
 .PP
 Colin Watson and Tollef Fog Heen



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