1 |
commit: 58096a0141daac212263b1c491de3927c36d3013 |
2 |
Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 31 17:38:02 2015 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 31 17:39:13 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58096a01 |
7 |
|
8 |
www-misc/shellinabox: Remove vulnerable version. Fixes security bug 567316. |
9 |
|
10 |
Package-Manager: portage-2.2.20.1 |
11 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
12 |
|
13 |
www-misc/shellinabox/Manifest | 1 - |
14 |
www-misc/shellinabox/shellinabox-2.18.ebuild | 108 --------------------------- |
15 |
2 files changed, 109 deletions(-) |
16 |
|
17 |
diff --git a/www-misc/shellinabox/Manifest b/www-misc/shellinabox/Manifest |
18 |
index 9c84883..ceeda32 100644 |
19 |
--- a/www-misc/shellinabox/Manifest |
20 |
+++ b/www-misc/shellinabox/Manifest |
21 |
@@ -1,2 +1 @@ |
22 |
-DIST shellinabox-2.18.zip 328195 SHA256 0a3572268b7f42e402cd2fc48ca1f9d1dad6d27d6209ca19923a60f4ee5cb5f8 SHA512 a036131d48d7e1b2e69e128d509a755978bbeb13ebac82212b225d3b0eafea8420ecbb830ea85a75e870814bf20c446ca1642fe59da516f74e0e439a3a41fe24 WHIRLPOOL 903195402af196b55dafcf7f261bc291c5fdd690c3a40ca09578c58d307a6b75e38bbb5316995708e078a6bab6a36de1e2ae9722142bf97b948de2c1dbcf2e52 |
23 |
DIST shellinabox-2.19.zip 790437 SHA256 1897ec000bb05f8ded07ffb3092c4b43232b8695d8a656985ccae45bebd922e9 SHA512 e6f09679282fd1f23abb272082ca9983df217ad017cad4fdb04d5fa4f93124bfea4b5f12cedb17571e56770ee8b0a4cca1492aff144df5458ed7c1a4ee6a1838 WHIRLPOOL b887101335a48789041574e948a67cf24dd9b269e68481861ff7f4c0ededb4bceae0cc36c11870675597b9c5f3be2d84d824a2c882515b719e4e244c2c93f711 |
24 |
|
25 |
diff --git a/www-misc/shellinabox/shellinabox-2.18.ebuild b/www-misc/shellinabox/shellinabox-2.18.ebuild |
26 |
deleted file mode 100644 |
27 |
index f069cf3..0000000 |
28 |
--- a/www-misc/shellinabox/shellinabox-2.18.ebuild |
29 |
+++ /dev/null |
30 |
@@ -1,108 +0,0 @@ |
31 |
-# Copyright 1999-2015 Gentoo Foundation |
32 |
-# Distributed under the terms of the GNU General Public License v2 |
33 |
-# $Id$ |
34 |
- |
35 |
-EAPI=5 |
36 |
- |
37 |
-AUTOTOOLS_AUTORECONF="yes" |
38 |
-AUTOTOOLS_IN_SOURCE_BUILD="yes" |
39 |
- |
40 |
-inherit user autotools-utils |
41 |
- |
42 |
-DESCRIPTION="Web server that can export arbitrary command line tools to a web based terminal emulator" |
43 |
-HOMEPAGE="https://github.com/shellinabox/shellinabox" |
44 |
-SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.zip -> ${P}.zip" |
45 |
- |
46 |
-LICENSE="GPL-2" |
47 |
-SLOT="0" |
48 |
-KEYWORDS="amd64 ppc ppc64 x86" |
49 |
-IUSE="+ssl +pam" |
50 |
- |
51 |
-RDEPEND="${DEPEND}" |
52 |
-DEPEND="${RDEPEND} |
53 |
- ssl? ( dev-libs/openssl:0= ) |
54 |
- pam? ( virtual/pam )" |
55 |
- |
56 |
-SIAB_CERT_DIR="/etc/shellinabox/cert" |
57 |
-SIAB_SSL_BASH="${SIAB_CERT_DIR}/gen_ssl_cert.bash" |
58 |
-SIAB_DAEMON="${PN}d" |
59 |
- |
60 |
-shellinbox_gen_ssl_setup() { |
61 |
- read -r -d '' SIAB_SSL_SETUP << EOF |
62 |
-cd ${SIAB_CERT_DIR} |
63 |
-openssl genrsa -des3 -out server.key 1024 |
64 |
-openssl req -new -key server.key -out server.csr |
65 |
-cp server.key server.key.org |
66 |
-openssl rsa -in server.key.org -out server.key |
67 |
-openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt |
68 |
-cat server.crt server.key > certificate.pem |
69 |
-EOF |
70 |
-} |
71 |
- |
72 |
-pkg_setup() { |
73 |
- enewgroup "${SIAB_DAEMON}" |
74 |
- enewuser "${SIAB_DAEMON}" -1 -1 -1 "${SIAB_DAEMON}" |
75 |
-} |
76 |
- |
77 |
-src_configure() { |
78 |
- local myeconf="--disable-runtime-loading" |
79 |
- |
80 |
- econf \ |
81 |
- $(use_enable ssl) \ |
82 |
- $(use_enable pam) \ |
83 |
- "${myeconf}" |
84 |
-} |
85 |
- |
86 |
-src_install() { |
87 |
- emake DESTDIR="${D}" install || die |
88 |
- |
89 |
- # make installs the binary in bin. |
90 |
- rm -rf "${D}/usr/bin" || die |
91 |
- |
92 |
- # whereas it should put it in sbin. |
93 |
- dosbin "${SIAB_DAEMON}" |
94 |
- |
95 |
- # Install init+conf files. |
96 |
- newinitd "${FILESDIR}/${SIAB_DAEMON}.init" "${SIAB_DAEMON}" |
97 |
- newconfd "${FILESDIR}/${SIAB_DAEMON}.conf" "${SIAB_DAEMON}" |
98 |
- |
99 |
- # Install CSS files. |
100 |
- insinto "/usr/share/${PN}-resources" |
101 |
- doins -r "${PN}"/*.css |
102 |
- |
103 |
- if use ssl; then |
104 |
- # Create directory where SSL certificates will be generated. |
105 |
- dodir "${SIAB_CERT_DIR}" |
106 |
- fowners "${SIAB_DAEMON}:${SIAB_DAEMON}" "${SIAB_CERT_DIR}" |
107 |
- |
108 |
- # Generate set up variable. |
109 |
- shellinbox_gen_ssl_setup |
110 |
- |
111 |
- # Dump it in a bash script. |
112 |
- echo "#!/usr/bin/env bash" > "${D}/${SIAB_SSL_BASH}" ||die |
113 |
- echo "${SIAB_SSL_SETUP}" >> "${D}/${SIAB_SSL_BASH}" || die |
114 |
- chmod +x "${D}/${SIAB_SSL_BASH}" || die |
115 |
- fi |
116 |
-} |
117 |
- |
118 |
-pkg_postinst() { |
119 |
- ewarn |
120 |
- ewarn "The default configuration expose a login shell" |
121 |
- ewarn "with SSL disabled on the localhost interface only." |
122 |
- ewarn |
123 |
- |
124 |
- if use ssl; then |
125 |
- shellinbox_gen_ssl_setup |
126 |
- |
127 |
- einfo |
128 |
- einfo "To generate self-signed SSL certificates" |
129 |
- einfo "please read the following procedure" |
130 |
- einfo "explained here: https://code.google.com/p/shellinabox/issues/detail?id=59#c15" |
131 |
- einfo |
132 |
- einfo "${SIAB_SSL_SETUP}" |
133 |
- einfo |
134 |
- einfo "This walkthrough has been written in ${SIAB_SSL_BASH} for your convenience." |
135 |
- einfo "Make sure to execute this script." |
136 |
- einfo |
137 |
- fi |
138 |
-} |