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