Compare commits

...
Sign in to create a new pull request.

88 commits

Author SHA1 Message Date
Fedora Release Engineering
71d1feb27a Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 18:14:16 +00:00
Zbigniew Jędrzejewski-Szmek
5cbe08c052 Add sysusers.d config file to allow rpm to create users/groups automatically
See https://fedoraproject.org/wiki/Changes/RPMSuportForSystemdSysusers.
2025-02-11 16:44:36 +01:00
Fedora Release Engineering
1bf3a14bce Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-19 10:35:12 +00:00
Miroslav Suchý
b1fc9ce25c convert GPLv2 license to SPDX
This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4
2024-07-29 12:13:47 +02:00
Fedora Release Engineering
6638880dd6 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-20 05:26:34 +00:00
Software Management Team
ce2b12de6f Eliminate use of obsolete %patchN syntax (#2283636) 2024-05-30 12:46:49 +02:00
Fedora Release Engineering
14567ede3f Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-27 02:55:28 +00:00
Fedora Release Engineering
f832b3487f Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-22 01:34:32 +00:00
Florian Weimer
748cdd481c Port configure script to C99
Related to:

  <https://fedoraproject.org/wiki/Changes/PortingToModernC>
  <https://fedoraproject.org/wiki/Toolchain/PortingToModernC>
2023-04-26 06:14:11 +02:00
Fedora Release Engineering
3736b4d503 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-21 03:10:00 +00:00
Fedora Release Engineering
7a8034503c Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-23 08:31:20 +00:00
Fedora Release Engineering
b5b77d803e - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-22 00:49:02 +00:00
Sahana Prasad
06049adb19 Rebuilt with OpenSSL 3.0.0 2021-09-14 19:14:58 +02:00
Fedora Release Engineering
be6ca38537 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 17:29:47 +00:00
Zbigniew Jędrzejewski-Szmek
f3612c826c Rebuilt for updated systemd-rpm-macros
See https://pagure.io/fesco/issue/2583.
2021-03-02 16:12:19 +01:00
Fedora Release Engineering
446c2208c9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 20:19:39 +00:00
Tom Stellard
a57d5e4191 Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2021-01-08 21:27:15 +00:00
Jeff Law
d87707c884 Initialize sigset in configure test 2020-07-29 12:06:44 -06:00
Fedora Release Engineering
aabaa7085d - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-29 10:39:48 +00:00
Fedora Release Engineering
4da7932315 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-30 23:23:06 +00:00
Fedora Release Engineering
180ec9a4f0 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-26 23:13:21 +00:00
Fedora Release Engineering
5a3ff32de4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-02 15:19:49 +00:00
Fedora Release Engineering
e72425def6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-14 06:04:07 +00:00
Fedora Release Engineering
01500882f8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-09 16:38:30 +00:00
Simone Caronni
37c7e3d6d5 Disable SSHv1 options 2017-12-07 16:54:21 +01:00
Fedora Release Engineering
5528a67b53 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-03 08:24:39 +00:00
Fedora Release Engineering
faaf126145 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-27 18:32:31 +00:00
Simone Caronni
f6c68951a5 Remove support for RHEL/CentOS 5 2017-04-05 14:11:19 +02:00
Simone Caronni
e012c7f28d Udpate sources 2017-03-09 13:50:15 +01:00
Simone Caronni
a38ea4c4d6 Update to 2.20 2017-03-09 13:45:50 +01:00
Fedora Release Engineering
d417e5a45c - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-11 13:23:25 +00:00
Fedora Release Engineering
61fa79776f - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-04 23:56:50 +00:00
Simone Caronni
a0a96e09fb Update to 2.19, fixes CVE-2015-8400 (#1287577) 2015-12-11 11:31:55 +01:00
Simone Caronni
88ce6f8312 Update to 2.18 2015-09-01 16:14:37 +02:00
Simone Caronni
052d5dbbe2 Fix epel 5 build 2015-08-31 13:16:18 +02:00
Simone Caronni
bae2f7bdef Add license macro and revert to manual installation 2015-08-26 18:51:32 +02:00
Simone Caronni
b14e55973e Add note 2015-08-26 18:32:45 +02:00
Simone Caronni
cfc834f89b First attempt at building 2.17 2015-08-26 18:30:27 +02:00
Dennis Gilmore
31160b92f7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-19 00:46:20 +00:00
Peter Robinson
131c31c857 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild 2014-08-18 02:12:48 +00:00
Simone Caronni
425ae02ab3 Add additional ssh option ProxyCommand=none (#1013974) 2014-06-11 11:43:05 +02:00
Dennis Gilmore
ec4bd04fd4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-08 01:16:40 -05:00
Simone Caronni
d6efb600e1 FTBFS rawhide, remove f17 2013-08-06 09:02:34 +02:00
Dennis Gilmore
65d812cb44 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild 2013-08-04 09:21:19 -05:00
Simone Caronni
5055d142e4 Bump release 2013-06-11 15:36:12 +02:00
Simone Caronni
2b4f4344bf PROPER fix for SSL support (#973058) 2013-06-11 15:32:50 +02:00
Simone Caronni
35abf9fccb Fix SSL support (#973058) 2013-06-11 14:52:12 +02:00
Simone Caronni
3de562a8d2 Fix init and service files 2013-05-11 18:58:18 +02:00
Dennis Gilmore
19f9fbe91d - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild 2013-02-14 17:52:31 -06:00
Simone Caronni
e1f0eb5ce6 Remove old git-checkout script 2013-01-14 10:44:22 +01:00
Simone Caronni
14d09bb246 Update re-generated sources 2013-01-14 10:39:02 +01:00
Simone Caronni
0cc939f74d Fix #894903 and update spec to new packaging guidelines 2013-01-14 10:30:22 +01:00
Simone Caronni
e90db316c6 Bump spec 2013-01-09 17:19:27 +01:00
Simone Caronni
f8e47f0e33 Add missing killproc 2013-01-09 17:09:20 +01:00
Simone Caronni
1c82ff78a9 Fix for #893129 2013-01-09 11:53:57 +01:00
Simone Caronni
1b55998242 Remove extra dot in dist 2012-12-14 11:28:57 +01:00
Simone Caronni
f7cac3f226 Fix the commit / dist tags order in the revision 2012-12-14 11:27:14 +01:00
Simone Caronni
29586ea501 Add script to recreate source tarball 2012-12-14 11:15:11 +01:00
Simone Caronni
5cd45ebe0d Switch to the properly mantained shellinabox fork.
The old shellinabox has not been mantained for a couple of years now, the fork contains a lot of fixes and especially it refactors some code to enable typing all characters in various keyboard layouts.
2012-12-14 11:02:53 +01:00
Simone Caronni
110bcef951 Bump spec 2012-10-17 10:43:55 +02:00
Simone Caronni
b1ef160350 Update systemd requirements and refresh distro checks for fedpkg > 1.10 2012-10-17 10:42:36 +02:00
Simone Caronni
5f1722a538 Bump spec 2012-10-01 08:59:31 +02:00
Simone Caronni
d3dab7f7c3 Move user directory under /var/lib 2012-10-01 08:53:05 +02:00
Simone Caronni
e01e0c34c5 Bump spec 2012-09-26 12:09:02 +02:00
Simone Caronni
deba4cbc4f Change variable expansion 2012-09-26 12:05:02 +02:00
Simone Caronni
ad1111f2b7 Remove postun user deletion leftovers, add customizable files 2012-09-25 08:39:40 +02:00
Simone Caronni
6721ae5c77 Really add WorkingDirectory to service file 2012-09-25 08:26:18 +02:00
Simone Caronni
2189704209 RHEL 5 does not have _datarootdir macro 2012-09-24 16:51:32 +02:00
Simone Caronni
3b4f3f10b3 Set working directory for init scripts 2012-09-24 16:29:12 +02:00
Simone Caronni
1f57bb94ef Fix startup parameter 2012-09-24 16:20:21 +02:00
Simone Caronni
4144dd00aa Split options in the daemon config file 2012-09-13 11:13:39 +02:00
Simone Caronni
b5390ee95c Patch not yet in 2012-09-13 10:57:28 +02:00
Simone Caronni
c4bf32be29 Add css files, do not remove user on uninstall 2012-09-13 10:55:17 +02:00
Simone Caronni
ad2a11e8b1 Really add patch. 2012-09-12 12:01:43 +02:00
Simone Caronni
b15565af5a Add user/group and certs directory 2012-09-12 11:47:34 +02:00
Simone Caronni
79bdcdbaad Add patch for Firefox 15 keys 2012-09-12 11:18:01 +02:00
Simone Caronni
5dd71e1c17 Add fedpkg comment for conditions 2012-09-06 08:54:20 +02:00
Simone Caronni
3334eb8bf1 Temp fix for fedpkg not removing %fedora in the %rhel branches. 2012-09-05 18:58:07 +02:00
Simone Caronni
0d9a994096 Just learned that a non existing variable is -1, so a check with <= is always true. Doh. 2012-09-05 14:35:09 +02:00
Simone Caronni
6e957bcb33 Fix conditions 3rd try 2012-09-05 14:09:18 +02:00
Simone Caronni
be29aa4924 Fix conditions 2nd try 2012-09-05 14:08:35 +02:00
Simone Caronni
0d4036a652 Fix conditions 2012-09-05 14:02:24 +02:00
Simone Caronni
e862c3675a Add F18 systemd macros and remove isaed BRs 2012-09-05 13:57:22 +02:00
Simone Caronni
666212584e Fix typo in changelog 2012-09-05 10:10:14 +02:00
Simone Caronni
1f5879eed7 Update systemd service file 2012-08-30 14:57:56 +02:00
Dennis Gilmore
222642ef03 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild 2012-07-21 14:32:12 -05:00
Simone Caronni
2aa8abc8c7 Move systemd-units BR to proper place 2012-05-29 17:03:00 +02:00
Simone Caronni
0bf9d3b64e Initial import 2012-05-29 16:34:27 +02:00
9 changed files with 552 additions and 0 deletions

7
.gitignore vendored
View file

@ -0,0 +1,7 @@
/shellinabox-2.14.tar.gz
/shellinabox-2.14-git88822c1f.tar.bz2
/shellinabox-2.14-88822c1.tar.gz
/shellinabox-2.17.tar.gz
/shellinabox-2.18.tar.gz
/shellinabox-2.19.tar.gz
/shellinabox-2.20.tar.gz

View file

@ -0,0 +1,21 @@
Define _GNU_SOURCE when probing for updwtmpx. Otherwise, glibc's
<utmpx.h> will not declare this function, and the configure probe
fails with compilers which do not support implicit function
declarations.
Submitted upstream: <https://github.com/shellinabox/shellinabox/pull/514>
diff --git a/configure.ac b/configure.ac
index 56e3b6a2b510851f..d05d1216dd4a397f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -154,7 +154,8 @@ if test "x$enable_utmp" != xno; then
[updwtmp(0, 0);],
[AC_DEFINE(HAVE_UPDWTMP, 1,
Define to 1 if you have support for updwtmp)])
- AC_TRY_LINK([#include <utmpx.h>],
+ AC_TRY_LINK([#define _GNU_SOURCE
+ #include <utmpx.h>],
[updwtmpx(0, 0);],
[AC_DEFINE(HAVE_UPDWTMPX, 1,
Define to 1 if you have support for updwtmpx)])

13
shellinabox-gcc11.patch Normal file
View file

@ -0,0 +1,13 @@
diff --git a/configure.ac b/configure.ac
index 05ab1bb..56e3b6a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -65,7 +65,7 @@ AC_TRY_LINK([#ifndef _XOPEN_SOURCE
dnl Apparently, some systems define sigwait() but fail to implement it
AC_TRY_LINK([#include <pthread.h>
#include <signal.h>],
- [sigset_t s; int n; sigwait(&s, &n);],
+ [sigset_t s; int n; sigemptyset (&s); sigwait(&s, &n);],
[AC_DEFINE(HAVE_SIGWAIT, 1,
Define to 1 if you have a working sigwait)])

View file

@ -0,0 +1,15 @@
diff -Naur shellinabox-2.20.old/shellinabox/service.c shellinabox-2.20/shellinabox/service.c
--- shellinabox-2.20.old/shellinabox/service.c 2017-12-07 16:51:32.422058845 +0100
+++ shellinabox-2.20/shellinabox/service.c 2017-12-07 16:52:51.979540100 +0100
@@ -175,9 +175,9 @@
"-oHostbasedAuthentication=no -oIdentitiesOnly=yes "
"-oKbdInteractiveAuthentication=yes -oPasswordAuthentication=yes "
"-oPreferredAuthentications=keyboard-interactive,password "
- "-oPubkeyAuthentication=no -oRhostsRSAAuthentication=no "
- "-oRSAAuthentication=no -oStrictHostKeyChecking=no -oTunnel=no "
+ "-oPubkeyAuthentication=no -oStrictHostKeyChecking=no -oTunnel=no "
"-oUserKnownHostsFile=/dev/null -oVerifyHostKeyDNS=no "
+ "-oProxyCommand=none "
// beewoolie-2012.03.30: while it would be nice to disable this
// feature, we cannot be sure that it is available on the
// target server. Removing it for the sake of Centos.

353
shellinabox.spec Normal file
View file

@ -0,0 +1,353 @@
%global username shellinabox
Name: shellinabox
Version: 2.20
Release: 27%{?dist}
Summary: Web based AJAX terminal emulator
# Automatically converted from old format: GPLv2 - review is highly recommended.
License: GPL-2.0-only
URL: https://github.com/%{name}/%{name}
Source0: https://github.com/%{name}/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: shellinaboxd.sysconfig
Source2: shellinaboxd.service
Source3: shellinaboxd.init
Patch0: %{name}-ssh-options.patch
Patch1: %{name}-gcc11.patch
Patch2: shellinabox-configure-c99.patch
BuildRequires: make
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: openssl-devel
BuildRequires: zlib-devel
Requires: openssl
%if 0%{?fedora} || 0%{?rhel} >= 7
BuildRequires: systemd
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%endif
%if 0%{?rhel} == 6
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
Requires(preun): /sbin/service
Requires(postun): /sbin/service
%endif
%description
Shell In A Box implements a web server that can export arbitrary command line
tools to a web based terminal emulator. This emulator is accessible to any
JavaScript and CSS enabled web browser and does not require any additional
browser plugins.
%prep
%setup -q
%patch -P0 -p1
%patch -P1 -p1
%patch -P2 -p1
# Create a sysusers.d config file
cat >shellinabox.sysusers.conf <<EOF
u shellinabox - 'Shellinabox' %{_sharedstatedir}/shellinabox -
EOF
%build
autoreconf -vif
%configure --disable-runtime-loading
make %{?_smp_mflags}
chmod 644 %{name}/*
%install
mkdir -p %{buildroot}%{_datadir}/%{name}
mkdir -p %{buildroot}%{_sharedstatedir}/%{name}
install -p -m 755 -D shellinaboxd %{buildroot}%{_sbindir}/shellinaboxd
install -p -m 644 -D shellinaboxd.1 %{buildroot}%{_mandir}/man1/shellinaboxd.1
install -p -m 644 -D %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/shellinaboxd
install -p -m 644 shellinabox/white-on-black.css %{buildroot}%{_datadir}/%{name}
install -p -m 644 shellinabox/color.css %{buildroot}%{_datadir}/%{name}
install -p -m 644 shellinabox/monochrome.css %{buildroot}%{_datadir}/%{name}
%if 0%{?fedora} || 0%{?rhel} >= 7
# Systemd unit files
install -p -m 644 -D %{SOURCE2} %{buildroot}%{_unitdir}/shellinaboxd.service
%else
# Initscripts
install -p -m 755 -D %{SOURCE3} %{buildroot}%{_initrddir}/shellinaboxd
%endif
install -m0644 -D shellinabox.sysusers.conf %{buildroot}%{_sysusersdir}/shellinabox.conf
%pre
%if 0%{?fedora} || 0%{?rhel} >= 7
%post
%systemd_post shellinaboxd.service
%preun
%systemd_preun shellinaboxd.service
%postun
%systemd_postun_with_restart shellinaboxd.service
%endif
%if 0%{?rhel} == 6
%post
/sbin/chkconfig --add shellinaboxd
%preun
if [ "$1" = 0 ]; then
/sbin/service shellinaboxd stop >/dev/null 2>&1 || :
/sbin/chkconfig --del shellinaboxd
fi
%postun
if [ "$1" -ge "1" ]; then
/sbin/service shellinaboxd condrestart >/dev/null 2>&1 || :
fi
%endif
%files
%{!?_licensedir:%global license %%doc}
%doc AUTHORS NEWS README README.Fedora
%doc shellinabox/styles.css shellinabox/print-styles.css
%doc shellinabox/shell_in_a_box.js
%config(noreplace) %{_sysconfdir}/sysconfig/shellinaboxd
%{_mandir}/man1/shellinaboxd.1.*
%{_datadir}/%{name}
%{_sbindir}/shellinaboxd
%if 0%{?fedora} || 0%{?rhel} >= 7
%{_unitdir}/shellinaboxd.service
%else
%{_initrddir}/shellinaboxd
%endif
%attr(750,%{username},%{username}) %{_sharedstatedir}/%{name}
%{_sysusersdir}/shellinabox.conf
%changelog
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.20-27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Tue Feb 11 2025 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.20-26
- Add sysusers.d config file to allow rpm to create users/groups automatically
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.20-25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Mon Jul 29 2024 Miroslav Suchý <msuchy@redhat.com> - 2.20-24
- convert license to SPDX
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.20-23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.20-22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.20-21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Wed Apr 26 2023 Florian Weimer <fweimer@redhat.com> - 2.20-20
- Port configure script to C99
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.20-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.20-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.20-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Tue Sep 14 2021 Sahana Prasad <sahana@redhat.com> - 2.20-16
- Rebuilt with OpenSSL 3.0.0
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.20-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.20-14
- Rebuilt for updated systemd-rpm-macros
See https://pagure.io/fesco/issue/2583.
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.20-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Wed Jul 29 2020 Jeff Law <law@redhat.com> - 2.20-12
- Initialize sigset in configure test
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.20-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.20-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.20-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.20-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.20-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.20-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Dec 07 2017 Simone Caronni <negativo17@gmail.com> - 2.20-5
- Disable SSHv1 options.
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.20-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.20-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Thu Mar 09 2017 Simone Caronni <negativo17@gmail.com> - 2.20-2
- Remove support for RHEL/CentOS 5.
* Thu Mar 09 2017 Simone Caronni <negativo17@gmail.com> - 2.20-1
- Update to 2.20.
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.19-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.19-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Fri Dec 11 2015 Simone Caronni <negativo17@gmail.com> - 2.19-1
- Update to 2.19. Fixes CVE-2015-8400 (#1287577).
* Mon Aug 31 2015 Simone Caronni <negativo17@gmail.com> - 2.18-1
- Update to 2.18.
- Remove upstreamed patches.
* Mon Aug 31 2015 Simone Caronni <negativo17@gmail.com> - 2.17-3
- Backport patch from upstream:
https://github.com/shellinabox/shellinabox/pull/340
* Wed Aug 26 2015 Simone Caronni <negativo17@gmail.com> - 2.17-2
- Add license macro.
- Install files manually, as this simplifies installation of docs in versioned
documentation dirs (CentOS/RHEL).
* Wed Aug 26 2015 Simone Caronni <negativo17@gmail.com> - 2.17-1
- Update for new GitHub packaging guidelines.
- Update source from new repository.
- Use make install target now that the source has it.
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.14-29.git88822c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.14-28.git88822c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Wed Jun 11 2014 Simone Caronni <negativo17@gmail.com> - 2.14-27.git88822c1
- Add additional ssh option ProxyCommand=none (#1013974).
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.14-26.git88822c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Tue Aug 06 2013 Simone Caronni <negativo17@gmail.com> - 2.14-25.git88822c1
- Add systemd to BuildRequires; not default on Fedora 20+.
- Remove Fedora 17 conditionals, distribution EOL.
- Remove systemd-sysv dependency as per new packaging guidelines.
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.14-25.git88822c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Tue Jun 11 2013 Simone Caronni <negativo17@gmail.com> - 2.14-24.git88822c1
- Fix SSL support (#973058).
- SPEC file cleanup.
* Sat May 11 2013 Simone Caronni <negativo17@gmail.com> - 2.14-22.git88822c1
- Kill daemon by pid on EPEL (#962069).
- Change restart policy in service files and fix service dependencies.
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.14-21.git88822c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Mon Jan 14 2013 Simone Caronni <negativo17@gmail.com> - 2.14-20.git88822c1
- Added define for RHEL 5 (rhbz#894903).
- Updated spec to new packaging guidelines for github sources.
* Wed Jan 09 2013 Simone Caronni <negativo17@gmail.com> - 2.14-19.git88822c1f
- Fix SysV init scripts.
* Wed Jan 09 2013 Simone Caronni <negativo17@gmail.com> - 2.14-18.git88822c1f
- Updated init script according to Fedora template (#893129)
https://fedoraproject.org/wiki/Packaging:SysVInitScript?rd=Packaging/SysVInitScript
* Fri Dec 14 2012 Simone Caronni <negativo17@gmail.com> - 2.14-17.git88822c1f
- Fix the commit / dist tags order in the revision.
* Fri Dec 14 2012 Simone Caronni <negativo17@gmail.com> - 2.14-16.git88822c1f
- Move source from the original unmantained content to the github fork.
* Wed Oct 17 2012 Simone Caronni <negativo17@gmail.com> - 2.14-15
- Fix fedpkg checks. Requires fedpkg > 1.10:
http://git.fedorahosted.org/cgit/fedpkg.git/commit/?id=11c46c06a3c9cc2f58d68aea964dd37dc028e349
- Change systemd requirements as per new package guidelines.
* Mon Oct 01 2012 Simone Caronni <negativo17@gmail.com> - 2.14-14
- Move user directory and data under /var/lib.
* Wed Sep 26 2012 Joel Young <jdy@cryregarder.com> - 2.14-13
- Fix variable expansions in init script and service file.
* Tue Sep 25 2012 Simone Caronni <negativo17@gmail.com> - 2.14-12
- Really add WorkingDirectory to service files.
- Remove postun user deletion leftovers.
- Add static files to be customized (as referenced by the man page) in the doc directory.
* Mon Sep 24 2012 Simone Caronni <negativo17@gmail.com> - 2.14-11
- Fix RHEL 5 rpm macro.
* Thu Sep 13 2012 Simone Caronni <negativo17@gmail.com> - 2.14-10
- Fixes from (Joel Young <jdy@cryregarder.com>):
Install supplied css files.
Set menu item to turn off ssl as disabled by default.
Do not remove user on uninstall.
- Simplified spec file.
- Split options in the daemon config file.
* Wed Sep 12 2012 Simone Caronni <negativo17@gmail.com> - 2.14-9
- Added user/group and confined directory for certificates, based on work from Joel Young.
* Tue Sep 11 2012 Joel Young <jdy@cryregarder.com> - 2.14-8
- Fixed bug with firefox 15+ ignored key:
http://code.google.com/p/shellinabox/issues/detail?id=202&q=key%20work
* Wed Sep 05 2012 Simone Caronni <negativo17@gmail.com> - 2.14-7
- Add Fedora 18 systemd macros.
- Remove isa'ed BuildRequires.
* Thu Aug 30 2012 Simone Caronni <negativo17@gmail.com> - 2.14-6
- Add nss-lookup.target requirement and Documentation tag in service file.
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.14-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Tue May 29 2012 Simone Caronni <negativo17@gmail.com> - 2.14-4
- Move systemd-units BR to proper place.
* Tue May 29 2012 Simone Caronni <negativo17@gmail.com> - 2.14-3
- Spec file changes (changelog, formatting).
- Added license files to doc section.
* Wed May 09 2012 Simone Caronni <negativo17@gmail.com> - 2.14-2
- Tags for RHEL building.
* Wed May 09 2012 Simone Caronni <negativo17@gmail.com> - 2.14-1
- First build.

110
shellinaboxd.init Normal file
View file

@ -0,0 +1,110 @@
#!/bin/sh
#
# shellinaboxd Takes care of starting and stopping shellinabox.
#
# chkconfig: - 80 20
# description: Publish command line shell through AJAX interface.
### BEGIN INIT INFO
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Publish command line shell through AJAX interface.
# Description: Shell In A Box implements a web server that can export arbitrary
# command line tools to a web based terminal emulator. This
# emulator is accessible to any JavaScript and CSS enabled web
# browser and does not require any additional browser plugins.
### END INIT INFO
# config: /etc/sysconfig/shellinaboxd
# pidfile: /var/run/shellinaboxd.pid
# Source function library.
. /etc/rc.d/init.d/functions
exec="/usr/sbin/shellinaboxd"
prog="shellinaboxd"
pid="/var/run/$prog.pid"
WORKING_DIR=/usr/share/shellinabox
[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog
lockfile=/var/lock/subsys/$prog
start() {
[ -x $exec ] || exit 5
[ -f $config ] || exit 6
echo -n $"Starting $prog: "
cd $WORKING_DIR
daemon $prog -u $USER -g $GROUP --cert=${CERTDIR} --port=${PORT} --background=$pid $OPTS
retval=$?
echo
[ $retval -eq 0 ] && touch $lockfile
return $retval
}
stop() {
echo -n $"Stopping $prog: "
killproc -p $pid $prog
retval=$?
echo
[ $retval -eq 0 ] && rm -f $lockfile
return $retval
}
restart() {
stop
start
}
reload() {
restart
}
force_reload() {
restart
}
rh_status() {
# run checks to determine if the service is running or use generic status
status -p $pid $prog
}
rh_status_q() {
rh_status >/dev/null 2>&1
}
case "$1" in
start)
rh_status_q && exit 0
$1
;;
stop)
rh_status_q || exit 0
$1
;;
restart)
$1
;;
reload)
rh_status_q || exit 7
$1
;;
force-reload)
force_reload
;;
status)
rh_status
;;
condrestart|try-restart)
rh_status_q || exit 0
restart
;;
*)
echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
exit 2
esac
exit $?

14
shellinaboxd.service Normal file
View file

@ -0,0 +1,14 @@
[Unit]
Description=Shell In A Box daemon
Documentation=man:shellinaboxd(1)
After=network.target nss-lookup.target
[Service]
EnvironmentFile=-/etc/sysconfig/shellinaboxd
WorkingDirectory=/usr/share/shellinabox
ExecStart=/usr/sbin/shellinaboxd -u $USER -g $GROUP --cert=${CERTDIR} --port=${PORT} $OPTS
Restart=on-failure
[Install]
WantedBy=multi-user.target

18
shellinaboxd.sysconfig Normal file
View file

@ -0,0 +1,18 @@
# Shell in a box daemon configuration
# For details see shellinaboxd man page
# Basic options
USER=shellinabox
GROUP=shellinabox
CERTDIR=/var/lib/shellinabox
PORT=4200
OPTS="--disable-ssl-menu -s /:LOGIN"
# Additional examples with custom options:
# Fancy configuration with right-click menu choice for black-on-white:
# OPTS="--user-css Normal:+black-on-white.css,Reverse:-white-on-black.css --disable-ssl-menu -s /:LOGIN"
# Simple configuration for running it as an SSH console with SSL disabled:
# OPTS="-t -s /:SSH:host.example.com"

View file

@ -0,0 +1 @@
SHA512 (shellinabox-2.20.tar.gz) = 369fb6e0041fc3eb52a533f14d1f856a71ec1bf166441e25a5d61bb129f2db5de6b61205ddd0cb08d53384baaf4e087bd2c549f7919b96ee465d4cc3318d2237