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