Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37404304
en ru br
Репозитории ALT
S:0.17-alt5.1
4.1: 0.17-alt2
4.0: 0.17-ipl9mdk
3.0: 0.17-ipl9mdk
www.altlinux.org/Changes

Группа :: Сети/Удалённый доступ
Пакет: rsh

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: rsh
Version: 0.17
Release: alt2
Serial: 1

Summary: Clients for remote access commands (rsh, rlogin, rcp)
Group: Networking/Remote access
License: BSD

Source: ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-rsh-%version.tar.gz
Source1: rexec.pam
Source2: rlogin.pam
Source3: rsh.pam
Source4: http://www.tc.cornell.edu/~sadd/rexec-1.5.tar.bz2
Source5: rsh-xinetd
Source6: rlogin-xinetd
Source7: rexec-xinetd

Patch1: netkit-rsh-0.17-sectty.patch
Patch2: netkit-rsh-0.17-rexec.patch
Patch3: netkit-rsh-0.10-stdarg.patch
Patch4: netkit-rsh-0.16-jbj.patch
Patch5: netkit-rsh-0.16-pamfix.patch
Patch6: netkit-rsh-0.16-jbj2.patch
Patch7: netkit-rsh-0.16-jbj3.patch
Patch8: netkit-rsh-0.16-jbj4.patch
Patch9: netkit-rsh-0.16-prompt.patch
Patch10: netkit-rsh-0.16-rlogin=rsh.patch
Patch11: netkit-rsh-0.16-nokrb.patch
Patch12: netkit-rsh-0.17-pre20000412-jbj5.patch
Patch13: netkit-rsh-0.17-userandhost.patch
Patch14: netkit-rsh-0.17-strip.patch
Patch15: netkit-rsh-0.17-lfs.patch
Patch16: netkit-rsh-0.17-chdir.patch
Patch17: netkit-rsh-0.17-pam-nologin.patch
Patch18: netkit-rsh-0.17-nohostcheck.patch
Patch19: netkit-rsh-0.17-rexec-netrc.patch
Patch20: netkit-rsh-0.17-pam-sess.patch
Patch21: netkit-rsh-0.17-errno.patch
Patch22: netkit-rsh-0.17-rexec-sig.patch
Patch23: netkit-rsh-0.17-nohost.patch
Patch24: netkit-rsh-0.17-ignchld.patch
Patch25: netkit-rsh-0.17-checkdir.patch
Patch26: netkit-rsh-0.17-pam-conv.patch
Patch27: netkit-rsh-0.17-rcp-largefile.patch
Patch28: netkit-rsh-0.17-pam-rhost.patch

Patch50: netkit-rsh-0.17-alt-warn.patch

# Automatically added by buildreq on Wed Jan 29 2003

BuildRequires: libncurses-devel libpam-devel libtinfo-devel

%description
The rsh package contains a set of programs which allow users to run
commmands on remote machines, login to other machines and copy files
between machines (rsh, rlogin and rcp).  All three of these commands
use rhosts style authentication.  This package contains the clients
needed for all of these services.
The rsh package should be installed to enable remote access to other
machines.

%package server
Summary: Servers for remote access commands (rsh, rlogin, rcp)
Group: System/Servers
Requires: pam >= 0.59

%description server
The rsh-server package contains a set of programs which allow users
to run commmands on remote machines, login to other machines and copy
files between machines (rsh, rlogin and rcp).  All three of these
commands use rhosts style authentication.  This package contains the
servers needed for all of these services.  It also contains a server
for rexec, an alternate method of executing remote commands.
All of these servers are run by xinetd and configured using
/etc/xinetd.d/ and PAM.  All the server is disabled by default.

%prep
%setup -q -n netkit-rsh-%version -a 4
%patch1 -p1 -b .sectty
%patch2 -p1 -b .rexec
%patch3 -p1 -b .stdarg
%patch4 -p1 -b .jbj
# XXX patches {6,7,8} not applied
#%patch5 -p1 -b .pamfix
#%patch6 -p1 -b .jbj2
#%patch7 -p1 -b .jbj3
%patch8 -p1 -b .jbj4
%patch9 -p1 -b .prompt
%patch10 -p1 -b .rsh
%patch11 -p1 -b .rsh.nokrb
%patch12 -p1 -b .jbj5
%patch13 -p1 -b .userandhost
%patch14 -p1 -b .strip
%patch15 -p1 -b .lfs
%patch16 -p1 -b .chdir
%patch17 -p1 -b .pam-nologin
%patch18 -p1 -b .nohostcheck
%patch19 -p1 -b .rexec-netrc
%patch20 -p1 -b .pam-sess
%patch21 -p1 -b .errno
%patch22 -p1 -b .rexec-sig
%patch23 -p1 -b .nohost
%patch24 -p1 -b .ignchld
%patch25 -p1 -b .checkdir
%patch26 -p1 -b .pam-conv
%patch27 -p1 -b .largefile
%patch28 -p1 -b .pam-rhost

%patch50 -p1 -b .warn

# No, I don't know what this is doing in the tarball.

rm -f rexec/rexec

%build
%_configure_script \
   --without-shadow \
   --prefix=/usr \
   --installroot=%buildroot \
   --binmode=0755 \
   --daemonmode=0711 \
   --suidmode=4711

perl -pi -e '
   s,^CC=.*$,CC=cc,;
   s,-O2,\$(RPM_OPT_FLAGS),;
   s,^BINDIR=.*$,BINDIR=%_bindir,;
   s,^MANDIR=.*$,MANDIR=%_mandir,;
   s,^SBINDIR=.*$,SBINDIR=%_sbindir,;
   ' MCONFIG

%make_build


%install
%__mkdir_p %buildroot/%_sysconfdir/{pam.d,xinetd.d}
%__mkdir_p %buildroot/{%_bindir,%_sbindir}
%__mkdir_p %buildroot/%_mandir/{man1,man8}

%make_build INSTALLROOT=%buildroot MANDIR=%_mandir install

%__install -m 0644 %SOURCE1 %buildroot/%_sysconfdir/pam.d/rexec
%__install -m 0644 %SOURCE2 %buildroot/%_sysconfdir/pam.d/rlogin
%__install -m 0644 %SOURCE3 %buildroot/%_sysconfdir/pam.d/rsh

%__install -m 0644 %SOURCE5 %buildroot/%_sysconfdir/xinetd.d/rsh
%__install -m 0644 %SOURCE6 %buildroot/%_sysconfdir/xinetd.d/rlogin
%__install -m 0644 %SOURCE7 %buildroot/%_sysconfdir/xinetd.d/rexec

cd %buildroot/%_mandir/man8
for i in rexecd rlogind rshd; do
 %__rm -f $i.8
 echo ".so man8/in.$i.8" > $i.8
done

%files
%attr(4711,root,root) %_bindir/rcp
%attr(4711,root,root) %_bindir/rlogin
%attr(4711,root,root) %_bindir/rsh
%_bindir/rexec
%_mandir/man1/*
%doc README

%files server
%config(noreplace) %_sysconfdir/xinetd.d/*
%config %_sysconfdir/pam.d/rsh
%config %_sysconfdir/pam.d/rlogin
%config %_sysconfdir/pam.d/rexec
%_mandir/man8/*
%_sbindir/in.*

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin