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