net-misc/pipes: Fix a couple of compiler/QA warnings.
authorJeroen Roovers <jer@gentoo.org>
Fri, 20 Apr 2018 08:38:21 +0000 (10:38 +0200)
committerJeroen Roovers <jer@gentoo.org>
Fri, 20 Apr 2018 08:38:36 +0000 (10:38 +0200)
Package-Manager: Portage-2.3.31, Repoman-2.3.9

net-misc/pipes/files/pipes-1.16.1-execlp.patch [new file with mode: 0644]
net-misc/pipes/pipes-1.16.1-r1.ebuild [new file with mode: 0644]

diff --git a/net-misc/pipes/files/pipes-1.16.1-execlp.patch b/net-misc/pipes/files/pipes-1.16.1-execlp.patch
new file mode 100644 (file)
index 0000000..d7e31cc
--- /dev/null
@@ -0,0 +1,14 @@
+--- a/plis.c
++++ b/plis.c
+@@ -443,9 +443,9 @@
+                             if(!strncmp(argv[a], "pcon ", 5)) ChildPconTest(argv[a]);
+                             
+                             if(usesh)
+-                                execl(SHELL, "sh", "-c", argv[a], NULL);
++                                execl(SHELL, "sh", "-c", argv[a], (char *) NULL);
+                             else
+-                                execlp(argv[a], NULL);
++                                execlp(argv[a], ";", (char *) NULL);
+                         }
+                         else
+                         {
diff --git a/net-misc/pipes/pipes-1.16.1-r1.ebuild b/net-misc/pipes/pipes-1.16.1-r1.ebuild
new file mode 100644 (file)
index 0000000..7d8cc7d
--- /dev/null
@@ -0,0 +1,29 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit toolchain-funcs
+
+DESCRIPTION="Very versatile TCP pipes"
+HOMEPAGE="http://bisqwit.iki.fi/source/pipes.html"
+SRC_URI="http://bisqwit.iki.fi/src/arch/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~s390 ~x86"
+PATCHES=(
+       "${FILESDIR}"/${P}-execlp.patch
+)
+
+src_compile() {
+       # Prevent the build system from looking for dependencies
+       touch .depend || die
+
+       emake CC=$(tc-getCC) OPTIM="${CFLAGS}" LDFLAGS="${CFLAGS} ${LDFLAGS}"
+}
+
+src_install() {
+       dobin plis
+       dosym plis /usr/bin/pcon
+       dodoc ChangeLog Examples README.html
+}