/[smecontribs]/rpms/smeserver-ajaxterm/contribs7/smeserver-ajaxterm.spec
ViewVC logotype

Contents of /rpms/smeserver-ajaxterm/contribs7/smeserver-ajaxterm.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download)
Fri Feb 29 10:20:01 2008 UTC (16 years, 2 months ago) by mweinber
Branch: MAIN
CVS Tags: smeserver-ajaxterm-1_0_5-1_el4_sme
Changes since 1.2: +5 -34 lines
fix spec file

1 Summary: ajaxterm is a web-based terminal
2 %define realname smeserver-ajaxterm
3 %define version 1.0.5
4 %define release 1
5 Name: %{realname}
6 Version: %{version}
7 Release: %{release}%{?dist}
8 BuildArch: noarch
9 License: GPL
10 Group: System Environment/Libraries
11 Source: %{name}-%{version}.tar.gz
12 Source1: Ajaxterm-0.10.tar.gz
13 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
14 URL: http://antony.lesuisse.org/qweb/trac/wiki/AjaxTerm
15 Requires: smeserver-release > 7.1.3
16 BuildRequires: e-smith-devtools
17
18 %changelog
19 * Fri Feb 29 2008 Michael Weinberger <mweinber@neddix.de> 1.0.5-1
20 Fix spec file
21 * Thu Nov 15 2007 Michael Weinberger <mweinber@neddix.de>
22 Version 1.0.5
23 Bug fix: SysV start: do not fall back do user root if user ajaxterm does not exist
24 added config properties 'width' and 'height'
25
26 * Thu Nov 15 2007 Michael Weinberger <mweinber@neddix.de>
27 Version 1.0.4
28 added config property basicAuthUsers
29
30 * Wed Nov 14 2007 Michael Weinberger <mweinber@neddix.de>
31 Version 1.0.3
32 added config properties allowOnlyLocalhost and servicePort
33 login with 'su' when localhost, otherwise with ssh
34 Promtps for SSHPort at ssh login
35
36 %description
37 see http://wiki.contribs.org/Ajaxterm
38
39 Usage: https://yourdomain.com/ajaxterm/index.html
40
41 Configuration
42 1) To allow only local login on localhost:
43 config setprop Ajaxterm allowOnlyLocalhost yes
44 service ajaxterm restart
45
46 2) To allow ssh login on all hosts:
47 config setprop Ajaxterm allowOnlyLocalhost no
48 service ajaxterm restart
49
50 3) Terminal size (default is 80 x 25)
51 config setprop Ajaxterm width NEWWIDTH
52 config setprop Ajaxterm height NEWHEIGHT
53 service ajaxterm restart
54
55 4) Basic Auth Users (Browser login)
56 config setprop Ajaxterm basicAuthUsers "user [user] ..."
57 expand-template /etc/httpd/conf/httpd.conf
58 service httpd-e-smith restart
59
60 5) Web alias (default: ajaxterm)
61 config setprop Ajaxterm webAlias NEWALIAS
62 expand-template /etc/httpd/conf/httpd.conf
63 service httpd-e-smith restart
64
65 6) Changing the ajaxterm service port (default is 8022):
66 config setprop Ajaxterm servicePort NEWPORT
67 expand-template /etc/httpd/conf/httpd.conf
68 service httpd-e-smith restart
69 service ajaxterm restart
70
71
72 %prep
73 %setup -n %{realname}-%{version}
74
75
76 %build
77
78
79 %install
80 rm -rf $RPM_BUILD_ROOT
81 tar xzvf $RPM_SOURCE_DIR/Ajaxterm-0.10.tar.gz
82 mv Ajaxterm-0.10/* root/opt/ajaxterm
83 ls root/opt/ajaxterm
84 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
85 rm -f %{name}-%{version}-filelist
86 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
87 --dir /opt/ajaxterm 'attr(0750,ajaxterm,www)' \
88 --file /opt/ajaxterm/ 'attr(0640,ajaxterm,www)' \
89 --file /opt/ajaxterm/ajaxterm.py 'attr(0550,ajaxterm,www)' \
90 --file /opt/ajaxterm/login.pl 'attr(0550,ajaxterm,www)' \
91 >> %{name}-%{version}-filelist
92 find $RPM_BUILD_ROOT -depth -type l -print |\
93 sed "s@^$RPM_BUILD_ROOT@@g" >> %{name}-%{version}-filelist
94
95
96 %clean
97 [ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT
98
99
100 %files -f %{name}-%{version}-filelist
101 %defattr(-,root,root)
102

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed