From owner-svn-ports-all@freebsd.org Sun Jul 31 18:31:09 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7D569BAAD12; Sun, 31 Jul 2016 18:31:09 +0000 (UTC) (envelope-from pawel@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 58B6E1A61; Sun, 31 Jul 2016 18:31:09 +0000 (UTC) (envelope-from pawel@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u6VIV89G088438; Sun, 31 Jul 2016 18:31:08 GMT (envelope-from pawel@FreeBSD.org) Received: (from pawel@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u6VIV8gp088433; Sun, 31 Jul 2016 18:31:08 GMT (envelope-from pawel@FreeBSD.org) Message-Id: <201607311831.u6VIV8gp088433@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pawel set sender to pawel@FreeBSD.org using -f From: Pawel Pekala Date: Sun, 31 Jul 2016 18:31:08 +0000 (UTC) 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 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Jul 2016 18:31:09 -0000 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 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 +# $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 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 + #include ++#include + #include + #include + #include +@@ -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/