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

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

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

Revision 1.1 by slords, Wed Feb 27 17:53:47 2008 UTC Revision 1.5 by snetram, Sat Mar 1 12:18:53 2008 UTC
# Line 1  Line 1 
1    Summary: ajaxterm is a web-based terminal
2  %define realname smeserver-ajaxterm  %define realname smeserver-ajaxterm
3  %define version 1.0.5  %define version 1.0.5
4  Summary: ajaxterm is a web-based terminal  %define release 2
5  Name: %{realname}  Name: %{realname}
6  Version: %{version}  Version: %{version}
7  Release: 0  Release: %{release}%{?dist}
8  BuildArch: noarch  BuildArch: noarch
9  License: GPL  License: GPL
10  Group: System Environment/Libraries  Group: System Environment/Libraries
11  Source: %{name}-%{version}.tar.gz  Source: %{name}-%{version}.tar.gz
12  Source1: Ajaxterm-0.10.tar.gz  Source1: Ajaxterm-0.10.tar.gz
13  Packager: Michael Weinberger Michael.Weinberger@nedix.de  Patch0: smeserver-ajaxterm-1.0.5-DocumentationFromSpecFile.patch
14  BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot  BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
15  URL: http://antony.lesuisse.org/qweb/trac/wiki/AjaxTerm  URL: http://antony.lesuisse.org/qweb/trac/wiki/AjaxTerm
16  Requires: smeserver-release > 7.1.3  Requires: smeserver-release > 7.1.3
17    BuildRequires: e-smith-devtools
18    
19  %changelog  %changelog
20    * Sat Mar 01 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0.5-2
21    - Moved documentation from spec file
22    - Changed description (copied from http://antony.lesuisse.org/qweb/trac/wiki/AjaxTerm)
23    - Fixed whitelines in changelog between entries
24    
25    * Fri Feb 29 2008 Michael Weinberger <mweinber@neddix.de> 1.0.5-1
26      Fix spec file
27    
28  * Thu Nov 15 2007 Michael Weinberger <mweinber@neddix.de>  * Thu Nov 15 2007 Michael Weinberger <mweinber@neddix.de>
29    Version 1.0.5    Version 1.0.5
30    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
# Line 31  Requires: smeserver-release > 7.1.3 Line 41  Requires: smeserver-release > 7.1.3
41    Promtps for SSHPort at ssh login    Promtps for SSHPort at ssh login
42    
43  %description  %description
44  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  
   
45    
46  %prep  %prep
47  %setup -n %{realname}-%{version}  %setup -n %{realname}-%{version}
48    %patch0 -p1
49    
50  %build  %build
51    
   
52  %install  %install
53  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
54  tar xzvf $RPM_SOURCE_DIR/Ajaxterm-0.10.tar.gz  tar xzvf $RPM_SOURCE_DIR/Ajaxterm-0.10.tar.gz
# Line 89  rm -f %{name}-%{version}-filelist Line 65  rm -f %{name}-%{version}-filelist
65  find $RPM_BUILD_ROOT -depth -type l -print |\  find $RPM_BUILD_ROOT -depth -type l -print |\
66   sed "s@^$RPM_BUILD_ROOT@@g" >> %{name}-%{version}-filelist   sed "s@^$RPM_BUILD_ROOT@@g" >> %{name}-%{version}-filelist
67    
   
68  %clean  %clean
69  [ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT  [ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT
70    
 %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;  
   
71  %files -f %{name}-%{version}-filelist  %files -f %{name}-%{version}-filelist
72  %defattr(-,root,root)  %defattr(-,root,root)
73    %attr(0755,root,root)    %doc %dir          /usr/share/doc/smeserver-ajaxterm-1.0.5/


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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