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 1 |
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 |
|
Packager: Michael Weinberger Michael.Weinberger@nedix.de |
|
13 |
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot |
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot |
14 |
URL: http://antony.lesuisse.org/qweb/trac/wiki/AjaxTerm |
URL: http://antony.lesuisse.org/qweb/trac/wiki/AjaxTerm |
15 |
Requires: smeserver-release > 7.1.3 |
Requires: smeserver-release > 7.1.3 |
16 |
|
BuildRequires: e-smith-devtools |
17 |
|
|
18 |
%changelog |
%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> |
* Thu Nov 15 2007 Michael Weinberger <mweinber@neddix.de> |
22 |
Version 1.0.5 |
Version 1.0.5 |
23 |
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 |
96 |
%clean |
%clean |
97 |
[ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT |
[ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT |
98 |
|
|
|
%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; |
|
99 |
|
|
100 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
101 |
%defattr(-,root,root) |
%defattr(-,root,root) |