]> andersk Git - openssh.git/blame - packages/redhat/openssh.spec
Prepare for pre24
[openssh.git] / packages / redhat / openssh.spec
CommitLineData
bc7ea646 1# Version of OpenSSH
7fab7ac8 2%define oversion 1.2.1pre24
bc7ea646 3
4# Version of ssh-askpass
5%define aversion 0.99
6
8efc0c15 7Summary: OpenSSH free Secure Shell (SSH) implementation
8Name: openssh
bc7ea646 9Version: %{oversion}
8efc0c15 10Release: 1
11Packager: Damien Miller <djm@ibs.com.au>
bc7ea646 12Source0: http://violet.ibs.com.au/openssh/files/openssh-%{oversion}.tar.gz
bc7ea646 13Source1: http://www.pobox.com/~jmknoble/jmk/x11-ssh-askpass-%{aversion}.tar.gz
8efc0c15 14Copyright: BSD
15Group: Applications/Internet
16BuildRoot: /tmp/openssh-%{version}-buildroot
e9c75a39 17Obsoletes: ssh
bc7ea646 18Requires: openssl
d2dcff5f 19BuildPreReq: perl
bc7ea646 20BuildPreReq: openssl-devel
253bd324 21BuildPreReq: tcp_wrappers
bc7ea646 22BuildPreReq: gnome-libs-devel
8c119fd0 23
24%package clients
25Summary: OpenSSH Secure Shell protocol clients
26Requires: openssh
27Group: System Environment/Daemons
e9c75a39 28Obsoletes: ssh-clients
8efc0c15 29
d397b172 30%package server
8c119fd0 31Summary: OpenSSH Secure Shell protocol server (sshd)
d397b172 32Group: System Environment/Daemons
e9c75a39 33Obsoletes: ssh-server
30a39691 34PreReq: openssh chkconfig >= 0.9
d397b172 35
36%package askpass
bc7ea646 37Summary: OpenSSH X11 passphrase dialog
38Group: Applications/Internet
39Requires: openssh
40Obsoletes: ssh-extras
bc7ea646 41
bc7ea646 42%package askpass-gnome
8c119fd0 43Summary: OpenSSH GNOME passphrase dialog
d397b172 44Group: Applications/Internet
45Requires: openssh
8c119fd0 46Obsoletes: ssh-extras
d397b172 47
8efc0c15 48%description
49Ssh (Secure Shell) a program for logging into a remote machine and for
50executing commands in a remote machine. It is intended to replace
51rlogin and rsh, and provide secure encrypted communications between
52two untrusted hosts over an insecure network. X11 connections and
53arbitrary TCP/IP ports can also be forwarded over the secure channel.
54
55OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
56up to date in terms of security and features, as well as removing all
57patented algorithms to seperate libraries (OpenSSL).
58
8c119fd0 59This package includes the core files necessary for both the OpenSSH
60client and server. To make this package useful, you should also
61install openssh-clients, openssh-server, or both.
62
63%description clients
64Ssh (Secure Shell) a program for logging into a remote machine and for
65executing commands in a remote machine. It is intended to replace
66rlogin and rsh, and provide secure encrypted communications between
67two untrusted hosts over an insecure network. X11 connections and
68arbitrary TCP/IP ports can also be forwarded over the secure channel.
69
70OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
71up to date in terms of security and features, as well as removing all
72patented algorithms to seperate libraries (OpenSSL).
73
d397b172 74This package includes the clients necessary to make encrypted connections
75to SSH servers.
76
77%description server
78Ssh (Secure Shell) a program for logging into a remote machine and for
79executing commands in a remote machine. It is intended to replace
80rlogin and rsh, and provide secure encrypted communications between
81two untrusted hosts over an insecure network. X11 connections and
82arbitrary TCP/IP ports can also be forwarded over the secure channel.
83
84OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
85up to date in terms of security and features, as well as removing all
86patented algorithms to seperate libraries (OpenSSL).
87
8c119fd0 88This package contains the secure shell daemon. The sshd is the server
89part of the secure shell protocol and allows ssh clients to connect to
90your host.
d397b172 91
bc7ea646 92%description askpass
93Ssh (Secure Shell) a program for logging into a remote machine and for
94executing commands in a remote machine. It is intended to replace
95rlogin and rsh, and provide secure encrypted communications between
96two untrusted hosts over an insecure network. X11 connections and
97arbitrary TCP/IP ports can also be forwarded over the secure channel.
98
99OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
100up to date in terms of security and features, as well as removing all
101patented algorithms to seperate libraries (OpenSSL).
102
103This package contains Jim Knoble's <jmknoble@pobox.com> X11 passphrase
104dialog.
bc7ea646 105
8a4958eb 106%description askpass-gnome
d397b172 107Ssh (Secure Shell) a program for logging into a remote machine and for
108executing commands in a remote machine. It is intended to replace
109rlogin and rsh, and provide secure encrypted communications between
110two untrusted hosts over an insecure network. X11 connections and
111arbitrary TCP/IP ports can also be forwarded over the secure channel.
112
113OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
114up to date in terms of security and features, as well as removing all
115patented algorithms to seperate libraries (OpenSSL).
116
117This package contains the GNOME passphrase dialog.
118
8efc0c15 119%changelog
bc7ea646 120* Sun Dec 26 1999 Damien Miller <djm@mindrot.org>
121- Added Jim Knoble's <jmknoble@pobox.com> askpass
8c119fd0 122* Mon Nov 15 1999 Damien Miller <djm@mindrot.org>
123- Split subpackages further based on patch from jim knoble <jmknoble@pobox.com>
10554a99 124* Sat Nov 13 1999 Damien Miller <djm@mindrot.org>
e9c75a39 125- Added 'Obsoletes' directives
f025becb 126* Tue Nov 09 1999 Damien Miller <djm@ibs.com.au>
127- Use make install
d397b172 128- Subpackages
e1a9c08d 129* Mon Nov 08 1999 Damien Miller <djm@ibs.com.au>
130- Added links for slogin
131- Fixed perms on manpages
38393fc0 132* Sat Oct 30 1999 Damien Miller <djm@ibs.com.au>
133- Renamed init script
339660f6 134* Fri Oct 29 1999 Damien Miller <djm@ibs.com.au>
135- Back to old binary names
5aecb327 136* Thu Oct 28 1999 Damien Miller <djm@ibs.com.au>
137- Use autoconf
138- New binary names
8efc0c15 139* Wed Oct 27 1999 Damien Miller <djm@ibs.com.au>
140- Initial RPMification, based on Jan "Yenya" Kasprzak's <kas@fi.muni.cz> spec.
141
142%prep
143
bc7ea646 144%setup -a 1
8efc0c15 145
146%build
147
f025becb 148CFLAGS="$RPM_OPT_FLAGS" \
253bd324 149 ./configure --prefix=/usr --sysconfdir=/etc/ssh \
150 --with-gnome-askpass --with-tcp-wrappers
bc7ea646 151
152make
8efc0c15 153
bc7ea646 154cd x11-ssh-askpass-%{aversion}
155xmkmf -a
df16c1f2 156make
bc7ea646 157cd ..
df16c1f2 158
8efc0c15 159%install
160rm -rf $RPM_BUILD_ROOT
f025becb 161make install prefix="$RPM_BUILD_ROOT/usr"
8efc0c15 162
22574738 163install -d $RPM_BUILD_ROOT/etc/ssh
164install -d $RPM_BUILD_ROOT/etc/pam.d/
165install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
4655fe80 166install -m644 packages/redhat/sshd.pam $RPM_BUILD_ROOT/etc/pam.d/sshd
167install -m755 packages/redhat/sshd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
f1bcacf9 168install -m600 ssh_config $RPM_BUILD_ROOT/etc/ssh/ssh_config
169install -m600 sshd_config $RPM_BUILD_ROOT/etc/ssh/sshd_config
170
bc7ea646 171install -s x11-ssh-askpass-%{aversion}/ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/x11-ssh-askpass
172ln -s /usr/libexec/ssh/x11-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/ssh-askpass
bc7ea646 173
8efc0c15 174%clean
175rm -rf $RPM_BUILD_ROOT
176
d397b172 177%post server
f1bcacf9 178/sbin/chkconfig --add sshd
179if [ ! -f /etc/ssh/ssh_host_key -o ! -s /etc/ssh/ssh_host_key ]; then
180 /usr/bin/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N '' >&2
8efc0c15 181fi
f1bcacf9 182if test -r /var/run/sshd.pid
8efc0c15 183then
f1bcacf9 184 /etc/rc.d/init.d/sshd restart >&2
8efc0c15 185fi
186
d397b172 187%preun server
8efc0c15 188if [ "$1" = 0 ]
189then
f1bcacf9 190 /etc/rc.d/init.d/sshd stop >&2
191 /sbin/chkconfig --del sshd
8efc0c15 192fi
193
194%files
195%defattr(-,root,root)
d2dcff5f 196%doc ChangeLog OVERVIEW COPYING.Ylonen README README.Ylonen INSTALL
197%doc CREDITS UPGRADING
8c119fd0 198%attr(0755,root,root) /usr/bin/ssh-keygen
199%attr(0755,root,root) /usr/bin/scp
200%attr(0644,root,root) /usr/man/man1/ssh-keygen.1
201%attr(0644,root,root) /usr/man/man1/scp.1
202%attr(0755,root,root) %dir /etc/ssh
2614f09b 203%attr(0755,root,root) %dir /usr/libexec/ssh
8c119fd0 204
205%files clients
206%defattr(-,root,root)
f370266e 207%attr(4755,root,root) /usr/bin/ssh
372e9169 208%attr(0755,root,root) /usr/bin/ssh-agent
372e9169 209%attr(0755,root,root) /usr/bin/ssh-add
e1a9c08d 210%attr(0644,root,root) /usr/man/man1/ssh.1
211%attr(0644,root,root) /usr/man/man1/ssh-agent.1
e1a9c08d 212%attr(0644,root,root) /usr/man/man1/ssh-add.1
4655fe80 213%attr(0644,root,root) %config(noreplace) /etc/ssh/ssh_config
8c119fd0 214%attr(-,root,root) /usr/bin/slogin
215%attr(-,root,root) /usr/man/man1/slogin.1
f1bcacf9 216
d397b172 217%files server
218%defattr(-,root,root)
219%attr(0755,root,root) /usr/sbin/sshd
220%attr(0644,root,root) /usr/man/man8/sshd.8
4655fe80 221%attr(0600,root,root) %config(noreplace) /etc/ssh/sshd_config
222%attr(0600,root,root) %config(noreplace) /etc/pam.d/sshd
f1bcacf9 223%attr(0755,root,root) %config /etc/rc.d/init.d/sshd
8efc0c15 224
d397b172 225%files askpass
226%defattr(-,root,root)
f28583d0 227%doc x11-ssh-askpass-%{aversion}/README
228%doc x11-ssh-askpass-%{aversion}/ChangeLog
229%doc x11-ssh-askpass-%{aversion}/SshAskpass*.ad
736890c4 230%attr(0755,root,root) /usr/libexec/ssh/ssh-askpass
bc7ea646 231%attr(0755,root,root) /usr/libexec/ssh/x11-ssh-askpass
8c119fd0 232
bc7ea646 233%files askpass-gnome
234%defattr(-,root,root)
235%attr(0755,root,root) /usr/libexec/ssh/gnome-ssh-askpass
This page took 0.10137 seconds and 5 git commands to generate.