]> git.pld-linux.org Git - packages/openssh.git/blob - openssh.spec
2.1.0p2
[packages/openssh.git] / openssh.spec
1 Summary:        OpenSSH free Secure Shell (SSH) implementation
2 Summary(pl):    ,,wolna'' implementacja bezpiecznego shella (SSH)
3 Name:           openssh
4 Version:        2.1.0p2
5 Release:        1
6 License:        BSD
7 Group:          Applications/Networking
8 Group(pl):      Aplikacje/Sieciowe
9 URL:            http://www.openssh.com/
10 Source0:        ftp://ftp.ca.openbsd.org/pub/OpenBSD/OpenSSH/portable/%{name}-%{version}.tar.gz
11 Source1:        opensshd.conf
12 Source2:        openssh.conf
13 Source3:        opensshd.init
14 Source4:        opensshd.pamd
15 Source5:        openssh.sysconfig
16 Source6:        passwd.pamd
17 Patch0:         openssh-PAM_NEW_AUTHTOK.patch
18 Patch1:         openssh-libwrap.patch
19 Patch3:         openssh-login.patch
20 BuildRequires:  openssl-devel >= 0.9.5a
21 BuildRequires:  rpm >= 3.0.4
22 BuildRequires:  zlib-devel
23 BuildRequires:  pam-devel
24 BuildRequires:  XFree86-devel
25 BuildRequires:  gnome-libs-devel
26 BuildRequires:  gtk+-devel
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 Prereq:         openssl >= 0.9.5a
29 Obsoletes:      ssh < %{version}, ssh > %{version}
30
31 %define         _sysconfdir     /etc/ssh
32
33 %description
34 Ssh (Secure Shell) a program for logging into a remote machine and for
35 executing commands in a remote machine. It is intended to replace
36 rlogin and rsh, and provide secure encrypted communications between
37 two untrusted hosts over an insecure network. X11 connections and
38 arbitrary TCP/IP ports can also be forwarded over the secure channel.
39
40 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
41 it up to date in terms of security and features, as well as removing
42 all patented algorithms to seperate libraries (OpenSSL).
43
44 This package includes the core files necessary for both the OpenSSH
45 client and server. To make this package useful, you should also
46 install openssh-clients, openssh-server, or both.
47
48 %description -l pl
49 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
50 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
51 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
52 pomiedzy dwoma hostami.
53
54 %package clients
55 Summary:        OpenSSH Secure Shell protocol clients
56 Summary(pl):    Klienci protoko³u Secure Shell
57 Requires:       openssh
58 Group:          Applications/Networking
59 Group(pl):      Aplikacje/Sieciowe
60 Obsoletes:      ssh-clients < %{version}, ssh-clients > %{version}
61 Requires:       %{name} = %{version}
62
63 %description clients
64 Ssh (Secure Shell) a program for logging into a remote machine and for
65 executing commands in a remote machine. It is intended to replace
66 rlogin and rsh, and provide secure encrypted communications between
67 two untrusted hosts over an insecure network. X11 connections and
68 arbitrary TCP/IP ports can also be forwarded over the secure channel.
69
70 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
71 it up to date in terms of security and features, as well as removing
72 all patented algorithms to seperate libraries (OpenSSL).
73
74 This package includes the clients necessary to make encrypted
75 connections to SSH servers.
76
77 %description -l pl clients
78 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
79 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
80 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
81 pomiedzy dwoma hostami.
82
83 Ten pakiet zawiera klientów s³u¿±cych do ³±czenia siê z serwerami SSH.
84
85 %package server
86 Summary:        OpenSSH Secure Shell protocol server (sshd)
87 Summary(pl):    Serwer protoko³u Secure Shell (sshd)
88 Requires:       openssh chkconfig >= 0.9
89 Group:          Networking/Daemons
90 Group(pl):      Sieciowe/Serwery
91 Obsoletes:      ssh-server < %{version}, ssh-server > %{version}
92 Requires:       rc-scripts
93 Requires:       /bin/login
94 Requires:       util-linux
95 Prereq:         %{name} = %{version}
96
97 %description server
98 Ssh (Secure Shell) a program for logging into a remote machine and for
99 executing commands in a remote machine. It is intended to replace
100 rlogin and rsh, and provide secure encrypted communications between
101 two untrusted hosts over an insecure network. X11 connections and
102 arbitrary TCP/IP ports can also be forwarded over the secure channel.
103
104 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
105 it up to date in terms of security and features, as well as removing
106 all patented algorithms to seperate libraries (OpenSSL).
107
108 This package contains the secure shell daemon. The sshd is the server
109 part of the secure shell protocol and allows ssh clients to connect to
110 your host.
111
112 %description -l pl server
113 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
114 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
115 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
116 pomiedzy dwoma hostami.
117
118 Ten pakiet zawiera serwer sshd (do którego mog± ³±czyæ siê klienci
119 ssh).
120
121 %package gnome-askpass
122 Summary:        OpenSSH GNOME passphrase dialog
123 Summary(pl):    Odpytywacz has³a OpenSSH dla GNOME
124 Group:          Applications/Networking
125 Group(pl):      Aplikacje/Sieciowe
126 Requires:       %{name} = %{version}
127 Obsoletes:      ssh-extras < %{version}, ssh-extras > %{version}
128 Obsoletes:      ssh-askpass < %{version}, ssh-askpass > %{version}
129 Obsoletes:      openssh-askpass < %{version}, openssh-askpass > %{version}
130
131 %description gnome-askpass
132 Ssh (Secure Shell) a program for logging into a remote machine and for
133 executing commands in a remote machine. It is intended to replace
134 rlogin and rsh, and provide secure encrypted communications between
135 two untrusted hosts over an insecure network. X11 connections and
136 arbitrary TCP/IP ports can also be forwarded over the secure channel.
137
138 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
139 it up to date in terms of security and features, as well as removing
140 all patented algorithms to seperate libraries (OpenSSL).
141
142 This package contains the GNOME passphrase dialog.
143
144 %description -l pl gnome-askpass
145 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
146 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
147 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
148 pomiedzy dwoma hostami.
149
150 Ten pakiet zawiera ,,odpytywacz has³a'' dla GNOME.
151
152 %prep
153 %setup  -q
154 %patch0 -p1
155 %patch1 -p1
156 %patch3 -p1
157
158 %build
159 autoconf
160 %configure \
161         --with-gnome-askpass \
162         --with-tcp-wrappers \
163         --with-md5-passwords \
164         --with-ipaddr-display \
165         --enable-ipv6 \
166         --with-4in6 \
167         --enable-log-auth 
168
169 echo '#define LOGIN_PROGRAM           "/bin/login"' >>config.h
170
171 make
172 cd contrib && gcc $RPM_OPT_FLAGS `gnome-config --cflags gnome gnomeui` \
173         gnome-ssh-askpass.c -o gnome-ssh-askpass \
174         `gnome-config --libs gnome gnomeui`
175
176 %install
177 rm -rf $RPM_BUILD_ROOT
178
179 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{pam.d,rc.d/init.d,sysconfig,security}}
180
181 make install DESTDIR="$RPM_BUILD_ROOT"
182
183 install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/sshd
184 install %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/passwdssh
185 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/sshd
186 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
187 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/ssh_config
188 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/sshd_config
189 install -d $RPM_BUILD_ROOT%{_libexecdir}/ssh
190 install -s contrib/gnome-ssh-askpass \
191         $RPM_BUILD_ROOT%{_libexecdir}/ssh/ssh-askpass
192
193 gzip -9nf ChangeLog OVERVIEW COPYING.Ylonen README README.Ylonen UPGRADING \
194         $RPM_BUILD_ROOT/%{_mandir}/man*/*
195
196 touch $RPM_BUILD_ROOT/etc/security/blacklist.sshd
197         
198 %clean
199 rm -rf $RPM_BUILD_ROOT
200
201 %post server
202 /sbin/chkconfig --add sshd
203 if [ ! -f %{_sysconfdir}/ssh_host_key -o ! -s %{_sysconfdir}/ssh_host_key ]; then
204         %{_bindir}/ssh-keygen -b 1024 -f %{_sysconfdir}/ssh_host_key -N '' 1>&2
205 fi
206 if [ ! -f %{_sysconfdir}/ssh_host_dsa_key -o ! -s %{_sysconfdir}/ssh_host_dsa_key ]; then
207         %{_bindir}/ssh-keygen -d -f %{_sysconfdir}/ssh_host_dsa_key -N '' 1>&2
208 fi
209 if [ -f /var/lock/subsys/sshd ]; then
210         /etc/rc.d/init.d/sshd restart 1>&2
211 else
212         echo "Run \"/etc/rc.d/init.d/sshd start\" to start openssh daemon."
213 fi
214 if ! grep ssh /etc/security/passwd.conf >/dev/null 2>&1 ; then
215         echo "ssh" >> /etc/security/passwd.conf
216 fi
217
218 %preun server
219 if [ "$1" = 0 ]; then
220         if [ -f /var/lock/subsys/sshd ]; then
221                 /etc/rc.d/init.d/sshd stop 1>&2
222         fi
223         /sbin/chkconfig --del sshd
224 fi
225
226 %files
227 %defattr(644,root,root,755)
228 %doc {ChangeLog,OVERVIEW,COPYING.Ylonen,README,README.Ylonen,UPGRADING}.gz
229 %attr(755,root,root) %{_bindir}/ssh-keygen
230 %{_mandir}/man1/ssh-keygen.1*
231 %dir %{_sysconfdir}
232
233 %files clients
234 %defattr(644,root,root,755)
235 %attr(0755,root,root) %{_bindir}/ssh
236 %attr(0755,root,root) %{_bindir}/ssh-agent
237 %attr(0755,root,root) %{_bindir}/ssh-add
238 %attr(755,root,root) %{_bindir}/scp
239 %{_mandir}/man1/scp.1*
240 %{_mandir}/man1/ssh.1*
241 %{_mandir}/man1/ssh-agent.1*
242 %{_mandir}/man1/ssh-add.1*
243 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ssh_config
244
245 %files server
246 %defattr(644,root,root,755)
247 %attr(755,root,root) %{_sbindir}/sshd
248 %{_mandir}/man8/sshd.8*
249 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sshd_config
250 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/sshd
251 %attr(754,root,root) /etc/rc.d/init.d/sshd
252 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/sshd
253 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/security/blacklist.sshd
254
255 %files gnome-askpass
256 %defattr(644,root,root,755)
257 %dir %{_libexecdir}/ssh
258 %attr(755,root,root) %{_libexecdir}/ssh/ssh-askpass
This page took 0.10134 seconds and 4 git commands to generate.