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