/[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.9 by unnilennium, Thu Jun 20 20:51:27 2013 UTC
# Line 1  Line 1 
1    # $Id: smeserver-ajaxterm.spec,v 1.8 2008/11/25 16:20:18 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  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  Packager: Michael Weinberger Michael.Weinberger@nedix.de  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
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
# Line 31  Requires: smeserver-release > 7.1.3 Line 45  Requires: smeserver-release > 7.1.3
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
# Line 88  rm -f %{name}-%{version}-filelist Line 68  rm -f %{name}-%{version}-filelist
68   >> %{name}-%{version}-filelist   >> %{name}-%{version}-filelist
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    /usr/lib/rpm/brp-python-bytecompile
72    
73  %clean  %clean
74  [ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT  [ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT
75    
 %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;  
   
76  %files -f %{name}-%{version}-filelist  %files -f %{name}-%{version}-filelist
77  %defattr(-,root,root)  %defattr(-,root,root)
78    %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