summaryrefslogtreecommitdiff
path: root/app-misc/dtach
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-misc/dtach
reinit the tree, so we can have metadata
Diffstat (limited to 'app-misc/dtach')
-rw-r--r--app-misc/dtach/Manifest8
-rw-r--r--app-misc/dtach/dtach-0.8-r1.ebuild25
-rw-r--r--app-misc/dtach/dtach-0.9.ebuild19
-rw-r--r--app-misc/dtach/files/dtach-0.8-CVE-2012-3368.patch35
-rw-r--r--app-misc/dtach/metadata.xml12
5 files changed, 99 insertions, 0 deletions
diff --git a/app-misc/dtach/Manifest b/app-misc/dtach/Manifest
new file mode 100644
index 000000000000..309318084d3f
--- /dev/null
+++ b/app-misc/dtach/Manifest
@@ -0,0 +1,8 @@
+AUX dtach-0.8-CVE-2012-3368.patch 1040 SHA256 2366af67282d85b1a84739db2d4b186c9038d02712baf15367bd51c5d8871499 SHA512 64ab0e8384e4f04e43b8565440b0ec3f0d43b87e142cd15dda0eec2b320aa3e8ed437524dcdbd390b83f4cb39c13df3575318be4de5f8eec50fb710c9ec1170b WHIRLPOOL 0b098b5726f8da149911f39f988b9ba4c907286bbc4717356b47ebdd7135b97456f754ebd9513f24beb49ea363690d8596a1a677bdb25ce09c9bf0f8b698f21f
+DIST dtach-0.8.tar.gz 55472 SHA256 16614ebddf8ab2811d3dc0e7f329c7de88929ac6a9632d4cb4aef7fe11b8f2a9 SHA512 ad0a788d10a5e1e1be4c353b64e1e4a0dc8c888492a638b2442d7c59ef31d67975357116435a1059141bfc2c82a3a6e9e490faa87cf81e5fc3bc7457a99c1193 WHIRLPOOL 271236b493a36e159081570c1a2bea41cc58e151a9cdfd99d2a4f27486dd62d4c1955a4b858b356ef0d6613e1a9c5c8958ca3bd143e0fb07a12f3cb92370f989
+DIST dtach-0.9.tar.gz 60608 SHA256 32e9fd6923c553c443fab4ec9c1f95d83fa47b771e6e1dafb018c567291492f3 SHA512 28c13dc8c96c16b9c6153a3a11fdeb4a4bc72e84e1f2575043b047cd8e600a47232f29544ffd87d82e2575623ec2e999a26e23e9eac25ec81c7722bdf98cfb18 WHIRLPOOL d86a11d15fb9c2995cb7f7613a2cc45f6da8321fba5678034fd4d68c563f33e8962570e66e7d37a4145b520dfad7b267b5c00fb3c11325888ce46a082b91584f
+EBUILD dtach-0.8-r1.ebuild 472 SHA256 60e14153059e06c867eaef2e9646b334197e943461615538d3ec164154dda895 SHA512 cddc92673cb9ab6153c477c2a77f95584edcb4a7140c5e275ddb9ad64773c56084e9609d06c9a00cb226ac3cbe71842114b6fd3522e0db6b624f4adb1fdd216a WHIRLPOOL 2ea60d02f9b9fea4067ca8a9ffd09765dccb3ea863447fc59150401ac664002110c2549d7d84e7af33321d039cceff1e18cbe357c9b6128d2b5d39a1d9cf54d5
+EBUILD dtach-0.9.ebuild 426 SHA256 2ee78548556199005d0777b824ebb14a26d17249f22c76bd37699df6ba347758 SHA512 d41a8fa01af851a15660a10cd37cbdf44c31e72d62b715cb5657d2ed1e2ebad4cbf7fbed9ceb2b56b0dcd08ef2bd0f3a5a30d186c5792ee0924906202a815d1f WHIRLPOOL cb4424a8452beba777dce08b36b5f8317152be225db76eb258f51d17722838f00373b66a35912420f51826747bb223b01a84f43cf748285bfd672120e3eb12c0
+MISC ChangeLog 2588 SHA256 570f0a8482b851130be0ac4ad30c847b9b9c1f8cee585b4cb9668f8319f3a228 SHA512 f7a228060143c6b5bcc62da3e7aebf53fe88a0450332a478b21969b336034d3197be0f7b3b1bb0b375f5c766d46f7cd7bebf9d2a99c7f37248ac114735f9555a WHIRLPOOL 245e1140b1972574c428395dec5bfea4508209182e33d6a33d4464fa604aba6938719458bcb9e7f3e72ea924574446c3ae932c9e52d7cdd652d58587b82490bb
+MISC ChangeLog-2015 2708 SHA256 993c8c4d60f33d1208353f0fa2cd5ed65142e37b4d9b817c08ef3a1836cd4f7b SHA512 c46d16693711662258fe183e3da66fa000bae93cb881541f692c03f9d1cb60d88a919a35315f9a0adfeb1c0fc9f1bceca33e971284aa991a8df1311d7058d565 WHIRLPOOL 729c283e5c3036ec7fce0011077e367cb168717b0a4b0c54f49ed2b9936c199b93eac31a8795241b33cbf8dfcfa80f411ae935cb7efa298982cbc1de9e765d7f
+MISC metadata.xml 393 SHA256 45aa097170c23fed7c8f308c057aaca4cad3b809a84420e59b5d807cf2397278 SHA512 39071ddc8ee3913fb6898bbf5ce5488c76f6a7fa5f3f3905359a228d432cc76fe0336c0640d0fcd26c1be97abc220626c4258c5cd1de280a50d033b57d84aaa7 WHIRLPOOL 9f5fc145dcae4d6e6381830692fbd8695c88e912b1dbc404717fa025de85ccf068f79eb97404c4e2e4283fca61216fcd6397f1856c2221dadee39602e134a818
diff --git a/app-misc/dtach/dtach-0.8-r1.ebuild b/app-misc/dtach/dtach-0.8-r1.ebuild
new file mode 100644
index 000000000000..34e56870b850
--- /dev/null
+++ b/app-misc/dtach/dtach-0.8-r1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils
+
+DESCRIPTION="Emulates the detach feature of screen"
+HOMEPAGE="http://dtach.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~alpha amd64 ~arm ppc x86"
+IUSE=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-CVE-2012-3368.patch
+}
+
+src_install() {
+ dobin dtach
+ doman dtach.1
+ dodoc README
+}
diff --git a/app-misc/dtach/dtach-0.9.ebuild b/app-misc/dtach/dtach-0.9.ebuild
new file mode 100644
index 000000000000..b7176d6205f8
--- /dev/null
+++ b/app-misc/dtach/dtach-0.9.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Emulates the detach feature of screen"
+HOMEPAGE="http://dtach.sourceforge.net/ https://github.com/crigler/dtach"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~alpha ~amd64 ~arm ~ppc ~x86"
+IUSE=""
+
+src_install() {
+ dobin dtach
+ doman dtach.1
+ dodoc README
+}
diff --git a/app-misc/dtach/files/dtach-0.8-CVE-2012-3368.patch b/app-misc/dtach/files/dtach-0.8-CVE-2012-3368.patch
new file mode 100644
index 000000000000..82d5f0e1e159
--- /dev/null
+++ b/app-misc/dtach/files/dtach-0.8-CVE-2012-3368.patch
@@ -0,0 +1,35 @@
+Fix error handling for read from stdin in attach.c
+
+attach.c did not correctly handle a read from stdin when read returned
+an error. The code assigned the return value of read to pkt.len (an
+unsigned char) before checking the value. This prevented the error check
+from working correctly, since an unsigned integer can never be < 0.
+
+A packet with an invalid length was then sent to the master, which then
+sent 255 bytes of garbage to the program.
+
+Fix the bug in attach.c and the unchecked packet length bug in master.c.
+
+Report and initial patch by Enrico Scholz.
+
+--- attach.c 2012/07/01 21:26:10 1.12
++++ attach.c 2012/07/01 21:44:34 1.13
+@@ -237,12 +237,16 @@
+ /* stdin activity */
+ if (n > 0 && FD_ISSET(0, &readfds))
+ {
++ ssize_t len;
++
+ pkt.type = MSG_PUSH;
+ memset(pkt.u.buf, 0, sizeof(pkt.u.buf));
+- pkt.len = read(0, pkt.u.buf, sizeof(pkt.u.buf));
++ len = read(0, pkt.u.buf, sizeof(pkt.u.buf));
+
+- if (pkt.len <= 0)
++ if (len <= 0)
+ exit(1);
++
++ pkt.len = len;
+ process_kbd(s, &pkt);
+ n--;
+ }
diff --git a/app-misc/dtach/metadata.xml b/app-misc/dtach/metadata.xml
new file mode 100644
index 000000000000..b49e8d43f1e8
--- /dev/null
+++ b/app-misc/dtach/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>shell-tools@gentoo.org</email>
+ <name>Gentoo Shell Tools Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">dtach</remote-id>
+ <remote-id type="github">crigler/dtach</remote-id>
+ </upstream>
+</pkgmetadata>