2 Summary: rsh client and rcp command
3 Summary(pl.UTF-8): Klient rsh i polecenie rcp
8 Group: Applications/Networking
9 Source0: ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-%{name}-%{version}.tar.gz
10 # Source0-md5: 65f5f28e2fe22d9ad8b17bb9a10df096
14 Source4: rexec-1.5.tar.gz
15 # Source4-md5: 17c2b2fa2aed6af7e0b850673d5ef1f9
16 Source5: rlogind.inetd
17 Source6: %{name}d.inetd
19 Patch0: netkit-%{name}-sectty.patch
20 Patch1: netkit-%{name}-rexec.patch
21 Patch2: netkit-%{name}-stdarg.patch
22 Patch3: netkit-%{name}-install.patch
23 Patch4: netkit-%{name}-jbj2.patch
24 Patch5: netkit-%{name}-pam-link.patch
25 Patch6: netkit-%{name}-prompt.patch
26 Patch7: netkit-%{name}-rlogin=rsh.patch
27 Patch8: netkit-%{name}-nokrb.patch
28 Patch9: netkit-%{name}-auth.c.patch
29 Patch10: netkit-rsh-0.17-union-wait.patch
30 BuildRequires: pam-devel
31 BuildRequires: rpmbuild(macros) >= 1.268
32 BuildRequires: sed >= 4.0
33 Requires: pam >= 0.99.7.1
34 Obsoletes: heimdal-rsh
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 The rsh package contains programs which allow users to run commmands
40 on remote machines (rsh) and copy files between machines (rcp).
42 %description -l pl.UTF-8
43 Pakiet rsh zawiera program pozwalający użytkownikom na uruchamianie
44 poleceń na zdalnych maszynach (rsh) i kopiowanie plików między
48 Summary: Servers for rsh
49 Summary(pl.UTF-8): Serwery dla rsh
50 Group: Applications/Networking
51 Requires: pam >= 0.99.7.1
53 Obsoletes: heimdal-rshd
58 The rshd package contains a server which allow users to run commmands
59 from remote machines (rsh) and copy files between machines (rcp).
61 %description -n rshd -l pl.UTF-8
62 Pakiet rshd zawiera serwer pozwalający użytkownikom uruchamiać
63 polecenia ze zdalnych maszyn (rsh) oraz kopiować pliki między
67 Summary: rlogin client
68 Summary(pl.UTF-8): Klient rlogin
69 Group: Applications/Networking
70 Obsoletes: heimdal-rlogin
71 Obsoletes: krb5-rlogin
73 %description -n rlogin
74 The rlogin package contains a program which allow users to login on
75 remote machines (rlogin).
77 %description -n rlogin -l pl.UTF-8
78 Pakiet rlogin zawiera program pozwalający użytkownikom na logowanie
79 się na zdalne maszyny (rlogin).
82 Summary: Servers for rlogin
83 Summary(pl.UTF-8): Serwer rlogin
84 Group: Applications/Networking
86 Requires: pam >= 0.99.7.1
88 Obsoletes: heimdal-rlogin
89 Obsoletes: krb5-klogind
92 %description -n rlogind
93 The rlogind package contains a server which allow users to login from
96 %description -n rlogind -l pl.UTF-8
97 Pakiet rlogind zawiera serwer pozwalający użytkownikom logować się ze
101 Summary: rexec client
102 Summary(pl.UTF-8): Klient rexec
103 Group: Applications/Networking
104 Obsoletes: rsh-server
106 %description -n rexec
107 The rexec package contains a program which allow users to execute
108 programs on remote machines (rexec).
110 %description -n rexec -l pl.UTF-8
111 Pakiet rexec zawiera program pozwalający użytkownikom uruchamiać
112 programy na zdalnych maszynach (rexec).
115 Summary: Servers for rexec
116 Summary(pl.UTF-8): Serwer rexec
117 Group: Applications/Networking
118 Requires: pam >= 0.99.7.1
121 %description -n rexecd
122 The rexecd package contains a server which allow users to execute
123 programs from remote machines (rexec).
125 %description -n rexecd -l pl.UTF-8
126 Pakiet rexecd zawiera serwer pozwalający użytkownikom na uruchamianie
127 programów ze zdalnych maszyn (rexec).
130 %setup -q -n netkit-%{name}-%{version} -a4
143 %{__sed} -i 's/ARG_MAX/_POSIX_ARG_MAX/g' ./rshd/rshd.c ./rexecd/rexecd.c
145 # No, I don't know what this is doing in the tarball.
150 --with-c-compiler="%{__cc}"
153 CFLAGS="%{rpmcflags}" \
154 LDFLAGS="%{rpmldflags}"
157 rm -rf $RPM_BUILD_ROOT
158 install -d $RPM_BUILD_ROOT{/etc/pam.d,%{_bindir},%{_sbindir},%{_mandir}/man{1,8}} \
159 $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd
162 INSTALLROOT=$RPM_BUILD_ROOT \
165 install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/rexec
166 install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/rlogin
167 install %{SOURCE3} $RPM_BUILD_ROOT/etc/pam.d/rsh
168 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/rlogind
169 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/rshd
170 install %{SOURCE7} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/rexec
172 mv -f $RPM_BUILD_ROOT%{_mandir}/rexec* $RPM_BUILD_ROOT%{_mandir}/man1/
174 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/{rexec,rlogin,rsh}d.8
176 echo ".so in.rexecd.8" >$RPM_BUILD_ROOT%{_mandir}/man8/rexecd.8
177 echo ".so in.rlogind.8" >$RPM_BUILD_ROOT%{_mandir}/man8/rlogind.8
178 echo ".so in.rshd.8" >$RPM_BUILD_ROOT%{_mandir}/man8/rshd.8
181 rm -rf $RPM_BUILD_ROOT
184 %service -q rc-inetd reload
187 if [ "$1" = 0 ]; then
188 %service -q rc-inetd reload
192 %service -q rc-inetd reload
195 if [ "$1" = 0 ]; then
196 %service -q rc-inetd reload
200 %service -q rc-inetd reload
203 if [ "$1" = 0 ]; then
204 %service -q rc-inetd reload
208 %defattr(644,root,root,755)
209 %attr(4755,root,root) %{_bindir}/rsh
210 %attr(4755,root,root) %{_bindir}/rcp
211 %{_mandir}/man1/rsh.1*
212 %{_mandir}/man1/rcp.1*
215 %defattr(644,root,root,755)
216 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/rsh
217 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/rshd
218 %attr(755,root,root) %{_sbindir}/in.rshd
219 %{_mandir}/man8/in.rshd.8*
220 %{_mandir}/man8/rshd.8*
223 %defattr(644,root,root,755)
224 %attr(4755,root,root) %{_bindir}/rlogin
225 %{_mandir}/man1/rlogin.1*
228 %defattr(644,root,root,755)
229 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/rlogin
230 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/rlogind
231 %attr(755,root,root) %{_sbindir}/in.rlogind
232 %{_mandir}/man8/in.rlogind.8*
233 %{_mandir}/man8/rlogind.8*
236 %defattr(644,root,root,755)
237 %attr(755,root,root) %{_bindir}/rexec
238 %{_mandir}/man1/rexec.1*
241 %defattr(644,root,root,755)
242 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/rexec
243 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/rexec
244 %attr(755,root,root) %{_sbindir}/in.rexecd
245 %{_mandir}/man8/in.rexecd.8*
246 %{_mandir}/man8/rexecd.8*