summaryrefslogtreecommitdiffstats
path: root/qarsh.spec
blob: 4d945d23c17b216d45fcb3bb238d827a76046d51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
Summary:        QA Remote Shell
Name:           qarsh
Version:        1.6
Release: 	1
Group:          QA
License:        GPL
Buildroot:      %{_tmppath}/%{name}-%{version}-root

Source0: qarsh-%{version}.tar.bz2

%description
qarsh is an rsh/ssh replacement designed for a testing environment.  That means
no encryption and no authentication.  It also means that the return code is the
same as the remote process and some signals are propogated to the remote
process.  The qarsh package provides the client side programs for
copying files and starting remote commands.  Qarsh is not fit for
interactive commands.

%package server
Group:		QA
Summary:	QA Remote Shell Server
Requires:	xinetd

%description server
qarsh is an rsh/ssh replacement designed for a testing environment.  That means
no encryption and no authentication.  It also means that the return code is the
same as the remote process and some signals are propogated to the remote
process.  The qarsh-server package provides the server for qarsh, which
allows anyone to connect to the host as any user and do any thing.

WARNING: THIS PACKAGE PROVIDES REMOTE ROOT ACCESS WITHOUT AUTHENTICATION 

%prep

%setup -q -c

%build
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
mkdir -p %{buildroot}/
make

%install
make install INSTROOT=$RPM_BUILD_ROOT

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;

%post server
/sbin/service xinetd reload > /dev/null 2>&1 || :

%postun server
if [ $1 = 0 ]; then
    /sbin/service xinetd reload > /dev/null 2>&1 || :
fi

%files
%defattr(-,root,root)
/usr/bin/qarsh
/usr/bin/qacp
/usr/bin/btimec

%files server
%defattr(-,root,root)
/usr/sbin/qarshd
/usr/sbin/btimed
%config /etc/xinetd.d/qarsh
%config /etc/xinetd.d/btimed

%changelog
* Thu Jan 05 2006 Nathan Straz <nstraz@redhat.com> 1.6-1
- Make btimed stick around

* Thu Oct 6 2005 Dean Jansa <djansa@redhat.com> 1.2-2 
- Use hbeat lib interface for heartbeat

* Mon Sep 26 2005  Nathan Straz <nstraz@redhat.com> 1.2-1 
- New version that fixes a bug in heartbeat.

* Fri Sep 23 2005 Nathan Straz <nstraz@redhat.com> 1.1-1 
- New version with timeout capability

* Tue Sep 13 2005 Nathan Straz <nstraz@redhat.com> 1.0-1 
- Add xinetd files
- Split package into client and server parts

* Thu Sep 13 2005	Nathan Straz <nstraz@redhat.com>
- Initial packaging