1 |
|
# $Id: smeserver-ajaxterm.spec,v 1.6 2008/04/02 15:03:56 slords Exp $ |
2 |
|
# Authority: mweinber |
3 |
|
# Name: Michael Weinberger |
4 |
|
|
5 |
|
Summary: ajaxterm is a web-based terminal |
6 |
%define realname smeserver-ajaxterm |
%define realname smeserver-ajaxterm |
7 |
%define version 1.0.5 |
%define version 1.0.5 |
8 |
Summary: ajaxterm is a web-based terminal |
%define release 2 |
9 |
Name: %{realname} |
Name: %{realname} |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: 0%{?dist} |
Release: %{release}%{?dist} |
12 |
BuildArch: noarch |
BuildArch: noarch |
13 |
License: GPL |
License: GPL |
14 |
Group: System Environment/Libraries |
Group: System Environment/Libraries |
15 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
16 |
Source1: Ajaxterm-0.10.tar.gz |
Source1: Ajaxterm-0.10.tar.gz |
17 |
|
Patch0: smeserver-ajaxterm-1.0.5-DocumentationFromSpecFile.patch |
18 |
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot |
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot |
19 |
URL: http://antony.lesuisse.org/qweb/trac/wiki/AjaxTerm |
URL: http://antony.lesuisse.org/qweb/trac/wiki/AjaxTerm |
20 |
Requires: smeserver-release > 7.1.3 |
Requires: smeserver-release > 7.1.3 |
21 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
22 |
|
|
23 |
%changelog |
%changelog |
24 |
|
* Sat Mar 01 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0.5-2 |
25 |
|
- Moved documentation from spec file |
26 |
|
- Changed description (copied from http://antony.lesuisse.org/qweb/trac/wiki/AjaxTerm) |
27 |
|
- Fixed whitelines in changelog between entries |
28 |
|
|
29 |
|
* Fri Feb 29 2008 Michael Weinberger <mweinber@neddix.de> 1.0.5-1 |
30 |
|
Fix spec file |
31 |
|
|
32 |
* Thu Nov 15 2007 Michael Weinberger <mweinber@neddix.de> |
* Thu Nov 15 2007 Michael Weinberger <mweinber@neddix.de> |
33 |
Version 1.0.5 |
Version 1.0.5 |
34 |
Bug fix: SysV start: do not fall back do user root if user ajaxterm does not exist |
Bug fix: SysV start: do not fall back do user root if user ajaxterm does not exist |
45 |
Promtps for SSHPort at ssh login |
Promtps for SSHPort at ssh login |
46 |
|
|
47 |
%description |
%description |
48 |
see http://wiki.contribs.org/Ajaxterm |
Ajaxterm is a web based terminal. It was totally inspired and works almost exactly like http://anyterm.org/ except it's much easier to install (see comparaison with anyterm below). |
|
|
|
|
Usage: https://yourdomain.com/ajaxterm/index.html |
|
|
|
|
|
Configuration |
|
|
1) To allow only local login on localhost: |
|
|
config setprop Ajaxterm allowOnlyLocalhost yes |
|
|
service ajaxterm restart |
|
|
|
|
|
2) To allow ssh login on all hosts: |
|
|
config setprop Ajaxterm allowOnlyLocalhost no |
|
|
service ajaxterm restart |
|
|
|
|
|
3) Terminal size (default is 80 x 25) |
|
|
config setprop Ajaxterm width NEWWIDTH |
|
|
config setprop Ajaxterm height NEWHEIGHT |
|
|
service ajaxterm restart |
|
|
|
|
|
4) Basic Auth Users (Browser login) |
|
|
config setprop Ajaxterm basicAuthUsers "user [user] ..." |
|
|
expand-template /etc/httpd/conf/httpd.conf |
|
|
service httpd-e-smith restart |
|
|
|
|
|
5) Web alias (default: ajaxterm) |
|
|
config setprop Ajaxterm webAlias NEWALIAS |
|
|
expand-template /etc/httpd/conf/httpd.conf |
|
|
service httpd-e-smith restart |
|
|
|
|
|
6) Changing the ajaxterm service port (default is 8022): |
|
|
config setprop Ajaxterm servicePort NEWPORT |
|
|
expand-template /etc/httpd/conf/httpd.conf |
|
|
service httpd-e-smith restart |
|
|
service ajaxterm restart |
|
|
|
|
49 |
|
|
50 |
%prep |
%prep |
51 |
%setup -n %{realname}-%{version} |
%setup -n %{realname}-%{version} |
52 |
|
%patch0 -p1 |
53 |
|
|
54 |
%build |
%build |
55 |
|
|
|
|
|
56 |
%install |
%install |
57 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
58 |
tar xzvf $RPM_SOURCE_DIR/Ajaxterm-0.10.tar.gz |
tar xzvf $RPM_SOURCE_DIR/Ajaxterm-0.10.tar.gz |
69 |
find $RPM_BUILD_ROOT -depth -type l -print |\ |
find $RPM_BUILD_ROOT -depth -type l -print |\ |
70 |
sed "s@^$RPM_BUILD_ROOT@@g" >> %{name}-%{version}-filelist |
sed "s@^$RPM_BUILD_ROOT@@g" >> %{name}-%{version}-filelist |
71 |
|
|
|
|
|
72 |
%clean |
%clean |
73 |
[ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT |
[ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT |
74 |
|
|
|
%pre |
|
|
/usr/sbin/useradd ajaxterm &> /dev/null |
|
|
/sbin/e-smith/config printtype Ajaxterm > /dev/null || /sbin/e-smith/config set Ajaxterm service |
|
|
exit 0; |
|
|
|
|
|
%post |
|
|
if [ "x`/bin/cat /proc/1/cmdline`" = "xinit [7]" ] ; then |
|
|
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
|
|
/sbin/e-smith/service httpd-e-smith restart |
|
|
/sbin/e-smith/service ajaxterm restart |
|
|
fi |
|
|
exit 0; |
|
|
|
|
|
%preun |
|
|
if [ "x`/bin/cat /proc/1/cmdline`" = "xinit [7]" ] ; then |
|
|
if [ $1 = 0 ] ; then # uninstall |
|
|
/sbin/e-smith/service ajaxterm stop |
|
|
fi |
|
|
fi |
|
|
exit 0; |
|
|
|
|
|
%postun |
|
|
if [ "x`/bin/cat /proc/1/cmdline`" = "xinit [7]" ] ; then |
|
|
if [ $1 = 0 ] ; then # uninstall |
|
|
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
|
|
/sbin/e-smith/service httpd-e-smith restart |
|
|
fi |
|
|
fi |
|
|
if [ $1 = 0 ] ; then # uninstall |
|
|
/usr/sbin/userdel -r ajaxterm &> /dev/null |
|
|
fi |
|
|
exit 0; |
|
|
|
|
75 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
76 |
%defattr(-,root,root) |
%defattr(-,root,root) |
77 |
|
%attr(0755,root,root) %doc %dir /usr/share/doc/smeserver-ajaxterm-1.0.5/ |