Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Jul 2016 18:31:08 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r419400 - in head/sysutils: . xe xe/files
Message-ID:  <201607311831.u6VIV8gp088433@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Sun Jul 31 18:31:07 2016
New Revision: 419400
URL: https://svnweb.freebsd.org/changeset/ports/419400

Log:
  xe is a tool for constructing command lines from file listings or
  arguments, which includes the best features of xargs(1) and apply(1).
  
  Benefits over xargs:
  - Sane defaults (behaves like xargs -d'\n' -I{} -n1 -r).
  - No weird parsing, arguments are separated linewise or by NUL byte.
  - Can also take arguments from command-line.
  - No shell involved unless -s is used.
  - {} replacing possible with multiple arguments.
  
  WWW: https://github.com/chneukirchen/xe/
  
  PR:		211323
  Submitted by:	Tobias Kortkamp <t@tobik.me>

Added:
  head/sysutils/xe/
  head/sysutils/xe/Makefile   (contents, props changed)
  head/sysutils/xe/distinfo   (contents, props changed)
  head/sysutils/xe/files/
  head/sysutils/xe/files/patch-xe.c   (contents, props changed)
  head/sysutils/xe/pkg-descr   (contents, props changed)
Modified:
  head/sysutils/Makefile

Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile	Sun Jul 31 18:08:30 2016	(r419399)
+++ head/sysutils/Makefile	Sun Jul 31 18:31:07 2016	(r419400)
@@ -1200,6 +1200,7 @@
     SUBDIR += xcdroast
     SUBDIR += xcpustate
     SUBDIR += xdu
+    SUBDIR += xe
     SUBDIR += xe-guest-utilities
     SUBDIR += xen-guest-tools
     SUBDIR += xen-tools

Added: head/sysutils/xe/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/xe/Makefile	Sun Jul 31 18:31:07 2016	(r419400)
@@ -0,0 +1,26 @@
+# Created by: Tobias Kortkamp <t@tobik.me>
+# $FreeBSD$
+
+PORTNAME=	xe
+PORTVERSION=	0.6.1
+DISTVERSIONPREFIX=	v
+CATEGORIES=	sysutils
+
+MAINTAINER=	t@tobik.me
+COMMENT=	Simple xargs and apply replacement
+
+LICENSE=	CC0-1.0
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	chneukirchen
+
+MAKE_ARGS=	CFLAGS="${CFLAGS}" \
+		MANDIR="${PREFIX}/man"
+
+PLIST_FILES=	bin/xe \
+		man/man1/xe.1.gz
+
+post-install:
+	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/xe
+
+.include <bsd.port.mk>

Added: head/sysutils/xe/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/xe/distinfo	Sun Jul 31 18:31:07 2016	(r419400)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1469327893
+SHA256 (chneukirchen-xe-v0.6.1_GH0.tar.gz) = 36036d0e9464233d3113af187c473491298ed1168976330d7dd615b8f0521b96
+SIZE (chneukirchen-xe-v0.6.1_GH0.tar.gz) = 6889

Added: head/sysutils/xe/files/patch-xe.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/xe/files/patch-xe.c	Sun Jul 31 18:31:07 2016	(r419400)
@@ -0,0 +1,27 @@
+--- xe.c.orig	2016-05-20 18:14:18 UTC
++++ xe.c
+@@ -13,6 +13,7 @@
+ 
+ #include <limits.h>
+ #include <errno.h>
++#include <signal.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+@@ -100,7 +101,7 @@ mywait()
+ 		} else if (WEXITSTATUS(status) > 125) {
+ 			exit(WEXITSTATUS(status));
+ 		}
+-	} else if (WIFSIGNALED(status)) {
++	} else if (WIFSIGNALED(status) && !(fflag && WTERMSIG(status) == SIGPIPE)) {
+ 		fprintf(stderr, "xe: pid %d terminated by signal %d\n",
+ 		    pid, WTERMSIG(status));
+ 		exit(125);
+@@ -353,6 +354,7 @@ main(int argc, char *argv[], char *envp[
+ 			pusharg("/bin/sh");
+ 			pusharg("-c");
+ 			pusharg(sflag);
++			pusharg("--");
+ 			pusharg("-");
+ 		} else if (optind >= cmdend) {
+ 			pusharg("printf");

Added: head/sysutils/xe/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/xe/pkg-descr	Sun Jul 31 18:31:07 2016	(r419400)
@@ -0,0 +1,11 @@
+xe is a tool for constructing command lines from file listings or
+arguments, which includes the best features of xargs(1) and apply(1).
+
+Benefits over xargs:
+- Sane defaults (behaves like xargs -d'\n' -I{} -n1 -r).
+- No weird parsing, arguments are separated linewise or by NUL byte.
+- Can also take arguments from command-line.
+- No shell involved unless -s is used.
+- {} replacing possible with multiple arguments.
+
+WWW: https://github.com/chneukirchen/xe/



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