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