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