diff options
Diffstat (limited to 'www-misc')
-rw-r--r-- | www-misc/Manifest.gz | bin | 2921 -> 2755 bytes | |||
-rw-r--r-- | www-misc/shellinabox/Manifest | 6 | ||||
-rw-r--r-- | www-misc/shellinabox/files/shellinaboxd.conf | 77 | ||||
-rw-r--r-- | www-misc/shellinabox/files/shellinaboxd.init | 64 | ||||
-rw-r--r-- | www-misc/shellinabox/files/shellinaboxd.service | 14 | ||||
-rw-r--r-- | www-misc/shellinabox/metadata.xml | 15 | ||||
-rw-r--r-- | www-misc/shellinabox/shellinabox-2.20-r4.ebuild | 108 |
7 files changed, 0 insertions, 284 deletions
diff --git a/www-misc/Manifest.gz b/www-misc/Manifest.gz Binary files differindex 8650534ab79d..40da8e4f55e8 100644 --- a/www-misc/Manifest.gz +++ b/www-misc/Manifest.gz diff --git a/www-misc/shellinabox/Manifest b/www-misc/shellinabox/Manifest deleted file mode 100644 index fb38510c31d1..000000000000 --- a/www-misc/shellinabox/Manifest +++ /dev/null @@ -1,6 +0,0 @@ -AUX shellinaboxd.conf 3474 BLAKE2B 873c0ea46b81bac7c78f08da2d566099bbf26973f6e6b1ca1d3f4a0926b9971c282f48c65b9db30b445d8185d2273a4795c208e104903c94ad55953ffd1ad18b SHA512 7bd213a7f58bbf3aab29a77b31d3c29a7b885bacb23782ede738e1afbebb4d2dab9de30245ca0493652f3d487882b7332d6ed1a932df2a643dc91da75e3f9fac -AUX shellinaboxd.init 1723 BLAKE2B e5e8bc573628f1b12f1390c5a481c80b9411eba156ba5513d04f1afc41d42e6a398bfa35b65c8a705cfb439238cc30b76d5c22ef14507cd8e714af1e8fde1107 SHA512 e568d9e972097960e292c73df6b493c610f0a17fec159dc933ac19b15b92649165c4e41cac8d19d32860effd0a4da8ff950a34f54f6db9ca67206056d22b2703 -AUX shellinaboxd.service 420 BLAKE2B 89973ee0f64fce39603778afef8e0544313ff05f71c7668b5055edccffa552511278ab090aad50529e949e4b16e84291302f1404660d3ab5150ce5491f2fa4ca SHA512 cdb22177b92794c7cda2e10c461f1f31ed165ede156c682fec5b682afbd48f8c9c564420950f3d39f9943cbfbfdb864869a96a2dae60f2bbe1bd36bd61282aa5 -DIST shellinabox-2.20.tar.gz 745920 BLAKE2B 34d360d2e4f0474f64490894f4ba9b9457ca7915156fc3364e874c89d9792ec52c8e756d5f356da6f680425fcc4cf9c9025a47d56cb0b0671a2749f0ba90d5b9 SHA512 369fb6e0041fc3eb52a533f14d1f856a71ec1bf166441e25a5d61bb129f2db5de6b61205ddd0cb08d53384baaf4e087bd2c549f7919b96ee465d4cc3318d2237 -EBUILD shellinabox-2.20-r4.ebuild 2585 BLAKE2B fbe8c01eae8c1aac80cad5f1b64682ffd20fbc9bb5451a3fd9f4106e24355d93bf5fbeb035b6e2f63579247c995aab670b7709aa0ce3bbd8d09dd8d04d23d329 SHA512 18001c93387caccd9b5b5d99345a7cae630c20073325a34a50a1b3787ba3057cbe956b2d19db95ac4397645aba1644deaaac3bec1fcf1b05f9dfcc4bf0e66ca6 -MISC metadata.xml 466 BLAKE2B 4aa531a33c35ec86a1ee8b4e6ccf4f07a9e47a39147b231d5bf54ee0fbb6400a1b8b6ac6647b683ebeace7d49f9888be0f62dbae1d57d1e0db989ba10793b18f SHA512 6f44b181228805ddc36efe67e990dc5721737c8997a37ebde0496d58fdc05c5d0a7436d760e7417a88885740ed5c7d827e30fefac44c81109d97e6e2b3566770 diff --git a/www-misc/shellinabox/files/shellinaboxd.conf b/www-misc/shellinabox/files/shellinaboxd.conf deleted file mode 100644 index d80ecd0250d2..000000000000 --- a/www-misc/shellinabox/files/shellinaboxd.conf +++ /dev/null @@ -1,77 +0,0 @@ -# conf.d file for shellinaboxd -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# Options available (copied from the man page): -# -# Sometimes, it is not necessary to replace the entire style sheet using the -# --static-file option. But instead a small incremental change should be made to -# the visual appearance of the terminal. The --css option provides a means to -# append additional style rules to the end of the default styles.css sheet. More -# than one --css option can be given on the same command line. -# -# You shouldn't need to change this value -# unless you want to load your own style sheets. -SIAB_CSS_DIR="/usr/share/shellinabox-resources" - -# If built with SSL/TLS support enabled, the daemon will look in SIAB_CERT_DIR for any -# certificates. If unspecified, this defaults to the current working directory. -# -# If the browser negotiated a Server Name Identification the daemon will look for -# a matching certificate-SERVERNAME.pem file. This allows for virtual hosting -# of multiple server names on the same IP address and port. -# -# If no SNI handshake took place, it falls back on using the certificate in the -# certificate.pem file. -# -# The administrator should make sure that there are matching certificates for -# each of the virtual hosts on this server, and that there is a generic certifiā -# cate.pem file. - -# If no suitable certificate is installed, shellinaboxd will attempt to invoke -# /usr/bin/openssl and create a new self-signed certificate. This only -# succeeds if, after dropping privileges, shellinaboxd has write -# permissions for SIAB_CERT_DIR. -# -# Most browsers show a warning message when encountering a self-signed -# certificate and then allow the user the option of accepting the certificate. -# Due to this usability problem, and due to the perceived security -# implications, the use of auto-generated self-signed certificates is intended -# for testing or in intranet deployments, only. -# -SIAB_CERT_DIR="/etc/shellinabox/cert" - -# By default, shellinaboxd redirects all incoming HTTP requests to their -# equivalent HTTPS URLs. If promoting of connections to encrypted SSL/TLS -# sessions is undesired, this behavior can be disabled. -# -# This option is also useful during testing or for deployment in trusted -# intranets, if SSL certificates are unavailable. -# -# SIAB_DISABLE_SSL and SIAB_CERT_DIR are mutually exclusive options. - -# Add this option to SIAB_OPTS if you don't want SSL support. -SIAB_DISABLE_SSL="--disable-ssl" - -# Default port to listen on. -SIAB_HTTP_PORT="4200" - -# Run shellinabox as this user. -SIAB_USER="shellinaboxd" - -# Run shellinabox as this group. -SIAB_GROUP="shellinaboxd" - -# Default service to launch -SIAB_SERVICE="/:LOGIN" - -# SIAB log file. -SIAB_LOGFILE="/var/log/shellinabox.log" - -# Do not add both SIAB_CSS_DIR or SIAB_CERT_DIR to SIAB_OPTS. - -# Default setup turns off SSL. -SIAB_OPTS="${SIAB_DISABLE_SSL} --port=${SIAB_HTTP_PORT} --user=${SIAB_USER} --group=${SIAB_GROUP} --service=${SIAB_SERVICE} --verbose" - -# Uncomment this line to activate SSL. -# SIAB_OPTS="--cert=${SIAB_CERT_DIR} --port=${SIAB_HTTP_PORT} --user=${SIAB_USER} --group=${SIAB_GROUP} --service=${SIAB_SERVICE}" diff --git a/www-misc/shellinabox/files/shellinaboxd.init b/www-misc/shellinabox/files/shellinaboxd.init deleted file mode 100644 index 11c50d437914..000000000000 --- a/www-misc/shellinabox/files/shellinaboxd.init +++ /dev/null @@ -1,64 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -my_daemon="shellinaboxd" -pidfile="/var/run/${my_daemon}.pid" -command="/usr/sbin/${my_daemon}" -command_args="${SIAB_OPTS}" - -depend() { - use net -} - -start_pre() { - function my_join() { local IFS="${1}"; shift; echo "$*"; } - - if [[ -n ${SIAB_CSS_DIR} ]]; then - # This code searches SIAB_CSS_DIR for CSS files - # and formats the --user-css option accordingly. - local CSS_FILES=( "${SIAB_CSS_DIR}"/*.css ) - local SIAB_CSS_FILES=() - - # Try to keep environment pollution low. - local _CSS _BASE _NAME - - for _CSS in "${CSS_FILES[@]}"; do - _BASE="$(basename ${_CSS})" - _NAME="${_BASE%%\.css}" - _NAME="${_NAME//-/_}" - _NAME="${_NAME^}" - # These are the default style sheets. Don't load them. - [[ ${_NAME} =~ ^(Print|Styles).*? ]] && continue - SIAB_CSS_FILES+=("\"${_NAME}\":-${_CSS}") - done - - # The 1st one, which is the default one, must be turned on using the + sign. - SIAB_CSS_FILES[0]=$(sed 's#:-#:+#' <<< ${SIAB_CSS_FILES[0]}) - - command_args="${command_args} --user-css=$(my_join , "${SIAB_CSS_FILES[@]}")" - fi - - return 0 -} - -start() { - ebegin "Starting ${my_daemon}" - start-stop-daemon \ - --start \ - --background \ - --pidfile ${pidfile} \ - --make-pidfile \ - --exec ${command} \ - -1 ${SIAB_LOGFILE} -2 ${SIAB_LOGFILE} \ - -- ${command_args} - eend $? -} - -stop() { - ebegin "Stopping ${my_daemon}" - start-stop-daemon \ - --stop \ - --pidfile ${pidfile} - eend $? -} diff --git a/www-misc/shellinabox/files/shellinaboxd.service b/www-misc/shellinabox/files/shellinaboxd.service deleted file mode 100644 index 1915b0ca924f..000000000000 --- a/www-misc/shellinabox/files/shellinaboxd.service +++ /dev/null @@ -1,14 +0,0 @@ -[Unit] -Description=Shell In A Box daemon -Documentation=man:shellinaboxd(1) -After=network.target nss-lookup.target - -[Service] -EnvironmentFile=/etc/conf.d/shellinaboxd -WorkingDirectory=/usr/share/shellinabox-resources -ExecStart=/usr/sbin/shellinaboxd ${SIAB_DISABLE_SSL} --port=${SIAB_HTTP_PORT} --user=${SIAB_USER} --group=${SIAB_GROUP} --service=${SIAB_SERVICE} -Restart=on-failure - -[Install] -WantedBy=multi-user.target - diff --git a/www-misc/shellinabox/metadata.xml b/www-misc/shellinabox/metadata.xml deleted file mode 100644 index c663031a866b..000000000000 --- a/www-misc/shellinabox/metadata.xml +++ /dev/null @@ -1,15 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>monsieurp@gentoo.org</email> - <name>Patrice Clement</name> - </maintainer> - <maintainer type="project"> - <email>shell-tools@gentoo.org</email> - <name>Gentoo Shell Tools Project</name> - </maintainer> - <upstream> - <remote-id type="github">shellinabox/shellinabox</remote-id> - </upstream> -</pkgmetadata> diff --git a/www-misc/shellinabox/shellinabox-2.20-r4.ebuild b/www-misc/shellinabox/shellinabox-2.20-r4.ebuild deleted file mode 100644 index f42751ea0832..000000000000 --- a/www-misc/shellinabox/shellinabox-2.20-r4.ebuild +++ /dev/null @@ -1,108 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit autotools systemd - -DESCRIPTION="Export command line tools to a web based terminal emulator" -HOMEPAGE="https://github.com/shellinabox/shellinabox" -SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 ppc ppc64 x86" -IUSE="+pam" - -RDEPEND=" - acct-user/shellinaboxd - acct-group/shellinaboxd" - -DEPEND=" - ${RDEPEND} - dev-libs/openssl:0= - pam? ( sys-libs/pam )" - -SIAB_CERT_DIR="/etc/shellinabox/cert" -SIAB_SSL_BASH="${SIAB_CERT_DIR}/gen_ssl_cert.bash" -SIAB_DAEMON="${PN}d" - -shellinbox_gen_ssl_setup() { - read -r -d '' SIAB_SSL_SETUP << EOF -cd ${SIAB_CERT_DIR} -openssl genrsa -des3 -out server.key 1024 -openssl req -new -key server.key -out server.csr -cp server.key server.key.org -openssl rsa -in server.key.org -out server.key -openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt -cat server.crt server.key > certificate.pem -EOF -} - -src_prepare() { - default - eautoreconf -} - -src_configure() { - local myeconf=( - --disable-runtime-loading - --enable-ssl - ) - - econf \ - $(use_enable pam) \ - "${myeconf[@]}" -} - -src_install() { - emake DESTDIR="${D}" install - - # make installs the binary in bin... - rm -rf "${D}/usr/bin" || die - - # ... whereas it should put it in sbin. - dosbin "${SIAB_DAEMON}" - - # Install init+conf files. - newinitd "${FILESDIR}/${SIAB_DAEMON}.init" "${SIAB_DAEMON}" - newconfd "${FILESDIR}/${SIAB_DAEMON}.conf" "${SIAB_DAEMON}" - - # Install systemd unit file. - systemd_dounit "${FILESDIR}"/shellinaboxd.service - - # Install CSS files. - insinto "/usr/share/${PN}-resources" - doins -r "${PN}"/*.css - - # Create directory where SSL certificates will be generated. - dodir "${SIAB_CERT_DIR}" - - # Generate set up variable. - shellinbox_gen_ssl_setup - - # Dump it in a bash script. - echo "#!/usr/bin/env bash" > "${D}/${SIAB_SSL_BASH}" || die - echo "${SIAB_SSL_SETUP}" >> "${D}/${SIAB_SSL_BASH}" || die - chmod +x "${D}/${SIAB_SSL_BASH}" || die -} - -pkg_postinst() { - ewarn - ewarn "The default configuration exposes a login shell" - ewarn "with SSL disabled on the localhost interface only." - ewarn - - shellinbox_gen_ssl_setup - - einfo - einfo "To generate self-signed SSL certificates" - einfo "please read the procedure explained here:" - einfo "https://code.google.com/p/shellinabox/issues/detail?id=59#c15" - einfo - einfo "${SIAB_SSL_SETUP}" - einfo - einfo "This walkthrough has been written in ${SIAB_SSL_BASH} for your convenience." - einfo "Make sure to execute this script." - einfo -} |