TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:2411] ssh RPM



US law prohibits redistribution of encryption programs.  There's a few
places that aren't under this "big brother" rule although I can't find
them in my bookmarks.

Here's my spec file for building it:
Summary: A secure shell.
Name: ssh
Version: 1.2.26
Release: 3 
Copyright: Copyright (C) 1995-1998 SSH Communications Security Ltd.,
Finland. 
Group: Shells
Icon: monitor.xpm
Source: ftp://ftp.net.ohio-state.edu/pub/security/ssh/ssh-%version.tar.gz
Source1: sshd.init
Patch: ssh-patch-1
URL: http://www.cs.hut.fi/ssh/
BuildRoot: /var/tmp/ssh-%version

%description
SSH (Secure Shell) is a program to log into another computer over a
network, to execute commands in a remote machine, and to move files
from one machine to another.  It provides strong authentication and
secure communications over insecure channels.  It is intended as a
replacement for rlogin, rsh, rcp, and rdist.  Patches and ssh-init are for
my own local purposes, so you may omit them.

%prep
%setup
%patch -p1
./configure  --prefix=/usr --with-rsh=/usr/bin/rsh \
--with-libwrap \
--with-path=/usr/local/bin:/bin:/usr/bin:/usr/X11/bin:\
/usr/openwin/bin \
--x-includes=/usr/include/X11 --x-libraries=/usr/X11R6/lib \
--without-rsh \
--enable-warnings \
--with-arcfour \
--with-login \
--with-none

%build
make clean; make

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr $RPM_BUILD_ROOT/etc/rc.d/init.d 
make install_prefix="$RPM_BUILD_ROOT" install
install -m755 $RPM_SOURCE_DIR/sshd.init
$RPM_BUILD_ROOT/etc/rc.d/init.d/sshd

for i in 0 1 2 3 4 5 6 ; do
  file=$RPM_BUILD_ROOT/etc/rc.d/rc$i.d
  mkdir -p $file
  chmod 755 $file
done

cd $RPM_BUILD_ROOT/etc/rc.d/rc0.d
ln -sf ../init.d/sshd K80sshd
cd $RPM_BUILD_ROOT/etc/rc.d/rc1.d
ln -sf ../init.d/sshd K80sshd
cd $RPM_BUILD_ROOT/etc/rc.d/rc2.d;
ln -sf ../init.d/sshd K80sshd
cd $RPM_BUILD_ROOT/etc/rc.d/rc3.d;
ln -sf ../init.d/sshd S80sshd
cd $RPM_BUILD_ROOT/etc/rc.d/rc4.d;
ln -sf ../init.d/sshd K80sshd
cd $RPM_BUILD_ROOT/etc/rc.d/rc5.d;
ln -sf ../init.d/sshd S80sshd
cd $RPM_BUILD_ROOT/etc/rc.d/rc6.d;
ln -sf ../init.d/sshd K80sshd
rm -f $RPM_BUILD_ROOT/etc/ssh_host_key*

%clean
rm -rf $RPM_BUILD_ROOT

%post
if [ -f "/etc/ssh_host_key" -a -f "/etc/ssh_host_key.pub" ]; then
  echo "Keeping old host key..."
else
  if [ -f "/etc/ssh_host_key" ]; then
    rm /etc/ssh_host_key
  fi
 
  if [ -f "/etc/ssh_host_key.pub" ]; then
    rm /etc/ssh_host_key.pub
  fi
 
  echo "Generating 1024 bit host key."
  ssh-keygen -b 1024 -f /etc/ssh_host_key -N ''
fi

# it would be nice to register ssh as a service.
grep -v /^ssh/ /etc/services > /etc/services.new
sed '/^telnet/i\
ssh             22/tcp
' /etc/services.new > /etc/services
rm -f /etc/services.new

%files
/etc/
/usr/

Peter Lukas
Math Systems Office
University of Minnesota


On Tue, 1 Dec 1998, Tim Wilson wrote:

> Good morning,
> 
> Does anyone know where I can get a copy of ssh in RPM format. (I know, I
> should "roll my own," but I don't have the energy.)
> 
> -Tim
> 
> --
> Timothy D. Wilson			"A little song, a little dance,
> University of MN, chem. dept.		a little seltzer down your 
> wilson@chem.umn.edu			pants."   -Chuckles the Clown
> Phone: (612) 625-9828                       as eulogized by Ted Baxter
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tclug-list-unsubscribe@listserv.real-time.com
> For additional commands, e-mail: tclug-list-help@listserv.real-time.com
> Try our website: http://tclug.real-time.com
> 
>