]>
Commit | Line | Data |
---|---|---|
52000378 AF |
1 | Summary: OpenSSH free Secure Shell (SSH) implementation |
2 | Name: openssh | |
4946f6e5 JR |
3 | Version: 1.2.2 |
4 | Release: 1 | |
5d1c7089 | 5 | License: BSD |
6 | Group: Applications/Networking | |
7 | Group(pl): Aplikacje/Sieciowe | |
ec00afd0 | 8 | Source0: http://violet.ibs.com.au/openssh/files/%{name}-%{version}.tar.gz |
52000378 AF |
9 | Source1: opensshd.conf |
10 | Source2: openssh.conf | |
11 | Source3: opensshd.init | |
12 | Source4: opensshd.pamd | |
13 | Source5: openssh.sysconfig | |
ec00afd0 | 14 | Source6: passwd.pamd |
4946f6e5 JR |
15 | Patch0: openssh-PAM_NEW_AUTHTOK.patch |
16 | Patch1: openssh-libwrap.patch | |
4bb0eece | 17 | BuildRequires: openssl-devel >= 0.9.4-2 |
52000378 AF |
18 | BuildRequires: zlib-devel |
19 | BuildRequires: pam-devel | |
20 | BuildRequires: XFree86-devel | |
21 | BuildRequires: gnome-libs-devel | |
22 | BuildRoot: /tmp/%{name}-%{version}-root | |
a8f907dc | 23 | Obsoletes: ssh < %{version}, ssh > %{version} |
52000378 | 24 | |
b7b47957 | 25 | %define _sysconfdir /etc/ssh |
6fe24471 AF |
26 | |
27 | %description | |
28 | Ssh (Secure Shell) a program for logging into a remote machine and for | |
b5529f6f | 29 | executing commands in a remote machine. It is intended to replace rlogin and |
30 | rsh, and provide secure encrypted communications between two untrusted hosts | |
31 | over an insecure network. X11 connections and arbitrary TCP/IP ports can | |
32 | also be forwarded over the secure channel. | |
6fe24471 | 33 | |
b5529f6f | 34 | OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it up |
35 | to date in terms of security and features, as well as removing all patented | |
36 | algorithms to seperate libraries (OpenSSL). | |
6fe24471 | 37 | |
52000378 | 38 | This package includes the core files necessary for both the OpenSSH |
b5529f6f | 39 | client and server. To make this package useful, you should also |
52000378 | 40 | install openssh-clients, openssh-server, or both. |
6fe24471 | 41 | |
52000378 AF |
42 | %package clients |
43 | Summary: OpenSSH Secure Shell protocol clients | |
44 | Requires: openssh | |
45 | Group: Applications/Networking | |
46 | Group(pl): Aplikacje/Sieciowe | |
a8f907dc | 47 | Obsoletes: ssh-clients < %{version}, ssh-clients > %{version} |
52000378 | 48 | Requires: %{name} = %{version} |
6fe24471 | 49 | |
52000378 AF |
50 | %description clients |
51 | Ssh (Secure Shell) a program for logging into a remote machine and for | |
b5529f6f | 52 | executing commands in a remote machine. It is intended to replace rlogin and |
53 | rsh, and provide secure encrypted communications between two untrusted hosts | |
54 | over an insecure network. X11 connections and arbitrary TCP/IP ports can | |
55 | also be forwarded over the secure channel. | |
6fe24471 | 56 | |
b5529f6f | 57 | OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it up |
58 | to date in terms of security and features, as well as removing all patented | |
59 | algorithms to seperate libraries (OpenSSL). | |
52000378 | 60 | |
b5529f6f | 61 | This package includes the clients necessary to make encrypted connections to |
62 | SSH servers. | |
52000378 AF |
63 | |
64 | %package server | |
65 | Summary: OpenSSH Secure Shell protocol server (sshd) | |
66 | Requires: openssh chkconfig >= 0.9 | |
67 | Group: Networking/Daemons | |
68 | Group(pl): Sieciowe/Serwery | |
a8f907dc | 69 | Obsoletes: ssh-server < %{version}, ssh-server > %{version} |
52000378 | 70 | Requires: rc-scripts |
b5529f6f | 71 | Requires: /bin/login |
72 | Requires: util-linux | |
52000378 AF |
73 | Prereq: %{name} = %{version} |
74 | ||
75 | %description server | |
76 | Ssh (Secure Shell) a program for logging into a remote machine and for | |
b5529f6f | 77 | executing commands in a remote machine. It is intended to replace rlogin and |
78 | rsh, and provide secure encrypted communications between two untrusted hosts | |
79 | over an insecure network. X11 connections and arbitrary TCP/IP ports can | |
80 | also be forwarded over the secure channel. | |
52000378 | 81 | |
b5529f6f | 82 | OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it up |
83 | to date in terms of security and features, as well as removing all patented | |
84 | algorithms to seperate libraries (OpenSSL). | |
52000378 | 85 | |
b5529f6f | 86 | This package contains the secure shell daemon. The sshd is the server part |
87 | of the secure shell protocol and allows ssh clients to connect to your host. | |
6fe24471 | 88 | |
6e70f4f7 | 89 | %package gnome-askpass |
52000378 AF |
90 | Summary: OpenSSH GNOME passphrase dialog |
91 | Group: Applications/Networking | |
92 | Group(pl): Aplikacje/Sieciowe | |
93 | Requires: %{name} = %{version} | |
a8f907dc | 94 | Obsoletes: ssh-extras < %{version}, ssh-extras > %{version} |
95 | Obsoletes: ssh-askpass < %{version}, ssh-askpass > %{version} | |
96 | Obsoletes: openssh-askpass < %{version}, openssh-askpass > %{version} | |
52000378 | 97 | |
6e70f4f7 | 98 | %description gnome-askpass |
52000378 | 99 | Ssh (Secure Shell) a program for logging into a remote machine and for |
b5529f6f | 100 | executing commands in a remote machine. It is intended to replace rlogin |
101 | and rsh, and provide secure encrypted communications between two untrusted | |
102 | hosts over an insecure network. X11 connections and arbitrary TCP/IP ports | |
103 | can also be forwarded over the secure channel. | |
52000378 | 104 | |
b5529f6f | 105 | OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it up |
106 | to date in terms of security and features, as well as removing all patented | |
107 | algorithms to seperate libraries (OpenSSL). | |
52000378 AF |
108 | |
109 | This package contains the GNOME passphrase dialog. | |
110 | ||
52000378 AF |
111 | %prep |
112 | %setup -q | |
4946f6e5 JR |
113 | %patch0 -p1 |
114 | %patch1 -p0 | |
52000378 AF |
115 | |
116 | %build | |
117 | autoconf | |
118 | %configure \ | |
f9bf943b AF |
119 | --with-gnome-askpass \ |
120 | --with-tcp-wrappers \ | |
121 | --with-md5-passwords \ | |
122 | --enable-ipv6 \ | |
4946f6e5 | 123 | --with-ipaddr-display \ |
f9bf943b AF |
124 | --enable-log-auth |
125 | ||
126 | # --without-kerberos4 \ | |
127 | # --without-afs \ | |
128 | # --without-skey | |
129 | ||
130 | echo '#define LOGIN_PROGRAM "/bin/login"' >>config.h | |
131 | ||
52000378 | 132 | make |
6fe24471 AF |
133 | |
134 | %install | |
135 | rm -rf $RPM_BUILD_ROOT | |
6fe24471 | 136 | |
52000378 AF |
137 | install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{pam.d,rc.d/init.d,sysconfig}} |
138 | ||
b5529f6f | 139 | make install DESTDIR="$RPM_BUILD_ROOT" |
52000378 AF |
140 | |
141 | install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/sshd | |
ec00afd0 | 142 | install %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/passwdssh |
52000378 | 143 | install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/sshd |
b7b47957 | 144 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd |
52000378 AF |
145 | install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/ssh_config |
146 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/sshd_config | |
147 | ||
6e70f4f7 AF |
148 | mv -f $RPM_BUILD_ROOT%{_libexecdir}/ssh/gnome-ssh-askpass \ |
149 | $RPM_BUILD_ROOT%{_libexecdir}/ssh/ssh-askpass | |
150 | ||
52000378 AF |
151 | gzip -9fn ChangeLog OVERVIEW COPYING.Ylonen README README.Ylonen UPGRADING \ |
152 | $RPM_BUILD_ROOT/%{_mandir}/man*/* | |
153 | ||
6fe24471 AF |
154 | %clean |
155 | rm -rf $RPM_BUILD_ROOT | |
156 | ||
52000378 AF |
157 | %post server |
158 | /sbin/chkconfig --add sshd | |
159 | if [ ! -f /etc/ssh/ssh_host_key -o ! -s /etc/ssh/ssh_host_key ]; then | |
160 | /usr/bin/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N '' >&2 | |
6fe24471 | 161 | fi |
b5529f6f | 162 | if [ ! -f /var/lock/subsys/sshd ]; then |
52000378 | 163 | /etc/rc.d/init.d/sshd restart >&2 |
6fe24471 | 164 | fi |
ec00afd0 JR |
165 | if ! grep ssh /etc/security/passwd.conf >/dev/null 2>&1 ; then |
166 | echo "ssh" >> /etc/security/passwd.conf | |
167 | fi | |
6fe24471 | 168 | |
52000378 | 169 | %preun server |
b5529f6f | 170 | if [ "$1" = 0 ]; then |
171 | if [ ! -f /var/lock/subsys/sshd ]; then | |
172 | /etc/rc.d/init.d/sshd stop >&2 | |
173 | fi | |
52000378 | 174 | /sbin/chkconfig --del sshd |
6fe24471 AF |
175 | fi |
176 | ||
177 | %files | |
52000378 AF |
178 | %defattr(644,root,root,755) |
179 | %doc {ChangeLog,OVERVIEW,COPYING.Ylonen,README,README.Ylonen,UPGRADING}.gz | |
180 | %attr(755,root,root) %{_bindir}/ssh-keygen | |
181 | %{_mandir}/man1/ssh-keygen.1* | |
182 | %dir %{_sysconfdir} | |
183 | ||
184 | %files clients | |
185 | %defattr(644,root,root,755) | |
186 | # suid root ? | |
187 | #%attr(4755,root,root) %{_bindir}/ssh | |
188 | %attr(0755,root,root) %{_bindir}/ssh | |
189 | %attr(0755,root,root) %{_bindir}/ssh-agent | |
190 | %attr(0755,root,root) %{_bindir}/ssh-add | |
191 | #%attr(0755,root,root) %{_bindir}/slogin | |
192 | %attr(755,root,root) %{_bindir}/scp | |
193 | %{_mandir}/man1/scp.1* | |
194 | %{_mandir}/man1/ssh.1* | |
195 | %{_mandir}/man1/ssh-agent.1* | |
196 | %{_mandir}/man1/ssh-add.1* | |
197 | #%{_mandir}/man1/slogin.1 | |
198 | %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ssh_config | |
199 | ||
200 | %files server | |
201 | %defattr(644,root,root,755) | |
202 | %attr(755,root,root) %{_sbindir}/sshd | |
203 | %{_mandir}/man8/sshd.8* | |
204 | %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sshd_config | |
205 | %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/sshd | |
206 | %attr(754,root,root) /etc/rc.d/init.d/sshd | |
207 | %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/sshd | |
208 | ||
6e70f4f7 | 209 | %files gnome-askpass |
52000378 AF |
210 | %defattr(644,root,root,755) |
211 | %dir %{_libexecdir}/ssh | |
212 | %attr(755,root,root) %{_libexecdir}/ssh/ssh-askpass |