]> andersk Git - openssh.git/blame - openssh.spec
Renamed open* -> * at request of Theo de Raadt <deraadt@cvs.openbsd.org>
[openssh.git] / openssh.spec
CommitLineData
8efc0c15 1Summary: OpenSSH free Secure Shell (SSH) implementation
2Name: openssh
93f04616 3Version: 1.2pre5
8efc0c15 4Release: 1
5Packager: Damien Miller <djm@ibs.com.au>
6Source0: openssh-%{version}-linux.tar.gz
7Copyright: BSD
8Group: Applications/Internet
9BuildRoot: /tmp/openssh-%{version}-buildroot
10
11%description
12Ssh (Secure Shell) a program for logging into a remote machine and for
13executing commands in a remote machine. It is intended to replace
14rlogin and rsh, and provide secure encrypted communications between
15two untrusted hosts over an insecure network. X11 connections and
16arbitrary TCP/IP ports can also be forwarded over the secure channel.
17
18OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
19up to date in terms of security and features, as well as removing all
20patented algorithms to seperate libraries (OpenSSL).
21
22%changelog
5aecb327 23* Thu Oct 28 1999 Damien Miller <djm@ibs.com.au>
24- Use autoconf
25- New binary names
8efc0c15 26* Wed Oct 27 1999 Damien Miller <djm@ibs.com.au>
27- Initial RPMification, based on Jan "Yenya" Kasprzak's <kas@fi.muni.cz> spec.
28
29%prep
30
31%setup -n openssh
32
33%build
34
f1bcacf9 35./configure --prefix=/usr --sysconfdir=/etc/ssh
5aecb327 36make OPT_FLAGS="$RPM_OPT_FLAGS"
8efc0c15 37
38%install
39rm -rf $RPM_BUILD_ROOT
40mkdir -p $RPM_BUILD_ROOT/usr/bin
41mkdir -p $RPM_BUILD_ROOT/usr/sbin
42mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
43mkdir -p $RPM_BUILD_ROOT/etc/pam.d
f1bcacf9 44mkdir -p $RPM_BUILD_ROOT/etc/ssh
8efc0c15 45mkdir -p $RPM_BUILD_ROOT/usr/man/man1
46mkdir -p $RPM_BUILD_ROOT/usr/man/man8
47
f1bcacf9 48install -m644 sshd.pam $RPM_BUILD_ROOT/etc/pam.d/sshd
49install -m755 sshd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
50install -m600 ssh_config $RPM_BUILD_ROOT/etc/ssh/ssh_config
51install -m600 sshd_config $RPM_BUILD_ROOT/etc/ssh/sshd_config
52
53install -s -m755 bin/sshd $RPM_BUILD_ROOT/usr/sbin
54install -s -m755 bin/ssh $RPM_BUILD_ROOT/usr/bin
55install -s -m755 bin/scp $RPM_BUILD_ROOT/usr/bin
56install -s -m755 bin/ssh-agent $RPM_BUILD_ROOT/usr/bin
57install -s -m755 bin/ssh-add $RPM_BUILD_ROOT/usr/bin
58install -s -m755 bin/ssh-keygen $RPM_BUILD_ROOT/usr/bin
59
60install -m644 sshd.8 $RPM_BUILD_ROOT/usr/man/man8
61install -m644 ssh.1 $RPM_BUILD_ROOT/usr/man/man1
62install -m644 scp.1 $RPM_BUILD_ROOT/usr/man/man1
63install -m644 ssh-agent.1 $RPM_BUILD_ROOT/usr/man/man1
64install -m644 ssh-add.1 $RPM_BUILD_ROOT/usr/man/man1
65install -m644 ssh-keygen.1 $RPM_BUILD_ROOT/usr/man/man1
372e9169 66
8efc0c15 67%clean
68rm -rf $RPM_BUILD_ROOT
69
70%post
f1bcacf9 71/sbin/chkconfig --add sshd
72if [ ! -f /etc/ssh/ssh_host_key -o ! -s /etc/ssh/ssh_host_key ]; then
73 /usr/bin/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N '' >&2
8efc0c15 74fi
f1bcacf9 75if test -r /var/run/sshd.pid
8efc0c15 76then
f1bcacf9 77 /etc/rc.d/init.d/sshd restart >&2
8efc0c15 78fi
79
80%preun
81if [ "$1" = 0 ]
82then
f1bcacf9 83 /etc/rc.d/init.d/sshd stop >&2
84 /sbin/chkconfig --del sshd
8efc0c15 85fi
86
87%files
88%defattr(-,root,root)
5aecb327 89%doc COPYING.Ylonen ChangeLog ChangeLog.Ylonen OVERVIEW
8efc0c15 90%doc README README.openssh
372e9169 91%attr(0755,root,root) /usr/sbin/sshd
92%attr(0755,root,root) /usr/bin/ssh
93%attr(0755,root,root) /usr/bin/ssh-agent
94%attr(0755,root,root) /usr/bin/ssh-keygen
95%attr(0755,root,root) /usr/bin/ssh-add
96%attr(0755,root,root) /usr/bin/scp
97
f1bcacf9 98%attr(0755,root,root) /usr/man/man8/sshd.8
99%attr(0755,root,root) /usr/man/man1/ssh.1
100%attr(0755,root,root) /usr/man/man1/ssh-agent.1
101%attr(0755,root,root) /usr/man/man1/ssh-keygen.1
102%attr(0755,root,root) /usr/man/man1/ssh-add.1
103%attr(0755,root,root) /usr/man/man1/scp.1
104
105%attr(0600,root,root) %config /etc/ssh/sshd_config
106%attr(0600,root,root) %config /etc/pam.d/sshd
107%attr(0755,root,root) %config /etc/rc.d/init.d/sshd
108%attr(0644,root,root) %config /etc/ssh/ssh_config
8efc0c15 109
This page took 0.065353 seconds and 5 git commands to generate.