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