summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-10-16 13:35:19 +1100
committerDamien Miller <djm@mindrot.org>2000-10-16 13:35:19 +1100
commitff649d888076a94033ebce016c85c5419a2c290b (patch)
treeb40d6fda73dc3f7bd983517450ff41edf089d42f
parent2b2cf52471efcff7d5cef4bbf6d724f8c84b0f39 (diff)
- (djm) Merge some of Nalin Dahyabhai <nalin@redhat.com> changes from the
Redhat 7.0 spec file
-rw-r--r--ChangeLog6
-rw-r--r--contrib/redhat/openssh.spec156
2 files changed, 89 insertions, 73 deletions
diff --git a/ChangeLog b/ChangeLog
index b24704836..ed4a40a87 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -28,9 +28,11 @@
28 typo 28 typo
29 - (djm) Copy manpages back over from OpenBSD - too tedious to wade 29 - (djm) Copy manpages back over from OpenBSD - too tedious to wade
30 through diffs 30 through diffs
31 - Added condrestart to Redhat init script. Patch from Pekka Savola 31 - (djm) Added condrestart to Redhat init script. Patch from Pekka Savola
32 <pekkas@netcore.fi> 32 <pekkas@netcore.fi>
33 - Update version in Redhat spec file 33 - (djm) Update version in Redhat spec file
34 - (djm) Merge some of Nalin Dahyabhai <nalin@redhat.com> changes from the
35 Redhat 7.0 spec file
34 36
3520001015 3720001015
36 - (djm) Fix ssh2 hang on background processes at logout. 38 - (djm) Fix ssh2 hang on background processes at logout.
diff --git a/contrib/redhat/openssh.spec b/contrib/redhat/openssh.spec
index 95be389c8..5792aa811 100644
--- a/contrib/redhat/openssh.spec
+++ b/contrib/redhat/openssh.spec
@@ -24,16 +24,15 @@ BuildRoot: /tmp/openssh-%{version}-buildroot
24Obsoletes: ssh 24Obsoletes: ssh
25PreReq: openssl >= 0.9.5a 25PreReq: openssl >= 0.9.5a
26Requires: openssl >= 0.9.5a 26Requires: openssl >= 0.9.5a
27BuildPreReq: perl 27BuildPreReq: perl, openssl-devel, tcp_wrappers, gnome-libs-devel
28BuildPreReq: openssl-devel 28BuildPreReq: /bin/login, /usr/bin/rsh, /usr/include/security/pam_appl.h
29BuildPreReq: tcp_wrappers
30%if ! %{no_gnome_askpass} 29%if ! %{no_gnome_askpass}
31BuildPreReq: gnome-libs-devel 30BuildPreReq: gnome-libs-devel
32%endif 31%endif
33 32
34%package clients 33%package clients
35Summary: OpenSSH Secure Shell protocol clients 34Summary: OpenSSH Secure Shell protocol clients
36Requires: openssh 35Requires: openssh = %{version}-%{release}
37Group: Applications/Internet 36Group: Applications/Internet
38Obsoletes: ssh-clients 37Obsoletes: ssh-clients
39 38
@@ -41,19 +40,19 @@ Obsoletes: ssh-clients
41Summary: OpenSSH Secure Shell protocol server (sshd) 40Summary: OpenSSH Secure Shell protocol server (sshd)
42Group: System Environment/Daemons 41Group: System Environment/Daemons
43Obsoletes: ssh-server 42Obsoletes: ssh-server
44PreReq: openssh chkconfig >= 0.9 43PreReq: openssh = %{version}-%{release}, chkconfig >= 0.9
45Requires: initscripts >= 4.16 44Requires: initscripts >= 4.16
46 45
47%package askpass 46%package askpass
48Summary: OpenSSH X11 passphrase dialog 47Summary: OpenSSH X11 passphrase dialog
49Group: Applications/Internet 48Group: Applications/Internet
50Requires: openssh 49Requires: openssh = %{version}-%{release}
51Obsoletes: ssh-extras 50Obsoletes: ssh-extras
52 51
53%package askpass-gnome 52%package askpass-gnome
54Summary: OpenSSH GNOME passphrase dialog 53Summary: OpenSSH GNOME passphrase dialog
55Group: Applications/Internet 54Group: Applications/Internet
56Requires: openssh 55Requires: openssh = %{version}-%{release}
57Obsoletes: ssh-extras 56Obsoletes: ssh-extras
58 57
59%description 58%description
@@ -65,7 +64,7 @@ arbitrary TCP/IP ports can also be forwarded over the secure channel.
65 64
66OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it 65OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
67up to date in terms of security and features, as well as removing all 66up to date in terms of security and features, as well as removing all
68patented algorithms to seperate libraries (OpenSSL). 67patented algorithms to separate libraries (OpenSSL).
69 68
70This package includes the core files necessary for both the OpenSSH 69This package includes the core files necessary for both the OpenSSH
71client and server. To make this package useful, you should also 70client and server. To make this package useful, you should also
@@ -80,7 +79,7 @@ arbitrary TCP/IP ports can also be forwarded over the secure channel.
80 79
81OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it 80OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
82up to date in terms of security and features, as well as removing all 81up to date in terms of security and features, as well as removing all
83patented algorithms to seperate libraries (OpenSSL). 82patented algorithms to separate libraries (OpenSSL).
84 83
85This package includes the clients necessary to make encrypted connections 84This package includes the clients necessary to make encrypted connections
86to SSH servers. 85to SSH servers.
@@ -94,7 +93,7 @@ arbitrary TCP/IP ports can also be forwarded over the secure channel.
94 93
95OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it 94OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
96up to date in terms of security and features, as well as removing all 95up to date in terms of security and features, as well as removing all
97patented algorithms to seperate libraries (OpenSSL). 96patented algorithms to separate libraries (OpenSSL).
98 97
99This package contains the secure shell daemon. The sshd is the server 98This package contains the secure shell daemon. The sshd is the server
100part of the secure shell protocol and allows ssh clients to connect to 99part of the secure shell protocol and allows ssh clients to connect to
@@ -109,7 +108,7 @@ arbitrary TCP/IP ports can also be forwarded over the secure channel.
109 108
110OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it 109OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
111up to date in terms of security and features, as well as removing all 110up to date in terms of security and features, as well as removing all
112patented algorithms to seperate libraries (OpenSSL). 111patented algorithms to separate libraries (OpenSSL).
113 112
114This package contains Jim Knoble's <jmknoble@pobox.com> X11 passphrase 113This package contains Jim Knoble's <jmknoble@pobox.com> X11 passphrase
115dialog. 114dialog.
@@ -123,78 +122,52 @@ arbitrary TCP/IP ports can also be forwarded over the secure channel.
123 122
124OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it 123OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
125up to date in terms of security and features, as well as removing all 124up to date in terms of security and features, as well as removing all
126patented algorithms to seperate libraries (OpenSSL). 125patented algorithms to separate libraries (OpenSSL).
127 126
128This package contains the GNOME passphrase dialog. 127This package contains the GNOME passphrase dialog.
129 128
130%changelog
131* Tue Sep 05 2000 Damien Miller <djm@mindrot.org>
132- Use RPM configure macro
133* Tue Aug 08 2000 Damien Miller <djm@mindrot.org>
134- Some surgery to sshd.init (generate keys at runtime)
135- Cleanup of groups and removal of keygen calls
136* Wed Jul 12 2000 Damien Miller <djm@mindrot.org>
137- Make building of X11-askpass and gnome-askpass optional
138* Mon Jun 12 2000 Damien Miller <djm@mindrot.org>
139- Glob manpages to catch compressed files
140* Wed Mar 15 2000 Damien Miller <djm@ibs.com.au>
141- Updated for new location
142- Updated for new gnome-ssh-askpass build
143* Sun Dec 26 1999 Damien Miller <djm@mindrot.org>
144- Added Jim Knoble's <jmknoble@pobox.com> askpass
145* Mon Nov 15 1999 Damien Miller <djm@mindrot.org>
146- Split subpackages further based on patch from jim knoble <jmknoble@pobox.com>
147* Sat Nov 13 1999 Damien Miller <djm@mindrot.org>
148- Added 'Obsoletes' directives
149* Tue Nov 09 1999 Damien Miller <djm@ibs.com.au>
150- Use make install
151- Subpackages
152* Mon Nov 08 1999 Damien Miller <djm@ibs.com.au>
153- Added links for slogin
154- Fixed perms on manpages
155* Sat Oct 30 1999 Damien Miller <djm@ibs.com.au>
156- Renamed init script
157* Fri Oct 29 1999 Damien Miller <djm@ibs.com.au>
158- Back to old binary names
159* Thu Oct 28 1999 Damien Miller <djm@ibs.com.au>
160- Use autoconf
161- New binary names
162* Wed Oct 27 1999 Damien Miller <djm@ibs.com.au>
163- Initial RPMification, based on Jan "Yenya" Kasprzak's <kas@fi.muni.cz> spec.
164
165%prep 129%prep
166 130
167%setup -q -a 1 131%setup -q -a 1
168 132
169%build 133%build
170 134
171%configure --sysconfdir=/etc/ssh --libexecdir=/usr/libexec/openssh \ 135%configure \
172 --with-tcp-wrappers --with-rsh=/usr/bin/rsh 136 --sysconfdir=%{_sysconfdir}/ssh \
137 --libexecdir=%{_libexecdir}/openssh \
138 --with-tcp-wrappers \
139 --with-ipv4-default \
140 --with-rsh=/usr/bin/rsh \
141 --with-default-path=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin
173 142
174make 143make
175 144
176%if ! %{no_x11_askpass} 145%if ! %{no_x11_askpass}
177cd x11-ssh-askpass-%{aversion} 146pushd x11-ssh-askpass-%{aversion}
178xmkmf -a 147xmkmf -a
179make 148make
180cd .. 149popd
181%endif 150%endif
182 151
183%if ! %{no_gnome_askpass} 152%if ! %{no_gnome_askpass}
184cd contrib 153pushd contrib
185gcc -O -g `gnome-config --cflags gnome gnomeui` \ 154gcc -O -g `gnome-config --cflags gnome gnomeui` \
186 gnome-ssh-askpass.c -o gnome-ssh-askpass \ 155 gnome-ssh-askpass.c -o gnome-ssh-askpass \
187 `gnome-config --libs gnome gnomeui` 156 `gnome-config --libs gnome gnomeui`
188cd .. 157popd
189%endif 158%endif
190 159
191%install 160%install
192rm -rf $RPM_BUILD_ROOT 161rm -rf $RPM_BUILD_ROOT
193make install DESTDIR=$RPM_BUILD_ROOT/ 162%{makeinstall} \
163 sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir}/ssh \
164 libexecdir=$RPM_BUILD_ROOT%{_libexecdir}/openssh \
165 DESTDIR=/ # Hack to disable key generation
166
194 167
195install -d $RPM_BUILD_ROOT/etc/pam.d/ 168install -d $RPM_BUILD_ROOT/etc/pam.d/
196install -d $RPM_BUILD_ROOT/etc/rc.d/init.d 169install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
197install -d $RPM_BUILD_ROOT/usr/libexec/openssh 170install -d $RPM_BUILD_ROOT%{_libexecdir}/openssh
198install -m644 contrib/redhat/sshd.pam $RPM_BUILD_ROOT/etc/pam.d/sshd 171install -m644 contrib/redhat/sshd.pam $RPM_BUILD_ROOT/etc/pam.d/sshd
199install -m755 contrib/redhat/sshd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd 172install -m755 contrib/redhat/sshd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
200 173
@@ -207,6 +180,8 @@ ln -s /usr/libexec/openssh/x11-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/openssh/s
207install -s contrib/gnome-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/openssh/gnome-ssh-askpass 180install -s contrib/gnome-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/openssh/gnome-ssh-askpass
208%endif 181%endif
209 182
183perl -pi -e "s|$RPM_BUILD_ROOT||g" $RPM_BUILD_ROOT%{_mandir}/man*/*
184
210%clean 185%clean
211rm -rf $RPM_BUILD_ROOT 186rm -rf $RPM_BUILD_ROOT
212 187
@@ -225,33 +200,33 @@ fi
225%files 200%files
226%defattr(-,root,root) 201%defattr(-,root,root)
227%doc ChangeLog OVERVIEW COPYING.Ylonen README* INSTALL 202%doc ChangeLog OVERVIEW COPYING.Ylonen README* INSTALL
228%doc CREDITS UPGRADING LICENSE 203%doc CREDITS UPGRADING LICENCE
229%attr(0755,root,root) /usr/bin/ssh-keygen 204%attr(0755,root,root) %{_bindir}/ssh-keygen
230%attr(0755,root,root) /usr/bin/scp 205%attr(0755,root,root) %{_bindir}/scp
231%attr(0644,root,root) %{_mandir}/man1/ssh-keygen.1* 206%attr(0644,root,root) %{_mandir}/man1/ssh-keygen.1*
232%attr(0644,root,root) %{_mandir}/man1/scp.1* 207%attr(0644,root,root) %{_mandir}/man1/scp.1*
233%attr(0755,root,root) %dir /etc/ssh 208%attr(0755,root,root) %dir %{_sysconfdir}/ssh
234%attr(0755,root,root) %dir /usr/libexec/openssh 209%attr(0755,root,root) %dir %{_libexecdir}/openssh
235 210
236%files clients 211%files clients
237%defattr(-,root,root) 212%defattr(-,root,root)
238%attr(4755,root,root) /usr/bin/ssh 213%attr(4755,root,root) %{_bindir}/ssh
239%attr(0755,root,root) /usr/bin/ssh-agent 214%attr(0755,root,root) %{_bindir}/ssh-agent
240%attr(0755,root,root) /usr/bin/ssh-add 215%attr(0755,root,root) %{_bindir}/ssh-add
241%attr(0644,root,root) %{_mandir}/man1/ssh.1* 216%attr(0644,root,root) %{_mandir}/man1/ssh.1*
242%attr(0644,root,root) %{_mandir}/man1/ssh-agent.1* 217%attr(0644,root,root) %{_mandir}/man1/ssh-agent.1*
243%attr(0644,root,root) %{_mandir}/man1/ssh-add.1* 218%attr(0644,root,root) %{_mandir}/man1/ssh-add.1*
244%attr(0644,root,root) %config(noreplace) /etc/ssh/ssh_config 219%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/ssh/ssh_config
245%attr(-,root,root) /usr/bin/slogin 220%attr(-,root,root) %{_bindir}/slogin
246%attr(-,root,root) %{_mandir}/man1/slogin.1* 221%attr(-,root,root) %{_mandir}/man1/slogin.1*
247 222
248%files server 223%files server
249%defattr(-,root,root) 224%defattr(-,root,root)
250%attr(0755,root,root) /usr/sbin/sshd 225%attr(0755,root,root) %{_sbindir}/sshd
251%attr(0755,root,root) /usr/libexec/openssh/sftp-server 226%attr(0755,root,root) %{_libexecdir}/openssh/sftp-server
252%attr(0644,root,root) %{_mandir}/man8/sshd.8* 227%attr(0644,root,root) %{_mandir}/man8/sshd.8*
253%attr(0644,root,root) %{_mandir}/man8/sftp-server.8* 228%attr(0644,root,root) %{_mandir}/man8/sftp-server.8*
254%attr(0600,root,root) %config(noreplace) /etc/ssh/sshd_config 229%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/ssh/sshd_config
255%attr(0600,root,root) %config(noreplace) /etc/pam.d/sshd 230%attr(0600,root,root) %config(noreplace) /etc/pam.d/sshd
256%attr(0755,root,root) %config /etc/rc.d/init.d/sshd 231%attr(0755,root,root) %config /etc/rc.d/init.d/sshd
257 232
@@ -261,12 +236,51 @@ fi
261%doc x11-ssh-askpass-%{aversion}/README 236%doc x11-ssh-askpass-%{aversion}/README
262%doc x11-ssh-askpass-%{aversion}/ChangeLog 237%doc x11-ssh-askpass-%{aversion}/ChangeLog
263%doc x11-ssh-askpass-%{aversion}/SshAskpass*.ad 238%doc x11-ssh-askpass-%{aversion}/SshAskpass*.ad
264%attr(0755,root,root) /usr/libexec/openssh/ssh-askpass 239%attr(0755,root,root) %{_libexecdir}/openssh/ssh-askpass
265%attr(0755,root,root) /usr/libexec/openssh/x11-ssh-askpass 240%attr(0755,root,root) %{_libexecdir}/openssh/x11-ssh-askpass
266%endif 241%endif
267 242
268%if ! %{no_gnome_askpass} 243%if ! %{no_gnome_askpass}
269%files askpass-gnome 244%files askpass-gnome
270%defattr(-,root,root) 245%defattr(-,root,root)
271%attr(0755,root,root) /usr/libexec/openssh/gnome-ssh-askpass 246%attr(0755,root,root) %{_libexecdir}/openssh/gnome-ssh-askpass
272%endif 247%endif
248
249%changelog
250* Mon Oct 18 2000 Damien Miller <djm@mindrot.org>
251- Merge some of Nalin Dahyabhai <nalin@redhat.com> changes from the
252 Redhat 7.0 spec file
253* Tue Sep 05 2000 Damien Miller <djm@mindrot.org>
254- Use RPM configure macro
255* Tue Aug 08 2000 Damien Miller <djm@mindrot.org>
256- Some surgery to sshd.init (generate keys at runtime)
257- Cleanup of groups and removal of keygen calls
258* Wed Jul 12 2000 Damien Miller <djm@mindrot.org>
259- Make building of X11-askpass and gnome-askpass optional
260* Mon Jun 12 2000 Damien Miller <djm@mindrot.org>
261- Glob manpages to catch compressed files
262* Wed Mar 15 2000 Damien Miller <djm@ibs.com.au>
263- Updated for new location
264- Updated for new gnome-ssh-askpass build
265* Sun Dec 26 1999 Damien Miller <djm@mindrot.org>
266- Added Jim Knoble's <jmknoble@pobox.com> askpass
267* Mon Nov 15 1999 Damien Miller <djm@mindrot.org>
268- Split subpackages further based on patch from jim knoble <jmknoble@pobox.com>
269* Sat Nov 13 1999 Damien Miller <djm@mindrot.org>
270- Added 'Obsoletes' directives
271* Tue Nov 09 1999 Damien Miller <djm@ibs.com.au>
272- Use make install
273- Subpackages
274* Mon Nov 08 1999 Damien Miller <djm@ibs.com.au>
275- Added links for slogin
276- Fixed perms on manpages
277* Sat Oct 30 1999 Damien Miller <djm@ibs.com.au>
278- Renamed init script
279* Fri Oct 29 1999 Damien Miller <djm@ibs.com.au>
280- Back to old binary names
281* Thu Oct 28 1999 Damien Miller <djm@ibs.com.au>
282- Use autoconf
283- New binary names
284* Wed Oct 27 1999 Damien Miller <djm@ibs.com.au>
285- Initial RPMification, based on Jan "Yenya" Kasprzak's <kas@fi.muni.cz> spec.
286