Compare commits

...
This repository has been archived on 2026-01-16. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.

5 commits

Author SHA1 Message Date
Fedora Release Engineering
0cd694aaa1 dist-git conversion 2010-07-28 08:45:56 +00:00
Bill Nottingham
4237a4aae9 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 00:16:17 +00:00
Ruben Kerkhof
f2b8f91e2f - Fix ajaxterm homedir
- Add status command to init script
2009-04-07 15:58:31 +00:00
Ruben Kerkhof
db94d494e9 - set LANG=C in initscript, Ajaxterm doesn't support UTF-8
- One last spec cleanup
2008-11-22 13:17:06 +00:00
Kevin Fenzi
90681a04f2 Initialize branch F-10 for Ajaxterm 2008-11-19 01:46:20 +00:00
6 changed files with 166 additions and 21 deletions

View file

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
Ajaxterm-0.10.tar.gz

56
Ajaxterm-init.patch Normal file
View file

@ -0,0 +1,56 @@
diff -up Ajaxterm-0.10/configure.initd.redhat.orig Ajaxterm-0.10/configure.initd.redhat
--- Ajaxterm-0.10/configure.initd.redhat.orig 2006-10-29 03:52:39.000000000 +0100
+++ Ajaxterm-0.10/configure.initd.redhat 2009-04-06 14:51:15.000000000 +0200
@@ -1,8 +1,8 @@
-#
+#!/bin/bash
# ajaxterm Startup script for ajaxterm
#
# chkconfig: - 99 99
-# description: Ajaxterm is a yadda yadda yadda
+# description: Ajaxterm is a web-based terminal
# processname: ajaxterm
# pidfile: /var/run/ajaxterm.pid
# version: 1.0 Kevin Reichhart - ajaxterminit at lastname dot org
@@ -14,18 +14,18 @@ if [ -f /etc/sysconfig/ajaxterm ]; then
. /etc/sysconfig/ajaxterm
fi
-ajaxterm=/usr/local/bin/ajaxterm
+ajaxterm=/usr/bin/ajaxterm
prog=ajaxterm
-pidfile=${PIDFILE-/var/run/ajaxterm.pid}
-lockfile=${LOCKFILE-/var/lock/subsys/ajaxterm}
+pidfile=/var/run/ajaxterm.pid
+lockfile=/var/lock/subsys/ajaxterm
port=${PORT-8022}
-user=${xUSER-nobody}
+user=${USER-ajaxterm}
RETVAL=0
start() {
echo -n $"Starting $prog: "
- daemon $ajaxterm --daemon --port=$port --uid=$user $OPTIONS
+ LANG=C daemon $ajaxterm --daemon --port=$port --uid=$user $OPTIONS
RETVAL=$?
echo
[ $RETVAL = 0 ] && touch ${lockfile}
@@ -54,7 +54,7 @@ case "$1" in
stop
;;
status)
- status python ajaxterm
+ status $prog
RETVAL=$?
;;
restart)
@@ -68,7 +68,7 @@ case "$1" in
fi
;;
*)
- echo $"Usage: $prog {start|stop|restart|condrestart}"
+ echo $"Usage: $prog {start|stop|status|restart|condrestart}"
exit 1
esac

108
Ajaxterm.spec Normal file
View file

@ -0,0 +1,108 @@
Name: Ajaxterm
Version: 0.10
Release: 8%{?dist}
Summary: A web-based terminal
Group: Development/Languages
License: Public Domain and LGPLv2+
URL: http://antony.lesuisse.org/qweb/trac/wiki/AjaxTerm
Source0: http://antony.lesuisse.org/qweb/files/%{name}-%{version}.tar.gz
Patch0: Ajaxterm-init.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python
Requires(pre): shadow-utils
Requires(post): chkconfig
Requires(preun): chkconfig, initscripts
Requires(postun): initscripts
%description
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.
%prep
%setup -q
%patch0 -p1 -b .orig
sed -i 's|\r||' README.txt # fix eol encoding
sed -i 's|bin/python2.3|bin/python|' qweb.py
%build
./configure --prefix=%{buildroot}%{_prefix} --confdir=%{buildroot}%{_sysconfdir}
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/%{_sysconfdir}/init.d
mkdir -p %{buildroot}/%{_initrddir}
make install
mv %{buildroot}%{_sysconfdir}/init.d/ajaxterm %{buildroot}%{_initrddir}/ajaxterm
rmdir %{buildroot}/%{_sysconfdir}/init.d
chmod 0755 %{buildroot}%{_datadir}/ajaxterm/qweb.py
chmod 0644 %{buildroot}%{_mandir}/man1/ajaxterm.1.gz
cat <<EOF >%{buildroot}%{_bindir}/ajaxterm
#!/bin/sh
PYTHONPATH=/usr/share/ajaxterm exec /usr/share/ajaxterm/ajaxterm.py \$@
EOF
%clean
rm -rf %{buildroot}
%pre
getent group ajaxterm >/dev/null || groupadd -r ajaxterm
getent passwd ajaxterm >/dev/null || \
useradd -r -g ajaxterm -d %{_datadir}/ajaxterm -s /sbin/nologin \
-c "Ajaxterm user" ajaxterm
exit 0
%post
/sbin/chkconfig --add ajaxterm
%preun
if [ $1 = 0 ]; then
/sbin/service ajaxterm stop >/dev/null 2>&1 || :
/sbin/chkconfig --del ajaxterm
fi
%postun
if [ $1 -ge 1 ] ; then
/sbin/service ajaxterm condrestart > /dev/null 2>&1 || :
fi
%files
%defattr(-,root,root,-)
%doc README.txt
%{_initrddir}/ajaxterm
%{_bindir}/ajaxterm
%{_datadir}/ajaxterm
%{_mandir}/man1/ajaxterm.1.gz
%changelog
* Tue Apr 07 2009 Ruben Kerkhof <ruben@rubenkerkhof.com> 0.10-8
- Fix ajaxterm homedir
- Add status command to init script
* Sat Nov 22 2008 Ruben Kerkhof <ruben@rubenkerkhof.com> 0.10-5
- set LANG=C in initscript, Ajaxterm doesn't support UTF-8
- One last spec cleanup
* Sun Nov 09 2008 Ruben Kerkhof <ruben@rubenkerkhof.com> 0.10-4
- More review fixes (#470508)
* Sun Nov 09 2008 Ruben Kerkhof <ruben@rubenkerkhof.com> 0.10-3
- More review fixes (#470508)
* Sun Nov 09 2008 Ruben Kerkhof <ruben@rubenkerkhof.com> 0.10-2
- Review fixes (#470508)
* Fri Nov 07 2008 Ruben Kerkhof <ruben@rubenkerkhof.com> 0.10-1
- Initial import

View file

@ -1,21 +0,0 @@
# Makefile for source rpm: Ajaxterm
# $Id$
NAME := Ajaxterm
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

View file

@ -0,0 +1 @@
b10830a7a81d2a4c9f8815510dafb87a Ajaxterm-0.10.tar.gz