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