sys-cluster/pconsole: EAPI7, improve ebuild, add upstream information to
authorMichael Mair-Keimberger <m.mairkeimberger@gmail.com>
Wed, 11 Jul 2018 20:16:43 +0000 (22:16 +0200)
committerAndrew Savchenko <bircoph@gentoo.org>
Wed, 8 Aug 2018 06:37:59 +0000 (09:37 +0300)
metadata.xml

Bug: https://bugs.gentoo.org/648050

sys-cluster/pconsole/files/pconsole-1.0-exit-warn.patch
sys-cluster/pconsole/metadata.xml
sys-cluster/pconsole/pconsole-1.0-r4.ebuild [new file with mode: 0644]

index f306d6408ee82d5e2eb24c41fdfee0e4c89c29e1..f06d46ba6b5306a7b29d053046a7326fd0727d51 100644 (file)
@@ -1,5 +1,5 @@
---- pconsole.c 2001-04-09 12:51:49.000000000 +0400
-+++ pconsole.c~vox     2004-08-16 11:37:49.606267087 +0400
+--- a/pconsole.c       2001-04-09 12:51:49.000000000 +0400
++++ b/pconsole.c       2004-08-16 11:37:49.606267087 +0400
 @@ -28,6 +28,7 @@
  #include "Conn.h"
  
index 4a09d7ba8d61b3ef1c7928fae7c2d83cdb3b686c..e0f52c2e39596328af2a4b84462bbb319d53828a 100644 (file)
@@ -5,4 +5,7 @@
        <email>cluster@gentoo.org</email>
        <name>Gentoo Cluster Project</name>
 </maintainer>
+<upstream>
+       <remote-id type="github">walterdejong/pconsole</remote-id>
+</upstream>
 </pkgmetadata>
diff --git a/sys-cluster/pconsole/pconsole-1.0-r4.ebuild b/sys-cluster/pconsole/pconsole-1.0-r4.ebuild
new file mode 100644 (file)
index 0000000..1d6ce3d
--- /dev/null
@@ -0,0 +1,32 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+DESCRIPTION="Tool for managing multiple xterms simultaneously"
+HOMEPAGE="https://github.com/walterdejong/pconsole"
+SRC_URI="http://www.xs4all.nl/~walterj/pconsole/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+PATCHES=( "${FILESDIR}"/${P}-exit-warn.patch )
+
+src_compile() {
+       emake LFLAGS="${LDFLAGS}" CFLAGS="${CFLAGS}" \
+               CC="$(tc-getCC)"
+}
+
+src_install() {
+       dobin pconsole
+       fperms 4110 /usr/bin/pconsole
+       dodoc ChangeLog README.pconsole public_html/pconsole.html
+}
+
+pkg_postinst() {
+       ewarn "Warning:"
+       ewarn "pconsole installed with suid root!"
+}