b792824
Name:           Ajaxterm
b792824
Version:        0.10
2d7ec9a
Release:        13%{?dist}
b792824
Summary:        A web-based terminal
b792824
b792824
Group:          Development/Languages
b792824
License:        Public Domain and LGPLv2+
b792824
URL:            http://antony.lesuisse.org/qweb/trac/wiki/AjaxTerm
b792824
Source0:        http://antony.lesuisse.org/qweb/files/%{name}-%{version}.tar.gz
f147723
Source1:	Ajaxterm.init
f147723
Source2:	Ajaxterm.sysconfig
f147723
Source3:	README.Fedora
f147723
Source4:	Ajaxterm.apache
f147723
f147723
# patches from Debian
f147723
Patch1:		0001-01_bin_dir.diff-from-Debian.patch
f147723
Patch2:		0002-02_initd.diff-from-Debian.patch
f147723
Patch3:		0003-03_fix_man.diff-from-Debian.patch
f147723
Patch4:		0004-04_use-default-python.diff-from-Debian.patch
f147723
Patch5:		0005-05_ssh-port.diff-from-Debian.patch
f147723
Patch6:		0006-06_fix-IOError.diff-from-Debian.patch
f147723
Patch7:		0007-07_use_psyco.diff-from-Debian.patch
f147723
Patch8:		0008-10_hostname-login.diff-from-Debian.patch
f147723
Patch9:		0009-15_add-configure-file.diff-from-Debian.patch
f147723
Patch10:	0010-20_bugfixes-tweaks-by-blt.diff-from-Debian.patch
f147723
Patch11:	0011-25_CVE-2009-1629.diff-from-Debian.patch
f147723
Patch12:	0012-30_utf8-support.diff-from-Debian.patch
f147723
Patch13:	0013-35_fix-sarissa.diff-from-Debian.patch
f147723
Patch14:	0014-40_more-ctrl-catches.diff-from-Debian.patch
f147723
f147723
# our own patches
f147723
Patch100:	0001-Create-etc.patch
f147723
Patch101:	0002-Fix-permissions-on-manfile.patch
f147723
Patch102:	0003-Remove-shebang-line.patch
b792824
b792824
BuildArch:      noarch
b792824
BuildRequires:  python
b792824
b792824
Requires(pre):    shadow-utils
b792824
Requires(post):   chkconfig
b792824
Requires(preun):  chkconfig, initscripts
b792824
Requires(postun): initscripts
b792824
b792824
%description
b792824
Ajaxterm is a web based terminal. It was totally inspired and works almost 
b792824
exactly like http://anyterm.org/ except it's much easier to install.
b792824
b792824
%prep
b792824
%setup -q
f147723
%patch1 -p1
f147723
%patch2 -p1
f147723
%patch3 -p1
f147723
%patch4 -p1
f147723
%patch5 -p1
f147723
%patch6 -p1
f147723
%patch7 -p1
f147723
%patch8 -p1
f147723
%patch9 -p1
f147723
%patch10 -p1
f147723
%patch11 -p1
f147723
%patch12 -p1
f147723
%patch13 -p1
f147723
%patch14 -p1
f147723
f147723
%patch100 -p1
f147723
%patch101 -p1
f147723
%patch102 -p1
f147723
f147723
install -pm 0644 %{SOURCE3} .
f147723
install -Dp -m 0644 %{SOURCE4} examples/Ajaxterm.apache
b792824
b792824
%build
b792824
./configure --prefix=%{buildroot}%{_prefix} --confdir=%{buildroot}%{_sysconfdir}
b792824
b792824
b792824
%install
b792824
make install
f147723
install -D -p -m 0755 %{SOURCE1} %{buildroot}/%{_initrddir}/ajaxterm
f147723
install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/ajaxterm
b792824
b792824
b792824
%pre
b792824
getent group ajaxterm >/dev/null || groupadd -r ajaxterm
b792824
getent passwd ajaxterm >/dev/null || \
9b2c8f6
useradd -r -g ajaxterm -d %{_datadir}/ajaxterm -s /sbin/nologin \
b792824
-c "Ajaxterm user" ajaxterm
b792824
exit 0
b792824
b792824
%post
b792824
/sbin/chkconfig --add ajaxterm
b792824
b792824
%preun
b792824
if [ $1 = 0 ]; then
b792824
    /sbin/service ajaxterm stop >/dev/null 2>&1 || :
b792824
    /sbin/chkconfig --del ajaxterm
b792824
fi
b792824
b792824
%postun
b792824
if [ $1 -ge 1 ] ; then
b792824
    /sbin/service ajaxterm condrestart > /dev/null 2>&1 || :
b792824
fi
b792824
b792824
b792824
b792824
%files
b792824
%defattr(-,root,root,-)
f147723
%doc README.txt README.Fedora examples
b792824
%{_bindir}/ajaxterm
b792824
%{_datadir}/ajaxterm
b792824
%{_mandir}/man1/ajaxterm.1.gz
f147723
%{_initrddir}/ajaxterm
f147723
%config(noreplace) %{_sysconfdir}/ajaxterm.conf
f147723
%config(noreplace) %{_sysconfdir}/sysconfig/ajaxterm
2d7ec9a
%ghost %attr(0644,root,root) %{_localstatedir}/run/ajaxterm.pid
2d7ec9a
%ghost %attr(0644,root,root) %{_localstatedir}/lock/subsys/ajaxterm
b792824
b792824
%changelog
3408214
2d7ec9a
* Wed Nov 24 2010 Ruben Kerkhof <ruben@rubenkerkhof.com> 0.10-13
2d7ec9a
- %%ghost files in /var/run and /var/lock (#656543)
2d7ec9a
f147723
* Sun Oct 17 2010 Ruben Kerkhof <ruben@rubenkerkhof.com> 0.10-12
f147723
- Apply patches from Debian (fixes #635238, #544033, enables UTF-8)
f147723
- Cleanup init script
f147723
- Add a sysconfig file
f147723
- Relocate pidfile to /var/run/ajaxterm/ajaxterm.pid
f147723
- Add a README.Fedora
f147723
- Add an example config for Apache
f147723
ruben 7d68266
* Wed Aug 11 2010 Ruben Kerkhof <ruben@rubenkerkhof.com> 0.10-10
ruben 7d68266
- Rebuild for python 2.7
ruben 7d68266
3ec4a73
>>>>>>> master
23dc513
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-9
23dc513
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
23dc513
9b2c8f6
* Mon Apr 06 2009 Ruben Kerkhof <ruben@rubenkerkhof.com> 0.10-8
9b2c8f6
- Fix ajaxterm homedir
9b2c8f6
- Add status command to init script
9b2c8f6
0116c8f
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-7
0116c8f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
0116c8f
6c87045
* Mon Dec 01 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.10-6
6c87045
- Rebuild for Python 2.6
6c87045
b792824
* Sat Nov 22 2008 Ruben Kerkhof <ruben@rubenkerkhof.com> 0.10-5
b792824
- set LANG=C in initscript, Ajaxterm doesn't support UTF-8
b792824
- One last spec cleanup
b792824
b792824
* Sun Nov 09 2008 Ruben Kerkhof <ruben@rubenkerkhof.com> 0.10-4
b792824
- More review fixes (#470508)
b792824
b792824
* Sun Nov 09 2008 Ruben Kerkhof <ruben@rubenkerkhof.com> 0.10-3
b792824
- More review fixes (#470508)
b792824
b792824
* Sun Nov 09 2008 Ruben Kerkhof <ruben@rubenkerkhof.com> 0.10-2
b792824
- Review fixes (#470508)
b792824
b792824
* Fri Nov 07 2008 Ruben Kerkhof <ruben@rubenkerkhof.com> 0.10-1
b792824
- Initial import
b792824