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