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